@@ -5,18 +5,18 @@ use std::{
5
5
io:: { BufRead , BufReader , BufWriter , ErrorKind , Write } ,
6
6
path:: { Path , PathBuf } ,
7
7
process:: { Command , Stdio } ,
8
+ sync:: OnceLock ,
8
9
} ;
9
10
10
11
use build_helper:: ci:: CiEnv ;
11
- use once_cell:: sync:: OnceCell ;
12
12
use xz2:: bufread:: XzDecoder ;
13
13
14
14
use crate :: core:: build_steps:: llvm:: detect_llvm_sha;
15
15
use crate :: core:: config:: RustfmtMetadata ;
16
16
use crate :: utils:: helpers:: { check_run, exe, program_out_of_date} ;
17
17
use crate :: { t, Config } ;
18
18
19
- static SHOULD_FIX_BINS_AND_DYLIBS : OnceCell < bool > = OnceCell :: new ( ) ;
19
+ static SHOULD_FIX_BINS_AND_DYLIBS : OnceLock < bool > = OnceLock :: new ( ) ;
20
20
21
21
/// `Config::try_run` wrapper for this module to avoid warnings on `try_run`, since we don't have access to a `builder` yet.
22
22
fn try_run ( config : & Config , cmd : & mut Command ) -> Result < ( ) , ( ) > {
@@ -131,7 +131,7 @@ impl Config {
131
131
println ! ( "attempting to patch {}" , fname. display( ) ) ;
132
132
133
133
// Only build `.nix-deps` once.
134
- static NIX_DEPS_DIR : OnceCell < PathBuf > = OnceCell :: new ( ) ;
134
+ static NIX_DEPS_DIR : OnceLock < PathBuf > = OnceLock :: new ( ) ;
135
135
let mut nix_build_succeeded = true ;
136
136
let nix_deps_dir = NIX_DEPS_DIR . get_or_init ( || {
137
137
// Run `nix-build` to "build" each dependency (which will likely reuse
0 commit comments