Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer/pat.rs')
-rw-r--r--crates/hir-ty/src/infer/pat.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/crates/hir-ty/src/infer/pat.rs b/crates/hir-ty/src/infer/pat.rs
index db93116f10..6d2811635e 100644
--- a/crates/hir-ty/src/infer/pat.rs
+++ b/crates/hir-ty/src/infer/pat.rs
@@ -3,24 +3,25 @@
use std::iter::repeat_with;
use hir_def::{
+ HasModule,
expr_store::Body,
hir::{Binding, BindingAnnotation, BindingId, Expr, ExprId, Literal, Pat, PatId},
path::Path,
- HasModule,
};
use hir_expand::name::Name;
use stdx::TupleExt;
use crate::{
+ DeclContext, DeclOrigin, InferenceDiagnostic, Interner, Mutability, Scalar, Substitution, Ty,
+ TyBuilder, TyExt, TyKind,
consteval::{self, try_const_usize, usize_const},
infer::{
- coerce::CoerceNever, expr::ExprIsRead, BindingMode, Expectation, InferenceContext,
- TypeMismatch,
+ BindingMode, Expectation, InferenceContext, TypeMismatch, coerce::CoerceNever,
+ expr::ExprIsRead,
},
lower::lower_to_chalk_mutability,
primitive::UintTy,
- static_lifetime, DeclContext, DeclOrigin, InferenceDiagnostic, Interner, Mutability, Scalar,
- Substitution, Ty, TyBuilder, TyExt, TyKind,
+ static_lifetime,
};
impl InferenceContext<'_> {