From 03d7ae81535f9427501da6f7091b73307a9ea908 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 13 Mar 2024 19:31:01 +0100 Subject: [PATCH] Also handle `
` and `` HTML tags --- clippy_lints/src/doc/mod.rs | 4 ++++ tests/ui/doc/issue_10262.fixed | 4 ++++ tests/ui/doc/issue_10262.rs | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/clippy_lints/src/doc/mod.rs b/clippy_lints/src/doc/mod.rs index 10fc9ef6ecf..9bf5d2652b3 100644 --- a/clippy_lints/src/doc/mod.rs +++ b/clippy_lints/src/doc/mod.rs @@ -611,6 +611,10 @@ fn check_doc<'a, Events: Iterator, Range blockquote_level += 1, diff --git a/tests/ui/doc/issue_10262.fixed b/tests/ui/doc/issue_10262.fixed index 8ca6f3e9718..5d067736d55 100644 --- a/tests/ui/doc/issue_10262.fixed +++ b/tests/ui/doc/issue_10262.fixed @@ -5,4 +5,8 @@ //~^ ERROR: item in documentation is missing backticks /// /// > AvisynthPluginInit3 may be called more than once with different IScriptEnvironments. +/// +///
bla AvisynthPluginInit3 bla
+/// +/// bla AvisynthPluginInit3 bla pub struct Foo; diff --git a/tests/ui/doc/issue_10262.rs b/tests/ui/doc/issue_10262.rs index 67183b63cdf..e2cbd938d5d 100644 --- a/tests/ui/doc/issue_10262.rs +++ b/tests/ui/doc/issue_10262.rs @@ -5,4 +5,8 @@ //~^ ERROR: item in documentation is missing backticks /// /// > AvisynthPluginInit3 may be called more than once with different IScriptEnvironments. +/// +///
bla AvisynthPluginInit3 bla
+/// +/// bla AvisynthPluginInit3 bla pub struct Foo;