Rename hir::map::local_def_id_from_hir_id to local_def_id

This commit is contained in:
Lzu Tao
2019-07-06 10:52:51 +07:00
parent a9f8d3a034
commit 7293defb34
20 changed files with 28 additions and 28 deletions

View File

@@ -118,7 +118,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for CognitiveComplexity {
span: Span,
hir_id: HirId,
) {
let def_id = cx.tcx.hir().local_def_id_from_hir_id(hir_id);
let def_id = cx.tcx.hir().local_def_id(hir_id);
if !cx.tcx.has_attr(def_id, sym!(test)) {
self.check(cx, body, span);
}