File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -566,7 +566,7 @@ pub trait LintContext: Sized {
566566 stability:: deprecation_suggestion ( & mut db, suggestion, span)
567567 }
568568 BuiltinLintDiagnostics :: UnusedDocComment ( span) => {
569- db. span_label ( span, "rustdoc does not generate documentation for macros " ) ;
569+ db. span_label ( span, "rustdoc does not generate documentation for macro invocations " ) ;
570570 db. help ( "to document an item produced by a macro, \
571571 the macro must produce the documentation as part of its expansion") ;
572572 }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error: unused doc comment
22 --> $DIR/useless-comment.rs:9:1
33 |
44LL | /// foo
5- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macros
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
66 |
77note: the lint level is defined here
88 --> $DIR/useless-comment.rs:3:9
@@ -15,7 +15,7 @@ error: unused doc comment
1515 --> $DIR/useless-comment.rs:32:5
1616 |
1717LL | /// bar
18- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macros
18+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
1919 |
2020 = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
2121
You can’t perform that action at this time.
0 commit comments