[3/4] rust: Add SPDX headers to alloc::vec::{spec_extend, set_len_on_drop}
Commit Message
Add the missing SPDX headers to these modules, which were just imported
from the Rust stdlib. Doing this in a separate commit makes it easier to
audit that the files have not been modified in the original import.
See the precending two commits for attribution and licensing details.
Signed-off-by: Asahi Lina <lina@asahilina.net>
---
rust/alloc/vec/set_len_on_drop.rs | 2 ++
rust/alloc/vec/spec_extend.rs | 2 ++
2 files changed, 4 insertions(+)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0 OR MIT
+
// Set the length of the vec when the `SetLenOnDrop` value goes out of scope.
//
// The idea is: The length field in SetLenOnDrop is a local variable
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0 OR MIT
+
use crate::alloc::Allocator;
use core::iter::TrustedLen;
use core::ptr::{self};