]> git.lizzy.rs Git - rust.git/commitdiff
return &mut T from the arenas, not &T
authorDaniel Micay <danielmicay@gmail.com>
Mon, 27 Oct 2014 20:31:41 +0000 (16:31 -0400)
committerDaniel Micay <danielmicay@gmail.com>
Mon, 27 Oct 2014 20:37:31 +0000 (16:37 -0400)
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]


No differences found