Skip to content

Commit d1a4651

Browse files
committed
Link to the check-cfg doc section in the unexpected_cfgs lint doc
1 parent 26ba41b commit d1a4651

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -3339,11 +3339,12 @@ declare_lint! {
33393339
///
33403340
/// ### Explanation
33413341
///
3342-
/// This lint is only active when `--check-cfg` arguments are being passed
3343-
/// to the compiler and triggers whenever an unexpected condition name or value is used.
3342+
/// This lint is only active when [`--check-cfg`](../../check-cfg.md) arguments are being
3343+
/// passed to the compiler and triggers whenever an unexpected condition name or value is
3344+
/// used.
33443345
///
3345-
/// The known condition include names or values passed in `--check-cfg`, and some
3346-
/// well-knows names and values built into the compiler.
3346+
/// See the [Checking conditional configurations](../../check-cfg.md) section for more
3347+
/// details.
33473348
pub UNEXPECTED_CFGS,
33483349
Warn,
33493350
"detects unexpected names and values in `#[cfg]` conditions",

0 commit comments

Comments
 (0)