Rollup merge of #152017 - Zoxc:query-rem-with_no_trimmed_paths, r=lqd

Remove `with_no_trimmed_paths` use in query macro

We already use `with_no_trimmed_paths!` when calling query descriptors so the extra call generated by the macro is not needed.
This commit is contained in:
Stuart Cook 2026-02-03 21:58:41 +11:00 committed by GitHub
commit 04ebb635a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -303,9 +303,7 @@ fn add_query_desc_cached_impl(
#[allow(unused_variables)]
pub fn #name<'tcx>(tcx: TyCtxt<'tcx>, key: crate::query::queries::#name::Key<'tcx>) -> String {
let (#tcx, #key) = (tcx, key);
::rustc_middle::ty::print::with_no_trimmed_paths!(
format!(#desc)
)
format!(#desc)
}
};