refactor(allocator): use std instead of core#21254
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 allocator internals to consistently use std imports (the project doesn’t support no_std) and removes the remaining core-based import patterns.
Changes:
- Replace
core::*imports/usages withstd::*inbumpalo_allocandbump. - Remove the
#[doc(hidden)] pub extern crate alloc as core_alloc;alias and switch allocation calls tostd::alloc.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| crates/oxc_allocator/src/bumpalo_alloc.rs | Switches allocation-related imports from core to std. |
| crates/oxc_allocator/src/bump.rs | Replaces core/alloc usage with std and removes the core_alloc alias. |
Merge activity
|
We don't support `no_std`, and import from `std` instead of `core`. Follow that convention here.
6ba9f3f to
2870174
Compare
32e4d25 to
d5808ef
Compare

We don't support
no_std, and import fromstdinstead ofcore. Follow that convention here.