Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Auto merge of rust-lang#5548 - matthiaskrgr:traget_os, r=flip1995
mismatched_target_os: link to respective section in rust reference

changelog: none
  • Loading branch information
bors committed May 1, 2020
2 parents 0a53ed2 + b7800e1 commit d270887
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clippy_lints/src/attrs.rs
Expand Up @@ -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\")`"
Expand Down

0 comments on commit d270887

Please sign in to comment.