refactor(allocator): import from std at top level#21255
refactor(allocator): import from std at top level#21255graphite-app[bot] merged 1 commit intomainfrom
std at top level#21255Conversation
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 oxc_allocator’s bump allocator implementation to rely on top-level std imports, reducing repeated fully-qualified paths and slightly simplifying call sites.
Changes:
- Import
std::fmtas a module and usefmt::Formatter/fmt::ResultinDisplayimpls. - Import
std::hint::unreachable_uncheckedand use it directly inround_up_to_unchecked. - Use
ptr::copy_nonoverlapping(viastd::ptrimport) instead ofstd::ptr::....
Merge activity
|
Pure refactor. Import from `std` at top level, to shorten and simplify code.
32e4d25 to
d5808ef
Compare
44f82f4 to
7f91722
Compare

Pure refactor. Import from
stdat top level, to shorten and simplify code.