Remove LabelKind
.
It has three variants, but only `LabelKind::Label` is ever used. This means `SingleLabelManySpans::kind` can also be removed.
This commit is contained in:
parent
ce0f703554
commit
49040d088a
3 changed files with 2 additions and 16 deletions
|
@ -883,7 +883,6 @@ fn report_invalid_references(
|
|||
highlight: SingleLabelManySpans {
|
||||
spans: args.explicit_args().iter().map(|arg| arg.expr.span).collect(),
|
||||
label: "",
|
||||
kind: rustc_errors::LabelKind::Label,
|
||||
},
|
||||
});
|
||||
// Point out `{:.*}` placeholders: those take an extra argument.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue