Remove special-casing around aliaskind in new solver

This commit is contained in:
Michael Goulet
2024-01-10 16:30:07 +00:00
parent 68acb393c5
commit 68c2f11240
19 changed files with 158 additions and 96 deletions

View File

@@ -22,8 +22,7 @@ impl<'tcx> StructurallyNormalizeExt<'tcx> for At<'_, 'tcx> {
assert!(!ty.is_ty_var(), "should have resolved vars before calling");
if self.infcx.next_trait_solver() {
// FIXME(-Znext-solver): Should we resolve opaques here?
let ty::Alias(ty::Projection | ty::Inherent | ty::Weak, _) = *ty.kind() else {
let ty::Alias(..) = *ty.kind() else {
return Ok(ty);
};