File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/tools/miri/miri-script/src Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ impl MiriEnv {
148
148
149
149
/// Receives an iterator of files.
150
150
/// Will format each file with the miri rustfmt config.
151
- /// Does not follow module relationships .
151
+ /// Does not recursively format modules .
152
152
pub fn format_files (
153
153
& self ,
154
154
files : impl Iterator < Item = Result < PathBuf , walkdir:: Error > > ,
@@ -160,14 +160,15 @@ impl MiriEnv {
160
160
161
161
let mut first = true ;
162
162
163
- // Format in batches as not all out files fit into Windows' command argument limit.
163
+ // Format in batches as not all our files fit into Windows' command argument limit.
164
164
for batch in & files. chunks ( 256 ) {
165
165
// Build base command.
166
166
let mut cmd = cmd ! (
167
167
self . sh,
168
168
"rustfmt +{toolchain} --edition=2021 --config-path {config_path} --unstable-features --skip-children {flags...}"
169
169
) ;
170
170
if first {
171
+ // Log an abbreviating command, and only once.
171
172
eprintln ! ( "$ {cmd} ..." ) ;
172
173
first = false ;
173
174
}
@@ -181,7 +182,7 @@ impl MiriEnv {
181
182
cmd = cmd. arg ( file) ;
182
183
}
183
184
184
- // Run commands .
185
+ // Run rustfmt .
185
186
// We want our own error message, repeating the command is too much.
186
187
cmd. quiet ( ) . run ( ) . map_err ( |_| anyhow ! ( "`rustfmt` failed" ) ) ?;
187
188
}
You can’t perform that action at this time.
0 commit comments