1
Fork 0

Require lifetime bounds for opaque types in order to allow hidden types to capture said lifetimes

This commit is contained in:
Oli Scherer 2022-09-28 16:01:05 +00:00
parent 1755c85302
commit 1dc2119c03
20 changed files with 150 additions and 36 deletions

View file

@ -226,7 +226,7 @@ impl<'tcx> InferCtxtExt<'tcx> for InferCtxt<'tcx> {
}
let definition_ty = instantiated_ty
.remap_generic_params_to_declaration_params(opaque_type_key, self.tcx, false)
.remap_generic_params_to_declaration_params(opaque_type_key, self.tcx, false, origin)
.ty;
if !check_opaque_type_parameter_valid(