refactor(allocator): make Arena::is_last_allocation a safe method#21729
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
There was a problem hiding this comment.
Pull request overview
This PR refactors the allocator arena internals by making Arena::is_last_allocation a safe helper, reflecting that it performs a pure pointer equality check without requiring any safety preconditions.
Changes:
- Remove
unsafefromArena::is_last_allocationand add a brief doc comment describing its behavior. - Update internal call sites to invoke
is_last_allocationwithoutunsafe { ... }.
Merge activity
|
…21729) This method has no safety requirements, so it doesn't need to be an unsafe function.
4aac05b to
a717a55
Compare
9ea06ef to
a2104e5
Compare

This method has no safety requirements, so it doesn't need to be an unsafe function.