Skip to content

Commit 69942c0

Browse files
committed
rust: syn: 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 `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>
1 parent 808c999 commit 69942c0

55 files changed

Lines changed: 110 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

rust/syn/attr.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
#[cfg(feature = "parsing")]
24
use crate::error::Error;
35
#[cfg(feature = "parsing")]

rust/syn/bigint.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 std::ops::{AddAssign, MulAssign};
24

35
// For implementing base10_digits() accessor on LitInt.

rust/syn/buffer.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
//! A stably addressed token buffer supporting efficient traversal based on a
24
//! cheaply copyable cursor.
35

rust/syn/classify.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
#[cfg(feature = "full")]
24
use crate::expr::Expr;
35
#[cfg(any(feature = "printing", feature = "full"))]

rust/syn/custom_keyword.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
/// Define a type that supports parsing and printing a given identifier as if it
24
/// were a keyword.
35
///

rust/syn/custom_punctuation.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
/// Define a type that supports parsing and printing a multi-character symbol
24
/// as if it were a punctuation token.
35
///

rust/syn/data.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::attr::Attribute;
24
use crate::expr::{Expr, Index, Member};
35
use crate::ident::Ident;

rust/syn/derive.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::attr::Attribute;
24
use crate::data::{Fields, FieldsNamed, Variant};
35
use crate::generics::Generics;

rust/syn/discouraged.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
//! Extensions to the parsing API with niche applicability.
24
35
use crate::buffer::Cursor;

rust/syn/drops.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 std::iter;
24
use std::mem::ManuallyDrop;
35
use std::ops::{Deref, DerefMut};

0 commit comments

Comments
 (0)