We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-W help
1 parent 2287a88 commit 45583e5Copy full SHA for 45583e5
compiler/rustc_driver/src/lib.rs
@@ -895,7 +895,12 @@ Available lint options:
895
let print_lints = |lints: Vec<&Lint>| {
896
for lint in lints {
897
let name = lint.name_lower().replace("_", "-");
898
- println!(" {} {:7.7} {}", padded(&name), lint.default_level.as_str(), lint.desc);
+ println!(
899
+ " {} {:7.7} {}",
900
+ padded(&name),
901
+ lint.default_level(sess.edition()).as_str(),
902
+ lint.desc
903
+ );
904
}
905
println!("\n");
906
};
0 commit comments