diff options
| author | Gary Guo <gary@garyguo.net> | 2026-09-24 01:50:51 +0100 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2026-09-30 16:56:31 +0200 |
| commit | c82c75ae11fae66cf070562f9b5241a4663f30cb (patch) | |
| tree | 619a7839ffe4cb0b8ec7dd14bcc9a4f57fd2df2e /tools/lib/python | |
| parent | f9a6960c7b27c03becd50a2a7620273d80e4040d (diff) | |
| download | linux-next-c82c75ae11fae66cf070562f9b5241a4663f30cb.tar.gz linux-next-c82c75ae11fae66cf070562f9b5241a4663f30cb.zip | |
rust: doctest: trim function name for reproducibility
Currently rustdoc will generate function names like
"_doctest_main__home_gary_Projects_linux_rust_kernel_io_rs_824_0" for a
doctest located at rust/kernel/io.rs:824, when building with separate
outdir using `O=`. This creates overlong symbol names and is also not
reproducible.
[ `rustdoc` already remaps these paths when we use Rust >= 1.95, thus
this fix is needed for older toolchains. - Miguel ]
Fix it by doing a custom remapping to trim it to something like
`_doctest_main_rust_kernel_io_rs_824_0`.
Signed-off-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260924005052.2805129-1-gary@kernel.org
[ Added `TODO` comment about the minimum version bump. Reworded title
and comment for typos. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
