Skip to content

Commit c4b9b65

Browse files
committed
Remove unused macro argument
1 parent 0227d8d commit c4b9b65

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

Diff for: src/bootstrap/tool.rs

+11-12
Original file line numberDiff line numberDiff line change
@@ -794,9 +794,9 @@ macro_rules! tool_extended {
794794
$($name:ident,
795795
$path:expr,
796796
$tool_name:expr,
797-
stable = $stable:expr,
798-
$(tool_std = $tool_std:literal,)?
799-
$extra_deps:block;)+) => {
797+
stable = $stable:expr
798+
$(,tool_std = $tool_std:literal)?
799+
;)+) => {
800800
$(
801801
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
802802
pub struct $name {
@@ -838,7 +838,6 @@ macro_rules! tool_extended {
838838

839839
#[allow(unused_mut)]
840840
fn run(mut $sel, $builder: &Builder<'_>) -> Option<PathBuf> {
841-
$extra_deps
842841
$builder.ensure(ToolBuild {
843842
compiler: $sel.compiler,
844843
target: $sel.target,
@@ -860,17 +859,17 @@ macro_rules! tool_extended {
860859
// Note: Most submodule updates for tools are handled by bootstrap.py, since they're needed just to
861860
// invoke Cargo to build bootstrap. See the comment there for more details.
862861
tool_extended!((self, builder),
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, {};
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;
868867
// FIXME: tool_std is not quite right, we shouldn't allow nightly features.
869868
// But `builder.cargo` doesn't know how to handle ToolBootstrap in stages other than 0,
870869
// and this is close enough for now.
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, {};
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;
874873
);
875874

876875
impl<'a> Builder<'a> {

0 commit comments

Comments
 (0)