Skip to content

Commit 5e71659

Browse files
committed
Add docs to record_elided_anchor
1 parent f8b1b2b commit 5e71659

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_ast_lowering/src/lifetime_collector.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ impl<'ast> LifetimeCollectVisitor<'ast> {
3030
}
3131
}
3232

33+
/// This collect lifetimes that are elided, for nodes like `Foo<T>` where there are no explicit
34+
/// lifetime nodes. Is equivalent to having "pseudo" nodes introduced for each of the node ids
35+
/// in the list start..end.
3336
fn record_elided_anchor(&mut self, node_id: NodeId, span: Span) {
3437
if let Some(LifetimeRes::ElidedAnchor { start, end }) =
3538
self.resolver.get_lifetime_res(node_id)

0 commit comments

Comments
 (0)