Skip to content

Commit 76b518f

Browse files
committed
Document what collected_lifetimes vec containts
1 parent d85720a commit 76b518f

File tree

1 file changed

+3
-0
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+3
-0
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
13961396

13971397
let opaque_ty_def_id = self.local_def_id(opaque_ty_node_id);
13981398

1399+
// Contains the new lifetime definitions created for the TAIT (if any).
13991400
let mut collected_lifetimes = Vec::new();
14001401
let mut new_remapping = FxHashMap::default();
14011402

@@ -1760,6 +1761,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
17601761
// by the opaque type. This should include all in-scope
17611762
// lifetime parameters, including those defined in-band.
17621763

1764+
// Contains the new lifetime definitions created for the TAIT (if any) generated for the
1765+
// return type.
17631766
let mut captures = Vec::new();
17641767
let mut new_remapping = FxHashMap::default();
17651768

0 commit comments

Comments
 (0)