@@ -10,7 +10,7 @@ use rustc_attr_data_structures::{
10
10
use rustc_data_structures:: unord:: UnordMap ;
11
11
use rustc_errors:: { Applicability , Diag , EmissionGuarantee } ;
12
12
use rustc_feature:: GateIssue ;
13
- use rustc_hir:: def_id:: { DefId , LocalDefId , LocalDefIdMap } ;
13
+ use rustc_hir:: def_id:: { DefId , LocalDefId } ;
14
14
use rustc_hir:: { self as hir, HirId } ;
15
15
use rustc_macros:: { Decodable , Encodable , HashStable , Subdiagnostic } ;
16
16
use rustc_session:: Session ;
@@ -68,9 +68,6 @@ impl DeprecationEntry {
68
68
/// A stability index, giving the stability level for items and methods.
69
69
#[ derive( HashStable , Debug ) ]
70
70
pub struct Index {
71
- /// This is mostly a cache, except the stabilities of local items
72
- /// are filled by the annotator.
73
- pub const_stab_map : LocalDefIdMap < ConstStability > ,
74
71
/// Mapping from feature name to feature name based on the `implied_by` field of `#[unstable]`
75
72
/// attributes. If a `#[unstable(feature = "implier", implied_by = "impliee")]` attribute
76
73
/// exists, then this map will have a `impliee -> implier` entry.
@@ -86,12 +83,6 @@ pub struct Index {
86
83
pub implications : UnordMap < Symbol , Symbol > ,
87
84
}
88
85
89
- impl Index {
90
- pub fn local_const_stability ( & self , def_id : LocalDefId ) -> Option < ConstStability > {
91
- self . const_stab_map . get ( & def_id) . copied ( )
92
- }
93
- }
94
-
95
86
pub fn report_unstable (
96
87
sess : & Session ,
97
88
feature : Symbol ,
0 commit comments