Skip to content

Conversation

@joboet
Copy link
Member

@joboet joboet commented Nov 8, 2025

Under the hopefully reasonable assumption that std's code is bug-free, all of the mutexes switched here will never be poisoned. The only poisoning mutex left is the one used for output capturing, as that has subtle effects on what gets captured.

@rustbot
Copy link
Collaborator

rustbot commented Nov 8, 2025

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added O-unix Operating system: Unix-like S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 8, 2025
Comment on lines +438 to +445
#[stable(feature = "catch_unwind", since = "1.9.0")]
impl UnwindSafe for Stdin {}

#[stable(feature = "catch_unwind", since = "1.9.0")]
impl RefUnwindSafe for Stdin {}

Copy link
Member Author

Choose a reason for hiding this comment

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

The manual implementation is necessary to avoid a situation like #146087.

@rust-log-analyzer

This comment has been minimized.

@joboet joboet force-pushed the nonpoison-mutex-everywhere branch from c5f4eac to 77d3da4 Compare November 8, 2025 12:48
@rust-log-analyzer

This comment has been minimized.

@joboet joboet force-pushed the nonpoison-mutex-everywhere branch from 77d3da4 to d75cc3b Compare November 8, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-unix Operating system: Unix-like S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants