@@ -794,10 +794,9 @@ macro_rules! tool_extended {
794794 $( $name: ident,
795795 $path: expr,
796796 $tool_name: expr,
797- stable = $stable: expr,
798- $( in_tree = $in_tree: expr, ) ?
799- $( tool_std = $tool_std: literal, ) ?
800- $extra_deps: block; ) +) => {
797+ stable = $stable: expr
798+ $( , tool_std = $tool_std: literal) ?
799+ ; ) +) => {
801800 $(
802801 #[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
803802 pub struct $name {
@@ -839,7 +838,6 @@ macro_rules! tool_extended {
839838
840839 #[ allow( unused_mut) ]
841840 fn run( mut $sel, $builder: & Builder <' _>) -> Option <PathBuf > {
842- $extra_deps
843841 $builder. ensure( ToolBuild {
844842 compiler: $sel. compiler,
845843 target: $sel. target,
@@ -848,11 +846,7 @@ macro_rules! tool_extended {
848846 path: $path,
849847 extra_features: $sel. extra_features,
850848 is_optional_tool: true ,
851- source_type: if false $( || $in_tree) * {
852- SourceType :: InTree
853- } else {
854- SourceType :: Submodule
855- } ,
849+ source_type: SourceType :: InTree ,
856850 } )
857851 }
858852 }
@@ -865,17 +859,17 @@ macro_rules! tool_extended {
865859// Note: Most submodule updates for tools are handled by bootstrap.py, since they're needed just to
866860// invoke Cargo to build bootstrap. See the comment there for more details.
867861tool_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 , { } ;
862+ Cargofmt , "src/tools/rustfmt" , "cargo-fmt" , stable=true ;
863+ CargoClippy , "src/tools/clippy" , "cargo-clippy" , stable=true ;
864+ Clippy , "src/tools/clippy" , "clippy-driver" , stable=true ;
865+ Miri , "src/tools/miri" , "miri" , stable=false ;
866+ CargoMiri , "src/tools/miri/cargo-miri" , "cargo-miri" , stable=true ;
873867 // FIXME: tool_std is not quite right, we shouldn't allow nightly features.
874868 // But `builder.cargo` doesn't know how to handle ToolBootstrap in stages other than 0,
875869 // 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 , { } ;
870+ Rls , "src/tools/rls" , "rls" , stable=true , tool_std=true ;
871+ RustDemangler , "src/tools/rust-demangler" , "rust-demangler" , stable=false , tool_std=true ;
872+ Rustfmt , "src/tools/rustfmt" , "rustfmt" , stable=true ;
879873) ;
880874
881875impl < ' a > Builder < ' a > {
0 commit comments