Skip to content

Commit f45502d

Browse files
committed
extend assert
1 parent 77dba22 commit f45502d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_infer/src/infer/combine.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use rustc_middle::infer::unify_key::{ConstVarValue, ConstVariableValue};
3434
use rustc_middle::infer::unify_key::{ConstVariableOrigin, ConstVariableOriginKind};
3535
use rustc_middle::ty::error::{ExpectedFound, TypeError};
3636
use rustc_middle::ty::relate::{RelateResult, TypeRelation};
37-
use rustc_middle::ty::{self, AliasKind, InferConst, ToPredicate, Ty, TyCtxt, TypeVisitableExt};
37+
use rustc_middle::ty::{self, InferConst, ToPredicate, Ty, TyCtxt, TypeVisitableExt};
3838
use rustc_middle::ty::{IntType, UintType};
3939
use rustc_span::DUMMY_SP;
4040

@@ -103,12 +103,12 @@ impl<'tcx> InferCtxt<'tcx> {
103103

104104
// We don't expect `TyVar` or `Fresh*` vars at this point with lazy norm.
105105
(
106-
ty::Alias(AliasKind::Projection, _),
106+
ty::Alias(..),
107107
ty::Infer(ty::TyVar(_) | ty::FreshTy(_) | ty::FreshIntTy(_) | ty::FreshFloatTy(_)),
108108
)
109109
| (
110110
ty::Infer(ty::TyVar(_) | ty::FreshTy(_) | ty::FreshIntTy(_) | ty::FreshFloatTy(_)),
111-
ty::Alias(AliasKind::Projection, _),
111+
ty::Alias(..),
112112
) if self.next_trait_solver() => {
113113
bug!()
114114
}

0 commit comments

Comments
 (0)