about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/enum-tuple.rs
diff options
context:
space:
mode:
authorCody <cody@codyq.dev>2022-10-10 23:37:09 -0500
committerCody <cody@codyq.dev>2022-10-10 23:37:09 -0500
commit9ebd6916125e9181d1ce340a159e9403afc99188 (patch)
tree8ce247f60bf211c2c545e2ef7dcec98629093b28 /src/test/rustdoc-ui/coverage/enum-tuple.rs
parentcf72565a12c982f577ca4394c3b80edb89f6c6d3 (diff)
downloadrust-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