Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use deref_pointer_as instead of deref_pointer #4140

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

geetanshjuneja
Copy link
Contributor

@geetanshjuneja geetanshjuneja commented Jan 17, 2025

Links to #3841.

This PR is still under progress.

src/shims/time.rs Outdated Show resolved Hide resolved
src/shims/unix/foreign_items.rs Outdated Show resolved Hide resolved
src/shims/unix/fs.rs Outdated Show resolved Hide resolved
src/shims/unix/unnamed_socket.rs Show resolved Hide resolved
@geetanshjuneja
Copy link
Contributor Author

geetanshjuneja commented Jan 18, 2025

@RalfJung since libc isn't reliably available on Windows targets, I won't be able to get windows specificlayouts like this.libc_ty_layout("CONSOLE_SCREEN_BUFFER_INFO"). What should I do in this case?

@RalfJung
Copy link
Member

Yeah CONSOLE_SCREEN_BUFFER_INFO is not in libc. It's a Windows API type. I'd say remove that one from the PR for now and open a Zulip thread; either we can find this type declaration somewhere else or we have to write some helpers to declare such struct types entirely ourselves.

@RalfJung
Copy link
Member

RalfJung commented Jan 19, 2025

Wait, did you add more deref_pointerderef_pointer_as after my first review? Please don't do that, and especially please don't do that without explicitly posting a comment saying that you did! The general expectation is that once a review was done, the PR will not be extended in scope any more; all remaining changes are for resolving review concerns.

I will have to do a complete re-review, and since I am traveling this will take at least a week, maybe two.

@geetanshjuneja
Copy link
Contributor Author

geetanshjuneja commented Jan 19, 2025

Wait, did you add more deref_pointerderef_pointer_as after my first review? Please don't do that, and especially please don't do that without explicitly posting a comment saying that you did!

Sorry for not mentioning earlier that the PR is incomplete and making you review it unnecessarily. I have now made all the changes except for the windows part.

I will have to do a complete re-review, and since I am traveling this will take at least a week, maybe two.

I am not in a hurry, do re-review whenever you are free.

@geetanshjuneja
Copy link
Contributor Author

@RalfJung plz review this.

Copy link
Member

@RalfJung RalfJung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there :)

src/shims/time.rs Outdated Show resolved Hide resolved
src/shims/windows/sync.rs Outdated Show resolved Hide resolved
@RalfJung
Copy link
Member

@rustbot author
Please post @rustbot ready when the PR is ready for the next round of review.

@rustbot rustbot added the S-waiting-on-author Status: Waiting for the PR author to address review comments label Jan 29, 2025
@geetanshjuneja
Copy link
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Waiting for a review to complete and removed S-waiting-on-author Status: Waiting for the PR author to address review comments labels Jan 30, 2025
@RalfJung
Copy link
Member

This looks great, thanks! Please squash the commits, then we can land this. Please use the --keep-base flag when squashing so that the force-push diff is easier to review. Then write @rustbot ready after you pushed the squashed PR.

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: Waiting for the PR author to address review comments and removed S-waiting-on-review Status: Waiting for a review to complete labels Jan 30, 2025
@rustbot

This comment has been minimized.

@geetanshjuneja
Copy link
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Waiting for a review to complete and removed S-waiting-on-author Status: Waiting for the PR author to address review comments labels Jan 30, 2025
@geetanshjuneja
Copy link
Contributor Author

geetanshjuneja commented Jan 30, 2025

Please use the --keep-base flag when squashing so that the force-push diff is easier to review.

Sorry I just rewrote the history, from the next time I will make sure that the new commit message comes with a concatenation of the existing commit messages.

@geetanshjuneja
Copy link
Contributor Author

I didn't made any more changes so you don't need to review again.

@RalfJung RalfJung enabled auto-merge January 30, 2025 16:30
@RalfJung
Copy link
Member

Looks good, thanks. :)

@RalfJung RalfJung added this pull request to the merge queue Jan 30, 2025
Merged via the queue into rust-lang:master with commit aaa8151 Jan 30, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Waiting for a review to complete
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants