Skip to content

Commit

Permalink
Link to the check-cfg doc section in the unexpected_cfgs lint doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed May 17, 2024
1 parent 26ba41b commit d1a4651
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions compiler/rustc_lint_defs/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d1a4651

Please sign in to comment.