diff options
| author | bors <bors@rust-lang.org> | 2022-08-27 08:53:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-08-27 08:53:24 +0000 |
| commit | 4065b89b1e7287047d7d6c65e7abd7b8ee70bcf0 (patch) | |
| tree | 2032680763d0fabe8cd59c556be7f471f71ce50f /compiler/rustc_query_impl | |
| parent | d0e1491ecd6ab30a47ebe29f8a86463eacc6a997 (diff) | |
| parent | b061550ed351751db4bb3dcc356f44daa9a3542d (diff) | |
| download | rust-4065b89b1e7287047d7d6c65e7abd7b8ee70bcf0.tar.gz rust-4065b89b1e7287047d7d6c65e7abd7b8ee70bcf0.zip | |
Auto merge of #100946 - jyn514:query-system-3, r=cjgillot
Simplify the arguments to macros generated by the `rustc_queries` proc macro Very small cleanup. Based on https://github.com/rust-lang/rust/pull/100436 which modifies some of the same code. r? `@cjgillot`
Diffstat (limited to 'compiler/rustc_query_impl')
| -rw-r--r-- | compiler/rustc_query_impl/src/lib.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_query_impl/src/plumbing.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_query_impl/src/profiling_support.rs | 2 |
3 files changed, 3 insertions, 3 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/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index 3aac4080efc..eab627c5d4c 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -339,7 +339,7 @@ macro_rules! define_queries { } impl<'tcx> QueryDescription<QueryCtxt<'tcx>> for queries::$name<'tcx> { - rustc_query_description! { $name<'tcx> } + rustc_query_description! { $name } type Cache = query_storage::$name<'tcx>; 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! } } |
