avoid &str
/Symbol
to String
conversions
This commit is contained in:
parent
bf1a5e72f4
commit
051e98b7bf
6 changed files with 19 additions and 14 deletions
|
@ -951,7 +951,7 @@ fn adt_defined_here<'p, 'tcx>(
|
|||
let mut span: MultiSpan =
|
||||
if spans.is_empty() { def_span.into() } else { spans.clone().into() };
|
||||
|
||||
span.push_span_label(def_span, String::new());
|
||||
span.push_span_label(def_span, "");
|
||||
for pat in spans {
|
||||
span.push_span_label(pat, "not covered");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue