resolve: Remove struct_field_visibilities_untracked
This commit is contained in:
parent
901f1c9c62
commit
c05b7bd7d0
5 changed files with 37 additions and 50 deletions
|
@ -930,7 +930,7 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
|
|||
self.root.tables.generics_of.get(self, item_id).unwrap().decode((self, sess))
|
||||
}
|
||||
|
||||
fn get_visibility(self, id: DefIndex) -> ty::Visibility<DefId> {
|
||||
fn get_visibility(self, id: DefIndex) -> Visibility<DefId> {
|
||||
self.root
|
||||
.tables
|
||||
.visibility
|
||||
|
@ -1148,19 +1148,6 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
|
|||
.map(move |index| respan(self.get_span(index, sess), self.item_name(index)))
|
||||
}
|
||||
|
||||
fn get_struct_field_visibilities(
|
||||
self,
|
||||
id: DefIndex,
|
||||
) -> impl Iterator<Item = Visibility<DefId>> + 'a {
|
||||
self.root
|
||||
.tables
|
||||
.children
|
||||
.get(self, id)
|
||||
.expect("fields not encoded for a struct")
|
||||
.decode(self)
|
||||
.map(move |field_index| self.get_visibility(field_index))
|
||||
}
|
||||
|
||||
fn get_inherent_implementations_for_type(
|
||||
self,
|
||||
tcx: TyCtxt<'tcx>,
|
||||
|
|
|
@ -15,7 +15,7 @@ use rustc_middle::middle::exported_symbols::ExportedSymbol;
|
|||
use rustc_middle::middle::stability::DeprecationEntry;
|
||||
use rustc_middle::ty::fast_reject::SimplifiedType;
|
||||
use rustc_middle::ty::query::{ExternProviders, Providers};
|
||||
use rustc_middle::ty::{self, TyCtxt, Visibility};
|
||||
use rustc_middle::ty::{self, TyCtxt};
|
||||
use rustc_session::cstore::{CrateSource, CrateStore};
|
||||
use rustc_session::{Session, StableCrateId};
|
||||
use rustc_span::hygiene::{ExpnHash, ExpnId};
|
||||
|
@ -515,13 +515,6 @@ impl CStore {
|
|||
self.get_crate_data(def.krate).get_struct_field_names(def.index, sess)
|
||||
}
|
||||
|
||||
pub fn struct_field_visibilities_untracked(
|
||||
&self,
|
||||
def: DefId,
|
||||
) -> impl Iterator<Item = Visibility<DefId>> + '_ {
|
||||
self.get_crate_data(def.krate).get_struct_field_visibilities(def.index)
|
||||
}
|
||||
|
||||
pub fn ctor_untracked(&self, def: DefId) -> Option<(CtorKind, DefId)> {
|
||||
self.get_crate_data(def.krate).get_ctor(def.index)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue