diff options
Diffstat (limited to 'crates/ra_hir/src/ty/tests/data')
24 files changed, 0 insertions, 485 deletions
diff --git a/crates/ra_hir/src/ty/tests/data/adt_pattern.txt b/crates/ra_hir/src/ty/tests/data/adt_pattern.txt deleted file mode 100644 index 2daf9647b..000000000 --- a/crates/ra_hir/src/ty/tests/data/adt_pattern.txt +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | [68; 262) '{ ... d; }': () | ||
2 | [78; 79) 'e': E | ||
3 | [82; 95) 'E::A { x: 3 }': E | ||
4 | [92; 93) '3': usize | ||
5 | [106; 113) 'S(y, z)': S | ||
6 | [108; 109) 'y': u32 | ||
7 | [111; 112) 'z': E | ||
8 | [116; 119) 'foo': S | ||
9 | [129; 148) 'E::A {..._var }': E | ||
10 | [139; 146) 'new_var': usize | ||
11 | [151; 152) 'e': E | ||
12 | [159; 218) 'match ... }': usize | ||
13 | [165; 166) 'e': E | ||
14 | [177; 187) 'E::A { x }': E | ||
15 | [184; 185) 'x': usize | ||
16 | [191; 192) 'x': usize | ||
17 | [202; 206) 'E::B': E | ||
18 | [210; 211) '1': usize | ||
19 | [229; 248) 'ref d ...{ .. }': &E | ||
20 | [237; 248) 'E::A { .. }': E | ||
21 | [251; 252) 'e': E | ||
22 | [258; 259) 'd': &E | ||
diff --git a/crates/ra_hir/src/ty/tests/data/array.txt b/crates/ra_hir/src/ty/tests/data/array.txt deleted file mode 100644 index acdf74ba4..000000000 --- a/crates/ra_hir/src/ty/tests/data/array.txt +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | [9; 10) 'x': &str | ||
2 | [18; 19) 'y': isize | ||
3 | [28; 293) '{ ... []; }': () | ||
4 | [38; 39) 'a': [&str] | ||
5 | [42; 45) '[x]': [&str] | ||
6 | [43; 44) 'x': &str | ||
7 | [55; 56) 'b': [[&str]] | ||
8 | [59; 65) '[a, a]': [[&str]] | ||
9 | [60; 61) 'a': [&str] | ||
10 | [63; 64) 'a': [&str] | ||
11 | [75; 76) 'c': [[[&str]]] | ||
12 | [79; 85) '[b, b]': [[[&str]]] | ||
13 | [80; 81) 'b': [[&str]] | ||
14 | [83; 84) 'b': [[&str]] | ||
15 | [96; 97) 'd': [isize] | ||
16 | [100; 112) '[y, 1, 2, 3]': [isize] | ||
17 | [101; 102) 'y': isize | ||
18 | [104; 105) '1': isize | ||
19 | [107; 108) '2': isize | ||
20 | [110; 111) '3': isize | ||
21 | [122; 123) 'd': [isize] | ||
22 | [126; 138) '[1, y, 2, 3]': [isize] | ||
23 | [127; 128) '1': isize | ||
24 | [130; 131) 'y': isize | ||
25 | [133; 134) '2': isize | ||
26 | [136; 137) '3': isize | ||
27 | [148; 149) 'e': [isize] | ||
28 | [152; 155) '[y]': [isize] | ||
29 | [153; 154) 'y': isize | ||
30 | [165; 166) 'f': [[isize]] | ||
31 | [169; 175) '[d, d]': [[isize]] | ||
32 | [170; 171) 'd': [isize] | ||
33 | [173; 174) 'd': [isize] | ||
34 | [185; 186) 'g': [[isize]] | ||
35 | [189; 195) '[e, e]': [[isize]] | ||
36 | [190; 191) 'e': [isize] | ||
37 | [193; 194) 'e': [isize] | ||
38 | [206; 207) 'h': [i32] | ||
39 | [210; 216) '[1, 2]': [i32] | ||
40 | [211; 212) '1': i32 | ||
41 | [214; 215) '2': i32 | ||
42 | [226; 227) 'i': [&str] | ||
43 | [230; 240) '["a", "b"]': [&str] | ||
44 | [231; 234) '"a"': &str | ||
45 | [236; 239) '"b"': &str | ||
46 | [251; 252) 'b': [[&str]] | ||
47 | [255; 265) '[a, ["b"]]': [[&str]] | ||
48 | [256; 257) 'a': [&str] | ||
49 | [259; 264) '["b"]': [&str] | ||
50 | [260; 263) '"b"': &str | ||
51 | [275; 276) 'x': [u8] | ||
52 | [288; 290) '[]': [u8] | ||
diff --git a/crates/ra_hir/src/ty/tests/data/backwards.txt b/crates/ra_hir/src/ty/tests/data/backwards.txt deleted file mode 100644 index b8593cfd1..000000000 --- a/crates/ra_hir/src/ty/tests/data/backwards.txt +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | [14; 15) 'x': u32 | ||
2 | [22; 24) '{}': () | ||
3 | [78; 231) '{ ...t &c }': &mut &f64 | ||
4 | [88; 89) 'a': u32 | ||
5 | [92; 108) 'unknow...nction': [unknown] | ||
6 | [92; 110) 'unknow...tion()': u32 | ||
7 | [116; 125) 'takes_u32': fn(u32) -> () | ||
8 | [116; 128) 'takes_u32(a)': () | ||
9 | [126; 127) 'a': u32 | ||
10 | [138; 139) 'b': i32 | ||
11 | [142; 158) 'unknow...nction': [unknown] | ||
12 | [142; 160) 'unknow...tion()': i32 | ||
13 | [166; 184) 'S { i3...d: b }': S | ||
14 | [181; 182) 'b': i32 | ||
15 | [194; 195) 'c': f64 | ||
16 | [198; 214) 'unknow...nction': [unknown] | ||
17 | [198; 216) 'unknow...tion()': f64 | ||
18 | [222; 229) '&mut &c': &mut &f64 | ||
19 | [227; 229) '&c': &f64 | ||
20 | [228; 229) 'c': f64 | ||
diff --git a/crates/ra_hir/src/ty/tests/data/basics.txt b/crates/ra_hir/src/ty/tests/data/basics.txt deleted file mode 100644 index e65fe07aa..000000000 --- a/crates/ra_hir/src/ty/tests/data/basics.txt +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | [9; 10) 'a': u32 | ||
2 | [17; 18) 'b': isize | ||
3 | [27; 28) 'c': ! | ||
4 | [33; 34) 'd': &str | ||
5 | [42; 121) '{ ...f32; }': () | ||
6 | [48; 49) 'a': u32 | ||
7 | [55; 56) 'b': isize | ||
8 | [62; 63) 'c': ! | ||
9 | [69; 70) 'd': &str | ||
10 | [76; 82) '1usize': usize | ||
11 | [88; 94) '1isize': isize | ||
12 | [100; 106) '"test"': &str | ||
13 | [112; 118) '1.0f32': f32 | ||
diff --git a/crates/ra_hir/src/ty/tests/data/binary_op.txt b/crates/ra_hir/src/ty/tests/data/binary_op.txt deleted file mode 100644 index 58a727691..000000000 --- a/crates/ra_hir/src/ty/tests/data/binary_op.txt +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | [6; 7) 'x': bool | ||
2 | [22; 34) '{ 0i32 }': i32 | ||
3 | [28; 32) '0i32': i32 | ||
4 | [54; 350) '{ ... < 3 }': bool | ||
5 | [64; 65) 'x': bool | ||
6 | [68; 69) 'a': bool | ||
7 | [68; 74) 'a && b': bool | ||
8 | [73; 74) 'b': bool | ||
9 | [84; 85) 'y': bool | ||
10 | [88; 92) 'true': bool | ||
11 | [88; 101) 'true || false': bool | ||
12 | [96; 101) 'false': bool | ||
13 | [111; 112) 'z': bool | ||
14 | [115; 116) 'x': bool | ||
15 | [115; 121) 'x == y': bool | ||
16 | [120; 121) 'y': bool | ||
17 | [131; 142) 'minus_forty': isize | ||
18 | [152; 160) '-40isize': isize | ||
19 | [153; 160) '40isize': isize | ||
20 | [170; 171) 'h': bool | ||
21 | [174; 185) 'minus_forty': isize | ||
22 | [174; 196) 'minus_...ONST_2': bool | ||
23 | [189; 196) 'CONST_2': isize | ||
24 | [206; 207) 'c': i32 | ||
25 | [210; 211) 'f': fn(bool) -> i32 | ||
26 | [210; 219) 'f(z || y)': i32 | ||
27 | [210; 223) 'f(z || y) + 5': i32 | ||
28 | [212; 213) 'z': bool | ||
29 | [212; 218) 'z || y': bool | ||
30 | [217; 218) 'y': bool | ||
31 | [222; 223) '5': i32 | ||
32 | [233; 234) 'd': [unknown] | ||
33 | [237; 238) 'b': [unknown] | ||
34 | [248; 249) 'g': () | ||
35 | [252; 263) 'minus_forty': isize | ||
36 | [252; 268) 'minus_...y ^= i': () | ||
37 | [267; 268) 'i': isize | ||
38 | [278; 281) 'ten': usize | ||
39 | [291; 293) '10': usize | ||
40 | [303; 316) 'ten_is_eleven': bool | ||
41 | [319; 322) 'ten': usize | ||
42 | [319; 334) 'ten == some_num': bool | ||
43 | [326; 334) 'some_num': usize | ||
44 | [341; 344) 'ten': usize | ||
45 | [341; 348) 'ten < 3': bool | ||
46 | [347; 348) '3': usize | ||
diff --git a/crates/ra_hir/src/ty/tests/data/bug_484.txt b/crates/ra_hir/src/ty/tests/data/bug_484.txt deleted file mode 100644 index 300530551..000000000 --- a/crates/ra_hir/src/ty/tests/data/bug_484.txt +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | [11; 37) '{ l... {}; }': () | ||
2 | [20; 21) 'x': () | ||
3 | [24; 34) 'if true {}': () | ||
4 | [27; 31) 'true': bool | ||
5 | [32; 34) '{}': () | ||
diff --git a/crates/ra_hir/src/ty/tests/data/bug_585.txt b/crates/ra_hir/src/ty/tests/data/bug_585.txt deleted file mode 100644 index 627702a38..000000000 --- a/crates/ra_hir/src/ty/tests/data/bug_585.txt +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | [11; 89) '{ ... } }': () | ||
2 | [17; 21) 'X {}': [unknown] | ||
3 | [27; 87) 'match ... }': () | ||
4 | [33; 34) 'x': [unknown] | ||
5 | [45; 52) 'A::B {}': [unknown] | ||
6 | [56; 58) '()': () | ||
7 | [68; 74) 'A::Y()': [unknown] | ||
8 | [78; 80) '()': () | ||
diff --git a/crates/ra_hir/src/ty/tests/data/enum.txt b/crates/ra_hir/src/ty/tests/data/enum.txt deleted file mode 100644 index 481eb0bc7..000000000 --- a/crates/ra_hir/src/ty/tests/data/enum.txt +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | [48; 82) '{ E:...:V2; }': () | ||
2 | [52; 70) 'E::V1 ...d: 1 }': E | ||
3 | [67; 68) '1': u32 | ||
4 | [74; 79) 'E::V2': E | ||
diff --git a/crates/ra_hir/src/ty/tests/data/field_autoderef.txt b/crates/ra_hir/src/ty/tests/data/field_autoderef.txt deleted file mode 100644 index e1db1db40..000000000 --- a/crates/ra_hir/src/ty/tests/data/field_autoderef.txt +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | [44; 45) 'a': A | ||
2 | [50; 213) '{ ...5.b; }': () | ||
3 | [60; 62) 'a1': A | ||
4 | [65; 66) 'a': A | ||
5 | [72; 74) 'a1': A | ||
6 | [72; 76) 'a1.b': B | ||
7 | [86; 88) 'a2': &A | ||
8 | [91; 93) '&a': &A | ||
9 | [92; 93) 'a': A | ||
10 | [99; 101) 'a2': &A | ||
11 | [99; 103) 'a2.b': B | ||
12 | [113; 115) 'a3': &mut A | ||
13 | [118; 124) '&mut a': &mut A | ||
14 | [123; 124) 'a': A | ||
15 | [130; 132) 'a3': &mut A | ||
16 | [130; 134) 'a3.b': B | ||
17 | [144; 146) 'a4': &&&&&&&A | ||
18 | [149; 157) '&&&&&&&a': &&&&&&&A | ||
19 | [150; 157) '&&&&&&a': &&&&&&A | ||
20 | [151; 157) '&&&&&a': &&&&&A | ||
21 | [152; 157) '&&&&a': &&&&A | ||
22 | [153; 157) '&&&a': &&&A | ||
23 | [154; 157) '&&a': &&A | ||
24 | [155; 157) '&a': &A | ||
25 | [156; 157) 'a': A | ||
26 | [163; 165) 'a4': &&&&&&&A | ||
27 | [163; 167) 'a4.b': B | ||
28 | [177; 179) 'a5': &mut &&mut &&mut A | ||
29 | [182; 200) '&mut &...&mut a': &mut &&mut &&mut A | ||
30 | [187; 200) '&&mut &&mut a': &&mut &&mut A | ||
31 | [188; 200) '&mut &&mut a': &mut &&mut A | ||
32 | [193; 200) '&&mut a': &&mut A | ||
33 | [194; 200) '&mut a': &mut A | ||
34 | [199; 200) 'a': A | ||
35 | [206; 208) 'a5': &mut &&mut &&mut A | ||
36 | [206; 210) 'a5.b': B | ||
37 | [224; 226) 'a1': *const A | ||
38 | [238; 240) 'a2': *mut A | ||
39 | [250; 273) '{ ...2.b; }': () | ||
40 | [256; 258) 'a1': *const A | ||
41 | [256; 260) 'a1.b': B | ||
42 | [266; 268) 'a2': *mut A | ||
43 | [266; 270) 'a2.b': B | ||
diff --git a/crates/ra_hir/src/ty/tests/data/function_generics.txt b/crates/ra_hir/src/ty/tests/data/function_generics.txt deleted file mode 100644 index e44d26cfd..000000000 --- a/crates/ra_hir/src/ty/tests/data/function_generics.txt +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | [10; 11) 't': [unknown] | ||
2 | [21; 26) '{ t }': [unknown] | ||
3 | [23; 24) 't': [unknown] | ||
4 | [38; 98) '{ ...(1); }': () | ||
5 | [44; 46) 'id': fn(T) -> T | ||
6 | [44; 52) 'id(1u32)': T | ||
7 | [47; 51) '1u32': u32 | ||
8 | [58; 68) 'id::<i128>': fn(T) -> T | ||
9 | [58; 71) 'id::<i128>(1)': T | ||
10 | [69; 70) '1': T | ||
11 | [81; 82) 'x': T | ||
12 | [90; 92) 'id': fn(T) -> T | ||
13 | [90; 95) 'id(1)': T | ||
14 | [93; 94) '1': T | ||
diff --git a/crates/ra_hir/src/ty/tests/data/generic_chain.txt b/crates/ra_hir/src/ty/tests/data/generic_chain.txt deleted file mode 100644 index 568e00846..000000000 --- a/crates/ra_hir/src/ty/tests/data/generic_chain.txt +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | [53; 57) 'self': A<[unknown]> | ||
2 | [65; 87) '{ ... }': [unknown] | ||
3 | [75; 79) 'self': A<[unknown]> | ||
4 | [75; 81) 'self.x': [unknown] | ||
5 | [99; 100) 't': [unknown] | ||
6 | [110; 115) '{ t }': [unknown] | ||
7 | [112; 113) 't': [unknown] | ||
8 | [135; 261) '{ ....x() }': i128 | ||
9 | [146; 147) 'x': T | ||
10 | [150; 151) '1': T | ||
11 | [162; 163) 'y': T | ||
12 | [166; 168) 'id': fn(T) -> T | ||
13 | [166; 171) 'id(x)': T | ||
14 | [169; 170) 'x': T | ||
15 | [182; 183) 'a': A<T> | ||
16 | [186; 200) 'A { x: id(y) }': A<T> | ||
17 | [193; 195) 'id': fn(T) -> T | ||
18 | [193; 198) 'id(y)': T | ||
19 | [196; 197) 'y': T | ||
20 | [211; 212) 'z': T | ||
21 | [215; 217) 'id': fn(T) -> T | ||
22 | [215; 222) 'id(a.x)': T | ||
23 | [218; 219) 'a': A<T> | ||
24 | [218; 221) 'a.x': T | ||
25 | [233; 234) 'b': A<T> | ||
26 | [237; 247) 'A { x: z }': A<T> | ||
27 | [244; 245) 'z': T | ||
28 | [254; 255) 'b': A<T> | ||
29 | [254; 259) 'b.x()': i128 | ||
diff --git a/crates/ra_hir/src/ty/tests/data/generics_in_patterns.txt b/crates/ra_hir/src/ty/tests/data/generics_in_patterns.txt deleted file mode 100644 index 1b01ef19e..000000000 --- a/crates/ra_hir/src/ty/tests/data/generics_in_patterns.txt +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | [79; 81) 'a1': A<u32> | ||
2 | [91; 92) 'o': Option<u64> | ||
3 | [107; 244) '{ ... }; }': () | ||
4 | [117; 128) 'A { x: x2 }': A<u32> | ||
5 | [124; 126) 'x2': u32 | ||
6 | [131; 133) 'a1': A<u32> | ||
7 | [143; 161) 'A::<i6...: x3 }': A<i64> | ||
8 | [157; 159) 'x3': i64 | ||
9 | [164; 174) 'A { x: 1 }': A<i64> | ||
10 | [171; 172) '1': i64 | ||
11 | [180; 241) 'match ... }': u64 | ||
12 | [186; 187) 'o': Option<u64> | ||
13 | [198; 213) 'Option::Some(t)': Option<u64> | ||
14 | [211; 212) 't': u64 | ||
15 | [217; 218) 't': u64 | ||
16 | [228; 229) '_': Option<u64> | ||
17 | [233; 234) '1': u64 | ||
diff --git a/crates/ra_hir/src/ty/tests/data/inherent_method.txt b/crates/ra_hir/src/ty/tests/data/inherent_method.txt deleted file mode 100644 index 6e6f70357..000000000 --- a/crates/ra_hir/src/ty/tests/data/inherent_method.txt +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | [32; 36) 'self': A | ||
2 | [38; 39) 'x': u32 | ||
3 | [53; 55) '{}': () | ||
4 | [103; 107) 'self': &A | ||
5 | [109; 110) 'x': u64 | ||
6 | [124; 126) '{}': () | ||
7 | [144; 145) 'a': A | ||
8 | [150; 198) '{ ...(1); }': () | ||
9 | [156; 157) 'a': A | ||
10 | [156; 164) 'a.foo(1)': i32 | ||
11 | [162; 163) '1': u32 | ||
12 | [170; 181) '(&a).bar(1)': i64 | ||
13 | [171; 173) '&a': &A | ||
14 | [172; 173) 'a': A | ||
15 | [179; 180) '1': u64 | ||
16 | [187; 188) 'a': A | ||
17 | [187; 195) 'a.bar(1)': i64 | ||
18 | [193; 194) '1': u64 | ||
diff --git a/crates/ra_hir/src/ty/tests/data/let.txt b/crates/ra_hir/src/ty/tests/data/let.txt deleted file mode 100644 index 8815dba41..000000000 --- a/crates/ra_hir/src/ty/tests/data/let.txt +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | [11; 71) '{ ...= b; }': () | ||
2 | [21; 22) 'a': isize | ||
3 | [25; 31) '1isize': isize | ||
4 | [41; 42) 'b': usize | ||
5 | [52; 53) '1': usize | ||
6 | [63; 64) 'c': usize | ||
7 | [67; 68) 'b': usize | ||
diff --git a/crates/ra_hir/src/ty/tests/data/literals.txt b/crates/ra_hir/src/ty/tests/data/literals.txt deleted file mode 100644 index 84ee2c11b..000000000 --- a/crates/ra_hir/src/ty/tests/data/literals.txt +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | [11; 201) '{ ...o"#; }': () | ||
2 | [17; 21) '5i32': i32 | ||
3 | [27; 34) '"hello"': &str | ||
4 | [40; 48) 'b"bytes"': &[u8] | ||
5 | [54; 57) ''c'': char | ||
6 | [63; 67) 'b'b'': u8 | ||
7 | [73; 77) '3.14': f64 | ||
8 | [83; 87) '5000': i32 | ||
9 | [93; 98) 'false': bool | ||
10 | [104; 108) 'true': bool | ||
11 | [114; 182) 'r#" ... "#': &str | ||
12 | [188; 198) 'br#"yolo"#': &[u8] | ||
diff --git a/crates/ra_hir/src/ty/tests/data/no_panic_on_field_of_enum.txt b/crates/ra_hir/src/ty/tests/data/no_panic_on_field_of_enum.txt deleted file mode 100644 index 4dca0b7f4..000000000 --- a/crates/ra_hir/src/ty/tests/data/no_panic_on_field_of_enum.txt +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | [20; 21) 'x': X | ||
2 | [26; 47) '{ ...eld; }': () | ||
3 | [32; 33) 'x': X | ||
4 | [32; 44) 'x.some_field': [unknown] | ||
diff --git a/crates/ra_hir/src/ty/tests/data/paths.txt b/crates/ra_hir/src/ty/tests/data/paths.txt deleted file mode 100644 index b22f4d4a5..000000000 --- a/crates/ra_hir/src/ty/tests/data/paths.txt +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | [15; 20) '{ 1 }': u32 | ||
2 | [17; 18) '1': u32 | ||
3 | [48; 53) '{ 1 }': u32 | ||
4 | [50; 51) '1': u32 | ||
5 | [67; 91) '{ ...c(); }': () | ||
6 | [73; 74) 'a': fn() -> u32 | ||
7 | [73; 76) 'a()': u32 | ||
8 | [82; 86) 'b::c': fn() -> u32 | ||
9 | [82; 88) 'b::c()': u32 | ||
diff --git a/crates/ra_hir/src/ty/tests/data/pattern.txt b/crates/ra_hir/src/ty/tests/data/pattern.txt deleted file mode 100644 index 966289aaf..000000000 --- a/crates/ra_hir/src/ty/tests/data/pattern.txt +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | [9; 10) 'x': &i32 | ||
2 | [18; 369) '{ ...o_x; }': () | ||
3 | [28; 29) 'y': &i32 | ||
4 | [32; 33) 'x': &i32 | ||
5 | [43; 45) '&z': &i32 | ||
6 | [44; 45) 'z': i32 | ||
7 | [48; 49) 'x': &i32 | ||
8 | [59; 60) 'a': i32 | ||
9 | [63; 64) 'z': i32 | ||
10 | [74; 80) '(c, d)': (i32, &str) | ||
11 | [75; 76) 'c': i32 | ||
12 | [78; 79) 'd': &str | ||
13 | [83; 95) '(1, "hello")': (i32, &str) | ||
14 | [84; 85) '1': i32 | ||
15 | [87; 94) '"hello"': &str | ||
16 | [102; 152) 'for (e... }': () | ||
17 | [106; 112) '(e, f)': ([unknown], [unknown]) | ||
18 | [107; 108) 'e': [unknown] | ||
19 | [110; 111) 'f': [unknown] | ||
20 | [116; 125) 'some_iter': [unknown] | ||
21 | [126; 152) '{ ... }': () | ||
22 | [140; 141) 'g': [unknown] | ||
23 | [144; 145) 'e': [unknown] | ||
24 | [158; 205) 'if let... }': () | ||
25 | [165; 170) '[val]': [unknown] | ||
26 | [173; 176) 'opt': [unknown] | ||
27 | [177; 205) '{ ... }': () | ||
28 | [191; 192) 'h': [unknown] | ||
29 | [195; 198) 'val': [unknown] | ||
30 | [215; 221) 'lambda': [unknown] | ||
31 | [224; 256) '|a: u6...b; c }': [unknown] | ||
32 | [225; 226) 'a': u64 | ||
33 | [233; 234) 'b': u64 | ||
34 | [236; 237) 'c': i32 | ||
35 | [244; 256) '{ a + b; c }': i32 | ||
36 | [246; 247) 'a': u64 | ||
37 | [246; 251) 'a + b': u64 | ||
38 | [250; 251) 'b': u64 | ||
39 | [253; 254) 'c': i32 | ||
40 | [267; 279) 'ref ref_to_x': &&i32 | ||
41 | [282; 283) 'x': &i32 | ||
42 | [293; 302) 'mut mut_x': &i32 | ||
43 | [305; 306) 'x': &i32 | ||
44 | [316; 336) 'ref mu...f_to_x': &mut &i32 | ||
45 | [339; 340) 'x': &i32 | ||
46 | [350; 351) 'k': &mut &i32 | ||
47 | [354; 366) 'mut_ref_to_x': &mut &i32 | ||
diff --git a/crates/ra_hir/src/ty/tests/data/refs_and_ptrs.txt b/crates/ra_hir/src/ty/tests/data/refs_and_ptrs.txt deleted file mode 100644 index afab343ea..000000000 --- a/crates/ra_hir/src/ty/tests/data/refs_and_ptrs.txt +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | [9; 10) 'a': &u32 | ||
2 | [18; 19) 'b': &mut u32 | ||
3 | [31; 32) 'c': *const u32 | ||
4 | [46; 47) 'd': *mut u32 | ||
5 | [59; 150) '{ ... *d; }': () | ||
6 | [65; 66) 'a': &u32 | ||
7 | [72; 74) '*a': u32 | ||
8 | [73; 74) 'a': &u32 | ||
9 | [80; 82) '&a': &&u32 | ||
10 | [81; 82) 'a': &u32 | ||
11 | [88; 94) '&mut a': &mut &u32 | ||
12 | [93; 94) 'a': &u32 | ||
13 | [100; 101) 'b': &mut u32 | ||
14 | [107; 109) '*b': u32 | ||
15 | [108; 109) 'b': &mut u32 | ||
16 | [115; 117) '&b': &&mut u32 | ||
17 | [116; 117) 'b': &mut u32 | ||
18 | [123; 124) 'c': *const u32 | ||
19 | [130; 132) '*c': u32 | ||
20 | [131; 132) 'c': *const u32 | ||
21 | [138; 139) 'd': *mut u32 | ||
22 | [145; 147) '*d': u32 | ||
23 | [146; 147) 'd': *mut u32 | ||
diff --git a/crates/ra_hir/src/ty/tests/data/self.txt b/crates/ra_hir/src/ty/tests/data/self.txt deleted file mode 100644 index c38029f97..000000000 --- a/crates/ra_hir/src/ty/tests/data/self.txt +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | [34; 38) 'self': &S | ||
2 | [40; 61) '{ ... }': () | ||
3 | [50; 54) 'self': &S | ||
4 | [75; 79) 'self': &S | ||
5 | [88; 109) '{ ... }': () | ||
6 | [98; 102) 'self': &S | ||
diff --git a/crates/ra_hir/src/ty/tests/data/struct.txt b/crates/ra_hir/src/ty/tests/data/struct.txt deleted file mode 100644 index be9e12d02..000000000 --- a/crates/ra_hir/src/ty/tests/data/struct.txt +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | [72; 154) '{ ...a.c; }': () | ||
2 | [82; 83) 'c': [unknown] | ||
3 | [86; 87) 'C': [unknown] | ||
4 | [86; 90) 'C(1)': [unknown] | ||
5 | [88; 89) '1': i32 | ||
6 | [96; 97) 'B': [unknown] | ||
7 | [107; 108) 'a': A | ||
8 | [114; 133) 'A { b:...C(1) }': A | ||
9 | [121; 122) 'B': B | ||
10 | [127; 128) 'C': [unknown] | ||
11 | [127; 131) 'C(1)': C | ||
12 | [129; 130) '1': i32 | ||
13 | [139; 140) 'a': A | ||
14 | [139; 142) 'a.b': B | ||
15 | [148; 149) 'a': A | ||
16 | [148; 151) 'a.c': C | ||
diff --git a/crates/ra_hir/src/ty/tests/data/struct_generics.txt b/crates/ra_hir/src/ty/tests/data/struct_generics.txt deleted file mode 100644 index 1024a39a9..000000000 --- a/crates/ra_hir/src/ty/tests/data/struct_generics.txt +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | [36; 38) 'a1': A<u32> | ||
2 | [48; 49) 'i': i32 | ||
3 | [56; 147) '{ ...3.x; }': () | ||
4 | [62; 64) 'a1': A<u32> | ||
5 | [62; 66) 'a1.x': u32 | ||
6 | [76; 78) 'a2': A<i32> | ||
7 | [81; 91) 'A { x: i }': A<i32> | ||
8 | [88; 89) 'i': i32 | ||
9 | [97; 99) 'a2': A<i32> | ||
10 | [97; 101) 'a2.x': i32 | ||
11 | [111; 113) 'a3': A<i128> | ||
12 | [116; 134) 'A::<i1...x: 1 }': A<i128> | ||
13 | [131; 132) '1': i128 | ||
14 | [140; 142) 'a3': A<i128> | ||
15 | [140; 144) 'a3.x': i128 | ||
diff --git a/crates/ra_hir/src/ty/tests/data/tuple.txt b/crates/ra_hir/src/ty/tests/data/tuple.txt deleted file mode 100644 index a95d3c286..000000000 --- a/crates/ra_hir/src/ty/tests/data/tuple.txt +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | [9; 10) 'x': &str | ||
2 | [18; 19) 'y': isize | ||
3 | [28; 170) '{ ...d"); }': () | ||
4 | [38; 39) 'a': (u32, &str) | ||
5 | [55; 63) '(1, "a")': (u32, &str) | ||
6 | [56; 57) '1': u32 | ||
7 | [59; 62) '"a"': &str | ||
8 | [73; 74) 'b': ((u32, &str), &str) | ||
9 | [77; 83) '(a, x)': ((u32, &str), &str) | ||
10 | [78; 79) 'a': (u32, &str) | ||
11 | [81; 82) 'x': &str | ||
12 | [93; 94) 'c': (isize, &str) | ||
13 | [97; 103) '(y, x)': (isize, &str) | ||
14 | [98; 99) 'y': isize | ||
15 | [101; 102) 'x': &str | ||
16 | [113; 114) 'd': ((isize, &str), &str) | ||
17 | [117; 123) '(c, x)': ((isize, &str), &str) | ||
18 | [118; 119) 'c': (isize, &str) | ||
19 | [121; 122) 'x': &str | ||
20 | [133; 134) 'e': (i32, &str) | ||
21 | [137; 145) '(1, "e")': (i32, &str) | ||
22 | [138; 139) '1': i32 | ||
23 | [141; 144) '"e"': &str | ||
24 | [155; 156) 'f': ((i32, &str), &str) | ||
25 | [159; 167) '(e, "d")': ((i32, &str), &str) | ||
26 | [160; 161) 'e': (i32, &str) | ||
27 | [163; 166) '"d"': &str | ||
diff --git a/crates/ra_hir/src/ty/tests/data/unary_op.txt b/crates/ra_hir/src/ty/tests/data/unary_op.txt deleted file mode 100644 index 203022e82..000000000 --- a/crates/ra_hir/src/ty/tests/data/unary_op.txt +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | [27; 28) 'x': SomeType | ||
2 | [40; 197) '{ ...lo"; }': () | ||
3 | [50; 51) 'b': bool | ||
4 | [54; 59) 'false': bool | ||
5 | [69; 70) 'c': bool | ||
6 | [73; 75) '!b': bool | ||
7 | [74; 75) 'b': bool | ||
8 | [85; 86) 'a': i128 | ||
9 | [89; 92) '100': i128 | ||
10 | [102; 103) 'd': i128 | ||
11 | [112; 114) '-a': i128 | ||
12 | [113; 114) 'a': i128 | ||
13 | [124; 125) 'e': i32 | ||
14 | [128; 132) '-100': i32 | ||
15 | [129; 132) '100': i32 | ||
16 | [142; 143) 'f': bool | ||
17 | [146; 153) '!!!true': bool | ||
18 | [147; 153) '!!true': bool | ||
19 | [148; 153) '!true': bool | ||
20 | [149; 153) 'true': bool | ||
21 | [159; 164) '-3.14': f64 | ||
22 | [160; 164) '3.14': f64 | ||
23 | [170; 172) '-x': [unknown] | ||
24 | [171; 172) 'x': SomeType | ||
25 | [178; 180) '!x': [unknown] | ||
26 | [179; 180) 'x': SomeType | ||
27 | [186; 194) '-"hello"': [unknown] | ||
28 | [187; 194) '"hello"': &str | ||