Link to the check-cfg doc section in the unexpected_cfgs
lint doc
This commit is contained in:
parent
3b47f4c60c
commit
bc8e034c39
1 changed files with 7 additions and 4 deletions
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue