Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: quote: add SPDX License Identifiers

Originally, when the Rust upstream `alloc` standard library crate was
vendored in commit 057b8d257107 ("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>

+14
+2
rust/quote/ext.rs
··· 1 + // SPDX-License-Identifier: Apache-2.0 OR MIT 2 + 1 3 use super::ToTokens; 2 4 use core::iter; 3 5 use proc_macro2::{TokenStream, TokenTree};
+2
rust/quote/format.rs
··· 1 + // SPDX-License-Identifier: Apache-2.0 OR MIT 2 + 1 3 /// Formatting macro for constructing `Ident`s. 2 4 /// 3 5 /// <br>
+2
rust/quote/ident_fragment.rs
··· 1 + // SPDX-License-Identifier: Apache-2.0 OR MIT 2 + 1 3 use alloc::borrow::Cow; 2 4 use core::fmt; 3 5 use proc_macro2::{Ident, Span};
+2
rust/quote/lib.rs
··· 1 + // SPDX-License-Identifier: Apache-2.0 OR MIT 2 + 1 3 //! [![github]](https://github.com/dtolnay/quote)&ensp;[![crates-io]](https://crates.io/crates/quote)&ensp;[![docs-rs]](https://docs.rs/quote) 2 4 //! 3 5 //! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
+2
rust/quote/runtime.rs
··· 1 + // SPDX-License-Identifier: Apache-2.0 OR MIT 2 + 1 3 use self::get_span::{GetSpan, GetSpanBase, GetSpanInner}; 2 4 use crate::{IdentFragment, ToTokens, TokenStreamExt}; 3 5 use core::fmt;
+2
rust/quote/spanned.rs
··· 1 + // SPDX-License-Identifier: Apache-2.0 OR MIT 2 + 1 3 use crate::ToTokens; 2 4 use proc_macro2::extra::DelimSpan; 3 5 use proc_macro2::{Span, TokenStream};
+2
rust/quote/to_tokens.rs
··· 1 + // SPDX-License-Identifier: Apache-2.0 OR MIT 2 + 1 3 use super::TokenStreamExt; 2 4 use alloc::borrow::Cow; 3 5 use alloc::rc::Rc;