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 2bc2a0d commit 5180632Copy full SHA for 5180632
compiler/rustc_attr_parsing/src/attributes/doc.rs
@@ -358,10 +358,14 @@ impl DocParser {
358
return;
359
}
360
361
- if self.attribute.$ident.is_some() {
362
- cx.duplicate_key(path.span(), path.word_sym().unwrap());
363
- return;
364
- }
+ // FIXME: It's errorring when the attribute is passed multiple times on the command
+ // line.
+ // The right fix for this would be to only check this rule if the attribute is
+ // not set on the command line but directly in the code.
365
+ // if self.attribute.$ident.is_some() {
366
+ // cx.duplicate_key(path.span(), path.word_sym().unwrap());
367
+ // return;
368
+ // }
369
370
self.attribute.$ident = Some(path.span());
371
}};
0 commit comments