We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e65c96e commit df7fd11Copy full SHA for df7fd11
compiler/rustc_builtin_macros/src/format.rs
@@ -236,10 +236,8 @@ pub fn make_format_args(
236
if let Some(note) = err.note {
237
e.note(¬e);
238
}
239
- if let Some((label, span)) = err.secondary_label {
240
- if is_literal {
241
- e.span_label(fmt_span.from_inner(InnerSpan::new(span.start, span.end)), label);
242
- }
+ if let Some((label, span)) = err.secondary_label && is_literal {
+ e.span_label(fmt_span.from_inner(InnerSpan::new(span.start, span.end)), label);
243
244
if err.should_be_replaced_with_positional_argument {
245
let captured_arg_span =
0 commit comments