@@ -5,18 +5,18 @@ use std::{
55 io:: { BufRead , BufReader , BufWriter , ErrorKind , Write } ,
66 path:: { Path , PathBuf } ,
77 process:: { Command , Stdio } ,
8+ sync:: OnceLock ,
89} ;
910
1011use build_helper:: ci:: CiEnv ;
11- use once_cell:: sync:: OnceCell ;
1212use xz2:: bufread:: XzDecoder ;
1313
1414use crate :: core:: build_steps:: llvm:: detect_llvm_sha;
1515use crate :: core:: config:: RustfmtMetadata ;
1616use crate :: utils:: helpers:: { check_run, exe, program_out_of_date} ;
1717use crate :: { t, Config } ;
1818
19- static SHOULD_FIX_BINS_AND_DYLIBS : OnceCell < bool > = OnceCell :: new ( ) ;
19+ static SHOULD_FIX_BINS_AND_DYLIBS : OnceLock < bool > = OnceLock :: new ( ) ;
2020
2121/// `Config::try_run` wrapper for this module to avoid warnings on `try_run`, since we don't have access to a `builder` yet.
2222fn try_run ( config : & Config , cmd : & mut Command ) -> Result < ( ) , ( ) > {
@@ -131,7 +131,7 @@ impl Config {
131131 println ! ( "attempting to patch {}" , fname. display( ) ) ;
132132
133133 // Only build `.nix-deps` once.
134- static NIX_DEPS_DIR : OnceCell < PathBuf > = OnceCell :: new ( ) ;
134+ static NIX_DEPS_DIR : OnceLock < PathBuf > = OnceLock :: new ( ) ;
135135 let mut nix_build_succeeded = true ;
136136 let nix_deps_dir = NIX_DEPS_DIR . get_or_init ( || {
137137 // Run `nix-build` to "build" each dependency (which will likely reuse
0 commit comments