diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-05-23 13:21:22 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-05-23 21:26:37 +0000 |
| commit | cc1ec49a14656ad55988e059e49d808fa268a58d (patch) | |
| tree | 8973676f422c91b92b2e7b0fbfe01a8341753e27 /compiler/rustc_middle/src/ty | |
| parent | c2ccc855e74aec03e434405eca3c247ee2432e53 (diff) | |
| download | rust-cc1ec49a14656ad55988e059e49d808fa268a58d.tar.gz rust-cc1ec49a14656ad55988e059e49d808fa268a58d.zip | |
Rename `traits_in_crate` query to `traits`
Diffstat (limited to 'compiler/rustc_middle/src/ty')
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index 097bfb71a6f..b6222c3b964 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -1197,7 +1197,7 @@ impl<'tcx> TyCtxt<'tcx> { pub fn all_traits(self) -> impl Iterator<Item = DefId> + 'tcx { iter::once(LOCAL_CRATE) .chain(self.crates(()).iter().copied()) - .flat_map(move |cnum| self.traits_in_crate(cnum).iter().copied()) + .flat_map(move |cnum| self.traits(cnum).iter().copied()) } #[inline] |
