Skip to content

Commit

Permalink
Rollup merge of rust-lang#76403 - scileo:doc-all-impls, r=lcnr
Browse files Browse the repository at this point in the history
Fix documentation for TyCtxt::all_impls

`TyCtxt::all_impls` documentation was wrong about the return type.
  • Loading branch information
Dylan-DPC authored Sep 7, 2020
2 parents 9d649ed + 84fc6fd commit 910c87c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/ty/trait_def.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 910c87c

Please sign in to comment.