Remove hir::Variant::attrs.

This commit is contained in:
Camille GILLOT 2020-11-27 00:07:36 +01:00
parent 04496071e4
commit 55f68ead6b

View file

@ -192,6 +192,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingDoc {
} }
fn check_variant(&mut self, cx: &LateContext<'tcx>, v: &'tcx hir::Variant<'_>) { fn check_variant(&mut self, cx: &LateContext<'tcx>, v: &'tcx hir::Variant<'_>) {
self.check_missing_docs_attrs(cx, &v.attrs, v.span, "a", "variant"); let attrs = cx.tcx.hir().attrs(v.id);
self.check_missing_docs_attrs(cx, attrs, v.span, "a", "variant");
} }
} }