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

@ -2182,18 +2182,6 @@ crate struct Impl {
}
impl Impl {
crate fn is_auto_impl(&self) -> bool {
self.kind.is_auto()
}
crate fn is_blanket_impl(&self) -> bool {
self.kind.is_blanket()
}
crate fn blanket_impl_ty(&self) -> Option<&Type> {
self.kind.as_blanket_ty()
}
crate fn provided_trait_methods(&self, tcx: TyCtxt<'_>) -> FxHashSet<Symbol> {
self.trait_
.as_ref()