File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
rustc_middle/src/ty/query Expand file tree Collapse file tree 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 {
490490 // Add the query to the group
491491 query_stream. extend ( quote ! {
492492 #( #doc_comments) *
493- [ #attribute_stream] fn #name: #name ( #arg) #result,
493+ [ #attribute_stream] fn #name( #arg) #result,
494494 } ) ;
495495
496496 // 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 {
250250macro_rules! define_queries {
251251 ( <$tcx: tt>
252252 $( $( #[ $attr: meta] ) *
253- [ $( $modifiers: tt) * ] fn $name: ident: $node : ident ( $( $K: tt) * ) -> $V: ty, ) * ) => {
253+ [ $( $modifiers: tt) * ] fn $name: ident( $( $K: tt) * ) -> $V: ty, ) * ) => {
254254
255255 use std:: mem;
256256 use crate :: {
@@ -356,7 +356,7 @@ macro_rules! define_queries {
356356 impl <$tcx> QueryAccessors <TyCtxt <$tcx>> for queries:: $name<$tcx> {
357357 const ANON : bool = is_anon!( [ $( $modifiers) * ] ) ;
358358 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 ;
360360
361361 type Cache = query_storage!( [ $( $modifiers) * ] [ $( $K) * , $V] ) ;
362362
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ pub fn print_stats(tcx: TyCtxt<'_>) {
121121
122122macro_rules! print_stats {
123123 ( <$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, ) *
125125 ) => {
126126 fn query_stats( tcx: TyCtxt <' _>) -> Vec <QueryStats > {
127127 let mut queries = Vec :: new( ) ;
You can’t perform that action at this time.
0 commit comments