File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compiler/rustc_driver_impl/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1111#![ allow( internal_features) ]
1212#![ feature( decl_macro) ]
1313#![ feature( let_chains) ]
14+ #![ feature( panic_backtrace_config) ]
1415#![ feature( panic_update_hook) ]
1516#![ feature( result_flattening) ]
1617
@@ -1317,8 +1318,8 @@ pub fn install_ice_hook(
13171318 // by the user. Compiler developers and other rustc users can
13181319 // opt in to less-verbose backtraces by manually setting "RUST_BACKTRACE"
13191320 // (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 ) ;
13221323 }
13231324
13241325 let using_internal_features = Arc :: new( std:: sync:: atomic:: AtomicBool :: default ( ) ) ;
You can’t perform that action at this time.
0 commit comments