1
Fork 0

replace feature expression (cfg_panic) in lib and remove expression from tests

Rebase commit
This commit is contained in:
Charisee 2022-02-04 17:14:58 +00:00
parent 4404a4e365
commit 5e6be7df94
5 changed files with 3 additions and 5 deletions

View file

@ -6,7 +6,7 @@
#![feature(bool_to_option)]
#![feature(box_syntax)]
#![feature(cell_update)]
#![feature(cfg_panic)]
#![cfg_attr(bootstrap,feature(cfg_panic))]
#![cfg_attr(bootstrap, feature(cfg_target_has_atomic))]
#![feature(const_assume)]
#![feature(const_black_box)]

View file

@ -1,7 +1,7 @@
// build-pass
// compile-flags: -C panic=abort
// no-prefer-dynamic
#![feature(cfg_panic)]
#[cfg(panic = "unwind")]
pub fn bad() -> i32 { }

View file

@ -4,7 +4,7 @@
// ignore-emscripten no panic_unwind implementation
// ignore-wasm32 no panic_unwind implementation
// ignore-wasm64 no panic_unwind implementation
#![feature(cfg_panic)]
#[cfg(panic = "abort")]
pub fn bad() -> i32 { }

View file

@ -1,5 +1,4 @@
// run-pass
#![feature(cfg_panic)]
fn main() {
named_argument_takes_precedence_to_captured();

View file

@ -4,7 +4,6 @@
// entering the catch_unwind.
//
// run-pass
#![feature(cfg_panic)]
use std::panic::catch_unwind;