Skip to content

Commit 053aa69

Browse files
authored
Merge pull request #720 from RalfJung/rustup
fix for latest Rust
2 parents 41d1602 + b08bf47 commit 053aa69

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fe0a415b4ba3310c2263f07e0253e2434310299c
1+
7c71bc3208031b1307573de45a3b3e18fa45787a

src/bin/cargo-miri.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ fn xargo_version() -> Option<(u32, u32, u32)> {
133133
(split.next().expect("malformed `xargo --version` output: empty"),
134134
split.next().expect("malformed `xargo --version` output: not at least two words"))
135135
};
136-
if name != "xargo" {
136+
if name == "xargo" {
137+
// This is the upstream version which is currently broken, we need our fork.
138+
return None;
139+
}
140+
if name != "xargo-rj" {
137141
panic!("malformed `xargo --version` output: application name is not `xargo`");
138142
}
139143
let mut version_pieces = version.split('.');
@@ -183,11 +187,11 @@ fn setup(ask_user: bool) {
183187
let xargo = xargo_version();
184188
if xargo.map_or(true, |v| v < (0, 3, 13)) {
185189
if ask_user {
186-
ask("It seems you do not have a recent enough xargo installed. I will run `cargo install xargo -f`. Proceed?");
190+
ask("It seems you do not have a recent enough xargo installed. I will run `cargo install --git https://github.com/RalfJung/xargo -f`. Proceed?");
187191
} else {
188-
println!("Installing xargo: `cargo install xargo -f`");
192+
println!("Installing xargo: `cargo install --git https://github.com/RalfJung/xargo -f`");
189193
}
190-
if !Command::new("cargo").args(&["install", "xargo", "-f"]).status().unwrap().success() {
194+
if !Command::new("cargo").args(&["install", "--git", "https://github.com/RalfJung/xargo", "-f"]).status().unwrap().success() {
191195
show_error(format!("Failed to install xargo"));
192196
}
193197
}

tests/run-pass/async-fn.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![feature(
22
async_await,
33
await_macro,
4-
futures_api,
54
)]
65

76
use std::{future::Future, pin::Pin, task::Poll, ptr};

tests/run-pass/hashmap.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@ fn test_map<S: BuildHasher>(mut map: HashMap<i32, i32, S>) {
77
map.insert(0, 0);
88
assert_eq!(map.values().fold(0, |x, y| x+y), 0);
99

10-
let table_base = map.get(&0).unwrap() as *const _;
11-
12-
let num = 22; // large enough to trigger a resize
10+
let num = 25;
1311
for i in 1..num {
1412
map.insert(i, i);
1513
}
16-
assert!(table_base != map.get(&0).unwrap() as *const _); // make sure relocation happened
1714
assert_eq!(map.values().fold(0, |x, y| x+y), num*(num-1)/2); // check the right things are in the table now
1815

1916
// Inserting again replaces the existing entries

0 commit comments

Comments
 (0)