about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-slice-array.js
diff options
context:
space:
mode:
authorThalia Archibald <thalia@archibald.dev>2025-02-26 11:51:28 -0800
committerThalia Archibald <thalia@archibald.dev>2025-03-11 20:16:31 -0700
commitc62aa0baa1a8228d5bfbb3e810db4c7ee77eb3a1 (patch)
treed9443d15e5d7e0d747b106380f7c623737759eac /tests/rustdoc-js-std/parser-slice-array.js
parent8c7a94e4cdd9ad70550b19ca2bf6f16046d59506 (diff)
downloadrust-c62aa0baa1a8228d5bfbb3e810db4c7ee77eb3a1.tar.gz
rust-c62aa0baa1a8228d5bfbb3e810db4c7ee77eb3a1.zip
Fix `UserRef<[T]>::copy_to_enclave_vec`
It reinterprets uninitialized memory as initialized and does not drop
existing elements of the Vec. Fix that.

Additionally, make it more general by appending, instead of overwriting
existing elements, and rename it to `append_to_enclave_vec`. A caller
can simply call `.clear()` before, for the old behavior.
Diffstat (limited to 'tests/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions