about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorJoshua Nelson <jnelson@cloudflare.com>2022-08-24 00:02:37 -0500
committerJoshua Nelson <jnelson@cloudflare.com>2022-08-24 00:37:49 -0500
commit7b8e2a52ff29d400b4d869fad1d917ffa9bdce59 (patch)
tree636f16eae4d3f7948678fcf7449770f8e23e6588 /compiler/rustc_query_impl/src
parente188868014da60bc266024e60c914b532445c743 (diff)
downloadrust-7b8e2a52ff29d400b4d869fad1d917ffa9bdce59.tar.gz
rust-7b8e2a52ff29d400b4d869fad1d917ffa9bdce59.zip
Simplify the syntax for macros generated by `rustc_queries`
- Disallow multiple macros callbacks in the same invocation. In practice, this was never used.
- Remove the `[]` brackets around the macro name
- Require an `ident`, not an arbitrary `tt`
Diffstat (limited to 'compiler/rustc_query_impl/src')
-rw-r--r--compiler/rustc_query_impl/src/lib.rs2
-rw-r--r--compiler/rustc_query_impl/src/profiling_support.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_query_impl/src/lib.rs b/compiler/rustc_query_impl/src/lib.rs
index 946bc34fea1..8ea09880694 100644
--- a/compiler/rustc_query_impl/src/lib.rs
+++ b/compiler/rustc_query_impl/src/lib.rs
@@ -54,7 +54,7 @@ fn describe_as_module(def_id: LocalDefId, tcx: TyCtxt<'_>) -> String {
     }
 }
 
-rustc_query_append! { [define_queries!] }
+rustc_query_append! { define_queries! }
 
 impl<'tcx> Queries<'tcx> {
     // Force codegen in the dyn-trait transformation in this crate.
diff --git a/compiler/rustc_query_impl/src/profiling_support.rs b/compiler/rustc_query_impl/src/profiling_support.rs
index 34586750947..260af0d5408 100644
--- a/compiler/rustc_query_impl/src/profiling_support.rs
+++ b/compiler/rustc_query_impl/src/profiling_support.rs
@@ -320,5 +320,5 @@ pub fn alloc_self_profile_query_strings(tcx: TyCtxt<'_>) {
         }
     }
 
-    rustc_query_append! { [alloc_once!] }
+    rustc_query_append! { alloc_once! }
 }