7709: Import changes.

This commit is contained in:
Chetan Khilosiya 2021-03-16 01:58:21 +05:30
parent 714836959b
commit 847ec9e840

View File

@ -52,6 +52,7 @@
autoderef,
display::{write_bounds_like_dyn_trait_with_prefix, HirDisplayError, HirFormatter},
method_resolution::{self, TyFingerprint},
primitive::UintTy,
to_assoc_type_id,
traits::{FnTrait, Solution, SolutionVariables},
AliasTy, BoundVar, CallableDefId, CallableSig, Canonical, DebruijnIndex, GenericPredicate,
@ -1632,10 +1633,7 @@ pub fn is_mutable_reference(&self) -> bool {
}
pub fn is_usize(&self) -> bool {
matches!(
self.ty.value.interned(&Interner),
TyKind::Scalar(Scalar::Uint(hir_ty::primitive::UintTy::Usize))
)
matches!(self.ty.value.interned(&Interner), TyKind::Scalar(Scalar::Uint(UintTy::Usize)))
}
pub fn remove_ref(&self) -> Option<Type> {