Update -Wall message based on feedback
The reference to -Wunused was removed, and some phrasing was changed.
This commit is contained in:
parent
1246eef9a9
commit
c1337cda4c
1 changed files with 3 additions and 4 deletions
|
@ -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.
|
||||
");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue