about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2024-05-18 00:35:30 +0200
committerUrgau <urgau@numericable.fr>2024-05-19 20:15:01 +0200
commitbc8e034c39ae6a5e07bd9175e60e2649bc8d1374 (patch)
treebc7e5f22a513330fe5f1cc3fef3c1afe9e905bc0
parent3b47f4c60c736ee965f2e4d4296bd27d1d69effb (diff)
downloadrust-bc8e034c39ae6a5e07bd9175e60e2649bc8d1374.tar.gz
rust-bc8e034c39ae6a5e07bd9175e60e2649bc8d1374.zip
Link to the check-cfg doc section in the `unexpected_cfgs` lint doc
-rw-r--r--compiler/rustc_lint_defs/src/builtin.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs
index 53694545772..cce039fc2f6 100644
--- a/compiler/rustc_lint_defs/src/builtin.rs
+++ b/compiler/rustc_lint_defs/src/builtin.rs
@@ -3339,11 +3339,14 @@ declare_lint! {
     ///
     /// ### Explanation
     ///
-    /// This lint is only active when `--check-cfg` arguments are being passed
-    /// to the compiler and triggers whenever an unexpected condition name or value is used.
+    /// This lint is only active when [`--check-cfg`][check-cfg] arguments are being
+    /// passed to the compiler and triggers whenever an unexpected condition name or value is
+    /// used.
+    ///
+    /// See the [Checking Conditional Configurations][check-cfg] section for more
+    /// details.
     ///
-    /// The known condition include names or values passed in `--check-cfg`, and some
-    /// well-knows names and values built into the compiler.
+    /// [check-cfg]: https://doc.rust-lang.org/nightly/rustc/check-cfg.html
     pub UNEXPECTED_CFGS,
     Warn,
     "detects unexpected names and values in `#[cfg]` conditions",