Skip to content

Commit 617c120

Browse files
committed
rust: proc-macro2: add SPDX License Identifiers
Signed-off-by: Miguel Ojeda <[email protected]>
1 parent c3b22c6 commit 617c120

File tree

9 files changed

+18
-0
lines changed

9 files changed

+18
-0
lines changed

rust/proc-macro2/detection.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 core::sync::atomic::{AtomicUsize, Ordering};
24
use std::sync::Once;
35

rust/proc-macro2/extra.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
//! Items which do not have a correspondence to any API in the proc_macro crate,
24
//! but are necessary to include in proc-macro2.
35

rust/proc-macro2/fallback.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(span_locations)]
24
use crate::location::LineColumn;
35
use crate::parse::{self, Cursor};

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

rust/proc-macro2/location.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 core::cmp::Ordering;
24

35
/// A line-column pair representing the start or end of a `Span`.

rust/proc-macro2/marker.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 alloc::rc::Rc;
24
use core::marker::PhantomData;
35
use core::panic::{RefUnwindSafe, UnwindSafe};

rust/proc-macro2/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
use crate::fallback::{
24
self, is_ident_continue, is_ident_start, Group, LexError, Literal, Span, TokenStream,
35
TokenStreamBuilder,

rust/proc-macro2/rcvec.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 alloc::rc::Rc;
24
use alloc::vec;
35
use core::mem;

rust/proc-macro2/wrapper.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::detection::inside_proc_macro;
24
#[cfg(span_locations)]
35
use crate::location::LineColumn;

0 commit comments

Comments
 (0)