-
-
Notifications
You must be signed in to change notification settings - Fork 726
fix(allocator)!: remove vec! macro
#12206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
CodSpeed Instrumentation Performance ReportMerging #12206 will not alter performanceComparing Summary
|
948cdec to
80e6946
Compare
077d2e7 to
64b2d05
Compare
80e6946 to
c6a8eea
Compare
64b2d05 to
8a4f7c5
Compare
Merge activity
|
Remove `vec!` macro from `oxc_allocator`. This is in the `vec2::raw_vec` module, but is accidentally exposed due to the `#[macro_export]` attribute. This macro creates a `bumpalo::collections::Vec`, instead of our own `Vec` type, which is confusing. We could add a `vec!` macro which creates our own `Vec` type, but that's not completely trivial (how to handle cloning `item` in `vec![item; 3]`? `Clone` or `CloneIn`?). So for now, just remove this erroneous macro entirely.
c6a8eea to
b3a076b
Compare
8a4f7c5 to
facd3cd
Compare

Remove
vec!macro fromoxc_allocator. This is in thevec2::raw_vecmodule, but is accidentally exposed due to the#[macro_export]attribute.This macro creates a
bumpalo::collections::Vec, instead of our ownVectype, which is confusing.We could add a
vec!macro which creates our ownVectype, but that's not completely trivial (how to handle cloningiteminvec![item; 3]?CloneorCloneIn?). So for now, just remove this erroneous macro entirely.