Skip to content

Commit 25862b5

Browse files
committed
Merge remote-tracking branch 'origin/master' into rustup
2 parents da111f4 + 72698b1 commit 25862b5

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/bin/cargo-miri.rs

+6-9
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,10 @@ 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" {
137-
// This is the upstream version which is currently broken, we need our fork.
136+
if name != "xargo" {
137+
// This is some fork of xargo
138138
return None;
139139
}
140-
if name != "xargo-rj" {
141-
panic!("malformed `xargo --version` output: application name is not `xargo`");
142-
}
143140
let mut version_pieces = version.split('.');
144141
let major = version_pieces.next()
145142
.expect("malformed `xargo --version` output: not a major version piece")
@@ -185,13 +182,13 @@ fn setup(ask_user: bool) {
185182

186183
// First, we need xargo.
187184
let xargo = xargo_version();
188-
if xargo.map_or(true, |v| v < (0, 3, 13)) {
185+
if xargo.map_or(true, |v| v < (0, 3, 14)) {
189186
if ask_user {
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?");
187+
ask("It seems you do not have a recent enough xargo installed. I will run `cargo install xargo -f`. Proceed?");
191188
} else {
192-
println!("Installing xargo: `cargo install --git https://github.com/RalfJung/xargo -f`");
189+
println!("Installing xargo: `cargo install xargo -f`");
193190
}
194-
if !Command::new("cargo").args(&["install", "--git", "https://github.com/RalfJung/xargo", "-f"]).status().unwrap().success() {
191+
if !Command::new("cargo").args(&["install", "xargo", "-f"]).status().unwrap().success() {
195192
show_error(format!("Failed to install xargo"));
196193
}
197194
}

0 commit comments

Comments
 (0)