@@ -258,13 +258,13 @@ fn add_query_description_impl(query: &Query, impls: &mut proc_macro2::TokenStrea
258
258
let try_load_from_disk = if let Some ( ( tcx, id, block) ) = modifiers. load_cached . as_ref ( ) {
259
259
// Use custom code to load the query from disk
260
260
quote ! {
261
- const TRY_LOAD_FROM_DISK : Option <fn ( QueryCtxt <$ tcx>, SerializedDepNodeIndex ) -> Option <Self :: Value >>
261
+ const TRY_LOAD_FROM_DISK : Option <fn ( QueryCtxt <' tcx>, SerializedDepNodeIndex ) -> Option <Self :: Value >>
262
262
= Some ( |#tcx, #id| { #block } ) ;
263
263
}
264
264
} else {
265
265
// Use the default code to load the query from disk
266
266
quote ! {
267
- const TRY_LOAD_FROM_DISK : Option <fn ( QueryCtxt <$ tcx>, SerializedDepNodeIndex ) -> Option <Self :: Value >>
267
+ const TRY_LOAD_FROM_DISK : Option <fn ( QueryCtxt <' tcx>, SerializedDepNodeIndex ) -> Option <Self :: Value >>
268
268
= Some ( |tcx, id| tcx. on_disk_cache( ) . as_ref( ) ?. try_load_query_result( * tcx, id) ) ;
269
269
}
270
270
} ;
@@ -291,7 +291,7 @@ fn add_query_description_impl(query: &Query, impls: &mut proc_macro2::TokenStrea
291
291
false
292
292
}
293
293
294
- const TRY_LOAD_FROM_DISK : Option <fn ( QueryCtxt <$ tcx>, SerializedDepNodeIndex ) -> Option <Self :: Value >> = None ;
294
+ const TRY_LOAD_FROM_DISK : Option <fn ( QueryCtxt <' tcx>, SerializedDepNodeIndex ) -> Option <Self :: Value >> = None ;
295
295
}
296
296
} ;
297
297
@@ -300,7 +300,7 @@ fn add_query_description_impl(query: &Query, impls: &mut proc_macro2::TokenStrea
300
300
301
301
let desc = quote ! {
302
302
#[ allow( unused_variables) ]
303
- fn describe( tcx: QueryCtxt <$ tcx>, key: Self :: Key ) -> String {
303
+ fn describe( tcx: QueryCtxt <' tcx>, key: Self :: Key ) -> String {
304
304
let ( #tcx, #key) = ( * tcx, key) ;
305
305
:: rustc_middle:: ty:: print:: with_no_trimmed_paths!(
306
306
format!( #desc)
@@ -309,7 +309,7 @@ fn add_query_description_impl(query: &Query, impls: &mut proc_macro2::TokenStrea
309
309
} ;
310
310
311
311
impls. extend ( quote ! {
312
- ( #name<$tcx : tt> ) => {
312
+ ( #name) => {
313
313
#desc
314
314
#cache
315
315
} ;
0 commit comments