Skip to content

Commit cef2d41

Browse files
committed
rust: syn: add SPDX License Identifiers
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 328f151 commit cef2d41

Some content is hidden

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

52 files changed

+104
-0
lines changed

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/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;
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};

rust/syn/error.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::buffer::Cursor;
35
use crate::thread::ThreadBound;

rust/syn/export.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
#[doc(hidden)]
24
pub use std::clone::Clone;
35
#[doc(hidden)]

rust/syn/expr.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
#[cfg(feature = "full")]
35
use crate::generics::BoundLifetimes;

rust/syn/ext.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
//! Extension traits to provide parsing methods on foreign types.
24
35
use crate::buffer::Cursor;

rust/syn/file.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::item::Item;
35

rust/syn/gen/clone.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
// This file is @generated by syn-internal-codegen.
24
// It is not intended for manual editing.
35

rust/syn/gen/debug.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
// This file is @generated by syn-internal-codegen.
24
// It is not intended for manual editing.
35

rust/syn/gen/eq.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
// This file is @generated by syn-internal-codegen.
24
// It is not intended for manual editing.
35

rust/syn/gen/fold.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
// This file is @generated by syn-internal-codegen.
24
// It is not intended for manual editing.
35

rust/syn/gen/hash.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
// This file is @generated by syn-internal-codegen.
24
// It is not intended for manual editing.
35

rust/syn/gen/visit.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
// This file is @generated by syn-internal-codegen.
24
// It is not intended for manual editing.
35

rust/syn/gen/visit_mut.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
// This file is @generated by syn-internal-codegen.
24
// It is not intended for manual editing.
35

rust/syn/gen_helper.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 = "fold")]
24
pub(crate) mod fold {
35
use crate::punctuated::{Pair, Punctuated};

rust/syn/generics.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;
35
use crate::ident::Ident;

rust/syn/group.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::error::Result;
24
use crate::parse::ParseBuffer;
35
use crate::token;

rust/syn/ident.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::lookahead;
35

rust/syn/item.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::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput};

rust/syn/lib.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
//! [![github]](https://github.com/dtolnay/syn)&ensp;[![crates-io]](https://crates.io/crates/syn)&ensp;[![docs-rs]](crate)
24
//!
35
//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github

rust/syn/lifetime.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::lookahead;
35
use proc_macro2::{Ident, Span};

rust/syn/lit.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::lookahead;
35
#[cfg(feature = "parsing")]

rust/syn/lookahead.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::buffer::Cursor;
24
use crate::error::{self, Error};
35
use crate::sealed::lookahead::Sealed;

rust/syn/mac.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::Result;
35
#[cfg(feature = "parsing")]

rust/syn/macros.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_attr(
24
not(any(feature = "full", feature = "derive")),
35
allow(unknown_lints, unused_macro_rules)

rust/syn/meta.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
//! Facility for interpreting structured content inside of an `Attribute`.
24
35
use crate::error::{Error, Result};

rust/syn/op.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
ast_enum! {
24
/// A binary operator: `+`, `+=`, `&`.
35
#[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))]

rust/syn/parse.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
//! Parsing interface for parsing a token stream into a syntax tree node.
24
//!
35
//! Parsing in Syn is built on parser functions that take in a [`ParseStream`]

rust/syn/parse_macro_input.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
/// Parse the input TokenStream of a macro, triggering a compile error if the
24
/// tokens fail to parse.
35
///

rust/syn/parse_quote.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
/// Quasi-quotation macro that accepts input like the [`quote!`] macro but uses
24
/// type inference to figure out a return type for those tokens.
35
///

rust/syn/pat.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::Member;
35
use crate::ident::Ident;

rust/syn/path.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::Result;
35
use crate::expr::Expr;

rust/syn/print.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 proc_macro2::TokenStream;
24
use quote::ToTokens;
35

rust/syn/punctuated.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 punctuated sequence of syntax tree nodes separated by punctuation.
24
//!
35
//! Lots of things in Rust are punctuated sequences.

rust/syn/restriction.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::path::Path;
24
use crate::token;
35

rust/syn/sealed.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
pub(crate) mod lookahead {
35
pub trait Sealed: Copy {}

rust/syn/span.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 proc_macro2::extra::DelimSpan;
24
use proc_macro2::{Delimiter, Group, Span, TokenStream};
35

rust/syn/spanned.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 trait that can provide the `Span` of the complete contents of a syntax
24
//! tree node.
35
//!

rust/syn/stmt.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;
35
use crate::item::Item;

rust/syn/thread.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::fmt::{self, Debug};
24
use std::thread::{self, ThreadId};
35

rust/syn/token.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
//! Tokens representing Rust punctuation, keywords, and delimiters.
24
//!
35
//! The type names in this module can be difficult to keep straight, so we

rust/syn/tt.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 proc_macro2::{Delimiter, TokenStream, TokenTree};
24
use std::hash::{Hash, Hasher};
35

rust/syn/ty.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;
35
use crate::generics::{BoundLifetimes, TypeParamBound};

rust/syn/verbatim.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::parse::ParseStream;
24
use proc_macro2::{Delimiter, TokenStream};
35
use std::cmp::Ordering;

rust/syn/whitespace.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
pub(crate) fn skip(mut s: &str) -> &str {
24
'skip: while !s.is_empty() {
35
let byte = s.as_bytes()[0];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy