diff options
author | Florian Diebold <[email protected]> | 2019-02-09 18:07:35 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-02-09 20:37:30 +0000 |
commit | f1afc933530a87bd0cc7b25726c9a7fff3f3e007 (patch) | |
tree | cfa9a55a6d9df93129502be655d6c26dee1bc5c1 /crates/ra_hir/src/ty/snapshots | |
parent | 7ebde241c00cd9eb816b1aa7cb212a946afb0d3e (diff) |
Fix handling of literal patterns
Wrap them in a LiteralPat node so they can be distinguished from literal
expressions.
Diffstat (limited to 'crates/ra_hir/src/ty/snapshots')
-rw-r--r-- | crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_3.snap | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_3.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_3.snap new file mode 100644 index 000000000..d15b77e17 --- /dev/null +++ b/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_3.snap | |||
@@ -0,0 +1,13 @@ | |||
1 | --- | ||
2 | created: "2019-02-09T18:02:37.377591660Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [18; 102) '{ ... } }': () | ||
8 | [24; 100) 'match ... }': () | ||
9 | [42; 88) 'SizeSk...tail }': [unknown] | ||
10 | [76; 80) 'true': [unknown] | ||
11 | [82; 86) 'tail': [unknown] | ||
12 | [92; 94) '{}': () | ||
13 | |||