Require lifetime bounds for opaque types in order to allow hidden types to capture said lifetimes
This commit is contained in:
parent
1755c85302
commit
1dc2119c03
20 changed files with 150 additions and 36 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue