Rename hir::map::local_def_id_from_hir_id to local_def_id
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user