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_unary_op.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_unary_op.snap')
-rw-r--r-- | crates/ra_hir/src/ty/snapshots/tests__infer_unary_op.snap | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_unary_op.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_unary_op.snap index 5021d0eeb..ce0d3c60d 100644 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_unary_op.snap +++ b/crates/ra_hir/src/ty/snapshots/tests__infer_unary_op.snap | |||
@@ -1,8 +1,8 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-01-28T14:51:16.185273502+00:00" | 2 | created: "2019-03-02T19:54:58.571163594Z" |
3 | creator: [email protected] | 3 | creator: [email protected] |
4 | expression: "&result" | ||
5 | source: crates/ra_hir/src/ty/tests.rs | 4 | source: crates/ra_hir/src/ty/tests.rs |
5 | expression: "&result" | ||
6 | --- | 6 | --- |
7 | [27; 28) 'x': SomeType | 7 | [27; 28) 'x': SomeType |
8 | [40; 272) '{ ...lo"; }': () | 8 | [40; 272) '{ ...lo"; }': () |
@@ -37,12 +37,12 @@ source: crates/ra_hir/src/ty/tests.rs | |||
37 | [213; 217) '3.14': f64 | 37 | [213; 217) '3.14': f64 |
38 | [223; 225) '!3': i32 | 38 | [223; 225) '!3': i32 |
39 | [224; 225) '3': i32 | 39 | [224; 225) '3': i32 |
40 | [231; 233) '-x': [unknown] | 40 | [231; 233) '-x': {unknown} |
41 | [232; 233) 'x': SomeType | 41 | [232; 233) 'x': SomeType |
42 | [239; 241) '!x': [unknown] | 42 | [239; 241) '!x': {unknown} |
43 | [240; 241) 'x': SomeType | 43 | [240; 241) 'x': SomeType |
44 | [247; 255) '-"hello"': [unknown] | 44 | [247; 255) '-"hello"': {unknown} |
45 | [248; 255) '"hello"': &str | 45 | [248; 255) '"hello"': &str |
46 | [261; 269) '!"hello"': [unknown] | 46 | [261; 269) '!"hello"': {unknown} |
47 | [262; 269) '"hello"': &str | 47 | [262; 269) '"hello"': &str |
48 | 48 | ||