Skip to content

refactor(allocator)!: remove DerefMut impl from AllocatorGuard#12077

Merged
graphite-app[bot] merged 1 commit intomainfrom
07-04-refactor_allocator_remove_derefmut_impl_from_allocatorguard_
Jul 4, 2025
Merged

refactor(allocator)!: remove DerefMut impl from AllocatorGuard#12077
graphite-app[bot] merged 1 commit intomainfrom
07-04-refactor_allocator_remove_derefmut_impl_from_allocatorguard_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jul 4, 2025

AllocatorGuard doesn't need to give mutable access to the Allocator. Allocator is reset automatically when the AllocatorGuard is dropped. So remove DerefMut impl.

@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Jul 4, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@overlookmotel overlookmotel marked this pull request as ready for review July 4, 2025 12:44
@codspeed-hq
Copy link

codspeed-hq bot commented Jul 4, 2025

CodSpeed Instrumentation Performance Report

Merging #12077 will not alter performance

Comparing 07-04-refactor_allocator_remove_derefmut_impl_from_allocatorguard_ (1108a5c) with main (9cf5552)

Summary

✅ 38 untouched benchmarks

@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Jul 4, 2025
Copy link
Contributor

camc314 commented Jul 4, 2025

Merge activity

…12077)

`AllocatorGuard` doesn't need to give mutable access to the `Allocator`. `Allocator` is reset automatically when the `AllocatorGuard` is dropped. So remove `DerefMut` impl.
@graphite-app graphite-app bot force-pushed the 07-04-refactor_allocator_remove_derefmut_impl_from_allocatorguard_ branch from c2b7e29 to 1108a5c Compare July 4, 2025 12:56
@camc314 camc314 removed the 0-merge Merge with Graphite Merge Queue label Jul 4, 2025
@graphite-app graphite-app bot merged commit 1108a5c into main Jul 4, 2025
24 checks passed
@graphite-app graphite-app bot deleted the 07-04-refactor_allocator_remove_derefmut_impl_from_allocatorguard_ branch July 4, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants