@@ -21,7 +21,7 @@ use crate::{
2121 cargo_workspace:: { DepKind , PackageData , RustLibSource } ,
2222 cfg_flag:: CfgFlag ,
2323 project_json:: Crate ,
24- rustc_cfg,
24+ rustc_cfg:: { self , RustcCfgConfig } ,
2525 sysroot:: SysrootCrate ,
2626 target_data_layout, utf8_stdout, CargoConfig , CargoWorkspace , InvocationStrategy , ManifestPath ,
2727 Package , ProjectJson , ProjectManifest , Sysroot , TargetData , TargetKind , WorkspaceBuildScripts ,
@@ -282,7 +282,7 @@ impl ProjectWorkspace {
282282 let rustc_cfg = rustc_cfg:: get (
283283 config. target . as_deref ( ) ,
284284 & config. extra_env ,
285- rustc_cfg :: Config :: Cargo ( cargo_toml) ,
285+ RustcCfgConfig :: Cargo ( cargo_toml) ,
286286 ) ;
287287
288288 let cfg_overrides = config. cfg_overrides . clone ( ) ;
@@ -337,11 +337,11 @@ impl ProjectWorkspace {
337337 let config = match & sysroot {
338338 Ok ( sysroot) => {
339339 tracing:: debug!( src_root = %sysroot. src_root( ) , root = %sysroot. root( ) , "Using sysroot" ) ;
340- rustc_cfg :: Config :: Explicit ( sysroot)
340+ RustcCfgConfig :: Explicit ( sysroot)
341341 }
342342 Err ( _) => {
343343 tracing:: debug!( "discovering sysroot" ) ;
344- rustc_cfg :: Config :: Discover
344+ RustcCfgConfig :: Discover
345345 }
346346 } ;
347347
@@ -370,11 +370,11 @@ impl ProjectWorkspace {
370370 let rustc_config = match & sysroot {
371371 Ok ( sysroot) => {
372372 tracing:: info!( src_root = %sysroot. src_root( ) , root = %sysroot. root( ) , "Using sysroot" ) ;
373- rustc_cfg :: Config :: Explicit ( sysroot)
373+ RustcCfgConfig :: Explicit ( sysroot)
374374 }
375375 Err ( _) => {
376376 tracing:: info!( "discovering sysroot" ) ;
377- rustc_cfg :: Config :: Discover
377+ RustcCfgConfig :: Discover
378378 }
379379 } ;
380380
@@ -774,8 +774,8 @@ fn project_json_to_crate_graph(
774774 let target_cfgs = match target. as_deref ( ) {
775775 Some ( target) => cfg_cache. entry ( target) . or_insert_with ( || {
776776 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 ,
779779 } ;
780780
781781 rustc_cfg:: get ( Some ( target) , extra_env, rustc_cfg)
0 commit comments