mismatched_target_os
false negative when using the cfg
macro instead of the attribute.
#7839
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
T-macros
Type: Issues with macros and macro expansion
Lint name:
mismatched_target_os
I tried this code:
I expected to see the error
operating system used in target family position
here like you would see if you used the attribute#[cfg(linux)]
Instead, clippy doesn't give any error.
Meta
Rust version (
rustc -Vv
):The text was updated successfully, but these errors were encountered: