Skip to content

Commit 55f68ea

Browse files
committed
Remove hir::Variant::attrs.
1 parent 0449607 commit 55f68ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/missing_doc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingDoc {
192192
}
193193

194194
fn check_variant(&mut self, cx: &LateContext<'tcx>, v: &'tcx hir::Variant<'_>) {
195-
self.check_missing_docs_attrs(cx, &v.attrs, v.span, "a", "variant");
195+
let attrs = cx.tcx.hir().attrs(v.id);
196+
self.check_missing_docs_attrs(cx, attrs, v.span, "a", "variant");
196197
}
197198
}

0 commit comments

Comments
 (0)