@@ -1441,7 +1441,7 @@ impl Config {
14411441 // Give a hard error if `--config` or `RUST_BOOTSTRAP_CONFIG` are set to a missing path,
14421442 // but not if `config.toml` hasn't been created.
14431443 let mut toml = if !using_default_path || toml_path. exists ( ) {
1444- config. config = Some ( if cfg ! ( not( feature = "bootstrap-self- test" ) ) {
1444+ config. config = Some ( if cfg ! ( not( test) ) {
14451445 toml_path. canonicalize ( ) . unwrap ( )
14461446 } else {
14471447 toml_path. clone ( )
@@ -2793,11 +2793,11 @@ impl Config {
27932793 }
27942794 }
27952795
2796- #[ cfg( feature = "bootstrap-self- test" ) ]
2796+ #[ cfg( test) ]
27972797 pub fn check_stage0_version ( & self , _program_path : & Path , _component_name : & ' static str ) { }
27982798
27992799 /// check rustc/cargo version is same or lower with 1 apart from the building one
2800- #[ cfg( not( feature = "bootstrap-self- test" ) ) ]
2800+ #[ cfg( not( test) ) ]
28012801 pub fn check_stage0_version ( & self , program_path : & Path , component_name : & ' static str ) {
28022802 use build_helper:: util:: fail;
28032803
@@ -2939,7 +2939,7 @@ impl Config {
29392939 }
29402940
29412941 // Fetching the LLVM submodule is unnecessary for self-tests.
2942- #[ cfg( not( feature = "bootstrap-self- test" ) ) ]
2942+ #[ cfg( not( test) ) ]
29432943 self . update_submodule ( "src/llvm-project" ) ;
29442944
29452945 // Check for untracked changes in `src/llvm-project`.
@@ -3014,7 +3014,7 @@ impl Config {
30143014
30153015/// Compares the current `Llvm` options against those in the CI LLVM builder and detects any incompatible options.
30163016/// It does this by destructuring the `Llvm` instance to make sure every `Llvm` field is covered and not missing.
3017- #[ cfg( not( feature = "bootstrap-self- test" ) ) ]
3017+ #[ cfg( not( test) ) ]
30183018pub ( crate ) fn check_incompatible_options_for_ci_llvm (
30193019 current_config_toml : TomlConfig ,
30203020 ci_config_toml : TomlConfig ,
0 commit comments