Skip to content

Commit 910c87c

Browse files
authored
Rollup merge of rust-lang#76403 - scileo:doc-all-impls, r=lcnr
Fix documentation for TyCtxt::all_impls `TyCtxt::all_impls` documentation was wrong about the return type.
2 parents 9d649ed + 84fc6fd commit 910c87c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/trait_def.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl<'tcx> TyCtxt<'tcx> {
167167
}
168168
}
169169

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

0 commit comments

Comments
 (0)