@@ -192,8 +192,6 @@ struct DefMapCrateData {
192
192
exported_derives : FxHashMap < MacroId , Box < [ Name ] > > ,
193
193
fn_proc_macro_mapping : FxHashMap < FunctionId , ProcMacroId > ,
194
194
195
- /// Custom attributes registered with `#![register_attr]`.
196
- registered_attrs : Vec < Symbol > ,
197
195
/// Custom tool modules registered with `#![register_tool]`.
198
196
registered_tools : Vec < Symbol > ,
199
197
/// Unstable features of Rust enabled with `#![feature(A, B)]`.
@@ -212,7 +210,6 @@ impl DefMapCrateData {
212
210
Self {
213
211
exported_derives : FxHashMap :: default ( ) ,
214
212
fn_proc_macro_mapping : FxHashMap :: default ( ) ,
215
- registered_attrs : Vec :: new ( ) ,
216
213
registered_tools : PREDEFINED_TOOLS . iter ( ) . map ( |it| Symbol :: intern ( it) ) . collect ( ) ,
217
214
unstable_features : FxHashSet :: default ( ) ,
218
215
rustc_coherence_is_core : false ,
@@ -227,7 +224,6 @@ impl DefMapCrateData {
227
224
let Self {
228
225
exported_derives,
229
226
fn_proc_macro_mapping,
230
- registered_attrs,
231
227
registered_tools,
232
228
unstable_features,
233
229
rustc_coherence_is_core : _,
@@ -238,7 +234,6 @@ impl DefMapCrateData {
238
234
} = self ;
239
235
exported_derives. shrink_to_fit ( ) ;
240
236
fn_proc_macro_mapping. shrink_to_fit ( ) ;
241
- registered_attrs. shrink_to_fit ( ) ;
242
237
registered_tools. shrink_to_fit ( ) ;
243
238
unstable_features. shrink_to_fit ( ) ;
244
239
}
@@ -529,10 +524,6 @@ impl DefMap {
529
524
& self . data . registered_tools
530
525
}
531
526
532
- pub fn registered_attrs ( & self ) -> & [ Symbol ] {
533
- & self . data . registered_attrs
534
- }
535
-
536
527
pub fn is_unstable_feature_enabled ( & self , feature : & Symbol ) -> bool {
537
528
self . data . unstable_features . contains ( feature)
538
529
}
0 commit comments