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:
commit
04ebb635a4
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue