File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
compiler/rustc_lint_defs/src Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3135,7 +3135,7 @@ declare_lint! {
31353135 /// ### Example
31363136 ///
31373137 /// ```text
3138- /// rustc --check-cfg 'names ()'
3138+ /// rustc --check-cfg 'cfg ()'
31393139 /// ```
31403140 ///
31413141 /// ```rust,ignore (needs command line option)
@@ -3146,7 +3146,7 @@ declare_lint! {
31463146 /// This will produce:
31473147 ///
31483148 /// ```text
3149- /// warning: unknown condition name used
3149+ /// warning: unexpected `cfg` condition name: `widnows`
31503150 /// --> lint_example.rs:1:7
31513151 /// |
31523152 /// 1 | #[cfg(widnows)]
@@ -3157,9 +3157,10 @@ declare_lint! {
31573157 ///
31583158 /// ### Explanation
31593159 ///
3160- /// This lint is only active when a `--check-cfg='names(...)'` option has been passed
3161- /// to the compiler and triggers whenever an unknown condition name or value is used.
3162- /// The known condition include names or values passed in `--check-cfg`, `--cfg`, and some
3160+ /// This lint is only active when `--check-cfg` arguments are being passed
3161+ /// to the compiler and triggers whenever an unexpected condition name or value is used.
3162+ ///
3163+ /// The known condition include names or values passed in `--check-cfg`, and some
31633164 /// well-knows names and values built into the compiler.
31643165 pub UNEXPECTED_CFGS ,
31653166 Warn ,
You can’t perform that action at this time.
0 commit comments