diff options
| author | Miguel Ojeda <ojeda@kernel.org> | 2025-11-24 16:18:19 +0100 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2025-11-24 17:15:39 +0100 |
| commit | a9acfceb9614f18d799c135bbb225bd0f55a81ab (patch) | |
| tree | 27fcbe6669cddd88433620740b4d61f4096f43c7 /rust/proc-macro2/location.rs | |
| parent | 3a8b546a2786e54fbfff4d368ae45e65e1e43d21 (diff) | |
rust: proc-macro2: 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 `proc-macro2` 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-8-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/proc-macro2/location.rs')
| -rw-r--r-- | rust/proc-macro2/location.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/proc-macro2/location.rs b/rust/proc-macro2/location.rs index 7190e2d05255..3a11871e2943 100644 --- a/rust/proc-macro2/location.rs +++ b/rust/proc-macro2/location.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + use core::cmp::Ordering; /// A line-column pair representing the start or end of a `Span`. |
