useless_attribute: allow dead_code
Closes https://github.com/rust-lang/rust-clippy/issues/4467
This commit is contained in:
parent
17d2ab8f62
commit
e9761bdc01
3 changed files with 9 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ pub(super) fn check(cx: &LateContext<'_>, item: &Item<'_>, attrs: &[Attribute])
|
|||
|| is_word(lint, sym!(unused))
|
||||
|| is_word(lint, sym!(unused_import_braces))
|
||||
|| is_word(lint, sym!(unused_braces))
|
||||
|| is_word(lint, sym!(dead_code))
|
||||
|| extract_clippy_lint(lint).map_or(false, |s| {
|
||||
matches!(
|
||||
s.as_str(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue