diff options
author | Florian Diebold <[email protected]> | 2019-01-12 20:27:35 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-01-19 15:02:06 +0000 |
commit | 688a45e00b53412a7a16360c6d678a5d91a95789 (patch) | |
tree | d3f3481bbad9889d22867729e9efcde184e45671 /crates/ra_hir/src/ty/tests/data/struct_generics.txt | |
parent | 415cdc52108807126f0339fbf812856582f01c18 (diff) |
Implement beginnings of generics
- add HIR for generic params
- resolve generic params in type paths
- add substitions for ADTs
- insert type variables for substitutions
Diffstat (limited to 'crates/ra_hir/src/ty/tests/data/struct_generics.txt')
-rw-r--r-- | crates/ra_hir/src/ty/tests/data/struct_generics.txt | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/crates/ra_hir/src/ty/tests/data/struct_generics.txt b/crates/ra_hir/src/ty/tests/data/struct_generics.txt index d1026b459..88cd2b409 100644 --- a/crates/ra_hir/src/ty/tests/data/struct_generics.txt +++ b/crates/ra_hir/src/ty/tests/data/struct_generics.txt | |||
@@ -1,15 +1,15 @@ | |||
1 | [36; 38) 'a1': A | 1 | [36; 38) 'a1': A<[unknown]> |
2 | [48; 49) 'i': i32 | 2 | [48; 49) 'i': i32 |
3 | [56; 147) '{ ...3.x; }': () | 3 | [56; 147) '{ ...3.x; }': () |
4 | [62; 64) 'a1': A | 4 | [62; 64) 'a1': A<[unknown]> |
5 | [62; 66) 'a1.x': [unknown] | 5 | [62; 66) 'a1.x': [unknown] |
6 | [76; 78) 'a2': A | 6 | [76; 78) 'a2': A<i32> |
7 | [81; 91) 'A { x: i }': A | 7 | [81; 91) 'A { x: i }': A<i32> |
8 | [88; 89) 'i': i32 | 8 | [88; 89) 'i': i32 |
9 | [97; 99) 'a2': A | 9 | [97; 99) 'a2': A<i32> |
10 | [97; 101) 'a2.x': [unknown] | 10 | [97; 101) 'a2.x': i32 |
11 | [111; 113) 'a3': A | 11 | [111; 113) 'a3': A<i32> |
12 | [116; 134) 'A::<i1...x: 1 }': A | 12 | [116; 134) 'A::<i1...x: 1 }': A<i32> |
13 | [131; 132) '1': [unknown] | 13 | [131; 132) '1': i32 |
14 | [140; 142) 'a3': A | 14 | [140; 142) 'a3': A<i32> |
15 | [140; 144) 'a3.x': [unknown] | 15 | [140; 144) 'a3.x': i32 |