File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " tidy"
33version = " 0.1.0"
4- edition = " 2021 "
4+ edition = " 2024 "
55autobins = false
66
77[dependencies ]
Original file line number Diff line number Diff line change @@ -15,11 +15,10 @@ use std::{env, process};
1515use tidy:: * ;
1616
1717fn main ( ) {
18- // Running Cargo will read the libstd Cargo.toml
18+ // Enable nightly, because Cargo will read the libstd Cargo.toml
1919 // which uses the unstable `public-dependency` feature.
20- //
21- // `setenv` might not be thread safe, so run it before using multiple threads.
22- env:: set_var ( "RUSTC_BOOTSTRAP" , "1" ) ;
20+ // SAFETY: no other threads have been spawned
21+ unsafe { env:: set_var ( "RUSTC_BOOTSTRAP" , "1" ) ; }
2322
2423 let root_path: PathBuf = env:: args_os ( ) . nth ( 1 ) . expect ( "need path to root of repo" ) . into ( ) ;
2524 let cargo: PathBuf = env:: args_os ( ) . nth ( 2 ) . expect ( "need path to cargo" ) . into ( ) ;
You can’t perform that action at this time.
0 commit comments