Skip to content

Commit 9ec4844

Browse files
committed
Auto merge of #17761 - RalfJung:josh-roudntrip-error, r=lnicola
when josh-proxy screws up the roundtrip, say what the involved commits are Helps debugging rust-lang/rust-analyzer#17733
2 parents bf5844e + 70805f9 commit 9ec4844

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tools/rust-analyzer/xtask/src/release.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,10 @@ impl flags::RustcPush {
202202
let head = cmd!(sh, "git rev-parse HEAD").read()?;
203203
let fetch_head = cmd!(sh, "git rev-parse FETCH_HEAD").read()?;
204204
if head != fetch_head {
205-
bail!("Josh created a non-roundtrip push! Do NOT merge this into rustc!");
205+
bail!(
206+
"Josh created a non-roundtrip push! Do NOT merge this into rustc!\n\
207+
Expected {head}, got {fetch_head}."
208+
);
206209
}
207210
println!("Confirmed that the push round-trips back to rust-analyzer properly. Please create a rustc PR:");
208211
// https://github.com/github-linguist/linguist/compare/master...octocat:linguist:master

0 commit comments

Comments
 (0)