diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-09-09 01:35:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-09 01:35:23 +0200 |
| commit | 12707346cf314a3ae72e7bfd60be93ba0edf91af (patch) | |
| tree | 099a9add61e8e101b1f2c77d275bafdb549383ac | |
| parent | 1aef86c8583975afd83288b9f0c8fc4550fd9753 (diff) | |
| parent | 84fc6fd2d0005d452ec966a65518948e3eab3f06 (diff) | |
| download | rust-12707346cf314a3ae72e7bfd60be93ba0edf91af.tar.gz rust-12707346cf314a3ae72e7bfd60be93ba0edf91af.zip | |
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.
| -rw-r--r-- | compiler/rustc_middle/src/ty/trait_def.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/trait_def.rs b/compiler/rustc_middle/src/ty/trait_def.rs index 86fe3ac3751..9d5b558234b 100644 --- a/compiler/rustc_middle/src/ty/trait_def.rs +++ b/compiler/rustc_middle/src/ty/trait_def.rs @@ -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); |
