about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/format.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-21 10:42:00 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-23 13:23:28 +1100
commit49040d088a87a2fa8cec4c644f00ef304a80ccf0 (patch)
tree95cb76cd841bdbfbf897a4b1138ba18adfc1a798 /compiler/rustc_builtin_macros/src/format.rs
parentce0f703554f3828f2d470679cd1e83b52667bf20 (diff)
downloadrust-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.rs1
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.