Skip to content

Commit 95b09e7

Browse files
committed
Querify lookup_stability.
1 parent bdd175e commit 95b09e7

File tree

2 files changed

+107
-123
lines changed

2 files changed

+107
-123
lines changed

compiler/rustc_middle/src/middle/stability.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ impl DeprecationEntry {
7070
pub struct Index {
7171
/// This is mostly a cache, except the stabilities of local items
7272
/// are filled by the annotator.
73-
pub stab_map: LocalDefIdMap<Stability>,
7473
pub const_stab_map: LocalDefIdMap<ConstStability>,
7574
/// Mapping from feature name to feature name based on the `implied_by` field of `#[unstable]`
7675
/// attributes. If a `#[unstable(feature = "implier", implied_by = "impliee")]` attribute
@@ -88,10 +87,6 @@ pub struct Index {
8887
}
8988

9089
impl Index {
91-
pub fn local_stability(&self, def_id: LocalDefId) -> Option<Stability> {
92-
self.stab_map.get(&def_id).copied()
93-
}
94-
9590
pub fn local_const_stability(&self, def_id: LocalDefId) -> Option<ConstStability> {
9691
self.const_stab_map.get(&def_id).copied()
9792
}

0 commit comments

Comments
 (0)