Skip to content

Commit 1ece866

Browse files
committed
Add documentation for create_lifetime_defs
1 parent 2f353d1 commit 1ece866

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,6 +1523,10 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
15231523
hir::OwnerNode::Item(self.arena.alloc(opaque_ty_item))
15241524
}
15251525

1526+
/// Given a `parent_def_id`, a list of `lifetimes_in_bounds and a `remapping` hash to be
1527+
/// filled, this function creates new definitions for `Param` and `Fresh` lifetimes, inserts the
1528+
/// new definition, adds it to the remapping with the definition of the given lifetime and
1529+
/// returns a list of lifetimes to be lowered afterwards.
15261530
fn create_lifetime_defs(
15271531
&mut self,
15281532
parent_def_id: LocalDefId,

0 commit comments

Comments
 (0)