Don't consider TAIT normalizable to hidden ty if it would result in impossible item bounds
This commit is contained in:
parent
18a6d911ca
commit
2e8af07a8a
5 changed files with 39 additions and 13 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue