We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dd591a commit f468cefCopy full SHA for f468cef
1 file changed
compiler/rustc_attr_parsing/src/attributes/diagnostic/mod.rs
@@ -177,16 +177,16 @@ fn parse_directive_items<'p, S: Stage>(
177
macro duplicate($name: ident, $($first_span:tt)*) {{
178
if matches!(mode, Mode::RustcOnUnimplemented) {
179
cx.emit_err(NoValueInOnUnimplemented { span: item.span() });
180
- }else{
+ } else {
181
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
- );
+ MALFORMED_DIAGNOSTIC_ATTRIBUTES,
+ AttributeLintKind::IgnoredDiagnosticOption {
+ first_span: $($first_span)*,
+ later_span: span,
+ option_name: $name,
+ },
+ span,
+ );
190
}
191
}}
192
0 commit comments