diff options
| author | Sasha <sasha.pourcelot@protonmail.com> | 2020-09-06 12:10:46 +0200 |
|---|---|---|
| committer | Sasha <sasha.pourcelot@protonmail.com> | 2020-09-06 12:10:46 +0200 |
| commit | 84fc6fd2d0005d452ec966a65518948e3eab3f06 (patch) | |
| tree | 189bb73ec2934a86b2652e89f7be47f6e3df6452 | |
| parent | ffaf15860836c55c7e64135436b05ba16057a580 (diff) | |
| download | rust-84fc6fd2d0005d452ec966a65518948e3eab3f06.tar.gz rust-84fc6fd2d0005d452ec966a65518948e3eab3f06.zip | |
Fix documentation for TyCtxt::all_impls
| -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); |
