diff options
| author | Ralf Jung <post@ralfj.de> | 2024-03-03 15:00:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-03 15:00:47 +0100 |
| commit | 83e2e2d89dae346d38909f5590d9231cf2a5d218 (patch) | |
| tree | 6b3fa35f2e90270d37ebde5fa0ca0b7a132c66c3 | |
| parent | 32643dc8536212ef01c8b9c63674cee050c10b8e (diff) | |
| download | rust-83e2e2d89dae346d38909f5590d9231cf2a5d218.tar.gz rust-83e2e2d89dae346d38909f5590d9231cf2a5d218.zip | |
nits and typos
| -rw-r--r-- | src/tools/miri/miri-script/src/util.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tools/miri/miri-script/src/util.rs b/src/tools/miri/miri-script/src/util.rs index 5c020243240..361a4ca0cf7 100644 --- a/src/tools/miri/miri-script/src/util.rs +++ b/src/tools/miri/miri-script/src/util.rs @@ -148,7 +148,7 @@ impl MiriEnv { /// Receives an iterator of files. /// Will format each file with the miri rustfmt config. - /// Does not follow module relationships. + /// Does not recursively format modules. pub fn format_files( &self, files: impl Iterator<Item = Result<PathBuf, walkdir::Error>>, @@ -160,7 +160,7 @@ impl MiriEnv { let mut first = true; - // Format in batches as not all out files fit into Windows' command argument limit. + // Format in batches as not all our files fit into Windows' command argument limit. for batch in &files.chunks(256) { // Build base command. let mut cmd = cmd!( @@ -168,6 +168,7 @@ impl MiriEnv { "rustfmt +{toolchain} --edition=2021 --config-path {config_path} --unstable-features --skip-children {flags...}" ); if first { + // Log an abbreviating command, and only once. eprintln!("$ {cmd} ..."); first = false; } @@ -181,7 +182,7 @@ impl MiriEnv { cmd = cmd.arg(file); } - // Run commands. + // Run rustfmt. // We want our own error message, repeating the command is too much. cmd.quiet().run().map_err(|_| anyhow!("`rustfmt` failed"))?; } |
