Skip to content

Commit c1337cd

Browse files
committed
Update -Wall message based on feedback
The reference to -Wunused was removed, and some phrasing was changed.
1 parent 1246eef commit c1337cd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/librustc_driver/lib.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -1138,10 +1138,9 @@ fn usage(verbose: bool, include_unstable_options: bool) {
11381138

11391139
fn print_wall_help() {
11401140
println!("
1141-
The flag -Wall does not exist in rustc. Most useful lints are enabled by default.
1142-
Use `rustc -W help` to see all available lints. The most used lints that are not
1143-
enabled by default covered by -Wunused; however, the best practice is to put
1144-
warning settings in the crate root using `#![warn(unused)]` instead of using
1141+
The flag `-Wall` does not exist in `rustc`. Most useful lints are enabled by
1142+
default. Use `rustc -W help` to see all available lints. It's more common to put
1143+
warning settings in the crate root using `#![warn(LINT_NAME)]` instead of using
11451144
the command line flag directly.
11461145
");
11471146
}

0 commit comments

Comments
 (0)