]> git.lizzy.rs Git - rust.git/commit
auto merge of #7841 : alexcrichton/rust/tls++, r=huonw
authorbors <bors@rust-lang.org>
Wed, 17 Jul 2013 09:37:43 +0000 (02:37 -0700)
committerbors <bors@rust-lang.org>
Wed, 17 Jul 2013 09:37:43 +0000 (02:37 -0700)
commitc032dddf6f78590b56034c332a23441cadd86330
treef776d870cc947a8d39162b362d57ed5be6768aca
parenta93244dbf6a5872a536e8b2727a5ebb94475ebed
parent948a62401ef717eb484c2215713291749f0f35ed
auto merge of #7841 : alexcrichton/rust/tls++, r=huonw

Simulates borrow checks for '@mut' boxes, or at least it's the same idea. This allows you to store owned values, but mutate them while they're owned by TLS.

This should remove the necessity for a `pop`/`set` pattern to mutate data structures in TLS.