@@ -86,7 +86,7 @@ struct QueryModifiers {
86
86
desc : ( Option < Ident > , Punctuated < Expr , Token ! [ , ] > ) ,
87
87
88
88
/// Use this type for the in-memory cache.
89
- storage : Option < Type > ,
89
+ arena_cache : Option < Ident > ,
90
90
91
91
/// Cache the query to disk if the `Block` returns true.
92
92
cache : Option < ( Option < Pat > , Block ) > ,
@@ -121,7 +121,7 @@ struct QueryModifiers {
121
121
122
122
fn parse_query_modifiers ( input : ParseStream < ' _ > ) -> Result < QueryModifiers > {
123
123
let mut load_cached = None ;
124
- let mut storage = None ;
124
+ let mut arena_cache = None ;
125
125
let mut cache = None ;
126
126
let mut desc = None ;
127
127
let mut fatal_cycle = None ;
@@ -183,11 +183,8 @@ fn parse_query_modifiers(input: ParseStream<'_>) -> Result<QueryModifiers> {
183
183
let id = args. parse ( ) ?;
184
184
let block = input. parse ( ) ?;
185
185
try_insert ! ( load_cached = ( tcx, id, block) ) ;
186
- } else if modifier == "storage" {
187
- let args;
188
- parenthesized ! ( args in input) ;
189
- let ty = args. parse ( ) ?;
190
- try_insert ! ( storage = ty) ;
186
+ } else if modifier == "arena_cache" {
187
+ try_insert ! ( arena_cache = modifier) ;
191
188
} else if modifier == "fatal_cycle" {
192
189
try_insert ! ( fatal_cycle = modifier) ;
193
190
} else if modifier == "cycle_delay_bug" {
@@ -213,7 +210,7 @@ fn parse_query_modifiers(input: ParseStream<'_>) -> Result<QueryModifiers> {
213
210
} ;
214
211
Ok ( QueryModifiers {
215
212
load_cached,
216
- storage ,
213
+ arena_cache ,
217
214
cache,
218
215
desc,
219
216
fatal_cycle,
@@ -351,10 +348,9 @@ pub fn rustc_queries(input: TokenStream) -> TokenStream {
351
348
if let Some ( fatal_cycle) = & modifiers. fatal_cycle {
352
349
attributes. push ( quote ! { ( #fatal_cycle) } ) ;
353
350
} ;
354
- // Pass on the storage modifier
355
- if let Some ( ref ty) = modifiers. storage {
356
- let span = ty. span ( ) ;
357
- attributes. push ( quote_spanned ! { span=> ( storage #ty) } ) ;
351
+ // Pass on the arena modifier
352
+ if let Some ( ref arena_cache) = modifiers. arena_cache {
353
+ attributes. push ( quote ! { span=> ( #arena_cache) } ) ;
358
354
} ;
359
355
// Pass on the cycle_delay_bug modifier
360
356
if let Some ( cycle_delay_bug) = & modifiers. cycle_delay_bug {
0 commit comments