about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJason Newcomb <jsnewcomb@pm.me>2025-03-22 14:38:26 +0000
committerGitHub <noreply@github.com>2025-03-22 14:38:26 +0000
commita65cc366f23a274bc534f8b2dfb98552d121ff13 (patch)
tree87356f14ebb40e50c77fd0f45e2a49ced4b1f3a5
parentb41f2e4653bcad53a8f678276b669d99afa08dd0 (diff)
parent3caa1f25d883b8c5a5695b0c9a7717c8ff521a56 (diff)
downloadrust-a65cc366f23a274bc534f8b2dfb98552d121ff13.tar.gz
rust-a65cc366f23a274bc534f8b2dfb98552d121ff13.zip
Add regression tests for `suspicious_doc_comments` (#14268)
Related to #14265 which was fixed automatically by the latest rustup.

changelog: none

*Edit: description, changelog, keep only tests*
-rw-r--r--tests/ui/suspicious_doc_comments.fixed4
-rw-r--r--tests/ui/suspicious_doc_comments.rs4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/suspicious_doc_comments.fixed b/tests/ui/suspicious_doc_comments.fixed
index 3696b0e066d..3faa4b21ee4 100644
--- a/tests/ui/suspicious_doc_comments.fixed
+++ b/tests/ui/suspicious_doc_comments.fixed
@@ -87,4 +87,8 @@ pub mod useless_outer_doc {
     use std::mem;
 }
 
+// Do not lint, this is not a `///!`
+#[doc = "! here's some docs !"]
+fn issue14265() {}
+
 fn main() {}
diff --git a/tests/ui/suspicious_doc_comments.rs b/tests/ui/suspicious_doc_comments.rs
index 4107f5526d1..4af6ed850c2 100644
--- a/tests/ui/suspicious_doc_comments.rs
+++ b/tests/ui/suspicious_doc_comments.rs
@@ -87,4 +87,8 @@ pub mod useless_outer_doc {
     use std::mem;
 }
 
+// Do not lint, this is not a `///!`
+#[doc = "! here's some docs !"]
+fn issue14265() {}
+
 fn main() {}