File tree Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ smallvec = "1.8.1"
43
43
44
44
[features ]
45
45
# Enable features not ready to be enabled when compiling as part of rustc
46
- unstable-features = [" jit" , " inline_asm_sym" ]
46
+ unstable-features = [" jit" , " inline_asm_sym" , " unwinding " ]
47
47
jit = [" cranelift-jit" , " libloading" ]
48
48
inline_asm_sym = []
49
- unwinding = [] # Not yet included in unstable-features for performance reasons
49
+ unwinding = []
50
50
51
51
[package .metadata .rust-analyzer ]
52
52
rustc_private = true
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ fn build_clif_sysroot_for_triple(
206
206
}
207
207
208
208
// Build sysroot
209
- let mut rustflags = vec ! [ "-Zforce-unstable-if-unmarked" . to_owned( ) , "-Cpanic=abort" . to_owned ( ) ] ;
209
+ let mut rustflags = vec ! [ "-Zforce-unstable-if-unmarked" . to_owned( ) ] ;
210
210
match cg_clif_dylib_path {
211
211
CodegenBackend :: Local ( path) => {
212
212
rustflags. push ( format ! ( "-Zcodegen-backend={}" , path. to_str( ) . unwrap( ) ) ) ;
Original file line number Diff line number Diff line change @@ -404,7 +404,6 @@ impl<'a> TestRunner<'a> {
404
404
cmd. arg ( "-Cdebuginfo=2" ) ;
405
405
cmd. arg ( "--target" ) ;
406
406
cmd. arg ( & self . target_compiler . triple ) ;
407
- cmd. arg ( "-Cpanic=abort" ) ;
408
407
cmd. arg ( "--check-cfg=cfg(jit)" ) ;
409
408
cmd. args ( args) ;
410
409
cmd
Original file line number Diff line number Diff line change @@ -16,7 +16,12 @@ use std::io::Write;
16
16
use std:: ops:: Coroutine ;
17
17
18
18
fn main ( ) {
19
- println ! ( "{:?}" , std:: env:: args( ) . collect:: <Vec <_>>( ) ) ;
19
+ println ! (
20
+ "{:?}" ,
21
+ std:: panic:: catch_unwind( || {
22
+ panic!( "foo" ) ;
23
+ } )
24
+ ) ;
20
25
21
26
let mutex = std:: sync:: Mutex :: new ( ( ) ) ;
22
27
let _guard = mutex. lock ( ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ fn main() {
12
12
sysroot = sysroot. parent ( ) . unwrap ( ) ;
13
13
}
14
14
15
- let mut rustflags = vec ! [ "-Cpanic=abort" . to_owned ( ) , "-Zpanic-abort-tests" . to_owned ( ) ] ;
15
+ let mut rustflags = vec ! [ ] ;
16
16
if let Some ( name) = option_env ! ( "BUILTIN_BACKEND" ) {
17
17
rustflags. push ( format ! ( "-Zcodegen-backend={name}" ) ) ;
18
18
} else {
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ fn main() {
17
17
18
18
let passed_args = std:: env:: args_os ( ) . skip ( 1 ) . collect :: < Vec < _ > > ( ) ;
19
19
let mut args = vec ! [ ] ;
20
- args. push ( OsString :: from ( "-Cpanic=abort" ) ) ;
21
- args. push ( OsString :: from ( "-Zpanic-abort-tests" ) ) ;
22
20
if let Some ( name) = option_env ! ( "BUILTIN_BACKEND" ) {
23
21
args. push ( OsString :: from ( format ! ( "-Zcodegen-backend={name}" ) ) )
24
22
} else {
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ fn main() {
17
17
18
18
let passed_args = std:: env:: args_os ( ) . skip ( 1 ) . collect :: < Vec < _ > > ( ) ;
19
19
let mut args = vec ! [ ] ;
20
- args. push ( OsString :: from ( "-Cpanic=abort" ) ) ;
21
- args. push ( OsString :: from ( "-Zpanic-abort-tests" ) ) ;
22
20
if let Some ( name) = option_env ! ( "BUILTIN_BACKEND" ) {
23
21
args. push ( OsString :: from ( format ! ( "-Zcodegen-backend={name}" ) ) )
24
22
} else {
You can’t perform that action at this time.
0 commit comments