]> git.lizzy.rs Git - rust.git/commit
dont create MovePathIndex's for individual statics.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 15 Mar 2016 12:57:02 +0000 (13:57 +0100)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Mon, 21 Mar 2016 17:36:23 +0000 (18:36 +0100)
commit9901768b4cf0472bb9e3c87750c69fcbe524a5e1
tree1367325492c17511f97afeac2ff0102b1947b7a1
parent9b67d099f50aca92c788d2e5b63b3efe02ea7951
dont create MovePathIndex's for individual statics.

Instead, create a single MovePathIndex that represents all statics.

(An alternative here would be to disallow representing statics at all.
I am hesitant to do that right now, in part because it could impose a
requirement that I thread checks for static data into the calling
code, either as pre- or post-invocation of `fn move_path_for`.)
src/librustc_borrowck/borrowck/mir/gather_moves.rs