File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,6 @@ pub trait DefDatabase: InternDatabase + ExpandDatabase + Upcast<dyn ExpandDataba
93
93
///
94
94
/// The `block_def_map` for block 0 would return `None`, while `block_def_map` of block 1 would
95
95
/// return a `DefMap` containing `inner`.
96
- // FIXME: This actually can't return None anymore as we no longer allocate block scopes for
97
- // non item declaring blocks
98
96
#[ salsa:: invoke( DefMap :: block_def_map_query) ]
99
97
fn block_def_map ( & self , block : BlockId ) -> Arc < DefMap > ;
100
98
Original file line number Diff line number Diff line change @@ -166,6 +166,12 @@ impl RootDatabase {
166
166
. copied ( )
167
167
. unwrap_or ( base_db:: DEFAULT_LRU_CAP ) ,
168
168
) ;
169
+ hir_db:: MacroExpandQuery . in_db_mut ( self ) . set_lru_capacity (
170
+ lru_capacities
171
+ . get ( stringify ! ( MacroExpandQuery ) )
172
+ . copied ( )
173
+ . unwrap_or ( base_db:: DEFAULT_LRU_CAP ) ,
174
+ ) ;
169
175
170
176
macro_rules! update_lru_capacity_per_query {
171
177
( $( $module: ident :: $query: ident ) * ) => { $(
You can’t perform that action at this time.
0 commit comments