avoid &str
/Symbol
to String
conversions
This commit is contained in:
parent
bf1a5e72f4
commit
051e98b7bf
6 changed files with 19 additions and 14 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