Skip to content

enforce noalias on custom allocator Box by default#5067

Merged
RalfJung merged 1 commit into
rust-lang:masterfrom
RalfJung:noalias-custom-allocator-box
May 27, 2026
Merged

enforce noalias on custom allocator Box by default#5067
RalfJung merged 1 commit into
rust-lang:masterfrom
RalfJung:noalias-custom-allocator-box

Conversation

@RalfJung

Copy link
Copy Markdown
Member

As requested by @nia-e, let's use the more conservative semantics for now. Also add a flag to disable noalias on custom allocator Boxes. That flag wins the price for the longest flag: -Zmiri-tree-borrows-relax-custom-allocator-uniqueness. I am open to suggestions for shorter names. :)

In Stacked Borrows we just always enforce full uniqueness. It's meant to be the strict model anyway.

@rustbot

rustbot commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Thank you for contributing to Miri! A reviewer will take a look at your PR, typically within a week or two.
Please remember to not force-push to the PR branch except when you need to rebase due to a conflict or when the reviewer asks you for it.

@rustbot rustbot added the S-waiting-on-review Status: Waiting for a review to complete label May 26, 2026
@nia-e

nia-e commented May 26, 2026

Copy link
Copy Markdown
Member

libs-api convention dictates we call this -Zbikeshed-aliasable-allocator 😄

this will be very useful, ty!

@RalfJung
RalfJung force-pushed the noalias-custom-allocator-box branch from a78faf9 to 34e5379 Compare May 27, 2026 06:11
@RalfJung
RalfJung added this pull request to the merge queue May 27, 2026
Merged via the queue into rust-lang:master with commit b2b7b7a May 27, 2026
13 checks passed
@RalfJung
RalfJung deleted the noalias-custom-allocator-box branch May 27, 2026 17:36
@rustbot rustbot removed the S-waiting-on-review Status: Waiting for a review to complete label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants