Remove $tcx
metavariable from rustc_query_append
It's not actually necessary and it makes the code harder to read.
This commit is contained in:
parent
87991d5f5d
commit
b53761969f
6 changed files with 49 additions and 55 deletions
|
@ -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 @@ pub fn alloc_self_profile_query_strings(tcx: TyCtxt<'_>) {
|
|||
}
|
||||
}
|
||||
|
||||
rustc_query_append! { [alloc_once!][<'tcx>] }
|
||||
rustc_query_append! { [alloc_once!] }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue