@@ -113,11 +113,12 @@ pub struct DefMap {
113113
114114 diagnostics : Vec < DefDiagnostic > ,
115115
116- data : Arc < CrateData > ,
116+ data : Arc < DefMapCrateData > ,
117117}
118118
119+ /// Data that belongs to a crate which is shared between a crate's def map and all its block def maps.
119120#[ derive( Clone , Debug , PartialEq , Eq ) ]
120- struct CrateData {
121+ struct DefMapCrateData {
121122 extern_prelude : FxHashMap < Name , ModuleId > ,
122123
123124 /// Side table for resolving derive helpers.
@@ -141,7 +142,7 @@ struct CrateData {
141142 recursion_limit : Option < u32 > ,
142143}
143144
144- impl CrateData {
145+ impl DefMapCrateData {
145146 fn shrink_to_fit ( & mut self ) {
146147 let Self {
147148 extern_prelude,
@@ -342,7 +343,7 @@ impl DefMap {
342343 macro_use_prelude : FxHashMap :: default ( ) ,
343344 derive_helpers_in_scope : FxHashMap :: default ( ) ,
344345 diagnostics : Vec :: new ( ) ,
345- data : Arc :: new ( CrateData {
346+ data : Arc :: new ( DefMapCrateData {
346347 extern_prelude : FxHashMap :: default ( ) ,
347348 exported_derives : FxHashMap :: default ( ) ,
348349 fn_proc_macro_mapping : FxHashMap :: default ( ) ,
0 commit comments