avoid &str
to String
conversions
This commit is contained in:
parent
5188bdbccd
commit
f65bf0b2bb
1 changed files with 2 additions and 2 deletions
|
@ -508,7 +508,7 @@ impl<'a> Resolver<'a> {
|
||||||
E0401,
|
E0401,
|
||||||
"can't use generic parameters from outer function",
|
"can't use generic parameters from outer function",
|
||||||
);
|
);
|
||||||
err.span_label(span, "use of generic parameter from outer function".to_string());
|
err.span_label(span, "use of generic parameter from outer function");
|
||||||
|
|
||||||
let sm = self.session.source_map();
|
let sm = self.session.source_map();
|
||||||
match outer_res {
|
match outer_res {
|
||||||
|
@ -990,7 +990,7 @@ impl<'a> Resolver<'a> {
|
||||||
E0735,
|
E0735,
|
||||||
"generic parameters cannot use `Self` in their defaults"
|
"generic parameters cannot use `Self` in their defaults"
|
||||||
);
|
);
|
||||||
err.span_label(span, "`Self` in generic parameter default".to_string());
|
err.span_label(span, "`Self` in generic parameter default");
|
||||||
err
|
err
|
||||||
}
|
}
|
||||||
ResolutionError::UnreachableLabel { name, definition_span, suggestion } => {
|
ResolutionError::UnreachableLabel { name, definition_span, suggestion } => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue