diff options
Diffstat (limited to 'crates/hir_ty/src/diagnostics/pattern/usefulness.rs')
-rw-r--r-- | crates/hir_ty/src/diagnostics/pattern/usefulness.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/hir_ty/src/diagnostics/pattern/usefulness.rs b/crates/hir_ty/src/diagnostics/pattern/usefulness.rs index 2e5d2fb6c..4b55aee97 100644 --- a/crates/hir_ty/src/diagnostics/pattern/usefulness.rs +++ b/crates/hir_ty/src/diagnostics/pattern/usefulness.rs | |||
@@ -3,11 +3,7 @@ | |||
3 | 3 | ||
4 | use std::{cell::RefCell, iter::FromIterator, ops::Index, sync::Arc}; | 4 | use std::{cell::RefCell, iter::FromIterator, ops::Index, sync::Arc}; |
5 | 5 | ||
6 | use base_db::CrateId; | 6 | use hir_def::{ModuleId, body::Body, expr::{ExprId, Pat, PatId}}; |
7 | use hir_def::{ | ||
8 | body::Body, | ||
9 | expr::{ExprId, Pat, PatId}, | ||
10 | }; | ||
11 | use la_arena::Arena; | 7 | use la_arena::Arena; |
12 | use once_cell::unsync::OnceCell; | 8 | use once_cell::unsync::OnceCell; |
13 | use rustc_hash::FxHashMap; | 9 | use rustc_hash::FxHashMap; |
@@ -24,7 +20,7 @@ use self::{ | |||
24 | }; | 20 | }; |
25 | 21 | ||
26 | pub(crate) struct MatchCheckCtx<'a> { | 22 | pub(crate) struct MatchCheckCtx<'a> { |
27 | pub(crate) krate: CrateId, | 23 | pub(crate) module: ModuleId, |
28 | pub(crate) match_expr: ExprId, | 24 | pub(crate) match_expr: ExprId, |
29 | pub(crate) body: Arc<Body>, | 25 | pub(crate) body: Arc<Body>, |
30 | pub(crate) infer: &'a InferenceResult, | 26 | pub(crate) infer: &'a InferenceResult, |