@@ -1441,7 +1441,7 @@ impl Config {
1441
1441
// Give a hard error if `--config` or `RUST_BOOTSTRAP_CONFIG` are set to a missing path,
1442
1442
// but not if `config.toml` hasn't been created.
1443
1443
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) ) {
1445
1445
toml_path. canonicalize ( ) . unwrap ( )
1446
1446
} else {
1447
1447
toml_path. clone ( )
@@ -2793,11 +2793,11 @@ impl Config {
2793
2793
}
2794
2794
}
2795
2795
2796
- #[ cfg( feature = "bootstrap-self- test" ) ]
2796
+ #[ cfg( test) ]
2797
2797
pub fn check_stage0_version ( & self , _program_path : & Path , _component_name : & ' static str ) { }
2798
2798
2799
2799
/// 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) ) ]
2801
2801
pub fn check_stage0_version ( & self , program_path : & Path , component_name : & ' static str ) {
2802
2802
use build_helper:: util:: fail;
2803
2803
@@ -2939,7 +2939,7 @@ impl Config {
2939
2939
}
2940
2940
2941
2941
// Fetching the LLVM submodule is unnecessary for self-tests.
2942
- #[ cfg( not( feature = "bootstrap-self- test" ) ) ]
2942
+ #[ cfg( not( test) ) ]
2943
2943
self . update_submodule ( "src/llvm-project" ) ;
2944
2944
2945
2945
// Check for untracked changes in `src/llvm-project`.
@@ -3014,7 +3014,7 @@ impl Config {
3014
3014
3015
3015
/// Compares the current `Llvm` options against those in the CI LLVM builder and detects any incompatible options.
3016
3016
/// 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) ) ]
3018
3018
pub ( crate ) fn check_incompatible_options_for_ci_llvm (
3019
3019
current_config_toml : TomlConfig ,
3020
3020
ci_config_toml : TomlConfig ,
0 commit comments