Skip to content

Commit 1e20467

Browse files
committed
Bump deps
1 parent a5f2b16 commit 1e20467

File tree

9 files changed

+81
-49
lines changed

9 files changed

+81
-49
lines changed

Cargo.lock

Lines changed: 44 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ra_hir_ty/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ doctest = false
1111
itertools = "0.9.0"
1212
arrayvec = "0.5.1"
1313
smallvec = "1.2.0"
14-
ena = "0.13.1"
14+
ena = "0.14.0"
1515
log = "0.4.8"
1616
rustc-hash = "1.1.0"
1717

crates/ra_proc_macro_srv/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ test_utils = { path = "../test_utils" }
2121
cargo_metadata = "0.9.1"
2222
difference = "2.0.0"
2323
# used as proc macro test target
24-
serde_derive = "=1.0.104"
24+
serde_derive = "=1.0.106"

crates/ra_proc_macro_srv/src/tests/fixtures/test_serialize_proc_macro.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
SUBTREE $
22
PUNCH # [alone] 4294967295
3+
SUBTREE [] 4294967295
4+
IDENT doc 4294967295
5+
SUBTREE () 4294967295
6+
IDENT hidden 4294967295
7+
PUNCH # [alone] 4294967295
38
SUBTREE [] 4294967295
49
IDENT allow 4294967295
510
SUBTREE () 4294967295
@@ -184,4 +189,4 @@ SUBTREE $
184189
IDENT end 4294967295
185190
SUBTREE () 4294967295
186191
IDENT __serde_state 4294967295
187-
PUNCH ; [alone] 4294967295
192+
PUNCH ; [alone] 4294967295

crates/ra_proc_macro_srv/src/tests/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn test_derive_serialize_proc_macro() {
1010
assert_expand(
1111
"serde_derive",
1212
"Serialize",
13-
"1.0.104",
13+
"1.0.106",
1414
r##"struct Foo {}"##,
1515
include_str!("fixtures/test_serialize_proc_macro.txt"),
1616
);
@@ -21,7 +21,7 @@ fn test_derive_serialize_proc_macro_failed() {
2121
assert_expand(
2222
"serde_derive",
2323
"Serialize",
24-
"1.0.104",
24+
"1.0.106",
2525
r##"
2626
struct {}
2727
"##,
@@ -37,7 +37,7 @@ SUBTREE $
3737

3838
#[test]
3939
fn test_derive_proc_macro_list() {
40-
let res = list("serde_derive", "1.0.104").join("\n");
40+
let res = list("serde_derive", "1.0.106").join("\n");
4141

4242
assert_eq_text!(
4343
&res,

crates/ra_project_model/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ra_db = { path = "../ra_db" }
1818
ra_cfg = { path = "../ra_cfg" }
1919
ra_proc_macro = { path = "../ra_proc_macro" }
2020

21-
serde = { version = "1.0.104", features = ["derive"] }
21+
serde = { version = "1.0.106", features = ["derive"] }
2222
serde_json = "1.0.48"
2323

2424
anyhow = "1.0.26"

crates/ra_syntax/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ doctest = false
1313
[dependencies]
1414
itertools = "0.9.0"
1515
rowan = "0.10.0"
16-
rustc_lexer = { version = "652.0.0", package = "rustc-ap-rustc_lexer" }
16+
rustc_lexer = { version = "656.0.0", package = "rustc-ap-rustc_lexer" }
1717
rustc-hash = "1.1.0"
1818
arrayvec = "0.5.1"
1919
once_cell = "1.3.1"
@@ -27,7 +27,7 @@ ra_parser = { path = "../ra_parser" }
2727
# ideally, `serde` should be enabled by `rust-analyzer`, but we enable it here
2828
# to reduce number of compilations
2929
smol_str = { version = "0.1.15", features = ["serde"] }
30-
serde = { version = "1.0.104", features = ["derive"] }
30+
serde = { version = "1.0.106", features = ["derive"] }
3131

3232
[dev-dependencies]
3333
test_utils = { path = "../test_utils" }

crates/ra_syntax/src/parsing/lexer.rs

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ fn rustc_token_kind_to_syntax_kind(
180180
return (syntax_kind, None);
181181

182182
fn match_literal_kind(kind: &rustc_lexer::LiteralKind) -> (SyntaxKind, Option<&'static str>) {
183-
use rustc_lexer::LiteralKind as LK;
183+
use rustc_lexer::{LexRawStrError, LiteralKind as LK};
184184

185185
#[rustfmt::skip]
186186
let syntax_kind = match *kind {
@@ -215,21 +215,28 @@ fn rustc_token_kind_to_syntax_kind(
215215
return (BYTE_STRING, Some("Missing trailing `\"` symbol to terminate the byte string literal"))
216216
}
217217

218-
LK::RawStr { started: true, terminated: true, .. } => RAW_STRING,
219-
LK::RawStr { started: true, terminated: false, .. } => {
220-
return (RAW_STRING, Some("Missing trailing `\"` with `#` symbols to terminate the raw string literal"))
221-
}
222-
LK::RawStr { started: false, .. } => {
223-
return (RAW_STRING, Some("Missing `\"` symbol after `#` symbols to begin the raw string literal"))
224-
}
218+
LK::RawStr(str) => match str.validate() {
219+
Ok(_) => RAW_STRING,
220+
Err(LexRawStrError::InvalidStarter) => return (RAW_STRING, Some("Missing `\"` symbol after `#` symbols to begin the raw string literal")),
221+
Err(LexRawStrError::NoTerminator { expected, found, .. }) => if expected == found {
222+
return (RAW_STRING, Some("Missing trailing `\"` to terminate the raw string literal"))
223+
} else {
224+
return (RAW_STRING, Some("Missing trailing `\"` with `#` symbols to terminate the raw string literal"))
225+
226+
},
227+
Err(LexRawStrError::TooManyDelimiters { .. }) => return (RAW_STRING, Some("Too many `#` symbols: raw strings may be delimited by up to 65535 `#` symbols")),
228+
},
229+
LK::RawByteStr(str) => match str.validate() {
230+
Ok(_) => RAW_BYTE_STRING,
231+
Err(LexRawStrError::InvalidStarter) => return (RAW_BYTE_STRING, Some("Missing `\"` symbol after `#` symbols to begin the raw byte string literal")),
232+
Err(LexRawStrError::NoTerminator { expected, found, .. }) => if expected == found {
233+
return (RAW_BYTE_STRING, Some("Missing trailing `\"` to terminate the raw byte string literal"))
234+
} else {
235+
return (RAW_BYTE_STRING, Some("Missing trailing `\"` with `#` symbols to terminate the raw byte string literal"))
225236

226-
LK::RawByteStr { started: true, terminated: true, .. } => RAW_BYTE_STRING,
227-
LK::RawByteStr { started: true, terminated: false, .. } => {
228-
return (RAW_BYTE_STRING, Some("Missing trailing `\"` with `#` symbols to terminate the raw byte string literal"))
229-
}
230-
LK::RawByteStr { started: false, .. } => {
231-
return (RAW_BYTE_STRING, Some("Missing `\"` symbol after `#` symbols to begin the raw byte string literal"))
232-
}
237+
},
238+
Err(LexRawStrError::TooManyDelimiters { .. }) => return (RAW_BYTE_STRING, Some("Too many `#` symbols: raw byte strings may be delimited by up to 65535 `#` symbols")),
239+
},
233240
};
234241

235242
(syntax_kind, None)

crates/rust-analyzer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pico-args = "0.3.1"
2626
rand = { version = "0.7.3", features = ["small_rng"] }
2727
relative-path = "1.0.0"
2828
rustc-hash = "1.1.0"
29-
serde = { version = "1.0.104", features = ["derive"] }
29+
serde = { version = "1.0.106", features = ["derive"] }
3030
serde_json = "1.0.48"
3131
threadpool = "1.7.1"
3232

0 commit comments

Comments
 (0)