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 25850fc commit 53c534dCopy full SHA for 53c534d
clippy_lints/src/doc.rs
@@ -242,7 +242,7 @@ impl<'tcx> LateLintPass<'tcx> for DocMarkdown {
242
cx,
243
MISSING_SAFETY_DOC,
244
item.span,
245
- "unsafe trait's docs miss `# Safety` section",
+ "docs for unsafe trait missing `# Safety` section",
246
);
247
}
248
},
tests/ui/doc_unsafe.stderr
@@ -22,7 +22,7 @@ error: unsafe function's docs miss `# Safety` section
22
LL | unsafe fn woefully_underdocumented(self);
23
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25
-error: unsafe trait's docs miss `# Safety` section
+error: docs for unsafe trait missing `# Safety` section
26
--> $DIR/doc_unsafe.rs:44:1
27
|
28
LL | / pub unsafe trait UnsafeTrait {
0 commit comments