diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-01-13 16:51:18 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2013-01-22 15:59:45 -0800 |
| commit | 9d672671e25855d9ca9813c55cc2fc33252de7b8 (patch) | |
| tree | 7366053909a969ac72a8b280142cccc6ab1a230c /src/rt/rust_stack.cpp | |
| parent | 519b60f313766d840123b48fbc9fc4b42948e6c0 (diff) | |
| download | rust-9d672671e25855d9ca9813c55cc2fc33252de7b8.tar.gz rust-9d672671e25855d9ca9813c55cc2fc33252de7b8.zip | |
Make borrowck's notion of scopes consistent with trans's notion of scopes
This eliminates an ICE in trans where the scope for a particular borrow was a statement ID, but the code in trans that does cleanups wasn't finding the block with that scope. As per #3860 preserve looks at a node ID to see if it's for a statement -- if it is, it uses the enclosing scope instead when updating the map that trans looks at later. I added a comment noting that this is not the best fix (since it may cause boxes to be frozen for longer than necessary) and referring to #3511. r=nmatsakis
Diffstat (limited to 'src/rt/rust_stack.cpp')
0 files changed, 0 insertions, 0 deletions
