Skip to content

Commit ddfa1b2

Browse files
committed
rust: quote: add SPDX License Identifiers
Originally, when the Rust upstream `alloc` standard library crate was vendored in commit 057b8d2 ("rust: adapt `alloc` crate to the kernel"), the SPDX License Identifiers were added to every file so that the license on those was clear. Thus do the same for the `quote` crate. This makes `scripts/spdxcheck.py` pass. Reviewed-by: Gary Guo <gary@garyguo.net> Tested-by: Gary Guo <gary@garyguo.net> Tested-by: Jesung Yang <y.j3ms.n@gmail.com> Link: https://patch.msgid.link/20251124151837.2184382-13-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent a4851ee commit ddfa1b2

7 files changed

Lines changed: 14 additions & 0 deletions

File tree

rust/quote/ext.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
use super::ToTokens;
24
use core::iter;
35
use proc_macro2::{TokenStream, TokenTree};

rust/quote/format.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
/// Formatting macro for constructing `Ident`s.
24
///
35
/// <br>

rust/quote/ident_fragment.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
use alloc::borrow::Cow;
24
use core::fmt;
35
use proc_macro2::{Ident, Span};

rust/quote/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
//! [![github]](https://github.com/dtolnay/quote)&ensp;[![crates-io]](https://crates.io/crates/quote)&ensp;[![docs-rs]](https://docs.rs/quote)
24
//!
35
//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github

rust/quote/runtime.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
use self::get_span::{GetSpan, GetSpanBase, GetSpanInner};
24
use crate::{IdentFragment, ToTokens, TokenStreamExt};
35
use core::fmt;

rust/quote/spanned.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
use crate::ToTokens;
24
use proc_macro2::extra::DelimSpan;
35
use proc_macro2::{Span, TokenStream};

rust/quote/to_tokens.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
use super::TokenStreamExt;
24
use alloc::borrow::Cow;
35
use alloc::rc::Rc;

0 commit comments

Comments
 (0)