diff options
| author | bors <bors@rust-lang.org> | 2021-03-15 22:13:45 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-03-15 22:13:45 +0000 |
| commit | 9cd0f504a9219fa033d59e84f2f1ff92eefe8b6d (patch) | |
| tree | 220d35be34d239f540f65a2a9a4ce0cc52af6770 /clippy_lints/src/fallible_impl_from.rs | |
| parent | 0e042d2f7070f071cfc0c426181634d5d27cfa5c (diff) | |
| parent | eb7f8d6089e2dba4006f0452ab25262735bbbf61 (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.rs | 3 |
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}; |
