refactor(allocator): simplify code in Vec#21393
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 removes a previously-added Miri/Clippy workaround in oxc_allocator’s bump-allocated Vec, simplifying Vec::append_elements now that the workaround is no longer needed under the current MSRV.
Changes:
- Removed the
#[allow(...)]workaround and its explanatory comments inVec::append_elements. - Simplified slice length retrieval from
(&*other).len()toother.len()for*const [T].
Merge activity
|
89a9f3d to
2e144c2
Compare

This code was introduced in #11092 to work around an oddity with Miri. It should be safe to remove now.