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

@ -2675,7 +2675,7 @@ pub struct OpaqueTy<'hir> {
///
/// This mapping associated a captured lifetime (first parameter) with the new
/// early-bound lifetime that was generated for the opaque.
pub lifetime_mapping: Option<&'hir [(Lifetime, LocalDefId)]>,
pub lifetime_mapping: Option<&'hir [(&'hir Lifetime, LocalDefId)]>,
/// Whether the opaque is a return-position impl trait (or async future)
/// originating from a trait method. This makes it so that the opaque is
/// lowered as an associated type.