TyCtxt::map is now called TyCtxt::hir

This commit is contained in:
Mrmaxmeier
2017-02-02 17:53:28 +01:00
parent b1be0d6457
commit 2216a890a6
33 changed files with 77 additions and 77 deletions

View File

@@ -477,7 +477,7 @@ fn non_macro_local(cx: &LateContext, def: &def::Def) -> bool {
match *def {
def::Def::Local(id) |
def::Def::Upvar(id, _, _) => {
if let Some(span) = cx.tcx.map.span_if_local(id) {
if let Some(span) = cx.tcx.hir.span_if_local(id) {
!in_macro(cx, span)
} else {
true