feat(ast): add methods to create primitives to new AstBuilder#23729
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Merging this PR will not alter performance
Comparing Footnotes
|
27489b3 to
e512626
Compare
3ae30e6 to
95e4e59
Compare
95e4e59 to
a1c320e
Compare
e512626 to
c5d5217
Compare
a1c320e to
ade064d
Compare
c5d5217 to
6b2bb22
Compare
ade064d to
869ada5
Compare
6b2bb22 to
431ba1e
Compare
|
This is not necessary. |

Part of #23043.
Add methods for creating primitives (
Vec,Box,Str,Ident) to newAstBuilder, matching the ones on the old one.These should not be methods on
AstBuilder- call sites should useVec::with_capacity_inetc instead. But that requiresVec::with_capacity_into take an&A: &GetAllocatorinstead of&Allocator.These methods are a temporary measure to avoid having to make that change right now.