useless_attribute: allow clippy::disallowed_types
Closes https://github.com/rust-lang/rust-clippy/issues/12753
This commit is contained in:
parent
20b085d500
commit
8d8c0bfb0e
@ -35,6 +35,7 @@ pub(super) fn check(cx: &LateContext<'_>, item: &Item<'_>, attrs: &[Attribute])
|
|||||||
| "unsafe_removed_from_name"
|
| "unsafe_removed_from_name"
|
||||||
| "module_name_repetitions"
|
| "module_name_repetitions"
|
||||||
| "single_component_path_imports"
|
| "single_component_path_imports"
|
||||||
|
| "disallowed_types"
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
|
@ -40,3 +40,9 @@ fn main() {
|
|||||||
let _ = HashMap;
|
let _ = HashMap;
|
||||||
let _: usize = 64_usize;
|
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;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user