about summary refs log tree commit diff
path: root/src/tools
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
commite8737e353015605d0f7f1e445e4d5487c4f43d05 (patch)
tree26e74dc835c24f54da05e09f6488b344eed7c79e /src/tools
parent50a579376698ced72466584748bcc2989bd913e3 (diff)
downloadrust-e8737e353015605d0f7f1e445e4d5487c4f43d05.tar.gz
rust-e8737e353015605d0f7f1e445e4d5487c4f43d05.zip
Clippy: Fix doc issue
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/clippy/clippy_utils/src/source.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/clippy/clippy_utils/src/source.rs b/src/tools/clippy/clippy_utils/src/source.rs
index 3aa72cf5eaf..8645d5730fe 100644
--- a/src/tools/clippy/clippy_utils/src/source.rs
+++ b/src/tools/clippy/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`.
     ///