提交 b5f11da0 编写于 作者: C Corey Farwell 提交者: GitHub

Rollup merge of #46136 - tbu-:pr_werror, r=nikomatsakis

Clarify what `-D warnings` or `-F warnings` does

They set all lints currently on the warning level to `deny` or `forbid`,
respectively.
...@@ -982,7 +982,7 @@ fn sort_lint_groups(lints: Vec<(&'static str, Vec<lint::LintId>, bool)>) ...@@ -982,7 +982,7 @@ fn sort_lint_groups(lints: Vec<(&'static str, Vec<lint::LintId>, bool)>)
println!("Lint groups provided by rustc:\n"); println!("Lint groups provided by rustc:\n");
println!(" {} {}", padded("name"), "sub-lints"); println!(" {} {}", padded("name"), "sub-lints");
println!(" {} {}", padded("----"), "---------"); println!(" {} {}", padded("----"), "---------");
println!(" {} {}", padded("warnings"), "all built-in lints"); println!(" {} {}", padded("warnings"), "all lints that are set to issue warnings");
let print_lint_groups = |lints: Vec<(&'static str, Vec<lint::LintId>)>| { let print_lint_groups = |lints: Vec<(&'static str, Vec<lint::LintId>)>| {
for (name, to) in lints { for (name, to) in lints {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册