You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
camsteffen opened this issue
Mar 16, 2021
· 1 comment
· Fixed by #9924
Labels
C-bugCategory: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.
#![feature(custom_inner_attributes)]mod my_mod {#![clippy::msrv = "1.0.0"]}fnhi(){// the `manual_strip` lint is suppressed by the attribute in `my_mod`let s = "hello, world!";if s.starts_with("hello, "){assert_eq!(s["hello, ".len()..].to_uppercase(),"WORLD!");}}
If we don't want to support this sort of usage, maybe we can just warn or error when the attribute is found in a non-crate.
The text was updated successfully, but these errors were encountered:
camsteffen
added
E-hard
Call for participation: This a hard problem and requires more experience or effort to work on
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
and removed
E-hard
Call for participation: This a hard problem and requires more experience or effort to work on
labels
Mar 29, 2021
It seems, that the inner attribute starts from that line on in the code, because if I move your hi function above my_mod the lint is triggered correctly.
I'm not sure if that's a restriction of the custom_inner_attributes feature or clippys fault.
C-bugCategory: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.
Example:
If we don't want to support this sort of usage, maybe we can just warn or error when the attribute is found in a non-crate.
The text was updated successfully, but these errors were encountered: