aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/diagnostics/pattern/usefulness.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_ty/src/diagnostics/pattern/usefulness.rs')
-rw-r--r--crates/hir_ty/src/diagnostics/pattern/usefulness.rs8
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
4use std::{cell::RefCell, iter::FromIterator, ops::Index, sync::Arc}; 4use std::{cell::RefCell, iter::FromIterator, ops::Index, sync::Arc};
5 5
6use base_db::CrateId; 6use hir_def::{ModuleId, body::Body, expr::{ExprId, Pat, PatId}};
7use hir_def::{
8 body::Body,
9 expr::{ExprId, Pat, PatId},
10};
11use la_arena::Arena; 7use la_arena::Arena;
12use once_cell::unsync::OnceCell; 8use once_cell::unsync::OnceCell;
13use rustc_hash::FxHashMap; 9use rustc_hash::FxHashMap;
@@ -24,7 +20,7 @@ use self::{
24}; 20};
25 21
26pub(crate) struct MatchCheckCtx<'a> { 22pub(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,