Update clippy_lints/src/doc.rs
Co-authored-by: Cameron Steffen <cam.steffen94@gmail.com>
This commit is contained in:
parent
25850fc264
commit
53c534d11b
@ -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",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user