@@ -795,7 +795,6 @@ macro_rules! tool_extended {
795795 $path: expr,
796796 $tool_name: expr,
797797 stable = $stable: expr,
798- $( in_tree = $in_tree: expr, ) ?
799798 $( tool_std = $tool_std: literal, ) ?
800799 $extra_deps: block; ) +) => {
801800 $(
@@ -848,11 +847,7 @@ macro_rules! tool_extended {
848847 path: $path,
849848 extra_features: $sel. extra_features,
850849 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 ,
856851 } )
857852 }
858853 }
@@ -865,17 +860,17 @@ macro_rules! tool_extended {
865860// Note: Most submodule updates for tools are handled by bootstrap.py, since they're needed just to
866861// invoke Cargo to build bootstrap. See the comment there for more details.
867862tool_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 , { } ;
873868 // FIXME: tool_std is not quite right, we shouldn't allow nightly features.
874869 // But `builder.cargo` doesn't know how to handle ToolBootstrap in stages other than 0,
875870 // 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 , { } ;
879874) ;
880875
881876impl < ' a > Builder < ' a > {
0 commit comments