Auto merge of #102417 - oli-obk:opaque_lifetimes2, r=jackh726
Require lifetime bounds for opaque types in order to allow hidden types to capture said lifetimes fixes #96996 cc `@aliemjay`
This commit is contained in:
commit
cb9467515b
20 changed files with 150 additions and 36 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue