mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-09-21 15:11:56 +00:00
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
2 changed files with 7 additions and 0 deletions
|
@ -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"
|
||||
)
|
||||
})
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue