Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 2b6371d

Browse files
Make tidy quieter by default
1 parent a96ba96 commit 2b6371d

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/bootstrap/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,8 @@ impl Step for Tidy {
709709
if !builder.config.vendor {
710710
cmd.arg("--no-vendor");
711711
}
712-
if !builder.config.verbose_tests {
713-
cmd.arg("--quiet");
712+
if builder.is_verbose() {
713+
cmd.arg("--verbose");
714714
}
715715

716716
let _folder = builder.fold_output(|| "tidy");

src/tools/tidy/src/features.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub struct Feature {
5151

5252
pub type Features = HashMap<String, Feature>;
5353

54-
pub fn check(path: &Path, bad: &mut bool, quiet: bool) {
54+
pub fn check(path: &Path, bad: &mut bool, verbose: bool) {
5555
let mut features = collect_lang_features(path, bad);
5656
assert!(!features.is_empty());
5757

@@ -132,18 +132,18 @@ pub fn check(path: &Path, bad: &mut bool, quiet: bool) {
132132
if *bad {
133133
return;
134134
}
135-
if quiet {
136-
println!("* {} features", features.len());
137-
return;
138-
}
139135

140-
let mut lines = Vec::new();
141-
lines.extend(format_features(&features, "lang"));
142-
lines.extend(format_features(&lib_features, "lib"));
136+
if verbose {
137+
let mut lines = Vec::new();
138+
lines.extend(format_features(&features, "lang"));
139+
lines.extend(format_features(&lib_features, "lib"));
143140

144-
lines.sort();
145-
for line in lines {
146-
println!("* {}", line);
141+
lines.sort();
142+
for line in lines {
143+
println!("* {}", line);
144+
}
145+
} else {
146+
println!("* {} features", features.len());
147147
}
148148
}
149149

src/tools/tidy/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ fn main() {
1919
let args: Vec<String> = env::args().skip(1).collect();
2020

2121
let mut bad = false;
22-
let quiet = args.iter().any(|s| *s == "--quiet");
22+
let verbose = args.iter().any(|s| *s == "--verbose");
2323
bins::check(&path, &mut bad);
2424
style::check(&path, &mut bad);
2525
errors::check(&path, &mut bad);
2626
cargo::check(&path, &mut bad);
27-
features::check(&path, &mut bad, quiet);
27+
features::check(&path, &mut bad, verbose);
2828
pal::check(&path, &mut bad);
2929
unstable_book::check(&path, &mut bad);
3030
libcoretest::check(&path, &mut bad);

0 commit comments

Comments
 (0)