1
Fork 0

librustc: De-@mut the def map.

This is the last `@mut` in `librustc` that does not depend on libsyntax.
This commit is contained in:
Patrick Walton 2013-12-23 11:15:16 -08:00
parent 56b9a207ab
commit cc0584731a
30 changed files with 246 additions and 117 deletions

View file

@ -496,7 +496,8 @@ impl CFGBuilder {
}
Some(_) => {
match self.tcx.def_map.find(&expr.id) {
let def_map = self.tcx.def_map.borrow();
match def_map.get().find(&expr.id) {
Some(&ast::DefLabel(loop_id)) => {
for l in self.loop_scopes.iter() {
if l.loop_id == loop_id {