about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-05-04 22:44:56 +0200
committerRalf Jung <post@ralfj.de>2024-05-04 22:44:56 +0200
commitef5a574af48d9300c2e44674f2187c6d7d6d951a (patch)
treeee989e835f3b74f0e81c1ded15e34cccc1ee71bc
parent8db37a3cb5fc8425f4f3a989fd838179060ac1f6 (diff)
rustc_pull: explain order of operations
-rw-r--r--src/tools/miri/miri-script/src/commands.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/miri/miri-script/src/commands.rs b/src/tools/miri/miri-script/src/commands.rs
index 7e34ad050b3..6d07455c0de 100644
--- a/src/tools/miri/miri-script/src/commands.rs
+++ b/src/tools/miri/miri-script/src/commands.rs
@@ -239,6 +239,8 @@ impl Command {
         // the merge has confused the heck out of josh in the past.
         // We pass `--no-verify` to avoid running git hooks like `./miri fmt` that could in turn
         // trigger auto-actions.
+        // We do this before the merge so that if there are merge conflicts, we have
+        // the right rust-version file while resolving them.
         sh.write_file("rust-version", format!("{commit}\n"))?;
         const PREPARING_COMMIT_MESSAGE: &str = "Preparing for merge from rustc";
         cmd!(sh, "git commit rust-version --no-verify -m {PREPARING_COMMIT_MESSAGE}")