Remove hir::Item::attrs.
This commit is contained in:
parent
5474f17011
commit
c701872a6c
32 changed files with 104 additions and 76 deletions
|
@ -283,7 +283,7 @@ fn is_doc_keyword(s: Symbol) -> bool {
|
|||
|
||||
impl<'tcx> LateLintPass<'tcx> for ExistingDocKeyword {
|
||||
fn check_item(&mut self, cx: &LateContext<'_>, item: &rustc_hir::Item<'_>) {
|
||||
for attr in item.attrs {
|
||||
for attr in cx.tcx.hir().attrs(item.hir_id()) {
|
||||
if !attr.has_name(sym::doc) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue