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:
Nicholas Nethercote 2023-12-21 10:42:00 +11:00
parent ce0f703554
commit 49040d088a
3 changed files with 2 additions and 16 deletions

View file

@ -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.