Skip to content

Commit db747ba

Browse files
committed
rust: alloc: add SPDX License Identifiers
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent e7ac457 commit db747ba

23 files changed

+46
-0
lines changed

rust/alloc/alloc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0 OR MIT
2+
13
//! Memory allocation APIs
24
35
#![stable(feature = "alloc_module", since = "1.28.0")]

rust/alloc/borrow.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0 OR MIT
2+
13
//! A module for working with borrowed data.
24
35
#![stable(feature = "rust1", since = "1.0.0")]

rust/alloc/boxed.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0 OR MIT
2+
13
//! A pointer type for heap allocation.
24
//!
35
//! [`Box<T>`], casually referred to as a 'box', provides the simplest form of

rust/alloc/collections/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0 OR MIT
2+
13
//! Collection types.
24
35
#![stable(feature = "rust1", since = "1.0.0")]

rust/alloc/fmt.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0 OR MIT
2+
13
//! Utilities for formatting and printing `String`s.
24
//!
35
//! This module contains the runtime support for the [`format!`] syntax extension.

rust/alloc/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0 OR MIT
2+
13
//! # The Rust core allocation and collections library
24
//!
35
//! This library provides smart pointers and collections for managing

rust/alloc/macros.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0 OR MIT
2+
13
/// Creates a [`Vec`] containing the arguments.
24
///
35
/// `vec!` allows `Vec`s to be defined with the same syntax as array expressions.

rust/alloc/prelude/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0 OR MIT
2+
13
//! The alloc Prelude
24
//!
35
//! The purpose of this module is to alleviate imports of commonly-used

rust/alloc/prelude/v1.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0 OR MIT
2+
13
//! The first version of the prelude of `alloc` crate.
24
//!
35
//! See the [module-level documentation](../index.html) for more.

rust/alloc/raw_vec.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0 OR MIT
2+
13
#![unstable(feature = "raw_vec_internals", reason = "implementation detail", issue = "none")]
24
#![doc(hidden)]
35

0 commit comments

Comments
 (0)