]> git.lizzy.rs Git - rust.git/commitdiff
Clarify what `-D warnings` or `-F warnings` does
authorTobias Bucher <tobiasbucher5991@gmail.com>
Mon, 20 Nov 2017 21:16:38 +0000 (22:16 +0100)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Mon, 20 Nov 2017 21:16:38 +0000 (22:16 +0100)
They set all lints currently on the warning level to `deny` or `forbid`,
respectively.

src/librustc_driver/lib.rs

index c5cce70c945663393d38cdd27756c55bce9cda02..f67c4ae17187a40e7bc95b3c3b651ac48459625e 100644 (file)
@@ -980,7 +980,7 @@ fn sort_lint_groups(lints: Vec<(&'static str, Vec<lint::LintId>, 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<lint::LintId>)>| {
         for (name, to) in lints {