about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2021-09-28 09:37:11 -0700
committerManish Goregaokar <manishsmail@gmail.com>2021-09-28 09:37:58 -0700
commit53c534d11b289c8587128929306ad50cd3fe02f9 (patch)
tree8c9048093c49997c1796ea370af950d9ec94a597
parent25850fc264ff71fcdbfd3594e8d5a299d7dbe2c0 (diff)
downloadrust-53c534d11b289c8587128929306ad50cd3fe02f9.tar.gz
rust-53c534d11b289c8587128929306ad50cd3fe02f9.zip
Update clippy_lints/src/doc.rs
Co-authored-by: Cameron Steffen <cam.steffen94@gmail.com>
-rw-r--r--clippy_lints/src/doc.rs2
-rw-r--r--tests/ui/doc_unsafe.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/doc.rs b/clippy_lints/src/doc.rs
index 0a9edfd7334..ce540c38478 100644
--- a/clippy_lints/src/doc.rs
+++ b/clippy_lints/src/doc.rs
@@ -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",
                     );
                 }
             },
diff --git a/tests/ui/doc_unsafe.stderr b/tests/ui/doc_unsafe.stderr
index d540abd1262..34ca37a6efd 100644
--- a/tests/ui/doc_unsafe.stderr
+++ b/tests/ui/doc_unsafe.stderr
@@ -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 {