about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-08-01 12:26:17 +0200
committerRalf Jung <post@ralfj.de>2024-08-01 12:26:32 +0200
commit91175463e4168d3e100a9668a62ca0d0b97e7ba3 (patch)
tree535c142b33f4e9b575debe4fe7dc03a56007c3a7
parent50d51fb1bfee724a8daefd1fa4921ae36600e61f (diff)
downloadrust-91175463e4168d3e100a9668a62ca0d0b97e7ba3.tar.gz
rust-91175463e4168d3e100a9668a62ca0d0b97e7ba3.zip
when josh-proxy screws up the roundtrip, say what the involved commits are
-rw-r--r--src/tools/miri/miri-script/src/commands.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/miri/miri-script/src/commands.rs b/src/tools/miri/miri-script/src/commands.rs
index 62a3ab2c34c..fc205040baf 100644
--- a/src/tools/miri/miri-script/src/commands.rs
+++ b/src/tools/miri/miri-script/src/commands.rs
@@ -355,7 +355,10 @@ impl Command {
         let head = cmd!(sh, "git rev-parse HEAD").read()?;
         let fetch_head = cmd!(sh, "git rev-parse FETCH_HEAD").read()?;
         if head != fetch_head {
-            bail!("Josh created a non-roundtrip push! Do NOT merge this into rustc!");
+            bail!(
+                "Josh created a non-roundtrip push! Do NOT merge this into rustc!\n\
+                Expected {head}, got {fetch_head}."
+            );
         }
         println!(
             "Confirmed that the push round-trips back to Miri properly. Please create a rustc PR:"