1
Fork 0

rustdoc: Remove top-level wrappers for ImplKind methods

The `ImplKind` methods can just be used directly instead.
This commit is contained in:
Noah Lev 2021-11-07 18:26:37 -08:00
parent 7c7bf451eb
commit b5817fada2
6 changed files with 8 additions and 20 deletions

View file

@ -228,7 +228,7 @@ impl<'a, 'tcx> DocFolder for CacheBuilder<'a, 'tcx> {
// Collect all the implementors of traits.
if let clean::ImplItem(ref i) = *item.kind {
if let Some(trait_) = &i.trait_ {
if !i.is_blanket_impl() {
if !i.kind.is_blanket() {
self.cache
.implementors
.entry(trait_.def_id())