Rollup merge of #109457 - Veykril:ribstack, r=petrochenkov

Remove comment about reusing rib allocations

Perf indicates this to not be worth the complexity

cc #4948
This commit is contained in:
Matthias Krüger 2023-03-22 20:08:03 +01:00 committed by GitHub
commit 3712bfff1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -590,7 +590,6 @@ struct LateResolutionVisitor<'a, 'b, 'ast, 'tcx> {
parent_scope: ParentScope<'a>, parent_scope: ParentScope<'a>,
/// The current set of local scopes for types and values. /// The current set of local scopes for types and values.
/// FIXME #4948: Reuse ribs to avoid allocation.
ribs: PerNS<Vec<Rib<'a>>>, ribs: PerNS<Vec<Rib<'a>>>,
/// Previous poped `rib`, only used for diagnostic. /// Previous poped `rib`, only used for diagnostic.