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"
4343
4444[features ]
4545# 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 " ]
4747jit = [" cranelift-jit" , " libloading" ]
4848inline_asm_sym = []
49- unwinding = [] # Not yet included in unstable-features for performance reasons
49+ unwinding = []
5050
5151[package .metadata .rust-analyzer ]
5252rustc_private = true
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ fn build_clif_sysroot_for_triple(
206206 }
207207
208208 // 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( ) ] ;
210210 match cg_clif_dylib_path {
211211 CodegenBackend :: Local ( path) => {
212212 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> {
404404 cmd. arg ( "-Cdebuginfo=2" ) ;
405405 cmd. arg ( "--target" ) ;
406406 cmd. arg ( & self . target_compiler . triple ) ;
407- cmd. arg ( "-Cpanic=abort" ) ;
408407 cmd. arg ( "--check-cfg=cfg(jit)" ) ;
409408 cmd. args ( args) ;
410409 cmd
Original file line number Diff line number Diff line change @@ -16,7 +16,12 @@ use std::io::Write;
1616use std:: ops:: Coroutine ;
1717
1818fn main ( ) {
19- println ! ( "{:?}" , std:: env:: args( ) . collect:: <Vec <_>>( ) ) ;
19+ println ! (
20+ "{:?}" ,
21+ std:: panic:: catch_unwind( || {
22+ panic!( "foo" ) ;
23+ } )
24+ ) ;
2025
2126 let mutex = std:: sync:: Mutex :: new ( ( ) ) ;
2227 let _guard = mutex. lock ( ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ fn main() {
1212 sysroot = sysroot. parent ( ) . unwrap ( ) ;
1313 }
1414
15- let mut rustflags = vec ! [ "-Cpanic=abort" . to_owned ( ) , "-Zpanic-abort-tests" . to_owned ( ) ] ;
15+ let mut rustflags = vec ! [ ] ;
1616 if let Some ( name) = option_env ! ( "BUILTIN_BACKEND" ) {
1717 rustflags. push ( format ! ( "-Zcodegen-backend={name}" ) ) ;
1818 } else {
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ fn main() {
1717
1818 let passed_args = std:: env:: args_os ( ) . skip ( 1 ) . collect :: < Vec < _ > > ( ) ;
1919 let mut args = vec ! [ ] ;
20- args. push ( OsString :: from ( "-Cpanic=abort" ) ) ;
21- args. push ( OsString :: from ( "-Zpanic-abort-tests" ) ) ;
2220 if let Some ( name) = option_env ! ( "BUILTIN_BACKEND" ) {
2321 args. push ( OsString :: from ( format ! ( "-Zcodegen-backend={name}" ) ) )
2422 } else {
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ fn main() {
1717
1818 let passed_args = std:: env:: args_os ( ) . skip ( 1 ) . collect :: < Vec < _ > > ( ) ;
1919 let mut args = vec ! [ ] ;
20- args. push ( OsString :: from ( "-Cpanic=abort" ) ) ;
21- args. push ( OsString :: from ( "-Zpanic-abort-tests" ) ) ;
2220 if let Some ( name) = option_env ! ( "BUILTIN_BACKEND" ) {
2321 args. push ( OsString :: from ( format ! ( "-Zcodegen-backend={name}" ) ) )
2422 } else {
You can’t perform that action at this time.
0 commit comments