]> git.lizzy.rs Git - rust.git/commitdiff
Update clippy_lints/src/doc.rs
authorManish Goregaokar <manishsmail@gmail.com>
Tue, 28 Sep 2021 16:37:11 +0000 (09:37 -0700)
committerManish Goregaokar <manishsmail@gmail.com>
Tue, 28 Sep 2021 16:37:58 +0000 (09:37 -0700)
Co-authored-by: Cameron Steffen <cam.steffen94@gmail.com>
clippy_lints/src/doc.rs
tests/ui/doc_unsafe.stderr

index 0a9edfd733460cf5a80d07bfc0d442f0fd33a82b..ce540c38478de8cdfcb93704e7279d7beb5de372 100644 (file)
@@ -242,7 +242,7 @@ fn check_item(&mut self, cx: &LateContext<'tcx>, item: &'tcx hir::Item<'_>) {
                         cx,
                         MISSING_SAFETY_DOC,
                         item.span,
-                        "unsafe trait's docs miss `# Safety` section",
+                        "docs for unsafe trait missing `# Safety` section",
                     );
                 }
             },
index d540abd126213b9483e655c74321b14eb43f59dd..34ca37a6efdc0197c9b115dd6ccb81980f41557a 100644 (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 {