rust: Add SPDX headers to alloc::vec::{spec_extend, set_len_on_drop}
authorAsahi Lina <lina@asahilina.net>
Fri, 24 Feb 2023 09:11:49 +0000 (18:11 +0900)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 10 Apr 2023 21:55:19 +0000 (23:55 +0200)
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 preceding two commits for attribution and licensing details.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Link: https://lore.kernel.org/r/20230224-rust-vec-v1-3-733b5b5a57c5@asahilina.net
[ Reworded for typo. ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/alloc/vec/set_len_on_drop.rs
rust/alloc/vec/spec_extend.rs

index 8b66bc812129694e4976f140a1e18afed0c1aee1..448bf5076a0bf3c7870f0dc1daf84e7a84dd0a45 100644 (file)
@@ -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
index 506ee0ecfa279c7693cc9a19e58d98a668425b7d..7bb3abb7ee7164fe66adffef40b214717ae639a7 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0 OR MIT
+
 use crate::alloc::Allocator;
 use core::iter::TrustedLen;
 use core::ptr::{self};