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:
Joshua Nelson 2022-08-11 19:54:42 -05:00
parent 87991d5f5d
commit b53761969f
6 changed files with 49 additions and 55 deletions

View 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 @@ pub fn alloc_self_profile_query_strings(tcx: TyCtxt<'_>) {
}
}
rustc_query_append! { [alloc_once!][<'tcx>] }
rustc_query_append! { [alloc_once!] }
}