1
Fork 0

Unconditionally record lifetime mapping

This commit is contained in:
Michael Goulet 2023-08-07 22:09:12 +00:00
parent 443c3161dd
commit 8dcb8e0759
4 changed files with 4 additions and 8 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 [(&'hir Lifetime, LocalDefId)]>,
pub lifetime_mapping: &'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.