Skip to content

Commit 8486837

Browse files
Nemo157ytmimi
authored andcommitted
Bless the target file instead of the source file
1 parent ead0fc9 commit 8486837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ fn handle_result(
835835
// Ignore LF and CRLF difference for Windows.
836836
if !string_eq_ignore_newline_repr(&fmt_text, &text) {
837837
if std::env::var_os("RUSTC_BLESS").is_some_and(|v| v != "0") {
838-
std::fs::write(file_name, fmt_text).unwrap();
838+
std::fs::write(target, fmt_text).unwrap();
839839
continue;
840840
}
841841
let diff = make_diff(&text, &fmt_text, DIFF_CONTEXT_SIZE);

0 commit comments

Comments
 (0)