diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-18 06:22:07 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-18 06:22:07 +0000 |
commit | 8b95c0e0c22a67d486c08416175c79b99da5acd9 (patch) | |
tree | 0847a835f1ab643a77b00b2b696a33c91c0b9946 /crates/ra_hir/src/ty | |
parent | b5df9656245079d3dc4457ae326f9710ff58a298 (diff) | |
parent | b82db684003b817d47c1bc8c0d3c6afc88be2663 (diff) |
Merge #850
850: Handle tuple structs / enum variants properly in type inference r=matklad a=flodiebold
Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r-- | crates/ra_hir/src/ty/snapshots/tests__infer_struct.snap | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_struct.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_struct.snap index 8747fae18..294186b06 100644 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_struct.snap +++ b/crates/ra_hir/src/ty/snapshots/tests__infer_struct.snap | |||
@@ -1,21 +1,21 @@ | |||
1 | --- | 1 | --- |
2 | created: "2019-01-24T14:51:32.808861856+00:00" | 2 | created: "2019-02-17T16:16:58.863630956Z" |
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 | [72; 154) '{ ...a.c; }': () | 7 | [72; 154) '{ ...a.c; }': () |
8 | [82; 83) 'c': [unknown] | 8 | [82; 83) 'c': C |
9 | [86; 87) 'C': C | 9 | [86; 87) 'C': fn C(usize) -> C |
10 | [86; 90) 'C(1)': [unknown] | 10 | [86; 90) 'C(1)': C |
11 | [88; 89) '1': i32 | 11 | [88; 89) '1': usize |
12 | [96; 97) 'B': B | 12 | [96; 97) 'B': B |
13 | [107; 108) 'a': A | 13 | [107; 108) 'a': A |
14 | [114; 133) 'A { b:...C(1) }': A | 14 | [114; 133) 'A { b:...C(1) }': A |
15 | [121; 122) 'B': B | 15 | [121; 122) 'B': B |
16 | [127; 128) 'C': C | 16 | [127; 128) 'C': fn C(usize) -> C |
17 | [127; 131) 'C(1)': C | 17 | [127; 131) 'C(1)': C |
18 | [129; 130) '1': i32 | 18 | [129; 130) '1': usize |
19 | [139; 140) 'a': A | 19 | [139; 140) 'a': A |
20 | [139; 142) 'a.b': B | 20 | [139; 142) 'a.b': B |
21 | [148; 149) 'a': A | 21 | [148; 149) 'a': A |