1
Fork 0

Link to the check-cfg doc section in the unexpected_cfgs lint doc

This commit is contained in:
Urgau 2024-05-18 00:35:30 +02:00
parent 3b47f4c60c
commit bc8e034c39

View file

@ -3339,11 +3339,14 @@ declare_lint! {
/// ///
/// ### Explanation /// ### Explanation
/// ///
/// This lint is only active when `--check-cfg` arguments are being passed /// This lint is only active when [`--check-cfg`][check-cfg] arguments are being
/// to the compiler and triggers whenever an unexpected condition name or value is used. /// 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 /// See the [Checking Conditional Configurations][check-cfg] section for more
/// well-knows names and values built into the compiler. /// details.
///
/// [check-cfg]: https://doc.rust-lang.org/nightly/rustc/check-cfg.html
pub UNEXPECTED_CFGS, pub UNEXPECTED_CFGS,
Warn, Warn,
"detects unexpected names and values in `#[cfg]` conditions", "detects unexpected names and values in `#[cfg]` conditions",