We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffaf158 commit 84fc6fdCopy full SHA for 84fc6fd
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