From c1337cda4ccf349b8a5a80156e32c2499520b621 Mon Sep 17 00:00:00 2001 From: Phlosioneer Date: Mon, 12 Mar 2018 21:26:51 -0400 Subject: [PATCH] Update -Wall message based on feedback The reference to -Wunused was removed, and some phrasing was changed. --- src/librustc_driver/lib.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index 47168cb955a0e..4b3315cf8d7ac 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -1138,10 +1138,9 @@ fn usage(verbose: bool, include_unstable_options: bool) { fn print_wall_help() { println!(" -The flag -Wall does not exist in rustc. Most useful lints are enabled by default. -Use `rustc -W help` to see all available lints. The most used lints that are not -enabled by default covered by -Wunused; however, the best practice is to put -warning settings in the crate root using `#![warn(unused)]` instead of using +The flag `-Wall` does not exist in `rustc`. Most useful lints are enabled by +default. Use `rustc -W help` to see all available lints. It's more common to put +warning settings in the crate root using `#![warn(LINT_NAME)]` instead of using the command line flag directly. "); }