Switch query descriptions to just String
In practice we never used the borrowed variant anyway.
This commit is contained in:
parent
921ec4b3fc
commit
f564d7abba
5 changed files with 5 additions and 8 deletions
|
@ -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))
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue