1
Fork 0

Don't consider TAIT normalizable to hidden ty if it would result in impossible item bounds

This commit is contained in:
Michael Goulet 2023-06-18 23:11:22 +00:00
parent 18a6d911ca
commit 2e8af07a8a
5 changed files with 39 additions and 13 deletions

View file

@ -1065,7 +1065,8 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
)?;
ocx.infcx.add_item_bounds_for_hidden_type(
opaque_type_key,
opaque_type_key.def_id.to_def_id(),
opaque_type_key.substs,
cause,
param_env,
hidden_ty.ty,