Skip to content

Commit

Permalink
Update -Wall message based on feedback
Browse files Browse the repository at this point in the history
The reference to -Wunused was removed, and some phrasing was changed.
  • Loading branch information
Phlosioneer committed Mar 13, 2018
1 parent 1246eef commit c1337cd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/librustc_driver/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
");
}
Expand Down

0 comments on commit c1337cd

Please sign in to comment.