-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add Mutex methods that ignore poisoning #35092
Comments
For reference, this is what you type when you need to ignore poisoning: |
Would be worthwhile to survey existing code bases to see how common it is to ignore poisoning. |
I made a wrapper crate over the standard library types to do this: https://crates.io/crates/antidote I have needed to poison a data structure exactly once in my career (Rust and not-Rust). |
The libs team discussed this yesterday and the conclusion was that a change like this would require an RFC, so as a result we're going to close this in favor of a future incarnation in the rust-lang/rfcs repo. |
Relatedly, I'd like |
@Ericson2314 Wouldn't that break source compatibility? (Am I right to assume that panic=abort is not supposed to?) |
@glaebhoerl sorry this would be a scenario thing where one can be portable/parametric wrt panic strategy, or rely on one and not work with the other. |
Scenarios where one wants to ignore poisoning happen. Having to type extra incantations to ignore the poisoning can be quite unpleasant, makes Rust less ergonomic, and is a source of complaints. Let's please consider adding conveniences for cases where poisoning is not desired, either additional methods, or new types that do not poison.
The text was updated successfully, but these errors were encountered: