about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2022-08-03 19:40:54 -0300
committerSantiago Pastorino <spastorino@gmail.com>2022-08-04 11:27:00 -0300
commit76b518fc83d1ddd112ef721fa207d3a74be83010 (patch)
tree414002ebabe70ac12c13623a3a37591d7c61d56b
parentd85720a083baf48dbfb9cbb77613ef45fc32a20f (diff)
downloadrust-76b518fc83d1ddd112ef721fa207d3a74be83010.tar.gz
rust-76b518fc83d1ddd112ef721fa207d3a74be83010.zip
Document what collected_lifetimes vec containts
-rw-r--r--compiler/rustc_ast_lowering/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs
index 3af5945b809..99617cf5ab8 100644
--- a/compiler/rustc_ast_lowering/src/lib.rs
+++ b/compiler/rustc_ast_lowering/src/lib.rs
@@ -1396,6 +1396,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
 
         let opaque_ty_def_id = self.local_def_id(opaque_ty_node_id);
 
+        // Contains the new lifetime definitions created for the TAIT (if any).
         let mut collected_lifetimes = Vec::new();
         let mut new_remapping = FxHashMap::default();
 
@@ -1760,6 +1761,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
         // by the opaque type. This should include all in-scope
         // lifetime parameters, including those defined in-band.
 
+        // Contains the new lifetime definitions created for the TAIT (if any) generated for the
+        // return type.
         let mut captures = Vec::new();
         let mut new_remapping = FxHashMap::default();