Rollup merge of #98668 - TaKO8Ki:avoid-many-&str-to-string-conversions, r=Dylan-DPC
Avoid some `&str` to `String` conversions with `MultiSpan::push_span_label` This patch removes some`&str` to `String` conversions with `MultiSpan::push_span_label`.
This commit is contained in:
commit
d34c4ca9be
17 changed files with 38 additions and 66 deletions
|
@ -947,7 +947,7 @@ fn adt_defined_here<'p, 'tcx>(
|
|||
|
||||
span.push_span_label(def_span, String::new());
|
||||
for pat in spans {
|
||||
span.push_span_label(pat, "not covered".to_string());
|
||||
span.push_span_label(pat, "not covered");
|
||||
}
|
||||
err.span_note(span, &format!("`{}` defined here", ty));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue