Auto merge of #5548 - matthiaskrgr:traget_os, r=flip1995
mismatched_target_os: link to respective section in rust reference changelog: none
This commit is contained in:
commit
d2708873ef
1 changed files with 1 additions and 0 deletions
|
@ -238,6 +238,7 @@ declare_clippy_lint! {
|
|||
/// #[cfg(unix)]
|
||||
/// fn conditional() { }
|
||||
/// ```
|
||||
/// Check the [Rust Reference](https://doc.rust-lang.org/reference/conditional-compilation.html#target_os) for more details.
|
||||
pub MISMATCHED_TARGET_OS,
|
||||
correctness,
|
||||
"usage of `cfg(operating_system)` instead of `cfg(target_os = \"operating_system\")`"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue