IAT: Introduce AliasKind::Inherent

This commit is contained in:
León Orell Valerian Liehr
2023-03-21 01:46:52 +01:00
parent 6f8c0557e0
commit e8139dfd5a
82 changed files with 1008 additions and 167 deletions

View File

@@ -1268,7 +1268,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
// If we have a projection type, make sure to normalize it so we replace it
// with a fresh infer variable
ty::Alias(ty::Projection, ..) => {
ty::Alias(ty::Projection | ty::Inherent, ..) => {
let predicate = normalize_with_depth_to(
self,
obligation.param_env,