From 8affcb7bd4a6f012941b07e5fb53dce44da24107 Mon Sep 17 00:00:00 2001 From: Tobias Bucher Date: Mon, 20 Nov 2017 22:16:38 +0100 Subject: [PATCH 1/2] Clarify what `-D warnings` or `-F warnings` does They set all lints currently on the warning level to `deny` or `forbid`, respectively. --- src/librustc_driver/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index c5cce70c94566..f67c4ae17187a 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -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)>| { for (name, to) in lints { From e1e1dcc8d8e6ed6b62439d0a947b8e5308ff4216 Mon Sep 17 00:00:00 2001 From: Tobias Bucher Date: Fri, 1 Dec 2017 20:28:01 +0100 Subject: [PATCH 2/2] Changed the wording for the `warnings` lint --- src/librustc_driver/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index f67c4ae17187a..910a2694668cc 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -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 lints activated to the warning level"); + println!(" {} {}", padded("warnings"), "all lints that are set to issue warnings"); let print_lint_groups = |lints: Vec<(&'static str, Vec)>| { for (name, to) in lints {