We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9d649ed + 84fc6fd commit 910c87cCopy full SHA for 910c87c
compiler/rustc_middle/src/ty/trait_def.rs
@@ -167,7 +167,7 @@ impl<'tcx> TyCtxt<'tcx> {
167
}
168
169
170
- /// Returns a vector containing all impls
+ /// Returns an iterator containing all impls
171
pub fn all_impls(self, def_id: DefId) -> impl Iterator<Item = DefId> + 'tcx {
172
let TraitImpls { blanket_impls, non_blanket_impls } = self.trait_impls_of(def_id);
173
0 commit comments