Skip to content

Commit

Permalink
Remove unused macro argument
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Oct 13, 2022
1 parent 0227d8d commit c4b9b65
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/bootstrap/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -794,9 +794,9 @@ macro_rules! tool_extended {
$($name:ident,
$path:expr,
$tool_name:expr,
stable = $stable:expr,
$(tool_std = $tool_std:literal,)?
$extra_deps:block;)+) => {
stable = $stable:expr
$(,tool_std = $tool_std:literal)?
;)+) => {
$(
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub struct $name {
Expand Down Expand Up @@ -838,7 +838,6 @@ macro_rules! tool_extended {

#[allow(unused_mut)]
fn run(mut $sel, $builder: &Builder<'_>) -> Option<PathBuf> {
$extra_deps
$builder.ensure(ToolBuild {
compiler: $sel.compiler,
target: $sel.target,
Expand All @@ -860,17 +859,17 @@ macro_rules! tool_extended {
// Note: Most submodule updates for tools are handled by bootstrap.py, since they're needed just to
// invoke Cargo to build bootstrap. See the comment there for more details.
tool_extended!((self, builder),
Cargofmt, "src/tools/rustfmt", "cargo-fmt", stable=true, {};
CargoClippy, "src/tools/clippy", "cargo-clippy", stable=true, {};
Clippy, "src/tools/clippy", "clippy-driver", stable=true, {};
Miri, "src/tools/miri", "miri", stable=false, {};
CargoMiri, "src/tools/miri/cargo-miri", "cargo-miri", stable=true, {};
Cargofmt, "src/tools/rustfmt", "cargo-fmt", stable=true;
CargoClippy, "src/tools/clippy", "cargo-clippy", stable=true;
Clippy, "src/tools/clippy", "clippy-driver", stable=true;
Miri, "src/tools/miri", "miri", stable=false;
CargoMiri, "src/tools/miri/cargo-miri", "cargo-miri", stable=true;
// FIXME: tool_std is not quite right, we shouldn't allow nightly features.
// But `builder.cargo` doesn't know how to handle ToolBootstrap in stages other than 0,
// and this is close enough for now.
Rls, "src/tools/rls", "rls", stable=true, tool_std=true, {};
RustDemangler, "src/tools/rust-demangler", "rust-demangler", stable=false, tool_std=true, {};
Rustfmt, "src/tools/rustfmt", "rustfmt", stable=true, {};
Rls, "src/tools/rls", "rls", stable=true, tool_std=true;
RustDemangler, "src/tools/rust-demangler", "rust-demangler", stable=false, tool_std=true;
Rustfmt, "src/tools/rustfmt", "rustfmt", stable=true;
);

impl<'a> Builder<'a> {
Expand Down

0 comments on commit c4b9b65

Please sign in to comment.