avoid some &str to String conversions

This commit is contained in:
Takayuki Maeda 2022-07-10 03:18:56 +09:00
parent fac8fa5672
commit bda83e6543
13 changed files with 23 additions and 34 deletions

View file

@ -406,7 +406,7 @@ fn report_conflicting_impls(
let mut err = err.build(&msg);
match tcx.span_of_impl(overlap.with_impl) {
Ok(span) => {
err.span_label(span, "first implementation here".to_string());
err.span_label(span, "first implementation here");
err.span_label(
impl_span,