mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
Up proc-macro2 to 1.20
This changes the way Display is implemented
This commit is contained in:
parent
74e7422b69
commit
11758d518a
3 changed files with 5 additions and 5 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -1074,9 +1074,9 @@ checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "proc-macro2"
|
name = "proc-macro2"
|
||||||
version = "1.0.19"
|
version = "1.0.20"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "04f5f085b5d71e2188cb8271e5da0161ad52c3f227a661a3c135fdf28e258b12"
|
checksum = "175c513d55719db99da20232b06cda8bab6b83ec2d04e3283edf0213c37c1a29"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"unicode-xid",
|
"unicode-xid",
|
||||||
]
|
]
|
||||||
|
|
|
@ -247,7 +247,7 @@ fn generate_nodes(kinds: KindsSrc<'_>, grammar: &AstSrc) -> Result<String> {
|
||||||
#(#display_impls)*
|
#(#display_impls)*
|
||||||
};
|
};
|
||||||
|
|
||||||
let ast = ast.to_string().replace("T ! [ ", "T![").replace(" ] )", "])");
|
let ast = ast.to_string().replace("T ! [", "T![");
|
||||||
|
|
||||||
let mut res = String::with_capacity(ast.len() * 2);
|
let mut res = String::with_capacity(ast.len() * 2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue