We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 502b630 commit 52f4b16Copy full SHA for 52f4b16
src/bootstrap/src/core/build_steps/format.rs
@@ -81,7 +81,8 @@ fn update_rustfmt_version(build: &Builder<'_>) {
81
let Some((version, stamp_file)) = get_rustfmt_version(build) else {
82
return;
83
};
84
- t!(std::fs::write(stamp_file.path(), version))
+
85
+ t!(stamp_file.add_stamp(version).write());
86
}
87
88
/// Returns the Rust files modified between the `merge-base` of HEAD and
0 commit comments