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

@ -564,6 +564,7 @@ impl<'cx, 'tcx> WritebackCx<'cx, 'tcx> {
opaque_type_key,
self.fcx.infcx.tcx,
true,
decl.origin,
);
self.typeck_results.concrete_opaque_types.insert(opaque_type_key.def_id, hidden_type);