Skip to content

return &mut T from the arenas, not &T #18407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 31, 2014
Merged

return &mut T from the arenas, not &T #18407

merged 1 commit into from
Oct 31, 2014

Conversation

thestinger
Copy link
Contributor

The arenas write the value to memory and then return a non-aliasing
reference to it. The returned reference can be mutable and can be
coerced to an immutable one.

[breaking-change]

The arenas write the value to memory and then return a non-aliasing
reference to it. The returned reference can be mutable and can be
coerced to an immutable one.

[breaking-change]
@rust-highfive
Copy link
Contributor

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@alexcrichton
Copy link
Member

This seems fine to me, just want another set of eyes to confirm. r? @pcwalton (you wrote TypedArena, right?)

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Oct 30, 2014
@bors bors merged commit 7e2e4ce into rust-lang:master Oct 31, 2014
@thestinger thestinger deleted the arena branch October 31, 2014 05:02
lnicola pushed a commit to lnicola/rust that referenced this pull request Oct 29, 2024
…etup-tips

Fix formatting on welcome page, read only paths setting example
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.

4 participants