diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-25 00:08:33 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-25 00:08:33 +0200 |
| commit | 33253fa6a42565eeae40e63401a41ac2dcc9e92f (patch) | |
| tree | f0d3a82149da5df750f76000a5acdf0e0c3f665f /compiler/rustc_session/src/config.rs | |
| parent | 653cfdb436256cbc8415630b2537707ae1663806 (diff) | |
| download | rust-33253fa6a42565eeae40e63401a41ac2dcc9e92f.tar.gz rust-33253fa6a42565eeae40e63401a41ac2dcc9e92f.zip | |
Revert "Rename -Zoom=panic to -Zoom=unwind"
This reverts commit 4b981c26487ebe56de6b3000fcd98713804beefc.
Diffstat (limited to 'compiler/rustc_session/src/config.rs')
| -rw-r--r-- | compiler/rustc_session/src/config.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs index 419b6afe7c6..79eb31bb105 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -3048,9 +3048,9 @@ pub(crate) mod dep_tracking { #[derive(Clone, Copy, PartialEq, Hash, Debug, Encodable, Decodable, HashStable_Generic)] pub enum OomStrategy { /// Generate a panic that can be caught by `catch_unwind`. - Unwind, + Panic, - /// Calls the panic hook as normal but aborts instead of unwinding. + /// Abort the process immediately. Abort, } @@ -3059,7 +3059,7 @@ impl OomStrategy { pub fn should_panic(self) -> u8 { match self { - OomStrategy::Unwind => 1, + OomStrategy::Panic => 1, OomStrategy::Abort => 0, } } |
