Skip to content

Commit bc8e034

Browse files
committed
Link to the check-cfg doc section in the unexpected_cfgs lint doc
1 parent 3b47f4c commit bc8e034

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+7-4
Original file line numberDiff line numberDiff line change
@@ -3339,11 +3339,14 @@ 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] arguments are being
3343+
/// passed to the compiler and triggers whenever an unexpected condition name or value is
3344+
/// used.
3345+
///
3346+
/// See the [Checking Conditional Configurations][check-cfg] section for more
3347+
/// details.
33443348
///
3345-
/// The known condition include names or values passed in `--check-cfg`, and some
3346-
/// well-knows names and values built into the compiler.
3349+
/// [check-cfg]: https://doc.rust-lang.org/nightly/rustc/check-cfg.html
33473350
pub UNEXPECTED_CFGS,
33483351
Warn,
33493352
"detects unexpected names and values in `#[cfg]` conditions",

0 commit comments

Comments
 (0)