diff options
| author | Cody <cody@codyq.dev> | 2022-10-10 23:37:09 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2022-10-10 23:37:09 -0500 |
| commit | 9ebd6916125e9181d1ce340a159e9403afc99188 (patch) | |
| tree | 8ce247f60bf211c2c545e2ef7dcec98629093b28 /src/test/rustdoc-ui/coverage/enum-tuple.rs | |
| parent | cf72565a12c982f577ca4394c3b80edb89f6c6d3 (diff) | |
| download | rust-9ebd6916125e9181d1ce340a159e9403afc99188.tar.gz rust-9ebd6916125e9181d1ce340a159e9403afc99188.zip | |
Fix allow_attributes_without_reason applying to external crate macros
Previously the `clippy::allow_attributes_without_reason` lint would apply to external crate macros. Many macros in the Rust ecosystem include these `allow` attributes without adding a reason, making this lint pretty much unusable in any sizable Rust project. This commit fixes that by adding a check to the lint if the attribute is from an external crate macro and returning early.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/enum-tuple.rs')
0 files changed, 0 insertions, 0 deletions
