rust: syn: 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 `syn` 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-17-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This commit is contained in:
Miguel Ojeda
2025-11-24 17:15:45 +01:00
parent 808c999fc9
commit 69942c0a89
55 changed files with 110 additions and 0 deletions
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
#[cfg(feature = "parsing")]
use crate::error::Error;
#[cfg(feature = "parsing")]
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
use std::ops::{AddAssign, MulAssign};
// For implementing base10_digits() accessor on LitInt.
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
//! A stably addressed token buffer supporting efficient traversal based on a
//! cheaply copyable cursor.
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
#[cfg(feature = "full")]
use crate::expr::Expr;
#[cfg(any(feature = "printing", feature = "full"))]
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
/// Define a type that supports parsing and printing a given identifier as if it
/// were a keyword.
///
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
/// Define a type that supports parsing and printing a multi-character symbol
/// as if it were a punctuation token.
///
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
use crate::attr::Attribute;
use crate::expr::{Expr, Index, Member};
use crate::ident::Ident;
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
use crate::attr::Attribute;
use crate::data::{Fields, FieldsNamed, Variant};
use crate::generics::Generics;
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
//! Extensions to the parsing API with niche applicability.
use crate::buffer::Cursor;
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
use std::iter;
use std::mem::ManuallyDrop;
use std::ops::{Deref, DerefMut};
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
#[cfg(feature = "parsing")]
use crate::buffer::Cursor;
use crate::thread::ThreadBound;
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
#[doc(hidden)]
pub use std::clone::Clone;
#[doc(hidden)]
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
use crate::attr::Attribute;
#[cfg(all(feature = "parsing", feature = "full"))]
use crate::error::Result;
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
//! Extension traits to provide parsing methods on foreign types.
use crate::buffer::Cursor;
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
use crate::attr::Attribute;
use crate::item::Item;
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
use crate::classify;
use crate::expr::Expr;
#[cfg(feature = "full")]
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
// This file is @generated by syn-internal-codegen.
// It is not intended for manual editing.
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
// This file is @generated by syn-internal-codegen.
// It is not intended for manual editing.
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
// This file is @generated by syn-internal-codegen.
// It is not intended for manual editing.
+2
View File
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
// This file is @generated by syn-internal-codegen.
// It is not intended for manual editing.

Some files were not shown because too many files have changed in this diff Show More