Rollup merge of #76403 - scileo:doc-all-impls, r=lcnr

Fix documentation for TyCtxt::all_impls

`TyCtxt::all_impls` documentation was wrong about the return type.
This commit is contained in:
Dylan DPC 2020-09-09 01:35:23 +02:00 committed by GitHub
commit 12707346cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,7 @@ impl<'tcx> TyCtxt<'tcx> {
}
}
/// Returns a vector containing all impls
/// Returns an iterator containing all impls
pub fn all_impls(self, def_id: DefId) -> impl Iterator<Item = DefId> + 'tcx {
let TraitImpls { blanket_impls, non_blanket_impls } = self.trait_impls_of(def_id);