Update clippy_lints/src/doc.rs

Co-authored-by: Cameron Steffen <cam.steffen94@gmail.com>
This commit is contained in:
Manish Goregaokar 2021-09-28 09:37:11 -07:00
parent 25850fc264
commit 53c534d11b
2 changed files with 2 additions and 2 deletions

View file

@ -242,7 +242,7 @@ impl<'tcx> LateLintPass<'tcx> for DocMarkdown {
cx,
MISSING_SAFETY_DOC,
item.span,
"unsafe trait's docs miss `# Safety` section",
"docs for unsafe trait missing `# Safety` section",
);
}
},

View file

@ -22,7 +22,7 @@ error: unsafe function's docs miss `# Safety` section
LL | unsafe fn woefully_underdocumented(self);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: unsafe trait's docs miss `# Safety` section
error: docs for unsafe trait missing `# Safety` section
--> $DIR/doc_unsafe.rs:44:1
|
LL | / pub unsafe trait UnsafeTrait {