Clarify what -D warnings or -F warnings does

They set all lints currently on the warning level to `deny` or `forbid`,
respectively.
This commit is contained in:
Tobias Bucher 2017-11-20 22:16:38 +01:00
parent 33374fa9d0
commit 8affcb7bd4

View file

@ -980,7 +980,7 @@ Available lint options:
println!("Lint groups provided by rustc:\n");
println!(" {} {}", padded("name"), "sub-lints");
println!(" {} {}", padded("----"), "---------");
println!(" {} {}", padded("warnings"), "all built-in lints");
println!(" {} {}", padded("warnings"), "all lints activated to the warning level");
let print_lint_groups = |lints: Vec<(&'static str, Vec<lint::LintId>)>| {
for (name, to) in lints {