Rollup merge of #99103 - TaKO8Ki:avoid-&str-to-string-conversions, r=oli-obk

Avoid some `&str` to `String` conversions

This patch removes some `&str` to `String` conversions.
This commit is contained in:
Matthias Krüger 2022-07-10 11:52:17 +02:00 committed by GitHub
commit 86af7135ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 23 additions and 34 deletions

View file

@ -943,10 +943,7 @@ impl<'a> Resolver<'a> {
"generic parameters with a default cannot use \
forward declared identifiers"
);
err.span_label(
span,
"defaulted generic parameters cannot be forward declared".to_string(),
);
err.span_label(span, "defaulted generic parameters cannot be forward declared");
err
}
ResolutionError::ParamInTyOfConstParam(name) => {