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`
This commit is contained in:
commit
4065b89b1e
6 changed files with 16 additions and 16 deletions
|
@ -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.
|
||||
|
|
|
@ -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>;
|
||||
|
||||
|
|
|
@ -320,5 +320,5 @@ pub fn alloc_self_profile_query_strings(tcx: TyCtxt<'_>) {
|
|||
}
|
||||
}
|
||||
|
||||
rustc_query_append! { [alloc_once!] }
|
||||
rustc_query_append! { alloc_once! }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue