aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/rustdoc_test_builder.rs
diff options
context:
space:
mode:
authorTamir Duberstein <[email protected]>2025-04-16 17:15:43 +0000
committerDanilo Krummrich <[email protected]>2025-04-23 10:05:23 +0000
commit88d5d6a38d5161228fbfe017eb94d777d5e8a0e4 (patch)
tree05345b5dedcfeb459934004e67c226c3121fde15 /scripts/rustdoc_test_builder.rs
parentrust: alloc: refactor `Vec::truncate` using `dec_len` (diff)
downloadkernel-88d5d6a38d5161228fbfe017eb94d777d5e8a0e4.tar.gz
kernel-88d5d6a38d5161228fbfe017eb94d777d5e8a0e4.zip
rust: alloc: replace `Vec::set_len` with `inc_len`
Rename `set_len` to `inc_len` and simplify its safety contract. Note that the usage in `CString::try_from_fmt` remains correct as the receiver is known to have `len == 0`. Reviewed-by: Alice Ryhl <[email protected]> Signed-off-by: Tamir Duberstein <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions