refactor(allocator): import bumpalo_alloc::Alloc trait as BumpaloAlloc#21256
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
This PR reduces ambiguity between two similarly named Alloc traits by aliasing the crate’s internal bumpalo_alloc::Alloc trait to BumpaloAlloc within the bump allocator implementation.
Changes:
- Import
crate::bumpalo_alloc::AllocasBumpaloAllocand update the correspondingunsafe implto use the alias. - Adjust
AllocErrre-export to use an explicitcrate::bumpalo_alloc::...path after removing the module import. - Update internal tests/comments to reference the
bumpalo_allocmodule and useBumpaloAllocfor UFCS calls where applicable.
Merge activity
|
…lloc` (#21256) It's confusing that we have 2 traits called `Alloc`. Import the `Alloc` trait defined in `bumpalo_alloc.rs` as `BumpaloAlloc` to make it clearer.
44f82f4 to
7f91722
Compare
cf1a5a4 to
4b86294
Compare

It's confusing that we have 2 traits called
Alloc. Import theAlloctrait defined inbumpalo_alloc.rsasBumpaloAllocto make it clearer.