@@ -795,7 +795,6 @@ macro_rules! tool_extended {
795
795
$path: expr,
796
796
$tool_name: expr,
797
797
stable = $stable: expr,
798
- $( in_tree = $in_tree: expr, ) ?
799
798
$( tool_std = $tool_std: literal, ) ?
800
799
$extra_deps: block; ) +) => {
801
800
$(
@@ -848,11 +847,7 @@ macro_rules! tool_extended {
848
847
path: $path,
849
848
extra_features: $sel. extra_features,
850
849
is_optional_tool: true ,
851
- source_type: if false $( || $in_tree) * {
852
- SourceType :: InTree
853
- } else {
854
- SourceType :: Submodule
855
- } ,
850
+ source_type: SourceType :: InTree ,
856
851
} )
857
852
}
858
853
}
@@ -865,17 +860,17 @@ macro_rules! tool_extended {
865
860
// Note: Most submodule updates for tools are handled by bootstrap.py, since they're needed just to
866
861
// invoke Cargo to build bootstrap. See the comment there for more details.
867
862
tool_extended ! ( ( self , builder) ,
868
- Cargofmt , "src/tools/rustfmt" , "cargo-fmt" , stable=true , in_tree= true , { } ;
869
- CargoClippy , "src/tools/clippy" , "cargo-clippy" , stable=true , in_tree= true , { } ;
870
- Clippy , "src/tools/clippy" , "clippy-driver" , stable=true , in_tree= true , { } ;
871
- Miri , "src/tools/miri" , "miri" , stable=false , in_tree= true , { } ;
872
- CargoMiri , "src/tools/miri/cargo-miri" , "cargo-miri" , stable=false , in_tree= true , { } ;
863
+ Cargofmt , "src/tools/rustfmt" , "cargo-fmt" , stable=true , { } ;
864
+ CargoClippy , "src/tools/clippy" , "cargo-clippy" , stable=true , { } ;
865
+ Clippy , "src/tools/clippy" , "clippy-driver" , stable=true , { } ;
866
+ Miri , "src/tools/miri" , "miri" , stable=false , { } ;
867
+ CargoMiri , "src/tools/miri/cargo-miri" , "cargo-miri" , stable=true , { } ;
873
868
// FIXME: tool_std is not quite right, we shouldn't allow nightly features.
874
869
// But `builder.cargo` doesn't know how to handle ToolBootstrap in stages other than 0,
875
870
// and this is close enough for now.
876
- Rls , "src/tools/rls" , "rls" , stable=true , in_tree= true , tool_std=true , { } ;
877
- RustDemangler , "src/tools/rust-demangler" , "rust-demangler" , stable=false , in_tree= true , tool_std=true , { } ;
878
- Rustfmt , "src/tools/rustfmt" , "rustfmt" , stable=true , in_tree= true , { } ;
871
+ Rls , "src/tools/rls" , "rls" , stable=true , tool_std=true , { } ;
872
+ RustDemangler , "src/tools/rust-demangler" , "rust-demangler" , stable=false , tool_std=true , { } ;
873
+ Rustfmt , "src/tools/rustfmt" , "rustfmt" , stable=true , { } ;
879
874
) ;
880
875
881
876
impl < ' a > Builder < ' a > {
0 commit comments