refactor(ast): AstBuilder::vec1 use Vec::from_value_in#23719
Conversation
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
|
There was a problem hiding this comment.
Pull request overview
Refactors AstBuilder::vec1 in oxc_ast to use the new allocator-level helper Vec::from_value_in, aligning AST construction utilities with the allocator crate’s single-element Vec API.
Changes:
- Replaced
AstBuilder::vec1implementation fromvec_from_array([value])toVec::from_value_in(value, self.allocator).
a7dc194 to
3ba476f
Compare
b7e49ff to
dafa5a7
Compare
Merge activity
|
`AstBuilder::vec1` use `Vec::from_value_in` (introduced in #23718).
dafa5a7 to
fcbf993
Compare
3ba476f to
0057ec6
Compare
`AstBuilder::vec1` use `Vec::from_value_in` (introduced in #23718).

AstBuilder::vec1useVec::from_value_in(introduced in #23718).