diff options
author | Florian Diebold <[email protected]> | 2019-03-02 19:55:56 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-03-03 02:00:17 +0000 |
commit | affaf7700a86942f82e4cb25348c719bb928399a (patch) | |
tree | e8d4dfba9b06be10a00c6ccef42f0fce6fe4d9a2 /crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap | |
parent | b7fdad8448cbd3a94c2cb877a1d209f3182ca0d5 (diff) |
Represent unknown types as {unknown} instead of [unknown]
Since the latter could actually be a real type...
Diffstat (limited to 'crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap')
-rw-r--r-- | crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap index 1da46daf8..06ef0007c 100644 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap +++ b/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap | |||
@@ -1,8 +1,8 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-01-22T14:45:00.037734500+00:00" | 2 | created: "2019-03-02T19:54:58.538812297Z" |
3 | creator: [email protected] | 3 | creator: [email protected] |
4 | source: crates/ra_hir/src/ty/tests.rs | ||
4 | expression: "&result" | 5 | expression: "&result" |
5 | source: "crates\\ra_hir\\src\\ty\\tests.rs" | ||
6 | --- | 6 | --- |
7 | [9; 10) 'x': &i32 | 7 | [9; 10) 'x': &i32 |
8 | [18; 369) '{ ...o_x; }': () | 8 | [18; 369) '{ ...o_x; }': () |
@@ -20,21 +20,21 @@ source: "crates\\ra_hir\\src\\ty\\tests.rs" | |||
20 | [84; 85) '1': i32 | 20 | [84; 85) '1': i32 |
21 | [87; 94) '"hello"': &str | 21 | [87; 94) '"hello"': &str |
22 | [102; 152) 'for (e... }': () | 22 | [102; 152) 'for (e... }': () |
23 | [106; 112) '(e, f)': ([unknown], [unknown]) | 23 | [106; 112) '(e, f)': ({unknown}, {unknown}) |
24 | [107; 108) 'e': [unknown] | 24 | [107; 108) 'e': {unknown} |
25 | [110; 111) 'f': [unknown] | 25 | [110; 111) 'f': {unknown} |
26 | [116; 125) 'some_iter': [unknown] | 26 | [116; 125) 'some_iter': {unknown} |
27 | [126; 152) '{ ... }': () | 27 | [126; 152) '{ ... }': () |
28 | [140; 141) 'g': [unknown] | 28 | [140; 141) 'g': {unknown} |
29 | [144; 145) 'e': [unknown] | 29 | [144; 145) 'e': {unknown} |
30 | [158; 205) 'if let... }': () | 30 | [158; 205) 'if let... }': () |
31 | [165; 170) '[val]': [unknown] | 31 | [165; 170) '[val]': {unknown} |
32 | [173; 176) 'opt': [unknown] | 32 | [173; 176) 'opt': {unknown} |
33 | [177; 205) '{ ... }': () | 33 | [177; 205) '{ ... }': () |
34 | [191; 192) 'h': [unknown] | 34 | [191; 192) 'h': {unknown} |
35 | [195; 198) 'val': [unknown] | 35 | [195; 198) 'val': {unknown} |
36 | [215; 221) 'lambda': [unknown] | 36 | [215; 221) 'lambda': {unknown} |
37 | [224; 256) '|a: u6...b; c }': [unknown] | 37 | [224; 256) '|a: u6...b; c }': {unknown} |
38 | [225; 226) 'a': u64 | 38 | [225; 226) 'a': u64 |
39 | [233; 234) 'b': u64 | 39 | [233; 234) 'b': u64 |
40 | [236; 237) 'c': i32 | 40 | [236; 237) 'c': i32 |