Rollup merge of #99718 - TaKO8Ki:avoid-&str-symbol-to-string-conversions, r=michaelwoerister
Avoid `&str`/`Symbol` to `String` conversions follow-up to #99342 and #98668
This commit is contained in:
commit
85afb90788
7 changed files with 19 additions and 25 deletions
|
@ -565,8 +565,7 @@ impl<'a> Resolver<'a> {
|
|||
} else if let Some(sp) = sm.generate_fn_name_span(span) {
|
||||
err.span_label(
|
||||
sp,
|
||||
"try adding a local generic parameter in this method instead"
|
||||
.to_string(),
|
||||
"try adding a local generic parameter in this method instead",
|
||||
);
|
||||
} else {
|
||||
err.help("try using a local generic parameter instead");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue