1
Fork 0

Consolidate opaque ty and async fn lowering code

This commit is contained in:
Michael Goulet 2023-08-04 22:16:29 +00:00
parent fbc11e9690
commit 57a96893f6
5 changed files with 191 additions and 429 deletions

View file

@ -1694,6 +1694,7 @@ impl<'a: 'ast, 'b, 'ast, 'tcx> LateResolutionVisitor<'a, 'b, 'ast, 'tcx> {
// Leave the responsibility to create the `LocalDefId` to lowering.
let param = self.r.next_node_id();
let res = LifetimeRes::Fresh { param, binder };
self.record_lifetime_param(param, res);
// Record the created lifetime parameter so lowering can pick it up and add it to HIR.
self.r