We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8db37a3 commit ef5a574Copy full SHA for ef5a574
src/tools/miri/miri-script/src/commands.rs
@@ -239,6 +239,8 @@ impl Command {
239
// the merge has confused the heck out of josh in the past.
240
// We pass `--no-verify` to avoid running git hooks like `./miri fmt` that could in turn
241
// trigger auto-actions.
242
+ // We do this before the merge so that if there are merge conflicts, we have
243
+ // the right rust-version file while resolving them.
244
sh.write_file("rust-version", format!("{commit}\n"))?;
245
const PREPARING_COMMIT_MESSAGE: &str = "Preparing for merge from rustc";
246
cmd!(sh, "git commit rust-version --no-verify -m {PREPARING_COMMIT_MESSAGE}")
0 commit comments