This commit is contained in:
Matthias Krüger
2020-04-24 11:57:34 +02:00
committed by flip1995
parent 02c94352d4
commit f9c1acbc45
11 changed files with 27 additions and 22 deletions

View File

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