]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_query_impl/src/profiling_support.rs
Simplify the syntax for macros generated by `rustc_queries`
[rust.git] / compiler / rustc_query_impl / src / profiling_support.rs
index 551f094209e4eff666bef352c7b34ee5f605a546..260af0d54081560e6c35e9fff98d248f862bb422 100644 (file)
@@ -306,7 +306,7 @@ pub fn alloc_self_profile_query_strings(tcx: TyCtxt<'_>) {
     let mut string_cache = QueryKeyStringCache::new();
 
     macro_rules! alloc_once {
-        (<$tcx:tt>
+        (
             $($(#[$attr:meta])* [$($modifiers:tt)*] fn $name:ident($K:ty) -> $V:ty,)*
         ) => {
             $({
@@ -320,5 +320,5 @@ macro_rules! alloc_once {
         }
     }
 
-    rustc_query_append! { [alloc_once!][<'tcx>] }
+    rustc_query_append! { alloc_once! }
 }