diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-17 16:52:17 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-17 16:52:17 +0100 |
commit | 6df2bcd7ca97261b59ca04a85b7355432a63c0d9 (patch) | |
tree | e2210c835eb976f7ee04ee12b4ba5f76ff1a26f9 /crates | |
parent | 762fce5bdd166144c33871ae5b2594684eb0169e (diff) | |
parent | a6b980d6d41dda02d031d0f78e3e99c04e49cc9b (diff) |
Merge #2025
2025: Bump deps r=matklad a=lnicola
Co-authored-by: Laurențiu Nicola <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_cli/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_hir/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_hir/src/ty/infer.rs | 10 | ||||
-rw-r--r-- | crates/ra_hir/src/ty/infer/unify.rs | 4 | ||||
-rw-r--r-- | crates/ra_syntax/Cargo.toml | 2 |
5 files changed, 13 insertions, 7 deletions
diff --git a/crates/ra_cli/Cargo.toml b/crates/ra_cli/Cargo.toml index 67e727a88..fcd102e8b 100644 --- a/crates/ra_cli/Cargo.toml +++ b/crates/ra_cli/Cargo.toml | |||
@@ -8,7 +8,7 @@ publish = false | |||
8 | [dependencies] | 8 | [dependencies] |
9 | pico-args = "0.3.0" | 9 | pico-args = "0.3.0" |
10 | flexi_logger = "0.14.0" | 10 | flexi_logger = "0.14.0" |
11 | indicatif = "0.11.0" | 11 | indicatif = "0.12.0" |
12 | 12 | ||
13 | ra_syntax = { path = "../ra_syntax" } | 13 | ra_syntax = { path = "../ra_syntax" } |
14 | ra_ide_api = { path = "../ra_ide_api" } | 14 | ra_ide_api = { path = "../ra_ide_api" } |
diff --git a/crates/ra_hir/Cargo.toml b/crates/ra_hir/Cargo.toml index cc117f84d..7820a12e9 100644 --- a/crates/ra_hir/Cargo.toml +++ b/crates/ra_hir/Cargo.toml | |||
@@ -5,7 +5,7 @@ version = "0.1.0" | |||
5 | authors = ["rust-analyzer developers"] | 5 | authors = ["rust-analyzer developers"] |
6 | 6 | ||
7 | [dependencies] | 7 | [dependencies] |
8 | arrayvec = "0.4.10" | 8 | arrayvec = "0.5.1" |
9 | log = "0.4.5" | 9 | log = "0.4.5" |
10 | relative-path = "0.4.0" | 10 | relative-path = "0.4.0" |
11 | rustc-hash = "1.0" | 11 | rustc-hash = "1.0" |
diff --git a/crates/ra_hir/src/ty/infer.rs b/crates/ra_hir/src/ty/infer.rs index cb28fc6bc..ebaff998e 100644 --- a/crates/ra_hir/src/ty/infer.rs +++ b/crates/ra_hir/src/ty/infer.rs | |||
@@ -414,7 +414,9 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> { | |||
414 | // recursive type | 414 | // recursive type |
415 | return tv.fallback_value(); | 415 | return tv.fallback_value(); |
416 | } | 416 | } |
417 | if let Some(known_ty) = self.var_unification_table.probe_value(inner).known() { | 417 | if let Some(known_ty) = |
418 | self.var_unification_table.inlined_probe_value(inner).known() | ||
419 | { | ||
418 | // known_ty may contain other variables that are known by now | 420 | // known_ty may contain other variables that are known by now |
419 | tv_stack.push(inner); | 421 | tv_stack.push(inner); |
420 | let result = self.resolve_ty_as_possible(tv_stack, known_ty.clone()); | 422 | let result = self.resolve_ty_as_possible(tv_stack, known_ty.clone()); |
@@ -442,7 +444,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> { | |||
442 | match &*ty { | 444 | match &*ty { |
443 | Ty::Infer(tv) => { | 445 | Ty::Infer(tv) => { |
444 | let inner = tv.to_inner(); | 446 | let inner = tv.to_inner(); |
445 | match self.var_unification_table.probe_value(inner).known() { | 447 | match self.var_unification_table.inlined_probe_value(inner).known() { |
446 | Some(known_ty) => { | 448 | Some(known_ty) => { |
447 | // The known_ty can't be a type var itself | 449 | // The known_ty can't be a type var itself |
448 | ty = Cow::Owned(known_ty.clone()); | 450 | ty = Cow::Owned(known_ty.clone()); |
@@ -490,7 +492,9 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> { | |||
490 | // recursive type | 492 | // recursive type |
491 | return tv.fallback_value(); | 493 | return tv.fallback_value(); |
492 | } | 494 | } |
493 | if let Some(known_ty) = self.var_unification_table.probe_value(inner).known() { | 495 | if let Some(known_ty) = |
496 | self.var_unification_table.inlined_probe_value(inner).known() | ||
497 | { | ||
494 | // known_ty may contain other variables that are known by now | 498 | // known_ty may contain other variables that are known by now |
495 | tv_stack.push(inner); | 499 | tv_stack.push(inner); |
496 | let result = self.resolve_ty_completely(tv_stack, known_ty.clone()); | 500 | let result = self.resolve_ty_completely(tv_stack, known_ty.clone()); |
diff --git a/crates/ra_hir/src/ty/infer/unify.rs b/crates/ra_hir/src/ty/infer/unify.rs index 014c7981f..ca33cc7f8 100644 --- a/crates/ra_hir/src/ty/infer/unify.rs +++ b/crates/ra_hir/src/ty/infer/unify.rs | |||
@@ -54,7 +54,9 @@ where | |||
54 | // recursive type | 54 | // recursive type |
55 | return tv.fallback_value(); | 55 | return tv.fallback_value(); |
56 | } | 56 | } |
57 | if let Some(known_ty) = self.ctx.var_unification_table.probe_value(inner).known() { | 57 | if let Some(known_ty) = |
58 | self.ctx.var_unification_table.inlined_probe_value(inner).known() | ||
59 | { | ||
58 | self.var_stack.push(inner); | 60 | self.var_stack.push(inner); |
59 | let result = self.do_canonicalize_ty(known_ty.clone()); | 61 | let result = self.do_canonicalize_ty(known_ty.clone()); |
60 | self.var_stack.pop(); | 62 | self.var_stack.pop(); |
diff --git a/crates/ra_syntax/Cargo.toml b/crates/ra_syntax/Cargo.toml index 68c594202..9c0e856e8 100644 --- a/crates/ra_syntax/Cargo.toml +++ b/crates/ra_syntax/Cargo.toml | |||
@@ -12,7 +12,7 @@ itertools = "0.8.0" | |||
12 | rowan = "0.6.1" | 12 | rowan = "0.6.1" |
13 | rustc_lexer = "0.1.0" | 13 | rustc_lexer = "0.1.0" |
14 | rustc-hash = "1.0.1" | 14 | rustc-hash = "1.0.1" |
15 | arrayvec = "0.4.10" | 15 | arrayvec = "0.5.1" |
16 | once_cell = "1.2.0" | 16 | once_cell = "1.2.0" |
17 | 17 | ||
18 | # This crate transitively depends on `smol_str` via `rowan`. | 18 | # This crate transitively depends on `smol_str` via `rowan`. |