librustc: De-@mut
the def map.
This is the last `@mut` in `librustc` that does not depend on libsyntax.
This commit is contained in:
parent
56b9a207ab
commit
cc0584731a
30 changed files with 246 additions and 117 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue