diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2023-02-22 01:20:14 +0400 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2023-03-16 17:22:18 +0400 |
| commit | f28f77f2d9867247156b45d32db0f45448b5901f (patch) | |
| tree | 18513391e41239fd48074ade5a94de3e99c45f39 /compiler/rustc_resolve/src | |
| parent | cd6c574af3886c41f34086d90df42c3da0144693 (diff) | |
| download | rust-f28f77f2d9867247156b45d32db0f45448b5901f.tar.gz rust-f28f77f2d9867247156b45d32db0f45448b5901f.zip | |
resolve: Remove `item_generics_num_lifetimes`
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/lib.rs b/compiler/rustc_resolve/src/lib.rs index cd90fd3ef84..107c9a1991a 100644 --- a/compiler/rustc_resolve/src/lib.rs +++ b/compiler/rustc_resolve/src/lib.rs @@ -1168,7 +1168,7 @@ impl<'tcx> Resolver<'_, 'tcx> { if let Some(def_id) = def_id.as_local() { self.item_generics_num_lifetimes[&def_id] } else { - self.cstore().item_generics_num_lifetimes(def_id, self.tcx.sess) + self.tcx.generics_of(def_id).own_counts().lifetimes } } |
