File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " tidy"
3
3
version = " 0.1.0"
4
- edition = " 2021 "
4
+ edition = " 2024 "
5
5
autobins = false
6
6
7
7
[dependencies ]
Original file line number Diff line number Diff line change @@ -15,11 +15,12 @@ use std::{env, process};
15
15
use tidy:: * ;
16
16
17
17
fn main ( ) {
18
- // Running Cargo will read the libstd Cargo.toml
18
+ // Enable nightly, because Cargo will read the libstd Cargo.toml
19
19
// 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 {
22
+ env:: set_var ( "RUSTC_BOOTSTRAP" , "1" ) ;
23
+ }
23
24
24
25
let root_path: PathBuf = env:: args_os ( ) . nth ( 1 ) . expect ( "need path to root of repo" ) . into ( ) ;
25
26
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