Skip to content

Commit 12386da

Browse files
committed
bootstrap: Remove some unused fields from the tool_extended macro.
1 parent 468887e commit 12386da

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/bootstrap/tool.rs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -778,12 +778,10 @@ impl Step for RustAnalyzerProcMacroSrv {
778778
macro_rules! tool_extended {
779779
(($sel:ident, $builder:ident),
780780
$($name:ident,
781-
$toolstate:ident,
782781
$path:expr,
783782
$tool_name:expr,
784783
stable = $stable:expr,
785784
$(in_tree = $in_tree:expr,)?
786-
$(submodule = $submodule:literal,)?
787785
$(tool_std = $tool_std:literal,)?
788786
$extra_deps:block;)+) => {
789787
$(
@@ -828,7 +826,6 @@ macro_rules! tool_extended {
828826
#[allow(unused_mut)]
829827
fn run(mut $sel, $builder: &Builder<'_>) -> Option<PathBuf> {
830828
$extra_deps
831-
$( $builder.update_submodule(&Path::new("src").join("tools").join($submodule)); )?
832829
$builder.ensure(ToolBuild {
833830
compiler: $sel.compiler,
834831
target: $sel.target,
@@ -854,12 +851,12 @@ macro_rules! tool_extended {
854851
// Note: Most submodule updates for tools are handled by bootstrap.py, since they're needed just to
855852
// invoke Cargo to build bootstrap. See the comment there for more details.
856853
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, {
863860
builder.ensure(Clippy {
864861
compiler: self.compiler,
865862
target: self.target,
@@ -870,8 +867,8 @@ tool_extended!((self, builder),
870867
// FIXME: tool_std is not quite right, we shouldn't allow nightly features.
871868
// But `builder.cargo` doesn't know how to handle ToolBootstrap in stages other than 0,
872869
// 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, {};
875872
);
876873

877874
impl<'a> Builder<'a> {

0 commit comments

Comments
 (0)