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 @@ fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::Item<'_>) {
cx, cx,
MISSING_SAFETY_DOC, MISSING_SAFETY_DOC,
item.span, 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); 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 --> $DIR/doc_unsafe.rs:44:1
| |
LL | / pub unsafe trait UnsafeTrait { LL | / pub unsafe trait UnsafeTrait {