Make tidy quieter by default
This commit is contained in:
parent
a96ba96915
commit
2b6371dbfb
@ -709,8 +709,8 @@ impl Step for Tidy {
|
||||
if !builder.config.vendor {
|
||||
cmd.arg("--no-vendor");
|
||||
}
|
||||
if !builder.config.verbose_tests {
|
||||
cmd.arg("--quiet");
|
||||
if builder.is_verbose() {
|
||||
cmd.arg("--verbose");
|
||||
}
|
||||
|
||||
let _folder = builder.fold_output(|| "tidy");
|
||||
|
@ -51,7 +51,7 @@ pub struct Feature {
|
||||
|
||||
pub type Features = HashMap<String, Feature>;
|
||||
|
||||
pub fn check(path: &Path, bad: &mut bool, quiet: bool) {
|
||||
pub fn check(path: &Path, bad: &mut bool, verbose: bool) {
|
||||
let mut features = collect_lang_features(path, bad);
|
||||
assert!(!features.is_empty());
|
||||
|
||||
@ -132,18 +132,18 @@ pub fn check(path: &Path, bad: &mut bool, quiet: bool) {
|
||||
if *bad {
|
||||
return;
|
||||
}
|
||||
if quiet {
|
||||
|
||||
if verbose {
|
||||
let mut lines = Vec::new();
|
||||
lines.extend(format_features(&features, "lang"));
|
||||
lines.extend(format_features(&lib_features, "lib"));
|
||||
|
||||
lines.sort();
|
||||
for line in lines {
|
||||
println!("* {}", line);
|
||||
}
|
||||
} else {
|
||||
println!("* {} features", features.len());
|
||||
return;
|
||||
}
|
||||
|
||||
let mut lines = Vec::new();
|
||||
lines.extend(format_features(&features, "lang"));
|
||||
lines.extend(format_features(&lib_features, "lib"));
|
||||
|
||||
lines.sort();
|
||||
for line in lines {
|
||||
println!("* {}", line);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -19,12 +19,12 @@ fn main() {
|
||||
let args: Vec<String> = env::args().skip(1).collect();
|
||||
|
||||
let mut bad = false;
|
||||
let quiet = args.iter().any(|s| *s == "--quiet");
|
||||
let verbose = args.iter().any(|s| *s == "--verbose");
|
||||
bins::check(&path, &mut bad);
|
||||
style::check(&path, &mut bad);
|
||||
errors::check(&path, &mut bad);
|
||||
cargo::check(&path, &mut bad);
|
||||
features::check(&path, &mut bad, quiet);
|
||||
features::check(&path, &mut bad, verbose);
|
||||
pal::check(&path, &mut bad);
|
||||
unstable_book::check(&path, &mut bad);
|
||||
libcoretest::check(&path, &mut bad);
|
||||
|
Loading…
x
Reference in New Issue
Block a user