about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2025-04-23 10:51:22 +0200
committerPhilipp Krones <hello@philkrones.com>2025-04-23 10:51:22 +0200
commitdd5948ccc2b10bee9dc3bef7595ea72fec366c86 (patch)
treeb5b410d264e486b6b188d5b56da7de33f11dce64
parentff428d91c2b690b8dbd8cc1e48274870c24fe1e2 (diff)
downloadrust-dd5948ccc2b10bee9dc3bef7595ea72fec366c86.tar.gz
rust-dd5948ccc2b10bee9dc3bef7595ea72fec366c86.zip
Clippy: Fix doc issue
-rw-r--r--clippy_utils/src/source.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_utils/src/source.rs b/clippy_utils/src/source.rs
index 3aa72cf5eaf..8645d5730fe 100644
--- a/clippy_utils/src/source.rs
+++ b/clippy_utils/src/source.rs
@@ -142,6 +142,7 @@ pub trait SpanRangeExt: SpanRange {
         map_range(cx.sess().source_map(), self.into_range(), f)
     }
 
+    #[allow(rustdoc::invalid_rust_codeblocks, reason = "The codeblock is intentionally broken")]
     /// Extends the range to include all preceding whitespace characters, unless there
     /// are non-whitespace characters left on the same line after `self`.
     ///