mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Auto merge of #9593 - Andy-Python-Programmer:master, r=llogiq
lint::unsafe_removed_from_name: fix false positive result when allowed changelog: [`unsafe_removed_from_name`] Fix allowing on imports produces a false positive on `useless_attribute`. Fixes: #9197 Signed-off-by: Andy-Python-Programmer <andypythonappdeveloper@gmail.com>
This commit is contained in:
@@ -357,7 +357,8 @@ fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'_>) {
|
||||
"wildcard_imports"
|
||||
| "enum_glob_use"
|
||||
| "redundant_pub_crate"
|
||||
| "macro_use_imports",
|
||||
| "macro_use_imports"
|
||||
| "unsafe_removed_from_name",
|
||||
)
|
||||
})
|
||||
{
|
||||
|
||||
@@ -24,4 +24,7 @@ mod mod_with_some_unsafe_things {
|
||||
use mod_with_some_unsafe_things::Safe as IPromiseItsSafeThisTime;
|
||||
use mod_with_some_unsafe_things::Unsafe as SuperUnsafeModThing;
|
||||
|
||||
#[allow(clippy::unsafe_removed_from_name)]
|
||||
use mod_with_some_unsafe_things::Unsafe as SuperSafeThing;
|
||||
|
||||
fn main() {}
|
||||
|
||||
Reference in New Issue
Block a user