TyCtxt::map is now called TyCtxt::hir
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user