File tree 3 files changed +4
-4
lines changed
rustc_middle/src/ty/query
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ pub fn rustc_queries(input: TokenStream) -> TokenStream {
490
490
// Add the query to the group
491
491
query_stream. extend ( quote ! {
492
492
#( #doc_comments) *
493
- [ #attribute_stream] fn #name: #name ( #arg) #result,
493
+ [ #attribute_stream] fn #name( #arg) #result,
494
494
} ) ;
495
495
496
496
// Create a dep node for the query
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ macro_rules! query_helper_param_ty {
250
250
macro_rules! define_queries {
251
251
( <$tcx: tt>
252
252
$( $( #[ $attr: meta] ) *
253
- [ $( $modifiers: tt) * ] fn $name: ident: $node : ident ( $( $K: tt) * ) -> $V: ty, ) * ) => {
253
+ [ $( $modifiers: tt) * ] fn $name: ident( $( $K: tt) * ) -> $V: ty, ) * ) => {
254
254
255
255
use std:: mem;
256
256
use crate :: {
@@ -356,7 +356,7 @@ macro_rules! define_queries {
356
356
impl <$tcx> QueryAccessors <TyCtxt <$tcx>> for queries:: $name<$tcx> {
357
357
const ANON : bool = is_anon!( [ $( $modifiers) * ] ) ;
358
358
const EVAL_ALWAYS : bool = is_eval_always!( [ $( $modifiers) * ] ) ;
359
- const DEP_KIND : dep_graph:: DepKind = dep_graph:: DepKind :: $node ;
359
+ const DEP_KIND : dep_graph:: DepKind = dep_graph:: DepKind :: $name ;
360
360
361
361
type Cache = query_storage!( [ $( $modifiers) * ] [ $( $K) * , $V] ) ;
362
362
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ pub fn print_stats(tcx: TyCtxt<'_>) {
121
121
122
122
macro_rules! print_stats {
123
123
( <$tcx: tt>
124
- $( $( #[ $attr: meta] ) * [ $( $modifiers: tt) * ] fn $name: ident: $node : ident ( $K: ty) -> $V: ty, ) *
124
+ $( $( #[ $attr: meta] ) * [ $( $modifiers: tt) * ] fn $name: ident( $K: ty) -> $V: ty, ) *
125
125
) => {
126
126
fn query_stats( tcx: TyCtxt <' _>) -> Vec <QueryStats > {
127
127
let mut queries = Vec :: new( ) ;
You can’t perform that action at this time.
0 commit comments