@@ -113,11 +113,12 @@ pub struct DefMap {
113
113
114
114
diagnostics : Vec < DefDiagnostic > ,
115
115
116
- data : Arc < CrateData > ,
116
+ data : Arc < DefMapCrateData > ,
117
117
}
118
118
119
+ /// Data that belongs to a crate which is shared between a crate's def map and all its block def maps.
119
120
#[ derive( Clone , Debug , PartialEq , Eq ) ]
120
- struct CrateData {
121
+ struct DefMapCrateData {
121
122
extern_prelude : FxHashMap < Name , ModuleId > ,
122
123
123
124
/// Side table for resolving derive helpers.
@@ -141,7 +142,7 @@ struct CrateData {
141
142
recursion_limit : Option < u32 > ,
142
143
}
143
144
144
- impl CrateData {
145
+ impl DefMapCrateData {
145
146
fn shrink_to_fit ( & mut self ) {
146
147
let Self {
147
148
extern_prelude,
@@ -342,7 +343,7 @@ impl DefMap {
342
343
macro_use_prelude : FxHashMap :: default ( ) ,
343
344
derive_helpers_in_scope : FxHashMap :: default ( ) ,
344
345
diagnostics : Vec :: new ( ) ,
345
- data : Arc :: new ( CrateData {
346
+ data : Arc :: new ( DefMapCrateData {
346
347
extern_prelude : FxHashMap :: default ( ) ,
347
348
exported_derives : FxHashMap :: default ( ) ,
348
349
fn_proc_macro_mapping : FxHashMap :: default ( ) ,
0 commit comments