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 94434f1 commit 40a9481Copy full SHA for 40a9481
src/libsyntax/parse/parser.rs
@@ -4617,11 +4617,13 @@ impl<'a> Parser<'a> {
4617
_ => false,
4618
};
4619
if is_macro_rules {
4620
- self.diagnostic().struct_span_err(span, "can't qualify macro_rules invocation with `pub`")
+ self.diagnostic().struct_span_err(span, "can't qualify macro_rules \
4621
+ invocation with `pub`")
4622
.fileline_help(span, "did you mean #[macro_export]?")
4623
.emit();
4624
} else {
- self.diagnostic().struct_span_err(span, "can't qualify macro invocation with `pub`")
4625
+ self.diagnostic().struct_span_err(span, "can't qualify macro \
4626
4627
.fileline_help(span, "try adjusting the macro to put `pub` \
4628
inside the invocation")
4629
0 commit comments