mozilla/rust — pull request #7841 by alexcrichton (2013-07-17 03:13:52+00:00)
Title: Add a `get_mut` method for TLS

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.