Skip to content

Commit dba35d2

Browse files
committed
Auto merge of #2530 - oli-obk:rustup, r=RalfJung
Rustup Breakage issue: rust-lang/rust#101324
2 parents 92c24c4 + 169569c commit dba35d2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

cargo-miri/src/setup.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub fn setup(subcommand: &MiriCommand, host: &str, target: &str) {
7676
show_error!("xargo is too old; please upgrade to the latest version")
7777
}
7878
let mut cmd = cargo();
79-
cmd.args(&["install", "xargo"]);
79+
cmd.args(["install", "xargo"]);
8080
ask_to_run(cmd, ask_user, "install a recent enough xargo");
8181
}
8282

@@ -93,7 +93,7 @@ pub fn setup(subcommand: &MiriCommand, host: &str, target: &str) {
9393
None => {
9494
// Check for `rust-src` rustup component.
9595
let output = miri_for_host()
96-
.args(&["--print", "sysroot"])
96+
.args(["--print", "sysroot"])
9797
.output()
9898
.expect("failed to determine sysroot");
9999
if !output.status.success() {
@@ -110,7 +110,7 @@ pub fn setup(subcommand: &MiriCommand, host: &str, target: &str) {
110110
if !rustup_src.join("std").join("Cargo.toml").exists() {
111111
// Ask the user to install the `rust-src` component, and use that.
112112
let mut cmd = Command::new("rustup");
113-
cmd.args(&["component", "add", "rust-src"]);
113+
cmd.args(["component", "add", "rust-src"]);
114114
ask_to_run(
115115
cmd,
116116
ask_user,
@@ -136,7 +136,7 @@ pub fn setup(subcommand: &MiriCommand, host: &str, target: &str) {
136136
let dirs = directories::ProjectDirs::from("org", "rust-lang", "miri").unwrap();
137137
let dir = dirs.cache_dir();
138138
if !dir.exists() {
139-
fs::create_dir_all(&dir).unwrap();
139+
fs::create_dir_all(dir).unwrap();
140140
}
141141
// The interesting bit: Xargo.toml (only needs content if we actually need std)
142142
let xargo_toml = if std::env::var_os("MIRI_NO_STD").is_some() {
@@ -178,8 +178,8 @@ path = "lib.rs"
178178
// Now invoke xargo.
179179
let mut command = xargo_check();
180180
command.arg("check").arg("-q");
181-
command.current_dir(&dir);
182-
command.env("XARGO_HOME", &dir);
181+
command.current_dir(dir);
182+
command.env("XARGO_HOME", dir);
183183
command.env("XARGO_RUST_SRC", &rust_src);
184184
// We always need to set a target so rustc bootstrap can tell apart host from target crates.
185185
command.arg("--target").arg(target);

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4fd4de7ea358ad6fc28c5780533ea8ccc09e1006
1+
9353538c7bea6edb245457712cec720305c4576e

tests/pass/concurrency/sync_nopreempt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn check_conditional_variables_notify_all() {
1616
let (lock, cvar) = &*pair2;
1717
let guard = lock.lock().unwrap();
1818
// Block waiting on the conditional variable.
19-
let _ = cvar.wait(guard).unwrap();
19+
let _guard = cvar.wait(guard).unwrap();
2020
})
2121
})
2222
.inspect(|_| {

0 commit comments

Comments
 (0)