Skip to content

Commit

Permalink
Merge pull request #19097 from Veykril/push-xmkmkwplqnlr
Browse files Browse the repository at this point in the history
Bump proc-macro2 in xtask
  • Loading branch information
Veykril authored Feb 5, 2025
2 parents 4b1d83d + f57caa1 commit 9c0af74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/tools/rust-analyzer/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1408,9 +1408,9 @@ dependencies = [

[[package]]
name = "proc-macro2"
version = "1.0.86"
version = "1.0.93"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99"
dependencies = [
"unicode-ident",
]
Expand Down
3 changes: 1 addition & 2 deletions src/tools/rust-analyzer/xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ xflags = "0.3.0"
time = { version = "0.3", default-features = false }
zip = { version = "0.6", default-features = false, features = ["deflate", "time"] }
stdx.workspace = true
# https://github.com/dtolnay/proc-macro2/issues/475
proc-macro2 = "=1.0.86"
proc-macro2 = "1.0.93"
quote = "1.0.20"
ungrammar = "1.16.1"
either.workspace = true
Expand Down
3 changes: 3 additions & 0 deletions src/tools/rust-analyzer/xtask/src/codegen/grammar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ fn generate_syntax_kinds(grammar: KindsSrc) -> String {
if "{}[]()".contains(token) {
let c = token.chars().next().unwrap();
quote! { #c }
// underscore is an identifier in the proc-macro api
} else if *token == "_" {
quote! { _ }
} else {
let cs = token.chars().map(|c| Punct::new(c, Spacing::Joint));
quote! { #(#cs)* }
Expand Down

0 comments on commit 9c0af74

Please sign in to comment.