aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/rustdoc_test_builder.rs
diff options
context:
space:
mode:
authorTamir Duberstein <[email protected]>2025-04-16 17:15:41 +0000
committerDanilo Krummrich <[email protected]>2025-04-23 10:05:22 +0000
commitdbb0b840a0cd2ebabbc94a0040e366c7f1a70f7b (patch)
treed050a015a1107b8e917e37e51cacea5abac5c173 /scripts/rustdoc_test_builder.rs
parentrust: alloc: add Vec::len() <= Vec::capacity invariant (diff)
downloadkernel-dbb0b840a0cd2ebabbc94a0040e366c7f1a70f7b.tar.gz
kernel-dbb0b840a0cd2ebabbc94a0040e366c7f1a70f7b.zip
rust: alloc: add `Vec::dec_len`
Add `Vec::dec_len` that reduces the length of the receiver. This method is intended to be used from methods that remove elements from `Vec` such as `truncate`, `pop`, `remove`, and others. This method is intentionally not `pub`. Reviewed-by: Alice Ryhl <[email protected]> Signed-off-by: Tamir Duberstein <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Add #[expect(unused)] to dec_len(). - Danilo ] Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions