Skip to content

Commit 9c0af74

Browse files
authored
Merge pull request rust-lang#19097 from Veykril/push-xmkmkwplqnlr
Bump proc-macro2 in xtask
2 parents 4b1d83d + f57caa1 commit 9c0af74

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/tools/rust-analyzer/Cargo.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,9 +1408,9 @@ dependencies = [
14081408

14091409
[[package]]
14101410
name = "proc-macro2"
1411-
version = "1.0.86"
1411+
version = "1.0.93"
14121412
source = "registry+https://github.com/rust-lang/crates.io-index"
1413-
checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
1413+
checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99"
14141414
dependencies = [
14151415
"unicode-ident",
14161416
]

src/tools/rust-analyzer/xtask/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ xflags = "0.3.0"
1616
time = { version = "0.3", default-features = false }
1717
zip = { version = "0.6", default-features = false, features = ["deflate", "time"] }
1818
stdx.workspace = true
19-
# https://github.com/dtolnay/proc-macro2/issues/475
20-
proc-macro2 = "=1.0.86"
19+
proc-macro2 = "1.0.93"
2120
quote = "1.0.20"
2221
ungrammar = "1.16.1"
2322
either.workspace = true

src/tools/rust-analyzer/xtask/src/codegen/grammar.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@ fn generate_syntax_kinds(grammar: KindsSrc) -> String {
397397
if "{}[]()".contains(token) {
398398
let c = token.chars().next().unwrap();
399399
quote! { #c }
400+
// underscore is an identifier in the proc-macro api
401+
} else if *token == "_" {
402+
quote! { _ }
400403
} else {
401404
let cs = token.chars().map(|c| Punct::new(c, Spacing::Joint));
402405
quote! { #(#cs)* }

0 commit comments

Comments
 (0)