Enable -Z panic-in-drop=abort by default#95209
Closed
Amanieu wants to merge 4 commits intorust-lang:masterfrom
Closed
Enable -Z panic-in-drop=abort by default#95209Amanieu wants to merge 4 commits intorust-lang:masterfrom
Amanieu wants to merge 4 commits intorust-lang:masterfrom
Conversation
This is used in rustc tests to test -Z panic-in-drop=unwind.
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Member
|
Looks like this causes delay_span_bug to abort the process if it triggers rather than continue unwinding to the main entry point of rustc_driver and return an error value. |
Member
Author
|
So this seems to be due to the unfortunate design of
|
Collaborator
|
☔ The latest upstream changes (presumably #96622) made this pull request unmergeable. Please resolve the merge conflicts. |
Member
|
Closing this as inactive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR switches the default value of
-Z panic-in-droptoabort. This causes Rust programs to abort if a panic escapes from aDropimpl (it is not caught bycatch_unwind).See rust-lang/lang-team#97 for a more detailed rationale on this change.
Most of the changes in this PR involve fixing tests to work with the new behavior. For now, stdlib tests which rely on panics in drop are simply disabled with
#[ignore]. However, if in the future we decide to make this change permanent and remove the-Z panic-in-drop=unwindoption then we can simplify the implementation of the collections, especially with regards todrain_filter.r? @joshtriplett