about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2024-03-05 15:07:41 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2024-03-05 15:07:41 +0000
commit39887d3ccde617cf3296a4ab0a443e5ea30e8de8 (patch)
tree779cf7f03effeca164405a3fadb7a00292c31e96 /src/bootstrap
parent41d97c8a5dea2731b0e56fe97cd7cb79e21cff79 (diff)
downloadrust-39887d3ccde617cf3296a4ab0a443e5ea30e8de8.tar.gz
rust-39887d3ccde617cf3296a4ab0a443e5ea30e8de8.zip
Do not try to format removed files
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/core/build_steps/format.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/format.rs b/src/bootstrap/src/core/build_steps/format.rs
index 700c3ee4fda..fc9f9789bd6 100644
--- a/src/bootstrap/src/core/build_steps/format.rs
+++ b/src/bootstrap/src/core/build_steps/format.rs
@@ -81,7 +81,7 @@ fn update_rustfmt_version(build: &Builder<'_>) {
 }
 
 /// Returns the Rust files modified between the `merge-base` of HEAD and
-/// rust-lang/master and what is now on the disk.
+/// rust-lang/master and what is now on the disk. Does not include removed files.
 ///
 /// Returns `None` if all files should be formatted.
 fn get_modified_rs_files(build: &Builder<'_>) -> Result<Option<Vec<String>>, String> {