Switch query descriptions to just String

In practice we never used the borrowed variant anyway.
This commit is contained in:
Mark Rousskov 2021-02-08 17:20:41 -05:00
parent 921ec4b3fc
commit f564d7abba
5 changed files with 5 additions and 8 deletions

View file

@ -417,8 +417,8 @@ fn add_query_description_impl(
fn describe(
#tcx: TyCtxt<'tcx>,
#key: #arg,
) -> Cow<'static, str> {
::rustc_middle::ty::print::with_no_trimmed_paths(|| format!(#desc).into())
) -> String {
::rustc_middle::ty::print::with_no_trimmed_paths(|| format!(#desc))
}
};