Remove now-unnecessary calls to node_to_hir_id

This commit is contained in:
Manish Goregaokar
2019-04-14 13:09:17 -07:00
parent 6505794bc6
commit 1b2f2be085
6 changed files with 13 additions and 15 deletions

View File

@@ -33,7 +33,7 @@ pub fn is_potentially_mutated<'a, 'tcx: 'a>(
Def::Local(id) | Def::Upvar(id, ..) => id,
_ => return true,
};
mutated_variables(expr, cx).map_or(true, |mutated| mutated.contains(&cx.tcx.hir().node_to_hir_id(id)))
mutated_variables(expr, cx).map_or(true, |mutated| mutated.contains(&id))
}
struct MutVarsDelegate {