File tree 1 file changed +3
-2
lines changed
compiler/rustc_driver_impl/src
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11
11
#![ allow( internal_features) ]
12
12
#![ feature( decl_macro) ]
13
13
#![ feature( let_chains) ]
14
+ #![ feature( panic_backtrace_config) ]
14
15
#![ feature( panic_update_hook) ]
15
16
#![ feature( result_flattening) ]
16
17
@@ -1317,8 +1318,8 @@ pub fn install_ice_hook(
1317
1318
// by the user. Compiler developers and other rustc users can
1318
1319
// opt in to less-verbose backtraces by manually setting "RUST_BACKTRACE"
1319
1320
// (e.g. `RUST_BACKTRACE=1`)
1320
- if std :: env:: var_os( "RUST_BACKTRACE" ) . is_none( ) {
1321
- std :: env :: set_var ( "RUST_BACKTRACE" , "full" ) ;
1321
+ if env:: var_os( "RUST_BACKTRACE" ) . is_none( ) {
1322
+ panic :: set_backtrace_style ( panic :: BacktraceStyle :: Full ) ;
1322
1323
}
1323
1324
1324
1325
let using_internal_features = Arc :: new( std:: sync:: atomic:: AtomicBool :: default ( ) ) ;
You can’t perform that action at this time.
0 commit comments