mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
Remove hir::Variant::attrs.
This commit is contained in:
parent
04496071e4
commit
55f68ead6b
1 changed files with 2 additions and 1 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue