From: Tobias Bucher Date: Mon, 20 Nov 2017 21:16:38 +0000 (+0100) Subject: Clarify what `-D warnings` or `-F warnings` does X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=8affcb7bd4a6f012941b07e5fb53dce44da24107;p=rust.git Clarify what `-D warnings` or `-F warnings` does They set all lints currently on the warning level to `deny` or `forbid`, respectively. --- diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index c5cce70c945..f67c4ae1718 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -980,7 +980,7 @@ fn sort_lint_groups(lints: Vec<(&'static str, Vec, bool)>) 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)>| { for (name, to) in lints {