@@ -778,12 +778,10 @@ impl Step for RustAnalyzerProcMacroSrv {
778
778
macro_rules! tool_extended {
779
779
( ( $sel: ident, $builder: ident) ,
780
780
$( $name: ident,
781
- $toolstate: ident,
782
781
$path: expr,
783
782
$tool_name: expr,
784
783
stable = $stable: expr,
785
784
$( in_tree = $in_tree: expr, ) ?
786
- $( submodule = $submodule: literal, ) ?
787
785
$( tool_std = $tool_std: literal, ) ?
788
786
$extra_deps: block; ) +) => {
789
787
$(
@@ -828,7 +826,6 @@ macro_rules! tool_extended {
828
826
#[ allow( unused_mut) ]
829
827
fn run( mut $sel, $builder: & Builder <' _>) -> Option <PathBuf > {
830
828
$extra_deps
831
- $( $builder. update_submodule( & Path :: new( "src" ) . join( "tools" ) . join( $submodule) ) ; ) ?
832
829
$builder. ensure( ToolBuild {
833
830
compiler: $sel. compiler,
834
831
target: $sel. target,
@@ -854,12 +851,12 @@ macro_rules! tool_extended {
854
851
// Note: Most submodule updates for tools are handled by bootstrap.py, since they're needed just to
855
852
// invoke Cargo to build bootstrap. See the comment there for more details.
856
853
tool_extended ! ( ( self , builder) ,
857
- Cargofmt , rustfmt , "src/tools/rustfmt" , "cargo-fmt" , stable=true , in_tree=true , { } ;
858
- CargoClippy , clippy , "src/tools/clippy" , "cargo-clippy" , stable=true , in_tree=true , { } ;
859
- Clippy , clippy , "src/tools/clippy" , "clippy-driver" , stable=true , in_tree=true , { } ;
860
- Miri , miri , "src/tools/miri" , "miri" , stable=false , { } ;
861
- CargoMiri , miri , "src/tools/miri/cargo-miri" , "cargo-miri" , stable=false , { } ;
862
- Rls , rls , "src/tools/rls" , "rls" , stable=true , {
854
+ Cargofmt , "src/tools/rustfmt" , "cargo-fmt" , stable=true , in_tree=true , { } ;
855
+ CargoClippy , "src/tools/clippy" , "cargo-clippy" , stable=true , in_tree=true , { } ;
856
+ Clippy , "src/tools/clippy" , "clippy-driver" , stable=true , in_tree=true , { } ;
857
+ Miri , "src/tools/miri" , "miri" , stable=false , { } ;
858
+ CargoMiri , "src/tools/miri/cargo-miri" , "cargo-miri" , stable=false , { } ;
859
+ Rls , "src/tools/rls" , "rls" , stable=true , {
863
860
builder. ensure( Clippy {
864
861
compiler: self . compiler,
865
862
target: self . target,
@@ -870,8 +867,8 @@ tool_extended!((self, builder),
870
867
// FIXME: tool_std is not quite right, we shouldn't allow nightly features.
871
868
// But `builder.cargo` doesn't know how to handle ToolBootstrap in stages other than 0,
872
869
// and this is close enough for now.
873
- RustDemangler , rust_demangler , "src/tools/rust-demangler" , "rust-demangler" , stable=false , in_tree=true , tool_std=true , { } ;
874
- Rustfmt , rustfmt , "src/tools/rustfmt" , "rustfmt" , stable=true , in_tree=true , { } ;
870
+ RustDemangler , "src/tools/rust-demangler" , "rust-demangler" , stable=false , in_tree=true , tool_std=true , { } ;
871
+ Rustfmt , "src/tools/rustfmt" , "rustfmt" , stable=true , in_tree=true , { } ;
875
872
) ;
876
873
877
874
impl < ' a > Builder < ' a > {
0 commit comments