From d1a4651b3d742dda588b106bcb799b8182b8f77a Mon Sep 17 00:00:00 2001 From: Urgau Date: Sat, 18 May 2024 00:35:30 +0200 Subject: [PATCH] Link to the check-cfg doc section in the `unexpected_cfgs` lint doc --- compiler/rustc_lint_defs/src/builtin.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index 5369454577249..fe1ba9c8fa782 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -3339,11 +3339,12 @@ 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.md) arguments are being + /// passed to the compiler and triggers whenever an unexpected condition name or value is + /// used. /// - /// The known condition include names or values passed in `--check-cfg`, and some - /// well-knows names and values built into the compiler. + /// See the [Checking conditional configurations](../../check-cfg.md) section for more + /// details. pub UNEXPECTED_CFGS, Warn, "detects unexpected names and values in `#[cfg]` conditions",