Skip to content

Commit 4d2c838

Browse files
author
Alexander Regueiro
committed
Update to nightly
1 parent c05adc5 commit 4d2c838

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

clippy_lints/src/missing_doc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
177177
hir::ImplItemKind::Const(..) => "an associated constant",
178178
hir::ImplItemKind::Method(..) => "a method",
179179
hir::ImplItemKind::Type(_) => "an associated type",
180+
hir::ImplItemKind::Existential(_) => "an existential type",
180181
};
181182
self.check_missing_docs_attrs(cx, &impl_item.attrs, impl_item.span, desc);
182183
}

clippy_lints/src/missing_inline.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingInline {
165165
let desc = match impl_item.node {
166166
hir::ImplItemKind::Method(..) => "a method",
167167
hir::ImplItemKind::Const(..) |
168-
hir::ImplItemKind::Type(_) => return,
168+
hir::ImplItemKind::Type(_) |
169+
hir::ImplItemKind::Existential(_) => return,
169170
};
170171

171172
let def_id = cx.tcx.hir.local_def_id(impl_item.id);

clippy_lints/src/utils/inspector.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
7070
},
7171
hir::ImplItemKind::Method(..) => println!("method"),
7272
hir::ImplItemKind::Type(_) => println!("associated type"),
73+
hir::ImplItemKind::Existential(_) => println!("existential type"),
7374
}
7475
}
7576
// fn check_trait_item(&mut self, cx: &LateContext<'a, 'tcx>, item: &'tcx

clippy_lints/src/utils/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,7 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
982982
Def::AssociatedConst(id) |
983983
Def::Macro(id, ..) |
984984
Def::Existential(id) |
985+
Def::AssociatedExistential(id) |
985986
Def::GlobalAsm(id) => Some(id),
986987

987988
Def::Upvar(..) | Def::Local(_) | Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) | Def::Err => None,

0 commit comments

Comments
 (0)