diff options
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 4 | ||||
-rw-r--r-- | crates/ra_hir/src/ty/tests/data/array.txt | 90 |
2 files changed, 47 insertions, 47 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index dd574162a..affd63a85 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -343,8 +343,8 @@ fn test(x: &str, y: isize) { | |||
343 | let b = [a, a]; | 343 | let b = [a, a]; |
344 | let c = [b, b]; | 344 | let c = [b, b]; |
345 | 345 | ||
346 | let d = [y, 1, 2, 3] | 346 | let d = [y, 1, 2, 3]; |
347 | let d = [1, y, 2, 3] | 347 | let d = [1, y, 2, 3]; |
348 | let e = [y]; | 348 | let e = [y]; |
349 | let f = [d, d]; | 349 | let f = [d, d]; |
350 | let g = [e, e]; | 350 | let g = [e, e]; |
diff --git a/crates/ra_hir/src/ty/tests/data/array.txt b/crates/ra_hir/src/ty/tests/data/array.txt index 66f09485d..5fdbc67b6 100644 --- a/crates/ra_hir/src/ty/tests/data/array.txt +++ b/crates/ra_hir/src/ty/tests/data/array.txt | |||
@@ -1,52 +1,52 @@ | |||
1 | [9; 10) 'x': &str | 1 | [9; 10) 'x': &str |
2 | [18; 19) 'y': isize | 2 | [18; 19) 'y': isize |
3 | [28; 291) '{ ... []; }': () | 3 | [28; 293) '{ ... []; }': () |
4 | [38; 39) 'a': [&str] | 4 | [38; 39) 'a': [_] |
5 | [42; 45) '[x]': [&str] | 5 | [42; 45) '[x]': [_] |
6 | [43; 44) 'x': &str | 6 | [43; 44) 'x': &str |
7 | [55; 56) 'b': [[&str]] | 7 | [55; 56) 'b': [_] |
8 | [59; 65) '[a, a]': [[&str]] | 8 | [59; 65) '[a, a]': [_] |
9 | [60; 61) 'a': [&str] | 9 | [60; 61) 'a': [_] |
10 | [63; 64) 'a': [&str] | 10 | [63; 64) 'a': [_] |
11 | [75; 76) 'c': [[[&str]]] | 11 | [75; 76) 'c': [_] |
12 | [79; 85) '[b, b]': [[[&str]]] | 12 | [79; 85) '[b, b]': [_] |
13 | [80; 81) 'b': [[&str]] | 13 | [80; 81) 'b': [_] |
14 | [83; 84) 'b': [[&str]] | 14 | [83; 84) 'b': [_] |
15 | [96; 97) 'd': [isize] | 15 | [96; 97) 'd': [_] |
16 | [100; 112) '[y, 1, 2, 3]': [isize] | 16 | [100; 112) '[y, 1, 2, 3]': [_] |
17 | [101; 102) 'y': isize | 17 | [101; 102) 'y': isize |
18 | [104; 105) '1': isize | 18 | [104; 105) '1': isize |
19 | [107; 108) '2': isize | 19 | [107; 108) '2': isize |
20 | [110; 111) '3': isize | 20 | [110; 111) '3': isize |
21 | [121; 122) 'd': [isize] | 21 | [122; 123) 'd': [_] |
22 | [125; 137) '[1, y, 2, 3]': [isize] | 22 | [126; 138) '[1, y, 2, 3]': [_] |
23 | [126; 127) '1': isize | 23 | [127; 128) '1': isize |
24 | [129; 130) 'y': isize | 24 | [130; 131) 'y': isize |
25 | [132; 133) '2': isize | 25 | [133; 134) '2': isize |
26 | [135; 136) '3': isize | 26 | [136; 137) '3': isize |
27 | [146; 147) 'e': [isize] | 27 | [148; 149) 'e': [_] |
28 | [150; 153) '[y]': [isize] | 28 | [152; 155) '[y]': [_] |
29 | [151; 152) 'y': isize | 29 | [153; 154) 'y': isize |
30 | [163; 164) 'f': [[isize]] | 30 | [165; 166) 'f': [_] |
31 | [167; 173) '[d, d]': [[isize]] | 31 | [169; 175) '[d, d]': [_] |
32 | [168; 169) 'd': [isize] | 32 | [170; 171) 'd': [_] |
33 | [171; 172) 'd': [isize] | 33 | [173; 174) 'd': [_] |
34 | [183; 184) 'g': [[isize]] | 34 | [185; 186) 'g': [_] |
35 | [187; 193) '[e, e]': [[isize]] | 35 | [189; 195) '[e, e]': [_] |
36 | [188; 189) 'e': [isize] | 36 | [190; 191) 'e': [_] |
37 | [191; 192) 'e': [isize] | 37 | [193; 194) 'e': [_] |
38 | [204; 205) 'h': [_] | 38 | [206; 207) 'h': [_] |
39 | [208; 214) '[1, 2]': [_] | 39 | [210; 216) '[1, 2]': [_] |
40 | [209; 210) '1': [unknown] | 40 | [211; 212) '1': i32 |
41 | [212; 213) '2': [unknown] | 41 | [214; 215) '2': i32 |
42 | [224; 225) 'i': [_] | 42 | [226; 227) 'i': [_] |
43 | [228; 238) '["a", "b"]': [_] | 43 | [230; 240) '["a", "b"]': [_] |
44 | [229; 232) '"a"': [unknown] | 44 | [231; 234) '"a"': &str |
45 | [234; 237) '"b"': [unknown] | 45 | [236; 239) '"b"': &str |
46 | [249; 250) 'b': [[&str]] | 46 | [251; 252) 'b': [_] |
47 | [253; 263) '[a, ["b"]]': [[&str]] | 47 | [255; 265) '[a, ["b"]]': [_] |
48 | [254; 255) 'a': [&str] | 48 | [256; 257) 'a': [_] |
49 | [257; 262) '["b"]': [&str] | 49 | [259; 264) '["b"]': [_] |
50 | [258; 261) '"b"': &str | 50 | [260; 263) '"b"': &str |
51 | [273; 274) 'x': [u8] | 51 | [275; 276) 'x': [u8] |
52 | [286; 288) '[]': [u8] | 52 | [288; 290) '[]': [u8] |