Skip to content

Commit

Permalink
rust: proc-macro2: add SPDX License Identifiers
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
  • Loading branch information
ojeda committed Apr 10, 2024
1 parent c3b22c6 commit 617c120
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust/proc-macro2/detection.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

use core::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Once;

Expand Down
2 changes: 2 additions & 0 deletions rust/proc-macro2/extra.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! Items which do not have a correspondence to any API in the proc_macro crate,
//! but are necessary to include in proc-macro2.

Expand Down
2 changes: 2 additions & 0 deletions rust/proc-macro2/fallback.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

#[cfg(span_locations)]
use crate::location::LineColumn;
use crate::parse::{self, Cursor};
Expand Down
2 changes: 2 additions & 0 deletions rust/proc-macro2/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

//! [![github]](https://github.com/dtolnay/proc-macro2)&ensp;[![crates-io]](https://crates.io/crates/proc-macro2)&ensp;[![docs-rs]](crate)
//!
//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
Expand Down
2 changes: 2 additions & 0 deletions rust/proc-macro2/location.rs
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
2 changes: 2 additions & 0 deletions rust/proc-macro2/marker.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

use alloc::rc::Rc;
use core::marker::PhantomData;
use core::panic::{RefUnwindSafe, UnwindSafe};
Expand Down
2 changes: 2 additions & 0 deletions rust/proc-macro2/parse.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

use crate::fallback::{
self, is_ident_continue, is_ident_start, Group, LexError, Literal, Span, TokenStream,
TokenStreamBuilder,
Expand Down
2 changes: 2 additions & 0 deletions rust/proc-macro2/rcvec.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

use alloc::rc::Rc;
use alloc::vec;
use core::mem;
Expand Down
2 changes: 2 additions & 0 deletions rust/proc-macro2/wrapper.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

use crate::detection::inside_proc_macro;
#[cfg(span_locations)]
use crate::location::LineColumn;
Expand Down

0 comments on commit 617c120

Please sign in to comment.