@@ -794,10 +794,9 @@ macro_rules! tool_extended {
794
794
$( $name: ident,
795
795
$path: expr,
796
796
$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
+ ; ) +) => {
801
800
$(
802
801
#[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
803
802
pub struct $name {
@@ -839,7 +838,6 @@ macro_rules! tool_extended {
839
838
840
839
#[ allow( unused_mut) ]
841
840
fn run( mut $sel, $builder: & Builder <' _>) -> Option <PathBuf > {
842
- $extra_deps
843
841
$builder. ensure( ToolBuild {
844
842
compiler: $sel. compiler,
845
843
target: $sel. target,
@@ -848,11 +846,7 @@ macro_rules! tool_extended {
848
846
path: $path,
849
847
extra_features: $sel. extra_features,
850
848
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 ,
856
850
} )
857
851
}
858
852
}
@@ -865,17 +859,17 @@ macro_rules! tool_extended {
865
859
// Note: Most submodule updates for tools are handled by bootstrap.py, since they're needed just to
866
860
// invoke Cargo to build bootstrap. See the comment there for more details.
867
861
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 , { } ;
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 ;
873
867
// FIXME: tool_std is not quite right, we shouldn't allow nightly features.
874
868
// But `builder.cargo` doesn't know how to handle ToolBootstrap in stages other than 0,
875
869
// 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 ;
879
873
) ;
880
874
881
875
impl < ' a > Builder < ' a > {
0 commit comments