diff options
author | Florian Diebold <[email protected]> | 2019-03-03 11:40:36 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-03-03 11:41:42 +0000 |
commit | 2e8f25884584ec7dd21bdd4be1bcf1c857efa35e (patch) | |
tree | 864de162bea4cf160a78d56d6f3a0c0fd82ca73a /crates/ra_hir/src/ty/snapshots | |
parent | d7f113e7a6a0c52552ff253984b234176c693b71 (diff) |
Inline type inference test snapshots
Diffstat (limited to 'crates/ra_hir/src/ty/snapshots')
58 files changed, 0 insertions, 1260 deletions
diff --git a/crates/ra_hir/src/ty/snapshots/tests__bug_484.snap b/crates/ra_hir/src/ty/snapshots/tests__bug_484.snap deleted file mode 100644 index 28f57623d..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__bug_484.snap +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-22T14:44:59.880187500+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: "crates\\ra_hir\\src\\ty\\tests.rs" | ||
6 | --- | ||
7 | [11; 37) '{ l... {}; }': () | ||
8 | [20; 21) 'x': () | ||
9 | [24; 34) 'if true {}': () | ||
10 | [27; 31) 'true': bool | ||
11 | [32; 34) '{}': () | ||
12 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__bug_585.snap b/crates/ra_hir/src/ty/snapshots/tests__bug_585.snap deleted file mode 100644 index 4b5630bb6..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__bug_585.snap +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.488684667Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [11; 89) '{ ... } }': () | ||
8 | [17; 21) 'X {}': {unknown} | ||
9 | [27; 87) 'match ... }': () | ||
10 | [33; 34) 'x': {unknown} | ||
11 | [45; 52) 'A::B {}': {unknown} | ||
12 | [56; 58) '()': () | ||
13 | [68; 74) 'A::Y()': {unknown} | ||
14 | [78; 80) '()': () | ||
15 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__bug_651.snap b/crates/ra_hir/src/ty/snapshots/tests__bug_651.snap deleted file mode 100644 index d23d3f139..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__bug_651.snap +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-25T20:31:47.275112244+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: crates/ra_hir/src/ty/tests.rs | ||
6 | --- | ||
7 | [11; 41) '{ ...+ y; }': () | ||
8 | [21; 22) 'y': i32 | ||
9 | [25; 27) '92': i32 | ||
10 | [33; 34) '1': i32 | ||
11 | [33; 38) '1 + y': i32 | ||
12 | [37; 38) 'y': i32 | ||
13 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_adt_pattern.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_adt_pattern.snap deleted file mode 100644 index 48c83cbb2..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_adt_pattern.snap +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-28T21:58:55.559331849+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: crates/ra_hir/src/ty/tests.rs | ||
6 | --- | ||
7 | [68; 289) '{ ... d; }': () | ||
8 | [78; 79) 'e': E | ||
9 | [82; 95) 'E::A { x: 3 }': E | ||
10 | [92; 93) '3': usize | ||
11 | [106; 113) 'S(y, z)': S | ||
12 | [108; 109) 'y': u32 | ||
13 | [111; 112) 'z': E | ||
14 | [116; 119) 'foo': S | ||
15 | [129; 148) 'E::A {..._var }': E | ||
16 | [139; 146) 'new_var': usize | ||
17 | [151; 152) 'e': E | ||
18 | [159; 245) 'match ... }': usize | ||
19 | [165; 166) 'e': E | ||
20 | [177; 187) 'E::A { x }': E | ||
21 | [184; 185) 'x': usize | ||
22 | [191; 192) 'x': usize | ||
23 | [202; 206) 'E::B': E | ||
24 | [210; 213) 'foo': bool | ||
25 | [217; 218) '1': usize | ||
26 | [228; 232) 'E::B': E | ||
27 | [236; 238) '10': usize | ||
28 | [256; 275) 'ref d ...{ .. }': &E | ||
29 | [264; 275) 'E::A { .. }': E | ||
30 | [278; 279) 'e': E | ||
31 | [285; 286) 'd': &E | ||
32 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_array.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_array.snap deleted file mode 100644 index 042248c35..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_array.snap +++ /dev/null | |||
@@ -1,65 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-30T20:08:05.185312835+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: crates/ra_hir/src/ty/tests.rs | ||
6 | --- | ||
7 | [9; 10) 'x': &str | ||
8 | [18; 19) 'y': isize | ||
9 | [28; 324) '{ ... 3]; }': () | ||
10 | [38; 39) 'a': [&str] | ||
11 | [42; 45) '[x]': [&str] | ||
12 | [43; 44) 'x': &str | ||
13 | [55; 56) 'b': [[&str]] | ||
14 | [59; 65) '[a, a]': [[&str]] | ||
15 | [60; 61) 'a': [&str] | ||
16 | [63; 64) 'a': [&str] | ||
17 | [75; 76) 'c': [[[&str]]] | ||
18 | [79; 85) '[b, b]': [[[&str]]] | ||
19 | [80; 81) 'b': [[&str]] | ||
20 | [83; 84) 'b': [[&str]] | ||
21 | [96; 97) 'd': [isize] | ||
22 | [100; 112) '[y, 1, 2, 3]': [isize] | ||
23 | [101; 102) 'y': isize | ||
24 | [104; 105) '1': isize | ||
25 | [107; 108) '2': isize | ||
26 | [110; 111) '3': isize | ||
27 | [122; 123) 'd': [isize] | ||
28 | [126; 138) '[1, y, 2, 3]': [isize] | ||
29 | [127; 128) '1': isize | ||
30 | [130; 131) 'y': isize | ||
31 | [133; 134) '2': isize | ||
32 | [136; 137) '3': isize | ||
33 | [148; 149) 'e': [isize] | ||
34 | [152; 155) '[y]': [isize] | ||
35 | [153; 154) 'y': isize | ||
36 | [165; 166) 'f': [[isize]] | ||
37 | [169; 175) '[d, d]': [[isize]] | ||
38 | [170; 171) 'd': [isize] | ||
39 | [173; 174) 'd': [isize] | ||
40 | [185; 186) 'g': [[isize]] | ||
41 | [189; 195) '[e, e]': [[isize]] | ||
42 | [190; 191) 'e': [isize] | ||
43 | [193; 194) 'e': [isize] | ||
44 | [206; 207) 'h': [i32] | ||
45 | [210; 216) '[1, 2]': [i32] | ||
46 | [211; 212) '1': i32 | ||
47 | [214; 215) '2': i32 | ||
48 | [226; 227) 'i': [&str] | ||
49 | [230; 240) '["a", "b"]': [&str] | ||
50 | [231; 234) '"a"': &str | ||
51 | [236; 239) '"b"': &str | ||
52 | [251; 252) 'b': [[&str]] | ||
53 | [255; 265) '[a, ["b"]]': [[&str]] | ||
54 | [256; 257) 'a': [&str] | ||
55 | [259; 264) '["b"]': [&str] | ||
56 | [260; 263) '"b"': &str | ||
57 | [275; 276) 'x': [u8] | ||
58 | [288; 290) '[]': [u8] | ||
59 | [300; 301) 'z': &[u8] | ||
60 | [311; 321) '&[1, 2, 3]': &[u8] | ||
61 | [312; 321) '[1, 2, 3]': [u8] | ||
62 | [313; 314) '1': u8 | ||
63 | [316; 317) '2': u8 | ||
64 | [319; 320) '3': u8 | ||
65 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_associated_const.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_associated_const.snap deleted file mode 100644 index 51f3fd4c0..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_associated_const.snap +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-02-25T08:36:33.885804400Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [227; 305) '{ ...:ID; }': () | ||
8 | [237; 238) 'x': u32 | ||
9 | [241; 252) 'Struct::FOO': u32 | ||
10 | [262; 263) 'y': u32 | ||
11 | [266; 275) 'Enum::BAR': u32 | ||
12 | [285; 286) 'z': u32 | ||
13 | [289; 302) 'TraitTest::ID': u32 | ||
14 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_associated_method_enum.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_associated_method_enum.snap deleted file mode 100644 index 8f27af88c..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_associated_method_enum.snap +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-02-20T11:04:56.553382800Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [48; 68) '{ ... }': A | ||
8 | [58; 62) 'A::B': A | ||
9 | [89; 109) '{ ... }': A | ||
10 | [99; 103) 'A::C': A | ||
11 | [122; 179) '{ ... c; }': () | ||
12 | [132; 133) 'a': A | ||
13 | [136; 140) 'A::b': fn b() -> A | ||
14 | [136; 142) 'A::b()': A | ||
15 | [148; 149) 'a': A | ||
16 | [159; 160) 'c': A | ||
17 | [163; 167) 'A::c': fn c() -> A | ||
18 | [163; 169) 'A::c()': A | ||
19 | [175; 176) 'c': A | ||
20 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_associated_method_generics.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_associated_method_generics.snap deleted file mode 100644 index 44694dfdb..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_associated_method_generics.snap +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-02-23T21:58:35.844769207Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [64; 67) 'val': T | ||
8 | [82; 109) '{ ... }': Gen<T> | ||
9 | [92; 103) 'Gen { val }': Gen<T> | ||
10 | [98; 101) 'val': T | ||
11 | [123; 155) '{ ...32); }': () | ||
12 | [133; 134) 'a': Gen<u32> | ||
13 | [137; 146) 'Gen::make': fn make<u32>(T) -> Gen<T> | ||
14 | [137; 152) 'Gen::make(0u32)': Gen<u32> | ||
15 | [147; 151) '0u32': u32 | ||
16 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_associated_method_struct.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_associated_method_struct.snap deleted file mode 100644 index 29ca9b0ea..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_associated_method_struct.snap +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-02-20T11:04:56.553382800Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [50; 76) '{ ... }': A | ||
8 | [60; 70) 'A { x: 0 }': A | ||
9 | [67; 68) '0': u32 | ||
10 | [89; 123) '{ ...a.x; }': () | ||
11 | [99; 100) 'a': A | ||
12 | [103; 109) 'A::new': fn new() -> A | ||
13 | [103; 111) 'A::new()': A | ||
14 | [117; 118) 'a': A | ||
15 | [117; 120) 'a.x': u32 | ||
16 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_associated_method_with_modules.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_associated_method_with_modules.snap deleted file mode 100644 index 6584bef39..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_associated_method_with_modules.snap +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-02-21T08:55:53.926725400Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [56; 64) '{ A {} }': A | ||
8 | [58; 62) 'A {}': A | ||
9 | [126; 132) '{ 99 }': u32 | ||
10 | [128; 130) '99': u32 | ||
11 | [202; 210) '{ C {} }': C | ||
12 | [204; 208) 'C {}': C | ||
13 | [241; 325) '{ ...g(); }': () | ||
14 | [251; 252) 'x': A | ||
15 | [255; 266) 'a::A::thing': fn thing() -> A | ||
16 | [255; 268) 'a::A::thing()': A | ||
17 | [278; 279) 'y': u32 | ||
18 | [282; 293) 'b::B::thing': fn thing() -> u32 | ||
19 | [282; 295) 'b::B::thing()': u32 | ||
20 | [305; 306) 'z': C | ||
21 | [309; 320) 'c::C::thing': fn thing() -> C | ||
22 | [309; 322) 'c::C::thing()': C | ||
23 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_associated_type_bound.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_associated_type_bound.snap deleted file mode 100644 index c9ec055f2..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_associated_type_bound.snap +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.491748649Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [67; 100) '{ ...own; }': () | ||
8 | [77; 78) 'y': {unknown} | ||
9 | [90; 97) 'unknown': {unknown} | ||
10 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_backwards.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_backwards.snap deleted file mode 100644 index 7d6091f6c..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_backwards.snap +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.494864698Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [14; 15) 'x': u32 | ||
8 | [22; 24) '{}': () | ||
9 | [78; 231) '{ ...t &c }': &mut &f64 | ||
10 | [88; 89) 'a': u32 | ||
11 | [92; 108) 'unknow...nction': {unknown} | ||
12 | [92; 110) 'unknow...tion()': u32 | ||
13 | [116; 125) 'takes_u32': fn takes_u32(u32) -> () | ||
14 | [116; 128) 'takes_u32(a)': () | ||
15 | [126; 127) 'a': u32 | ||
16 | [138; 139) 'b': i32 | ||
17 | [142; 158) 'unknow...nction': {unknown} | ||
18 | [142; 160) 'unknow...tion()': i32 | ||
19 | [166; 184) 'S { i3...d: b }': S | ||
20 | [181; 182) 'b': i32 | ||
21 | [194; 195) 'c': f64 | ||
22 | [198; 214) 'unknow...nction': {unknown} | ||
23 | [198; 216) 'unknow...tion()': f64 | ||
24 | [222; 229) '&mut &c': &mut &f64 | ||
25 | [227; 229) '&c': &f64 | ||
26 | [228; 229) 'c': f64 | ||
27 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_basics.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_basics.snap deleted file mode 100644 index 4b0863558..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_basics.snap +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-22T14:44:59.880187500+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: "crates\\ra_hir\\src\\ty\\tests.rs" | ||
6 | --- | ||
7 | [9; 10) 'a': u32 | ||
8 | [17; 18) 'b': isize | ||
9 | [27; 28) 'c': ! | ||
10 | [33; 34) 'd': &str | ||
11 | [42; 121) '{ ...f32; }': () | ||
12 | [48; 49) 'a': u32 | ||
13 | [55; 56) 'b': isize | ||
14 | [62; 63) 'c': ! | ||
15 | [69; 70) 'd': &str | ||
16 | [76; 82) '1usize': usize | ||
17 | [88; 94) '1isize': isize | ||
18 | [100; 106) '"test"': &str | ||
19 | [112; 118) '1.0f32': f32 | ||
20 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_binary_op.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_binary_op.snap deleted file mode 100644 index c8796b29b..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_binary_op.snap +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.498001346Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [6; 7) 'x': bool | ||
8 | [22; 34) '{ 0i32 }': i32 | ||
9 | [28; 32) '0i32': i32 | ||
10 | [54; 370) '{ ... < 3 }': bool | ||
11 | [64; 65) 'x': bool | ||
12 | [68; 69) 'a': bool | ||
13 | [68; 74) 'a && b': bool | ||
14 | [73; 74) 'b': bool | ||
15 | [84; 85) 'y': bool | ||
16 | [88; 92) 'true': bool | ||
17 | [88; 101) 'true || false': bool | ||
18 | [96; 101) 'false': bool | ||
19 | [111; 112) 'z': bool | ||
20 | [115; 116) 'x': bool | ||
21 | [115; 121) 'x == y': bool | ||
22 | [120; 121) 'y': bool | ||
23 | [131; 132) 't': bool | ||
24 | [135; 136) 'x': bool | ||
25 | [135; 141) 'x != y': bool | ||
26 | [140; 141) 'y': bool | ||
27 | [151; 162) 'minus_forty': isize | ||
28 | [172; 180) '-40isize': isize | ||
29 | [173; 180) '40isize': isize | ||
30 | [190; 191) 'h': bool | ||
31 | [194; 205) 'minus_forty': isize | ||
32 | [194; 216) 'minus_...ONST_2': bool | ||
33 | [209; 216) 'CONST_2': isize | ||
34 | [226; 227) 'c': i32 | ||
35 | [230; 231) 'f': fn f(bool) -> i32 | ||
36 | [230; 239) 'f(z || y)': i32 | ||
37 | [230; 243) 'f(z || y) + 5': i32 | ||
38 | [232; 233) 'z': bool | ||
39 | [232; 238) 'z || y': bool | ||
40 | [237; 238) 'y': bool | ||
41 | [242; 243) '5': i32 | ||
42 | [253; 254) 'd': {unknown} | ||
43 | [257; 258) 'b': {unknown} | ||
44 | [268; 269) 'g': () | ||
45 | [272; 283) 'minus_forty': isize | ||
46 | [272; 288) 'minus_...y ^= i': () | ||
47 | [287; 288) 'i': isize | ||
48 | [298; 301) 'ten': usize | ||
49 | [311; 313) '10': usize | ||
50 | [323; 336) 'ten_is_eleven': bool | ||
51 | [339; 342) 'ten': usize | ||
52 | [339; 354) 'ten == some_num': bool | ||
53 | [346; 354) 'some_num': usize | ||
54 | [361; 364) 'ten': usize | ||
55 | [361; 368) 'ten < 3': bool | ||
56 | [367; 368) '3': usize | ||
57 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_1.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_1.snap deleted file mode 100644 index 183171b02..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_1.snap +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.492145019Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [59; 60) 't': T | ||
8 | [65; 84) '{ ...d(); }': () | ||
9 | [71; 72) 't': T | ||
10 | [71; 81) 't.method()': {unknown} | ||
11 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_2.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_2.snap deleted file mode 100644 index 3b419d93c..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_call_trait_method_on_generic_param_2.snap +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.495889098Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [66; 67) 't': T | ||
8 | [72; 91) '{ ...d(); }': () | ||
9 | [78; 79) 't': T | ||
10 | [78; 88) 't.method()': {unknown} | ||
11 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_const.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_const.snap deleted file mode 100644 index 5382cb71a..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_const.snap +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.498050919Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [95; 213) '{ ...NST; }': () | ||
8 | [138; 139) 'x': {unknown} | ||
9 | [142; 153) 'LOCAL_CONST': {unknown} | ||
10 | [163; 164) 'z': u32 | ||
11 | [167; 179) 'GLOBAL_CONST': u32 | ||
12 | [189; 191) 'id': u32 | ||
13 | [194; 210) 'Foo::A..._CONST': u32 | ||
14 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_enum.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_enum.snap deleted file mode 100644 index bc8b84272..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_enum.snap +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-22T14:44:59.880187500+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: "crates\\ra_hir\\src\\ty\\tests.rs" | ||
6 | --- | ||
7 | [48; 82) '{ E:...:V2; }': () | ||
8 | [52; 70) 'E::V1 ...d: 1 }': E | ||
9 | [67; 68) '1': u32 | ||
10 | [74; 79) 'E::V2': E | ||
11 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_field_autoderef.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_field_autoderef.snap deleted file mode 100644 index f092fd319..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_field_autoderef.snap +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-22T14:44:59.955954900+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: "crates\\ra_hir\\src\\ty\\tests.rs" | ||
6 | --- | ||
7 | [44; 45) 'a': A | ||
8 | [50; 213) '{ ...5.b; }': () | ||
9 | [60; 62) 'a1': A | ||
10 | [65; 66) 'a': A | ||
11 | [72; 74) 'a1': A | ||
12 | [72; 76) 'a1.b': B | ||
13 | [86; 88) 'a2': &A | ||
14 | [91; 93) '&a': &A | ||
15 | [92; 93) 'a': A | ||
16 | [99; 101) 'a2': &A | ||
17 | [99; 103) 'a2.b': B | ||
18 | [113; 115) 'a3': &mut A | ||
19 | [118; 124) '&mut a': &mut A | ||
20 | [123; 124) 'a': A | ||
21 | [130; 132) 'a3': &mut A | ||
22 | [130; 134) 'a3.b': B | ||
23 | [144; 146) 'a4': &&&&&&&A | ||
24 | [149; 157) '&&&&&&&a': &&&&&&&A | ||
25 | [150; 157) '&&&&&&a': &&&&&&A | ||
26 | [151; 157) '&&&&&a': &&&&&A | ||
27 | [152; 157) '&&&&a': &&&&A | ||
28 | [153; 157) '&&&a': &&&A | ||
29 | [154; 157) '&&a': &&A | ||
30 | [155; 157) '&a': &A | ||
31 | [156; 157) 'a': A | ||
32 | [163; 165) 'a4': &&&&&&&A | ||
33 | [163; 167) 'a4.b': B | ||
34 | [177; 179) 'a5': &mut &&mut &&mut A | ||
35 | [182; 200) '&mut &...&mut a': &mut &&mut &&mut A | ||
36 | [187; 200) '&&mut &&mut a': &&mut &&mut A | ||
37 | [188; 200) '&mut &&mut a': &mut &&mut A | ||
38 | [193; 200) '&&mut a': &&mut A | ||
39 | [194; 200) '&mut a': &mut A | ||
40 | [199; 200) 'a': A | ||
41 | [206; 208) 'a5': &mut &&mut &&mut A | ||
42 | [206; 210) 'a5.b': B | ||
43 | [224; 226) 'a1': *const A | ||
44 | [238; 240) 'a2': *mut A | ||
45 | [250; 273) '{ ...2.b; }': () | ||
46 | [256; 258) 'a1': *const A | ||
47 | [256; 260) 'a1.b': B | ||
48 | [266; 268) 'a2': *mut A | ||
49 | [266; 270) 'a2.b': B | ||
50 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_1.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_1.snap deleted file mode 100644 index 6ff04bd8f..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_1.snap +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.513042571Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [86; 87) 't': T | ||
8 | [92; 94) '{}': () | ||
9 | [105; 144) '{ ...(s); }': () | ||
10 | [115; 116) 's': S<{unknown}> | ||
11 | [119; 120) 'S': S<{unknown}>(T) -> S<T> | ||
12 | [119; 129) 'S(unknown)': S<{unknown}> | ||
13 | [121; 128) 'unknown': {unknown} | ||
14 | [135; 138) 'foo': fn foo<S<{unknown}>>(T) -> () | ||
15 | [135; 141) 'foo(s)': () | ||
16 | [139; 140) 's': S<{unknown}> | ||
17 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_2.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_2.snap deleted file mode 100644 index 8a0365145..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_2.snap +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.520601712Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [87; 88) 't': T | ||
8 | [98; 100) '{}': () | ||
9 | [111; 163) '{ ...(s); }': () | ||
10 | [121; 122) 's': S<{unknown}> | ||
11 | [125; 126) 'S': S<{unknown}>(T) -> S<T> | ||
12 | [125; 135) 'S(unknown)': S<{unknown}> | ||
13 | [127; 134) 'unknown': {unknown} | ||
14 | [145; 146) 'x': u32 | ||
15 | [154; 157) 'foo': fn foo<u32, S<{unknown}>>(T) -> U | ||
16 | [154; 160) 'foo(s)': u32 | ||
17 | [158; 159) 's': S<{unknown}> | ||
18 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_function_generics.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_function_generics.snap deleted file mode 100644 index 91c48897c..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_function_generics.snap +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-27T14:52:29.934503829+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: crates/ra_hir/src/ty/tests.rs | ||
6 | --- | ||
7 | [10; 11) 't': T | ||
8 | [21; 26) '{ t }': T | ||
9 | [23; 24) 't': T | ||
10 | [38; 98) '{ ...(1); }': () | ||
11 | [44; 46) 'id': fn id<u32>(T) -> T | ||
12 | [44; 52) 'id(1u32)': u32 | ||
13 | [47; 51) '1u32': u32 | ||
14 | [58; 68) 'id::<i128>': fn id<i128>(T) -> T | ||
15 | [58; 71) 'id::<i128>(1)': i128 | ||
16 | [69; 70) '1': i128 | ||
17 | [81; 82) 'x': u64 | ||
18 | [90; 92) 'id': fn id<u64>(T) -> T | ||
19 | [90; 95) 'id(1)': u64 | ||
20 | [93; 94) '1': u64 | ||
21 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_generic_chain.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_generic_chain.snap deleted file mode 100644 index d1ce87b0a..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_generic_chain.snap +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-02-16T20:53:59.655361804Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [53; 57) 'self': A<T2> | ||
8 | [65; 87) '{ ... }': T2 | ||
9 | [75; 79) 'self': A<T2> | ||
10 | [75; 81) 'self.x': T2 | ||
11 | [99; 100) 't': T | ||
12 | [110; 115) '{ t }': T | ||
13 | [112; 113) 't': T | ||
14 | [135; 261) '{ ....x() }': i128 | ||
15 | [146; 147) 'x': i128 | ||
16 | [150; 151) '1': i128 | ||
17 | [162; 163) 'y': i128 | ||
18 | [166; 168) 'id': fn id<i128>(T) -> T | ||
19 | [166; 171) 'id(x)': i128 | ||
20 | [169; 170) 'x': i128 | ||
21 | [182; 183) 'a': A<i128> | ||
22 | [186; 200) 'A { x: id(y) }': A<i128> | ||
23 | [193; 195) 'id': fn id<i128>(T) -> T | ||
24 | [193; 198) 'id(y)': i128 | ||
25 | [196; 197) 'y': i128 | ||
26 | [211; 212) 'z': i128 | ||
27 | [215; 217) 'id': fn id<i128>(T) -> T | ||
28 | [215; 222) 'id(a.x)': i128 | ||
29 | [218; 219) 'a': A<i128> | ||
30 | [218; 221) 'a.x': i128 | ||
31 | [233; 234) 'b': A<i128> | ||
32 | [237; 247) 'A { x: z }': A<i128> | ||
33 | [244; 245) 'z': i128 | ||
34 | [254; 255) 'b': A<i128> | ||
35 | [254; 259) 'b.x()': i128 | ||
36 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_generics_in_patterns.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_generics_in_patterns.snap deleted file mode 100644 index fae7ab0dd..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_generics_in_patterns.snap +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-22T14:44:59.970913200+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: "crates\\ra_hir\\src\\ty\\tests.rs" | ||
6 | --- | ||
7 | [79; 81) 'a1': A<u32> | ||
8 | [91; 92) 'o': Option<u64> | ||
9 | [107; 244) '{ ... }; }': () | ||
10 | [117; 128) 'A { x: x2 }': A<u32> | ||
11 | [124; 126) 'x2': u32 | ||
12 | [131; 133) 'a1': A<u32> | ||
13 | [143; 161) 'A::<i6...: x3 }': A<i64> | ||
14 | [157; 159) 'x3': i64 | ||
15 | [164; 174) 'A { x: 1 }': A<i64> | ||
16 | [171; 172) '1': i64 | ||
17 | [180; 241) 'match ... }': u64 | ||
18 | [186; 187) 'o': Option<u64> | ||
19 | [198; 213) 'Option::Some(t)': Option<u64> | ||
20 | [211; 212) 't': u64 | ||
21 | [217; 218) 't': u64 | ||
22 | [228; 229) '_': Option<u64> | ||
23 | [233; 234) '1': u64 | ||
24 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_impl_generics.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_impl_generics.snap deleted file mode 100644 index 44f00a52e..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_impl_generics.snap +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-02-16T21:58:14.029368845Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [74; 78) 'self': A<X, Y> | ||
8 | [85; 107) '{ ... }': X | ||
9 | [95; 99) 'self': A<X, Y> | ||
10 | [95; 101) 'self.x': X | ||
11 | [117; 121) 'self': A<X, Y> | ||
12 | [128; 150) '{ ... }': Y | ||
13 | [138; 142) 'self': A<X, Y> | ||
14 | [138; 144) 'self.y': Y | ||
15 | [163; 167) 'self': A<X, Y> | ||
16 | [169; 170) 't': T | ||
17 | [188; 223) '{ ... }': (X, Y, T) | ||
18 | [198; 217) '(self.....y, t)': (X, Y, T) | ||
19 | [199; 203) 'self': A<X, Y> | ||
20 | [199; 205) 'self.x': X | ||
21 | [207; 211) 'self': A<X, Y> | ||
22 | [207; 213) 'self.y': Y | ||
23 | [215; 216) 't': T | ||
24 | [245; 342) '{ ...(1); }': () | ||
25 | [255; 256) 'a': A<u64, i64> | ||
26 | [259; 281) 'A { x:...1i64 }': A<u64, i64> | ||
27 | [266; 270) '1u64': u64 | ||
28 | [275; 279) '1i64': i64 | ||
29 | [287; 288) 'a': A<u64, i64> | ||
30 | [287; 292) 'a.x()': u64 | ||
31 | [298; 299) 'a': A<u64, i64> | ||
32 | [298; 303) 'a.y()': i64 | ||
33 | [309; 310) 'a': A<u64, i64> | ||
34 | [309; 319) 'a.z(1i128)': (u64, i64, i128) | ||
35 | [313; 318) '1i128': i128 | ||
36 | [325; 326) 'a': A<u64, i64> | ||
37 | [325; 339) 'a.z::<u128>(1)': (u64, i64, u128) | ||
38 | [337; 338) '1': u128 | ||
39 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_impl_generics_with_autoderef.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_impl_generics_with_autoderef.snap deleted file mode 100644 index f609eaf7c..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_impl_generics_with_autoderef.snap +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-02-17T13:35:06.385679926Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [78; 82) 'self': &Option<T> | ||
8 | [98; 100) '{}': () | ||
9 | [111; 112) 'o': Option<u32> | ||
10 | [127; 165) '{ ...f(); }': () | ||
11 | [133; 146) '(&o).as_ref()': Option<&u32> | ||
12 | [134; 136) '&o': &Option<u32> | ||
13 | [135; 136) 'o': Option<u32> | ||
14 | [152; 153) 'o': Option<u32> | ||
15 | [152; 162) 'o.as_ref()': Option<&u32> | ||
16 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_in_elseif.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_in_elseif.snap deleted file mode 100644 index 6a435e5cf..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_in_elseif.snap +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-26T21:36:52.714121185+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: crates/ra_hir/src/ty/tests.rs | ||
6 | --- | ||
7 | [35; 38) 'foo': Foo | ||
8 | [45; 109) '{ ... } }': () | ||
9 | [51; 107) 'if tru... }': () | ||
10 | [54; 58) 'true': bool | ||
11 | [59; 67) '{ }': () | ||
12 | [73; 107) 'if fal... }': i32 | ||
13 | [76; 81) 'false': bool | ||
14 | [82; 107) '{ ... }': i32 | ||
15 | [92; 95) 'foo': Foo | ||
16 | [92; 101) 'foo.field': i32 | ||
17 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_inherent_method.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_inherent_method.snap deleted file mode 100644 index b3c706aca..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_inherent_method.snap +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-22T14:44:59.968918800+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: "crates\\ra_hir\\src\\ty\\tests.rs" | ||
6 | --- | ||
7 | [32; 36) 'self': A | ||
8 | [38; 39) 'x': u32 | ||
9 | [53; 55) '{}': () | ||
10 | [103; 107) 'self': &A | ||
11 | [109; 110) 'x': u64 | ||
12 | [124; 126) '{}': () | ||
13 | [144; 145) 'a': A | ||
14 | [150; 198) '{ ...(1); }': () | ||
15 | [156; 157) 'a': A | ||
16 | [156; 164) 'a.foo(1)': i32 | ||
17 | [162; 163) '1': u32 | ||
18 | [170; 181) '(&a).bar(1)': i64 | ||
19 | [171; 173) '&a': &A | ||
20 | [172; 173) 'a': A | ||
21 | [179; 180) '1': u64 | ||
22 | [187; 188) 'a': A | ||
23 | [187; 195) 'a.bar(1)': i64 | ||
24 | [193; 194) '1': u64 | ||
25 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_let.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_let.snap deleted file mode 100644 index 0d085071a..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_let.snap +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-22T14:44:59.963931700+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: "crates\\ra_hir\\src\\ty\\tests.rs" | ||
6 | --- | ||
7 | [11; 71) '{ ...= b; }': () | ||
8 | [21; 22) 'a': isize | ||
9 | [25; 31) '1isize': isize | ||
10 | [41; 42) 'b': usize | ||
11 | [52; 53) '1': usize | ||
12 | [63; 64) 'c': usize | ||
13 | [67; 68) 'b': usize | ||
14 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_literals.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_literals.snap deleted file mode 100644 index e287a100e..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_literals.snap +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-22T14:44:59.974903100+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: "crates\\ra_hir\\src\\ty\\tests.rs" | ||
6 | --- | ||
7 | [11; 201) '{ ...o"#; }': () | ||
8 | [17; 21) '5i32': i32 | ||
9 | [27; 34) '"hello"': &str | ||
10 | [40; 48) 'b"bytes"': &[u8] | ||
11 | [54; 57) ''c'': char | ||
12 | [63; 67) 'b'b'': u8 | ||
13 | [73; 77) '3.14': f64 | ||
14 | [83; 87) '5000': i32 | ||
15 | [93; 98) 'false': bool | ||
16 | [104; 108) 'true': bool | ||
17 | [114; 182) 'r#" ... "#': &str | ||
18 | [188; 198) 'br#"yolo"#': &[u8] | ||
19 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_nested_generics_crash.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_nested_generics_crash.snap deleted file mode 100644 index 209454a91..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_nested_generics_crash.snap +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-02-11T21:59:04.302375838Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [92; 106) 'query_response': Canonical<QueryResponse<R>> | ||
8 | [137; 167) '{ ...lue; }': () | ||
9 | [143; 164) '&query....value': &QueryResponse<R> | ||
10 | [144; 158) 'query_response': Canonical<QueryResponse<R>> | ||
11 | [144; 164) 'query_....value': QueryResponse<R> | ||
12 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_paths.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_paths.snap deleted file mode 100644 index afbe2f747..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_paths.snap +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-26T17:46:03.928773630+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: crates/ra_hir/src/ty/tests.rs | ||
6 | --- | ||
7 | [15; 20) '{ 1 }': u32 | ||
8 | [17; 18) '1': u32 | ||
9 | [48; 53) '{ 1 }': u32 | ||
10 | [50; 51) '1': u32 | ||
11 | [67; 91) '{ ...c(); }': () | ||
12 | [73; 74) 'a': fn a() -> u32 | ||
13 | [73; 76) 'a()': u32 | ||
14 | [82; 86) 'b::c': fn c() -> u32 | ||
15 | [82; 88) 'b::c()': u32 | ||
16 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap deleted file mode 100644 index 06ef0007c..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.538812297Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [9; 10) 'x': &i32 | ||
8 | [18; 369) '{ ...o_x; }': () | ||
9 | [28; 29) 'y': &i32 | ||
10 | [32; 33) 'x': &i32 | ||
11 | [43; 45) '&z': &i32 | ||
12 | [44; 45) 'z': i32 | ||
13 | [48; 49) 'x': &i32 | ||
14 | [59; 60) 'a': i32 | ||
15 | [63; 64) 'z': i32 | ||
16 | [74; 80) '(c, d)': (i32, &str) | ||
17 | [75; 76) 'c': i32 | ||
18 | [78; 79) 'd': &str | ||
19 | [83; 95) '(1, "hello")': (i32, &str) | ||
20 | [84; 85) '1': i32 | ||
21 | [87; 94) '"hello"': &str | ||
22 | [102; 152) 'for (e... }': () | ||
23 | [106; 112) '(e, f)': ({unknown}, {unknown}) | ||
24 | [107; 108) 'e': {unknown} | ||
25 | [110; 111) 'f': {unknown} | ||
26 | [116; 125) 'some_iter': {unknown} | ||
27 | [126; 152) '{ ... }': () | ||
28 | [140; 141) 'g': {unknown} | ||
29 | [144; 145) 'e': {unknown} | ||
30 | [158; 205) 'if let... }': () | ||
31 | [165; 170) '[val]': {unknown} | ||
32 | [173; 176) 'opt': {unknown} | ||
33 | [177; 205) '{ ... }': () | ||
34 | [191; 192) 'h': {unknown} | ||
35 | [195; 198) 'val': {unknown} | ||
36 | [215; 221) 'lambda': {unknown} | ||
37 | [224; 256) '|a: u6...b; c }': {unknown} | ||
38 | [225; 226) 'a': u64 | ||
39 | [233; 234) 'b': u64 | ||
40 | [236; 237) 'c': i32 | ||
41 | [244; 256) '{ a + b; c }': i32 | ||
42 | [246; 247) 'a': u64 | ||
43 | [246; 251) 'a + b': u64 | ||
44 | [250; 251) 'b': u64 | ||
45 | [253; 254) 'c': i32 | ||
46 | [267; 279) 'ref ref_to_x': &&i32 | ||
47 | [282; 283) 'x': &i32 | ||
48 | [293; 302) 'mut mut_x': &i32 | ||
49 | [305; 306) 'x': &i32 | ||
50 | [316; 336) 'ref mu...f_to_x': &mut &i32 | ||
51 | [339; 340) 'x': &i32 | ||
52 | [350; 351) 'k': &mut &i32 | ||
53 | [354; 366) 'mut_ref_to_x': &mut &i32 | ||
54 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_project_associated_type.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_project_associated_type.snap deleted file mode 100644 index e18815aba..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_project_associated_type.snap +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.534200832Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [108; 181) '{ ...ter; }': () | ||
8 | [118; 119) 'x': i32 | ||
9 | [145; 146) '1': i32 | ||
10 | [156; 157) 'y': {unknown} | ||
11 | [169; 178) 'no_matter': {unknown} | ||
12 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_refs.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_refs.snap deleted file mode 100644 index 56931bb3d..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_refs.snap +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-22T14:45:00.053692600+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: "crates\\ra_hir\\src\\ty\\tests.rs" | ||
6 | --- | ||
7 | [9; 10) 'a': &u32 | ||
8 | [18; 19) 'b': &mut u32 | ||
9 | [31; 32) 'c': *const u32 | ||
10 | [46; 47) 'd': *mut u32 | ||
11 | [59; 150) '{ ... *d; }': () | ||
12 | [65; 66) 'a': &u32 | ||
13 | [72; 74) '*a': u32 | ||
14 | [73; 74) 'a': &u32 | ||
15 | [80; 82) '&a': &&u32 | ||
16 | [81; 82) 'a': &u32 | ||
17 | [88; 94) '&mut a': &mut &u32 | ||
18 | [93; 94) 'a': &u32 | ||
19 | [100; 101) 'b': &mut u32 | ||
20 | [107; 109) '*b': u32 | ||
21 | [108; 109) 'b': &mut u32 | ||
22 | [115; 117) '&b': &&mut u32 | ||
23 | [116; 117) 'b': &mut u32 | ||
24 | [123; 124) 'c': *const u32 | ||
25 | [130; 132) '*c': u32 | ||
26 | [131; 132) 'c': *const u32 | ||
27 | [138; 139) 'd': *mut u32 | ||
28 | [145; 147) '*d': u32 | ||
29 | [146; 147) 'd': *mut u32 | ||
30 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_self.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_self.snap deleted file mode 100644 index 5c927f5c1..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_self.snap +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-02-04T19:40:48.826936500+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: crates/ra_hir/src/ty/tests.rs | ||
6 | --- | ||
7 | [34; 38) 'self': &S | ||
8 | [40; 61) '{ ... }': () | ||
9 | [50; 54) 'self': &S | ||
10 | [75; 79) 'self': &S | ||
11 | [88; 109) '{ ... }': () | ||
12 | [98; 102) 'self': &S | ||
13 | [133; 153) '{ ... }': S | ||
14 | [143; 147) 'S {}': S | ||
15 | [177; 200) '{ ... }': S | ||
16 | [187; 194) 'Self {}': S | ||
17 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_static.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_static.snap deleted file mode 100644 index e6ae195c4..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_static.snap +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.534478182Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [85; 280) '{ ...MUT; }': () | ||
8 | [173; 174) 'x': {unknown} | ||
9 | [177; 189) 'LOCAL_STATIC': {unknown} | ||
10 | [199; 200) 'y': {unknown} | ||
11 | [203; 219) 'LOCAL_...IC_MUT': {unknown} | ||
12 | [229; 230) 'z': u32 | ||
13 | [233; 246) 'GLOBAL_STATIC': u32 | ||
14 | [256; 257) 'w': u32 | ||
15 | [260; 277) 'GLOBAL...IC_MUT': u32 | ||
16 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_1.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_1.snap deleted file mode 100644 index 56b63cbe7..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_1.snap +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.539061212Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [54; 139) '{ ... } }': () | ||
8 | [60; 137) 'match ... }': () | ||
9 | [66; 83) 'someth...nknown': Maybe<{unknown}> | ||
10 | [94; 124) 'Maybe:...thing)': Maybe<{unknown}> | ||
11 | [106; 123) 'ref mu...ething': &mut {unknown} | ||
12 | [128; 130) '()': () | ||
13 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_2.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_2.snap deleted file mode 100644 index fd0b39b7d..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_2.snap +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-02-09T17:03:11.974225590Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [23; 53) '{ ...n']; }': () | ||
8 | [29; 50) '&[0, b...b'\n']': &[u8] | ||
9 | [30; 50) '[0, b'...b'\n']': [u8] | ||
10 | [31; 32) '0': u8 | ||
11 | [34; 39) 'b'\n'': u8 | ||
12 | [41; 42) '1': u8 | ||
13 | [44; 49) 'b'\n'': u8 | ||
14 | |||
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 deleted file mode 100644 index fd47f80b7..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_3.snap +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.534201681Z" | ||
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 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_4.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_4.snap deleted file mode 100644 index 14254c46a..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_4.snap +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.539815103Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [25; 110) '{ ... } }': () | ||
8 | [31; 108) 'match ... }': () | ||
9 | [37; 42) '*self': {unknown} | ||
10 | [38; 42) 'self': {unknown} | ||
11 | [53; 95) 'Borrow...), ..}': {unknown} | ||
12 | [74; 77) 'box': {unknown} | ||
13 | [78; 87) 'Primitive': {unknown} | ||
14 | [88; 89) 'p': {unknown} | ||
15 | [99; 101) '{}': () | ||
16 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_5.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_5.snap deleted file mode 100644 index 27853bf1a..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_std_crash_5.snap +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.546324340Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [27; 323) '{ ... } }': () | ||
8 | [33; 321) 'for co... }': () | ||
9 | [37; 44) 'content': &{unknown} | ||
10 | [48; 61) 'doesnt_matter': {unknown} | ||
11 | [62; 321) '{ ... }': () | ||
12 | [76; 80) 'name': &&{unknown} | ||
13 | [83; 167) 'if doe... }': &&{unknown} | ||
14 | [86; 99) 'doesnt_matter': bool | ||
15 | [100; 129) '{ ... }': &&{unknown} | ||
16 | [114; 119) 'first': &&{unknown} | ||
17 | [135; 167) '{ ... }': &&{unknown} | ||
18 | [149; 157) '&content': &&{unknown} | ||
19 | [150; 157) 'content': &{unknown} | ||
20 | [182; 189) 'content': &&{unknown} | ||
21 | [192; 314) 'if ICE... }': &&{unknown} | ||
22 | [195; 232) 'ICE_RE..._VALUE': {unknown} | ||
23 | [195; 248) 'ICE_RE...&name)': bool | ||
24 | [242; 247) '&name': &&&{unknown} | ||
25 | [243; 247) 'name': &&{unknown} | ||
26 | [249; 277) '{ ... }': &&{unknown} | ||
27 | [263; 267) 'name': &&{unknown} | ||
28 | [283; 314) '{ ... }': &{unknown} | ||
29 | [297; 304) 'content': &{unknown} | ||
30 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_struct.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_struct.snap deleted file mode 100644 index 32f1fa108..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_struct.snap +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-02-20T21:31:12.910924715Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [72; 154) '{ ...a.c; }': () | ||
8 | [82; 83) 'c': C | ||
9 | [86; 87) 'C': C(usize) -> C | ||
10 | [86; 90) 'C(1)': C | ||
11 | [88; 89) '1': usize | ||
12 | [96; 97) 'B': B | ||
13 | [107; 108) 'a': A | ||
14 | [114; 133) 'A { b:...C(1) }': A | ||
15 | [121; 122) 'B': B | ||
16 | [127; 128) 'C': C(usize) -> C | ||
17 | [127; 131) 'C(1)': C | ||
18 | [129; 130) '1': usize | ||
19 | [139; 140) 'a': A | ||
20 | [139; 142) 'a.b': B | ||
21 | [148; 149) 'a': A | ||
22 | [148; 151) 'a.c': C | ||
23 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_struct_generics.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_struct_generics.snap deleted file mode 100644 index e07c7d36c..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_struct_generics.snap +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-22T14:45:00.058678600+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: "crates\\ra_hir\\src\\ty\\tests.rs" | ||
6 | --- | ||
7 | [36; 38) 'a1': A<u32> | ||
8 | [48; 49) 'i': i32 | ||
9 | [56; 147) '{ ...3.x; }': () | ||
10 | [62; 64) 'a1': A<u32> | ||
11 | [62; 66) 'a1.x': u32 | ||
12 | [76; 78) 'a2': A<i32> | ||
13 | [81; 91) 'A { x: i }': A<i32> | ||
14 | [88; 89) 'i': i32 | ||
15 | [97; 99) 'a2': A<i32> | ||
16 | [97; 101) 'a2.x': i32 | ||
17 | [111; 113) 'a3': A<i128> | ||
18 | [116; 134) 'A::<i1...x: 1 }': A<i128> | ||
19 | [131; 132) '1': i128 | ||
20 | [140; 142) 'a3': A<i128> | ||
21 | [140; 144) 'a3.x': i128 | ||
22 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_assoc_method.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_assoc_method.snap deleted file mode 100644 index b36d0ecda..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_assoc_method.snap +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.553776959Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [87; 193) '{ ...t(); }': () | ||
8 | [97; 99) 's1': S | ||
9 | [105; 121) 'Defaul...efault': {unknown} | ||
10 | [105; 123) 'Defaul...ault()': S | ||
11 | [133; 135) 's2': {unknown} | ||
12 | [138; 148) 'S::default': {unknown} | ||
13 | [138; 150) 'S::default()': {unknown} | ||
14 | [160; 162) 's3': {unknown} | ||
15 | [165; 188) '<S as ...efault': {unknown} | ||
16 | [165; 190) '<S as ...ault()': {unknown} | ||
17 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_1.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_1.snap deleted file mode 100644 index a41cb25ef..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_1.snap +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.552107676Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [33; 37) 'self': &{unknown} | ||
8 | [92; 111) '{ ...d(); }': () | ||
9 | [98; 99) 'S': S | ||
10 | [98; 108) 'S.method()': {unknown} | ||
11 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_2.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_2.snap deleted file mode 100644 index 6b9380254..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_2.snap +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.555503703Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [33; 37) 'self': &{unknown} | ||
8 | [102; 127) '{ ...d(); }': () | ||
9 | [108; 109) 'S': S<u32>(T) -> S<T> | ||
10 | [108; 115) 'S(1u32)': S<u32> | ||
11 | [108; 124) 'S(1u32...thod()': {unknown} | ||
12 | [110; 114) '1u32': u32 | ||
13 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_scoped.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_scoped.snap deleted file mode 100644 index d53ae14fc..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_scoped.snap +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.562251445Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [63; 67) 'self': &{unknown} | ||
8 | [169; 173) 'self': &{unknown} | ||
9 | [300; 337) '{ ... }': () | ||
10 | [310; 311) 'S': S | ||
11 | [310; 320) 'S.method()': {unknown} | ||
12 | [416; 454) '{ ... }': () | ||
13 | [426; 427) 'S': S | ||
14 | [426; 436) 'S.method()': {unknown} | ||
15 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_simple.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_simple.snap deleted file mode 100644 index ff1c483f1..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_simple.snap +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.558393608Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [31; 35) 'self': &{unknown} | ||
8 | [110; 114) 'self': &{unknown} | ||
9 | [170; 228) '{ ...i128 }': () | ||
10 | [176; 178) 'S1': S1 | ||
11 | [176; 187) 'S1.method()': {unknown} | ||
12 | [203; 205) 'S2': S2 | ||
13 | [203; 214) 'S2.method()': {unknown} | ||
14 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_tuple.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_tuple.snap deleted file mode 100644 index cd11d41d3..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_tuple.snap +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-22T14:45:00.058678600+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: "crates\\ra_hir\\src\\ty\\tests.rs" | ||
6 | --- | ||
7 | [9; 10) 'x': &str | ||
8 | [18; 19) 'y': isize | ||
9 | [28; 170) '{ ...d"); }': () | ||
10 | [38; 39) 'a': (u32, &str) | ||
11 | [55; 63) '(1, "a")': (u32, &str) | ||
12 | [56; 57) '1': u32 | ||
13 | [59; 62) '"a"': &str | ||
14 | [73; 74) 'b': ((u32, &str), &str) | ||
15 | [77; 83) '(a, x)': ((u32, &str), &str) | ||
16 | [78; 79) 'a': (u32, &str) | ||
17 | [81; 82) 'x': &str | ||
18 | [93; 94) 'c': (isize, &str) | ||
19 | [97; 103) '(y, x)': (isize, &str) | ||
20 | [98; 99) 'y': isize | ||
21 | [101; 102) 'x': &str | ||
22 | [113; 114) 'd': ((isize, &str), &str) | ||
23 | [117; 123) '(c, x)': ((isize, &str), &str) | ||
24 | [118; 119) 'c': (isize, &str) | ||
25 | [121; 122) 'x': &str | ||
26 | [133; 134) 'e': (i32, &str) | ||
27 | [137; 145) '(1, "e")': (i32, &str) | ||
28 | [138; 139) '1': i32 | ||
29 | [141; 144) '"e"': &str | ||
30 | [155; 156) 'f': ((i32, &str), &str) | ||
31 | [159; 167) '(e, "d")': ((i32, &str), &str) | ||
32 | [160; 161) 'e': (i32, &str) | ||
33 | [163; 166) '"d"': &str | ||
34 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_tuple_struct_generics.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_tuple_struct_generics.snap deleted file mode 100644 index 5246794fe..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_tuple_struct_generics.snap +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.566211313Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [77; 185) '{ ...one; }': () | ||
8 | [83; 84) 'A': A<i32>(T) -> A<T> | ||
9 | [83; 88) 'A(42)': A<i32> | ||
10 | [85; 87) '42': i32 | ||
11 | [94; 95) 'A': A<u128>(T) -> A<T> | ||
12 | [94; 103) 'A(42u128)': A<u128> | ||
13 | [96; 102) '42u128': u128 | ||
14 | [109; 113) 'Some': Some<&str>(T) -> Option<T> | ||
15 | [109; 118) 'Some("x")': Option<&str> | ||
16 | [114; 117) '"x"': &str | ||
17 | [124; 136) 'Option::Some': Some<&str>(T) -> Option<T> | ||
18 | [124; 141) 'Option...e("x")': Option<&str> | ||
19 | [137; 140) '"x"': &str | ||
20 | [147; 151) 'None': Option<{unknown}> | ||
21 | [161; 162) 'x': Option<i64> | ||
22 | [178; 182) 'None': Option<i64> | ||
23 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_type_alias.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_type_alias.snap deleted file mode 100644 index 241c08353..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_type_alias.snap +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-02-24T16:13:47.561870283Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [117; 118) 'x': A<u32, i128> | ||
8 | [125; 126) 'y': A<&str, u128> | ||
9 | [139; 140) 'z': A<u8, i8> | ||
10 | [155; 212) '{ ...z.y; }': () | ||
11 | [161; 162) 'x': A<u32, i128> | ||
12 | [161; 164) 'x.x': u32 | ||
13 | [170; 171) 'x': A<u32, i128> | ||
14 | [170; 173) 'x.y': i128 | ||
15 | [179; 180) 'y': A<&str, u128> | ||
16 | [179; 182) 'y.x': &str | ||
17 | [188; 189) 'y': A<&str, u128> | ||
18 | [188; 191) 'y.y': u128 | ||
19 | [197; 198) 'z': A<u8, i8> | ||
20 | [197; 200) 'z.x': u8 | ||
21 | [206; 207) 'z': A<u8, i8> | ||
22 | [206; 209) 'z.y': i8 | ||
23 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_type_param.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_type_param.snap deleted file mode 100644 index 216d1e41f..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_type_param.snap +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-27T20:38:32.153717698+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: crates/ra_hir/src/ty/tests.rs | ||
6 | --- | ||
7 | [10; 11) 'x': T | ||
8 | [21; 30) '{ x }': T | ||
9 | [27; 28) 'x': T | ||
10 | [44; 45) 'x': &T | ||
11 | [56; 65) '{ x }': &T | ||
12 | [62; 63) 'x': &T | ||
13 | [77; 157) '{ ...(1); }': () | ||
14 | [87; 88) 'y': u32 | ||
15 | [91; 96) '10u32': u32 | ||
16 | [102; 104) 'id': fn id<u32>(T) -> T | ||
17 | [102; 107) 'id(y)': u32 | ||
18 | [105; 106) 'y': u32 | ||
19 | [117; 118) 'x': bool | ||
20 | [127; 132) 'clone': fn clone<bool>(&T) -> T | ||
21 | [127; 135) 'clone(z)': bool | ||
22 | [133; 134) 'z': &bool | ||
23 | [141; 151) 'id::<i128>': fn id<i128>(T) -> T | ||
24 | [141; 154) 'id::<i128>(1)': i128 | ||
25 | [152; 153) '1': i128 | ||
26 | |||
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 deleted file mode 100644 index ce0d3c60d..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_unary_op.snap +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.571163594Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [27; 28) 'x': SomeType | ||
8 | [40; 272) '{ ...lo"; }': () | ||
9 | [50; 51) 'b': bool | ||
10 | [54; 59) 'false': bool | ||
11 | [69; 70) 'c': bool | ||
12 | [73; 75) '!b': bool | ||
13 | [74; 75) 'b': bool | ||
14 | [85; 86) 'a': i128 | ||
15 | [89; 92) '100': i128 | ||
16 | [102; 103) 'd': i128 | ||
17 | [112; 114) '-a': i128 | ||
18 | [113; 114) 'a': i128 | ||
19 | [124; 125) 'e': i32 | ||
20 | [128; 132) '-100': i32 | ||
21 | [129; 132) '100': i32 | ||
22 | [142; 143) 'f': bool | ||
23 | [146; 153) '!!!true': bool | ||
24 | [147; 153) '!!true': bool | ||
25 | [148; 153) '!true': bool | ||
26 | [149; 153) 'true': bool | ||
27 | [163; 164) 'g': i32 | ||
28 | [167; 170) '!42': i32 | ||
29 | [168; 170) '42': i32 | ||
30 | [180; 181) 'h': u32 | ||
31 | [184; 190) '!10u32': u32 | ||
32 | [185; 190) '10u32': u32 | ||
33 | [200; 201) 'j': i128 | ||
34 | [204; 206) '!a': i128 | ||
35 | [205; 206) 'a': i128 | ||
36 | [212; 217) '-3.14': f64 | ||
37 | [213; 217) '3.14': f64 | ||
38 | [223; 225) '!3': i32 | ||
39 | [224; 225) '3': i32 | ||
40 | [231; 233) '-x': {unknown} | ||
41 | [232; 233) 'x': SomeType | ||
42 | [239; 241) '!x': {unknown} | ||
43 | [240; 241) 'x': SomeType | ||
44 | [247; 255) '-"hello"': {unknown} | ||
45 | [248; 255) '"hello"': &str | ||
46 | [261; 269) '!"hello"': {unknown} | ||
47 | [262; 269) '"hello"': &str | ||
48 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_with_multiple_trait_impls.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_with_multiple_trait_impls.snap deleted file mode 100644 index a7704ecce..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_with_multiple_trait_impls.snap +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.573565546Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [29; 33) 'self': {unknown} | ||
8 | [107; 198) '{ ...(S); }': () | ||
9 | [117; 118) 'x': u32 | ||
10 | [126; 127) 'S': S | ||
11 | [126; 134) 'S.into()': u32 | ||
12 | [144; 145) 'y': u64 | ||
13 | [153; 154) 'S': S | ||
14 | [153; 161) 'S.into()': u64 | ||
15 | [171; 172) 'z': {unknown} | ||
16 | [175; 192) 'Into::...::into': {unknown} | ||
17 | [175; 195) 'Into::...nto(S)': {unknown} | ||
18 | [193; 194) 'S': S | ||
19 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__no_panic_on_field_of_enum.snap b/crates/ra_hir/src/ty/snapshots/tests__no_panic_on_field_of_enum.snap deleted file mode 100644 index cf0dc719e..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__no_panic_on_field_of_enum.snap +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.571647281Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [20; 21) 'x': X | ||
8 | [26; 47) '{ ...eld; }': () | ||
9 | [32; 33) 'x': X | ||
10 | [32; 44) 'x.some_field': {unknown} | ||
11 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__recursive_vars.snap b/crates/ra_hir/src/ty/snapshots/tests__recursive_vars.snap deleted file mode 100644 index 1a4388b50..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__recursive_vars.snap +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.571823250Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [11; 48) '{ ...&y]; }': () | ||
8 | [21; 22) 'y': &{unknown} | ||
9 | [25; 32) 'unknown': &{unknown} | ||
10 | [38; 45) '[y, &y]': [&&{unknown}] | ||
11 | [39; 40) 'y': &{unknown} | ||
12 | [42; 44) '&y': &&{unknown} | ||
13 | [43; 44) 'y': &{unknown} | ||
14 | |||
diff --git a/crates/ra_hir/src/ty/snapshots/tests__recursive_vars_2.snap b/crates/ra_hir/src/ty/snapshots/tests__recursive_vars_2.snap deleted file mode 100644 index 444644639..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__recursive_vars_2.snap +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T19:54:58.575200890Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [11; 80) '{ ...x)]; }': () | ||
8 | [21; 22) 'x': &&{unknown} | ||
9 | [25; 32) 'unknown': &&{unknown} | ||
10 | [42; 43) 'y': &&{unknown} | ||
11 | [46; 53) 'unknown': &&{unknown} | ||
12 | [59; 77) '[(x, y..., &x)]': [(&&{unknown}, &&{unknown})] | ||
13 | [60; 66) '(x, y)': (&&{unknown}, &&{unknown}) | ||
14 | [61; 62) 'x': &&{unknown} | ||
15 | [64; 65) 'y': &&{unknown} | ||
16 | [68; 76) '(&y, &x)': (&&&{unknown}, &&&{unknown}) | ||
17 | [69; 71) '&y': &&&{unknown} | ||
18 | [70; 71) 'y': &&{unknown} | ||
19 | [73; 75) '&x': &&&{unknown} | ||
20 | [74; 75) 'x': &&{unknown} | ||
21 | |||