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

Give FileDescription::{read, write} access to the MiriInterpCx #3603

Merged
merged 1 commit into from
May 17, 2024

Conversation

Luv-Ray
Copy link
Contributor

@Luv-Ray Luv-Ray commented May 13, 2024

fixes #3572

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.

Looks good overall, thanks! Just some nits.

.map(|c| i64::try_from(c).unwrap());
drop(file_descriptor);
Copy link
Member

Choose a reason for hiding this comment

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

I think its still good to keep the FD for as short as possible, so please keep the drop around.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's right, fixed.

src/shims/unix/fd.rs Show resolved Hide resolved
src/shims/unix/fd.rs Show resolved Hide resolved
src/shims/unix/fd.rs Show resolved Hide resolved
@RalfJung
Copy link
Member

Looks good! Please squash the commits.

@Luv-Ray
Copy link
Contributor Author

Luv-Ray commented May 17, 2024

poll :)
Is there anything left for me to do?

@RalfJung
Copy link
Member

No, there's not, github just doesn't notify on all force pushes (only on some) so I didn't realize you had done the squashing.

Thanks! @bors r+

@bors
Copy link
Collaborator

bors commented May 17, 2024

📌 Commit b9215a5 has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented May 17, 2024

⌛ Testing commit b9215a5 with merge ef80155...

@bors
Copy link
Collaborator

bors commented May 17, 2024

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing ef80155 to master...

@bors bors merged commit ef80155 into rust-lang:master May 17, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Give FileDescription::{read, write} access to the InterpCx
3 participants