diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-21 10:42:00 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-23 13:23:28 +1100 |
| commit | 49040d088a87a2fa8cec4c644f00ef304a80ccf0 (patch) | |
| tree | 95cb76cd841bdbfbf897a4b1138ba18adfc1a798 /compiler/rustc_builtin_macros/src/format.rs | |
| parent | ce0f703554f3828f2d470679cd1e83b52667bf20 (diff) | |
| download | rust-49040d088a87a2fa8cec4c644f00ef304a80ccf0.tar.gz rust-49040d088a87a2fa8cec4c644f00ef304a80ccf0.zip | |
Remove `LabelKind`.
It has three variants, but only `LabelKind::Label` is ever used. This means `SingleLabelManySpans::kind` can also be removed.
Diffstat (limited to 'compiler/rustc_builtin_macros/src/format.rs')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/format.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/format.rs b/compiler/rustc_builtin_macros/src/format.rs index 58e18825ed6..2f23146096f 100644 --- a/compiler/rustc_builtin_macros/src/format.rs +++ b/compiler/rustc_builtin_macros/src/format.rs @@ -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. |
