Skip to content

Commit 238e346

Browse files
committed
Update to 2021 edition
1 parent 5235d37 commit 238e346

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ autobenches = false
66
categories = ["development-tools::procedural-macro-helpers"]
77
description = "A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case."
88
documentation = "https://docs.rs/proc-macro2"
9-
edition = "2018"
9+
edition = "2021"
1010
keywords = ["macros", "syn"]
1111
license = "MIT OR Apache-2.0"
1212
repository = "https://github.com/dtolnay/proc-macro2"

src/parse.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,10 @@ fn character(input: Cursor) -> Result<Cursor, Reject> {
611611
}
612612

613613
macro_rules! next_ch {
614-
($chars:ident @ $pat:pat $(| $rest:pat)*) => {
614+
($chars:ident @ $pat:pat) => {
615615
match $chars.next() {
616616
Some((_, ch)) => match ch {
617-
$pat $(| $rest)* => ch,
617+
$pat => ch,
618618
_ => return Err(Reject),
619619
},
620620
None => return Err(Reject),

0 commit comments

Comments
 (0)