@@ -21,7 +21,7 @@ use crate::{
21
21
cargo_workspace:: { DepKind , PackageData , RustLibSource } ,
22
22
cfg_flag:: CfgFlag ,
23
23
project_json:: Crate ,
24
- rustc_cfg,
24
+ rustc_cfg:: { self , RustcCfgConfig } ,
25
25
sysroot:: SysrootCrate ,
26
26
target_data_layout, utf8_stdout, CargoConfig , CargoWorkspace , InvocationStrategy , ManifestPath ,
27
27
Package , ProjectJson , ProjectManifest , Sysroot , TargetData , TargetKind , WorkspaceBuildScripts ,
@@ -282,7 +282,7 @@ impl ProjectWorkspace {
282
282
let rustc_cfg = rustc_cfg:: get (
283
283
config. target . as_deref ( ) ,
284
284
& config. extra_env ,
285
- rustc_cfg :: Config :: Cargo ( cargo_toml) ,
285
+ RustcCfgConfig :: Cargo ( cargo_toml) ,
286
286
) ;
287
287
288
288
let cfg_overrides = config. cfg_overrides . clone ( ) ;
@@ -337,11 +337,11 @@ impl ProjectWorkspace {
337
337
let config = match & sysroot {
338
338
Ok ( sysroot) => {
339
339
tracing:: debug!( src_root = %sysroot. src_root( ) , root = %sysroot. root( ) , "Using sysroot" ) ;
340
- rustc_cfg :: Config :: Explicit ( sysroot)
340
+ RustcCfgConfig :: Explicit ( sysroot)
341
341
}
342
342
Err ( _) => {
343
343
tracing:: debug!( "discovering sysroot" ) ;
344
- rustc_cfg :: Config :: Discover
344
+ RustcCfgConfig :: Discover
345
345
}
346
346
} ;
347
347
@@ -370,11 +370,11 @@ impl ProjectWorkspace {
370
370
let rustc_config = match & sysroot {
371
371
Ok ( sysroot) => {
372
372
tracing:: info!( src_root = %sysroot. src_root( ) , root = %sysroot. root( ) , "Using sysroot" ) ;
373
- rustc_cfg :: Config :: Explicit ( sysroot)
373
+ RustcCfgConfig :: Explicit ( sysroot)
374
374
}
375
375
Err ( _) => {
376
376
tracing:: info!( "discovering sysroot" ) ;
377
- rustc_cfg :: Config :: Discover
377
+ RustcCfgConfig :: Discover
378
378
}
379
379
} ;
380
380
@@ -774,8 +774,8 @@ fn project_json_to_crate_graph(
774
774
let target_cfgs = match target. as_deref ( ) {
775
775
Some ( target) => cfg_cache. entry ( target) . or_insert_with ( || {
776
776
let rustc_cfg = match sysroot {
777
- Some ( sysroot) => rustc_cfg :: Config :: Explicit ( sysroot) ,
778
- None => rustc_cfg :: Config :: Discover ,
777
+ Some ( sysroot) => RustcCfgConfig :: Explicit ( sysroot) ,
778
+ None => RustcCfgConfig :: Discover ,
779
779
} ;
780
780
781
781
rustc_cfg:: get ( Some ( target) , extra_env, rustc_cfg)
0 commit comments