Move ty::print methods to Drop-based scope guards
This commit is contained in:
parent
393fdc1048
commit
9763486034
30 changed files with 142 additions and 142 deletions
|
@ -434,7 +434,9 @@ fn add_query_description_impl(
|
|||
#[allow(unused_variables)]
|
||||
fn describe(tcx: QueryCtxt<$tcx>, key: Self::Key) -> String {
|
||||
let (#tcx, #key) = (*tcx, key);
|
||||
::rustc_middle::ty::print::with_no_trimmed_paths(|| format!(#desc).into())
|
||||
::rustc_middle::ty::print::with_no_trimmed_paths!(
|
||||
format!(#desc)
|
||||
)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue