useless_attribute: allow clippy::disallowed_types

Closes https://github.com/rust-lang/rust-clippy/issues/12753
This commit is contained in:
Rebecca Turner 2024-05-02 11:55:11 -07:00
parent 20b085d500
commit 8d8c0bfb0e
No known key found for this signature in database
2 changed files with 7 additions and 0 deletions

View file

@ -35,6 +35,7 @@ pub(super) fn check(cx: &LateContext<'_>, item: &Item<'_>, attrs: &[Attribute])
| "unsafe_removed_from_name"
| "module_name_repetitions"
| "single_component_path_imports"
| "disallowed_types"
)
})
{

View file

@ -40,3 +40,9 @@ fn main() {
let _ = HashMap;
let _: usize = 64_usize;
}
mod useless_attribute {
// Regression test for https://github.com/rust-lang/rust-clippy/issues/12753
#[allow(clippy::disallowed_types)]
use std::collections::HashMap;
}