@@ -445,7 +445,11 @@ macro_rules! bootstrap_tool {
445
445
SourceType :: InTree
446
446
} ,
447
447
extra_features: vec![ ] ,
448
- allow_features: concat!( $( $allow_features) * ) ,
448
+ allow_features: {
449
+ let mut _value = "" ;
450
+ $( _value = $allow_features; ) ?
451
+ _value
452
+ } ,
449
453
cargo_args: vec![ ] ,
450
454
artifact_kind: if false $( || $artifact_kind == ToolArtifactKind :: Library ) * {
451
455
ToolArtifactKind :: Library
@@ -459,6 +463,8 @@ macro_rules! bootstrap_tool {
459
463
}
460
464
}
461
465
466
+ pub ( crate ) const COMPILETEST_ALLOW_FEATURES : & str = "test" ;
467
+
462
468
bootstrap_tool ! (
463
469
// This is marked as an external tool because it includes dependencies
464
470
// from submodules. Trying to keep the lints in sync between all the repos
@@ -469,7 +475,7 @@ bootstrap_tool!(
469
475
Tidy , "src/tools/tidy" , "tidy" ;
470
476
Linkchecker , "src/tools/linkchecker" , "linkchecker" ;
471
477
CargoTest , "src/tools/cargotest" , "cargotest" ;
472
- Compiletest , "src/tools/compiletest" , "compiletest" , is_unstable_tool = true , allow_features = "test" ;
478
+ Compiletest , "src/tools/compiletest" , "compiletest" , is_unstable_tool = true , allow_features = COMPILETEST_ALLOW_FEATURES ;
473
479
BuildManifest , "src/tools/build-manifest" , "build-manifest" ;
474
480
RemoteTestClient , "src/tools/remote-test-client" , "remote-test-client" ;
475
481
RustInstaller , "src/tools/rust-installer" , "rust-installer" ;
@@ -484,7 +490,7 @@ bootstrap_tool!(
484
490
GenerateCopyright , "src/tools/generate-copyright" , "generate-copyright" ;
485
491
SuggestTests , "src/tools/suggest-tests" , "suggest-tests" ;
486
492
GenerateWindowsSys , "src/tools/generate-windows-sys" , "generate-windows-sys" ;
487
- RustdocGUITest , "src/tools/rustdoc-gui-test" , "rustdoc-gui-test" , is_unstable_tool = true , allow_features = "test" ;
493
+ RustdocGUITest , "src/tools/rustdoc-gui-test" , "rustdoc-gui-test" , is_unstable_tool = true , allow_features = COMPILETEST_ALLOW_FEATURES ;
488
494
CoverageDump , "src/tools/coverage-dump" , "coverage-dump" ;
489
495
WasmComponentLd , "src/tools/wasm-component-ld" , "wasm-component-ld" , is_unstable_tool = true , allow_features = "min_specialization" ;
490
496
UnicodeTableGenerator , "src/tools/unicode-table-generator" , "unicode-table-generator" ;
0 commit comments