about summary refs log tree commit diff
path: root/clippy_lints/src/fallible_impl_from.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-03-15 22:13:45 +0000
committerbors <bors@rust-lang.org>2021-03-15 22:13:45 +0000
commit9cd0f504a9219fa033d59e84f2f1ff92eefe8b6d (patch)
tree220d35be34d239f540f65a2a9a4ce0cc52af6770 /clippy_lints/src/fallible_impl_from.rs
parent0e042d2f7070f071cfc0c426181634d5d27cfa5c (diff)
parenteb7f8d6089e2dba4006f0452ab25262735bbbf61 (diff)
Auto merge of #6907 - camsteffen:ty-utils, r=flip1995
Move some utils to `clippy_utils::ty`

changelog: none

`clippy_utils::*` has become a giant junk drawer. This is one step to clean it up a bit. One motivation is that I believe the long import statements cause more merge conflicts.
Diffstat (limited to 'clippy_lints/src/fallible_impl_from.rs')
-rw-r--r--clippy_lints/src/fallible_impl_from.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/clippy_lints/src/fallible_impl_from.rs b/clippy_lints/src/fallible_impl_from.rs
index f466dddc13c..cc4e570956b 100644
--- a/clippy_lints/src/fallible_impl_from.rs
+++ b/clippy_lints/src/fallible_impl_from.rs
@@ -1,4 +1,5 @@
-use crate::utils::{is_expn_of, is_type_diagnostic_item, match_panic_def_id, method_chain_args, span_lint_and_then};
+use crate::utils::{is_expn_of, match_panic_def_id, method_chain_args, span_lint_and_then};
+use clippy_utils::ty::is_type_diagnostic_item;
 use if_chain::if_chain;
 use rustc_hir as hir;
 use rustc_lint::{LateContext, LateLintPass};