Skip to content

Commit 8fe0f22

Browse files
authored
Rollup merge of rust-lang#67432 - Mark-Simulacrum:fix-toolstate, r=Centril
Fix toolstate history format We were inserting *before* the existing newline, so we should prepend it not append it to our inserted string.
2 parents edeabe6 + 1787b2b commit 8fe0f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/toolstate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ fn change_toolstate(
413413
let history_path = format!("rust-toolstate/history/{}.tsv", OS.expect("linux/windows only"));
414414
let mut file = t!(fs::read_to_string(&history_path));
415415
let end_of_first_line = file.find('\n').unwrap();
416-
file.insert_str(end_of_first_line, &format!("{}\t{}\n", commit, toolstate_serialized));
416+
file.insert_str(end_of_first_line, &format!("\n{}\t{}", commit, toolstate_serialized));
417417
t!(fs::write(&history_path, file));
418418
}
419419

0 commit comments

Comments
 (0)