Remove -Z no-landing-pads flag

This commit is contained in:
Amanieu d'Antras 2020-03-20 11:09:32 +00:00
parent 6470169237
commit 2f5bd9d0f1
6 changed files with 4 additions and 7 deletions

View File

@ -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);

View File

@ -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],

View File

@ -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

View File

@ -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)]

View File

@ -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

View File

@ -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