@@ -192,8 +192,6 @@ struct DefMapCrateData {
192192 exported_derives : FxHashMap < MacroId , Box < [ Name ] > > ,
193193 fn_proc_macro_mapping : FxHashMap < FunctionId , ProcMacroId > ,
194194
195- /// Custom attributes registered with `#![register_attr]`.
196- registered_attrs : Vec < Symbol > ,
197195 /// Custom tool modules registered with `#![register_tool]`.
198196 registered_tools : Vec < Symbol > ,
199197 /// Unstable features of Rust enabled with `#![feature(A, B)]`.
@@ -212,7 +210,6 @@ impl DefMapCrateData {
212210 Self {
213211 exported_derives : FxHashMap :: default ( ) ,
214212 fn_proc_macro_mapping : FxHashMap :: default ( ) ,
215- registered_attrs : Vec :: new ( ) ,
216213 registered_tools : PREDEFINED_TOOLS . iter ( ) . map ( |it| Symbol :: intern ( it) ) . collect ( ) ,
217214 unstable_features : FxHashSet :: default ( ) ,
218215 rustc_coherence_is_core : false ,
@@ -227,7 +224,6 @@ impl DefMapCrateData {
227224 let Self {
228225 exported_derives,
229226 fn_proc_macro_mapping,
230- registered_attrs,
231227 registered_tools,
232228 unstable_features,
233229 rustc_coherence_is_core : _,
@@ -238,7 +234,6 @@ impl DefMapCrateData {
238234 } = self ;
239235 exported_derives. shrink_to_fit ( ) ;
240236 fn_proc_macro_mapping. shrink_to_fit ( ) ;
241- registered_attrs. shrink_to_fit ( ) ;
242237 registered_tools. shrink_to_fit ( ) ;
243238 unstable_features. shrink_to_fit ( ) ;
244239 }
@@ -529,10 +524,6 @@ impl DefMap {
529524 & self . data . registered_tools
530525 }
531526
532- pub fn registered_attrs ( & self ) -> & [ Symbol ] {
533- & self . data . registered_attrs
534- }
535-
536527 pub fn is_unstable_feature_enabled ( & self , feature : & Symbol ) -> bool {
537528 self . data . unstable_features . contains ( feature)
538529 }
0 commit comments