Auto merge of #24711 - servo:rustc-dev, r=jdm

Make `./mach rustup` install the rustc-dev component
This commit is contained in:
bors-servo 2019-11-13 01:55:15 -05:00 committed by GitHub
commit eb05af27d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,7 +206,7 @@ class MachCommands(CommandBase):
filename = path.join(self.context.topdir, "rust-toolchain")
with open(filename, "w") as f:
f.write(toolchain + "\n")
return call(["rustup" + BIN_SUFFIX, "install", toolchain])
return call(["rustup" + BIN_SUFFIX, "component", "add", "rustc-dev"])
@Command('fetch',
description='Fetch Rust, Cargo and Cargo dependencies',