-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mixed_attributes_style
cannot be disabled globally
#12436
Labels
C-bug
Category: Clippy is not doing the correct thing
Comments
This was referenced Mar 8, 2024
Is this similar to #6610? Possible solution: #6610 (comment) |
@tcharding seems like it, at the mean time I'll try moving this to |
J-ZhengLi
added a commit
to J-ZhengLi/rust-clippy
that referenced
this issue
Mar 14, 2024
J-ZhengLi
added a commit
to J-ZhengLi/rust-clippy
that referenced
this issue
Mar 15, 2024
J-ZhengLi
added a commit
to J-ZhengLi/rust-clippy
that referenced
this issue
Mar 18, 2024
J-ZhengLi
added a commit
to J-ZhengLi/rust-clippy
that referenced
this issue
Mar 18, 2024
J-ZhengLi
added a commit
to J-ZhengLi/rust-clippy
that referenced
this issue
Mar 18, 2024
J-ZhengLi
added a commit
to J-ZhengLi/rust-clippy
that referenced
this issue
Mar 23, 2024
don't lint [`mixed_attributes_style`] when mixing docs and other attrs add test files for issue rust-lang#12436 move [`mixed_attributes_style`] to `LateLintPass` to enable global `allow` stop [`mixed_attributes_style`] from linting on different attributes add `@compile-flags` to [`mixed_attributes_style`]'s test; turns out not linting in test mod is not a FN. Apply suggestions from code review Co-authored-by: Timo <[email protected]> move [`mixed_attributes_style`] to late pass and stop it from linting on different kind of attributes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
If the
mixed_attributes_style
lint is whitelisted in lib.rs/main.rs, but triggered in another file, it still triggers. The top-level whitelist appears to apply only to the top-level file, and inline modules within that file. Not modules which are different files.Reproducer
I tried this code:
main.rs
submodule.rs
The lint triggers:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: