Skip to content
/ rust Public
forked from rust-lang/rust

Commit f468cef

Browse files
committed
Format the duplicate macro
1 parent 0dd591a commit f468cef

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

  • compiler/rustc_attr_parsing/src/attributes/diagnostic

compiler/rustc_attr_parsing/src/attributes/diagnostic/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,16 @@ fn parse_directive_items<'p, S: Stage>(
177177
macro duplicate($name: ident, $($first_span:tt)*) {{
178178
if matches!(mode, Mode::RustcOnUnimplemented) {
179179
cx.emit_err(NoValueInOnUnimplemented { span: item.span() });
180-
}else{
180+
} else {
181181
cx.emit_lint(
182-
MALFORMED_DIAGNOSTIC_ATTRIBUTES,
183-
AttributeLintKind::IgnoredDiagnosticOption {
184-
first_span: $($first_span)*,
185-
later_span: span,
186-
option_name: $name,
187-
},
188-
span,
189-
);
182+
MALFORMED_DIAGNOSTIC_ATTRIBUTES,
183+
AttributeLintKind::IgnoredDiagnosticOption {
184+
first_span: $($first_span)*,
185+
later_span: span,
186+
option_name: $name,
187+
},
188+
span,
189+
);
190190
}
191191
}}
192192

0 commit comments

Comments
 (0)