Remove -Z no-landing-pads flag
This commit is contained in:
parent
6470169237
commit
2f5bd9d0f1
@ -546,7 +546,6 @@ fn test_debugging_options_tracking_hash() {
|
||||
tracked!(new_llvm_pass_manager, true);
|
||||
tracked!(no_codegen, true);
|
||||
tracked!(no_generate_arange_section, true);
|
||||
tracked!(no_landing_pads, true);
|
||||
tracked!(no_link, true);
|
||||
tracked!(no_profiler_runtime, true);
|
||||
tracked!(osx_rpath_install_name, true);
|
||||
|
@ -878,8 +878,6 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
|
||||
"omit DWARF address ranges that give faster lookups"),
|
||||
no_interleave_lints: bool = (false, parse_no_flag, [UNTRACKED],
|
||||
"execute lints separately; allows benchmarking individual lints"),
|
||||
no_landing_pads: bool = (false, parse_no_flag, [TRACKED],
|
||||
"omit landing pads for unwinding"),
|
||||
no_leak_check: bool = (false, parse_no_flag, [UNTRACKED],
|
||||
"disable the 'leak check' for subtyping; unsound, but useful for tests"),
|
||||
no_link: bool = (false, parse_no_flag, [TRACKED],
|
||||
|
@ -541,7 +541,7 @@ impl Session {
|
||||
}
|
||||
|
||||
pub fn no_landing_pads(&self) -> bool {
|
||||
self.opts.debugging_opts.no_landing_pads || self.panic_strategy() == PanicStrategy::Abort
|
||||
self.panic_strategy() == PanicStrategy::Abort
|
||||
}
|
||||
pub fn unstable_options(&self) -> bool {
|
||||
self.opts.debugging_opts.unstable_options
|
||||
|
@ -1,7 +1,7 @@
|
||||
//! Tests that generators that cannot return or unwind don't have unnecessary
|
||||
//! panic branches.
|
||||
|
||||
// compile-flags: -Zno-landing-pads
|
||||
// compile-flags: -C panic=abort
|
||||
|
||||
#![feature(generators, generator_trait)]
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// compile-flags: -Z no-landing-pads -C codegen-units=1
|
||||
// compile-flags: -C panic=abort -C codegen-units=1
|
||||
// error-pattern:converging_fn called
|
||||
// ignore-cloudabi no std::process
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// compile-flags: -Z no-landing-pads -C codegen-units=1
|
||||
// compile-flags: -C panic=abort -C codegen-units=1
|
||||
// error-pattern:diverging_fn called
|
||||
// ignore-cloudabi no std::process
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user