rust: quote: add SPDX License Identifiers

Originally, when the Rust upstream `alloc` standard library crate was
vendored in commit 057b8d2571 ("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>
This commit is contained in:
Miguel Ojeda
2025-11-24 16:18:24 +01:00
parent a4851eeef3
commit ddfa1b279d
7 changed files with 14 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
use super::ToTokens;
use core::iter;
use proc_macro2::{TokenStream, TokenTree};

View File

@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
/// Formatting macro for constructing `Ident`s.
///
/// <br>

View File

@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
use alloc::borrow::Cow;
use core::fmt;
use proc_macro2::{Ident, Span};

View File

@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
//! [![github]](https://github.com/dtolnay/quote)&ensp;[![crates-io]](https://crates.io/crates/quote)&ensp;[![docs-rs]](https://docs.rs/quote)
//!
//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github

View File

@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
use self::get_span::{GetSpan, GetSpanBase, GetSpanInner};
use crate::{IdentFragment, ToTokens, TokenStreamExt};
use core::fmt;

View File

@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
use crate::ToTokens;
use proc_macro2::extra::DelimSpan;
use proc_macro2::{Span, TokenStream};

View File

@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
use super::TokenStreamExt;
use alloc::borrow::Cow;
use alloc::rc::Rc;