diff options
Diffstat (limited to 'crates/ra_hir_ty/src/tests/macros.rs')
-rw-r--r-- | crates/ra_hir_ty/src/tests/macros.rs | 202 |
1 files changed, 101 insertions, 101 deletions
diff --git a/crates/ra_hir_ty/src/tests/macros.rs b/crates/ra_hir_ty/src/tests/macros.rs index f2a9b1c40..6b5267232 100644 --- a/crates/ra_hir_ty/src/tests/macros.rs +++ b/crates/ra_hir_ty/src/tests/macros.rs | |||
@@ -67,12 +67,12 @@ fn main() { | |||
67 | } | 67 | } |
68 | "#), | 68 | "#), |
69 | @r###" | 69 | @r###" |
70 | ![0; 17) '{Foo(v...,2,])}': Foo | 70 | !0..17 '{Foo(v...,2,])}': Foo |
71 | ![1; 4) 'Foo': Foo({unknown}) -> Foo | 71 | !1..4 'Foo': Foo({unknown}) -> Foo |
72 | ![1; 16) 'Foo(vec![1,2,])': Foo | 72 | !1..16 'Foo(vec![1,2,])': Foo |
73 | ![5; 15) 'vec![1,2,]': {unknown} | 73 | !5..15 'vec![1,2,]': {unknown} |
74 | [156; 182) '{ ...,2); }': () | 74 | 156..182 '{ ...,2); }': () |
75 | [166; 167) 'x': Foo | 75 | 166..167 'x': Foo |
76 | "### | 76 | "### |
77 | ); | 77 | ); |
78 | } | 78 | } |
@@ -100,14 +100,14 @@ fn main() { | |||
100 | } | 100 | } |
101 | "#), | 101 | "#), |
102 | @r###" | 102 | @r###" |
103 | ![0; 17) '{Foo(v...,2,])}': Foo | 103 | !0..17 '{Foo(v...,2,])}': Foo |
104 | ![1; 4) 'Foo': Foo({unknown}) -> Foo | 104 | !1..4 'Foo': Foo({unknown}) -> Foo |
105 | ![1; 16) 'Foo(vec![1,2,])': Foo | 105 | !1..16 'Foo(vec![1,2,])': Foo |
106 | ![5; 15) 'vec![1,2,]': {unknown} | 106 | !5..15 'vec![1,2,]': {unknown} |
107 | [195; 251) '{ ...,2); }': () | 107 | 195..251 '{ ...,2); }': () |
108 | [205; 206) 'x': Foo | 108 | 205..206 'x': Foo |
109 | [228; 229) 'y': {unknown} | 109 | 228..229 'y': {unknown} |
110 | [232; 248) 'crate:...!(1,2)': {unknown} | 110 | 232..248 'crate:...!(1,2)': {unknown} |
111 | "### | 111 | "### |
112 | ); | 112 | ); |
113 | } | 113 | } |
@@ -131,11 +131,11 @@ fn main() { | |||
131 | } | 131 | } |
132 | "#), | 132 | "#), |
133 | @r###" | 133 | @r###" |
134 | ![0; 5) '42i32': i32 | 134 | !0..5 '42i32': i32 |
135 | ![0; 5) '42i32': i32 | 135 | !0..5 '42i32': i32 |
136 | [111; 164) '{ ...!(); }': () | 136 | 111..164 '{ ...!(); }': () |
137 | [121; 122) 'x': i32 | 137 | 121..122 'x': i32 |
138 | [148; 149) 'y': i32 | 138 | 148..149 'y': i32 |
139 | "### | 139 | "### |
140 | ); | 140 | ); |
141 | } | 141 | } |
@@ -172,51 +172,51 @@ fn spam() { | |||
172 | } | 172 | } |
173 | "#), | 173 | "#), |
174 | @r###" | 174 | @r###" |
175 | ![0; 6) '1isize': isize | 175 | !0..6 '1isize': isize |
176 | ![0; 6) '1isize': isize | 176 | !0..6 '1isize': isize |
177 | ![0; 6) '1isize': isize | 177 | !0..6 '1isize': isize |
178 | ![0; 6) '1isize': isize | 178 | !0..6 '1isize': isize |
179 | ![0; 6) '1isize': isize | 179 | !0..6 '1isize': isize |
180 | ![0; 6) '1isize': isize | 180 | !0..6 '1isize': isize |
181 | ![0; 6) '1isize': isize | 181 | !0..6 '1isize': isize |
182 | ![0; 6) '1isize': isize | 182 | !0..6 '1isize': isize |
183 | ![0; 6) '1isize': isize | 183 | !0..6 '1isize': isize |
184 | ![0; 6) '1isize': isize | 184 | !0..6 '1isize': isize |
185 | ![0; 6) '1isize': isize | 185 | !0..6 '1isize': isize |
186 | ![0; 6) '1isize': isize | 186 | !0..6 '1isize': isize |
187 | ![0; 6) '1isize': isize | 187 | !0..6 '1isize': isize |
188 | ![0; 6) '1isize': isize | 188 | !0..6 '1isize': isize |
189 | ![0; 6) '1isize': isize | 189 | !0..6 '1isize': isize |
190 | ![0; 6) '1isize': isize | 190 | !0..6 '1isize': isize |
191 | ![0; 6) '1isize': isize | 191 | !0..6 '1isize': isize |
192 | ![0; 6) '1isize': isize | 192 | !0..6 '1isize': isize |
193 | ![0; 6) '1isize': isize | 193 | !0..6 '1isize': isize |
194 | ![0; 6) '1isize': isize | 194 | !0..6 '1isize': isize |
195 | ![0; 6) '1isize': isize | 195 | !0..6 '1isize': isize |
196 | ![0; 6) '1isize': isize | 196 | !0..6 '1isize': isize |
197 | ![0; 6) '1isize': isize | 197 | !0..6 '1isize': isize |
198 | ![0; 6) '1isize': isize | 198 | !0..6 '1isize': isize |
199 | ![0; 6) '1isize': isize | 199 | !0..6 '1isize': isize |
200 | [54; 457) '{ ...!(); }': ! | 200 | 54..457 '{ ...!(); }': ! |
201 | [88; 109) 'spam!(...am!())': {unknown} | 201 | 88..109 'spam!(...am!())': {unknown} |
202 | [115; 134) 'for _ ...!() {}': () | 202 | 115..134 'for _ ...!() {}': () |
203 | [119; 120) '_': {unknown} | 203 | 119..120 '_': {unknown} |
204 | [132; 134) '{}': () | 204 | 132..134 '{}': () |
205 | [139; 149) '|| spam!()': || -> isize | 205 | 139..149 '|| spam!()': || -> isize |
206 | [155; 171) 'while ...!() {}': () | 206 | 155..171 'while ...!() {}': () |
207 | [169; 171) '{}': () | 207 | 169..171 '{}': () |
208 | [176; 189) 'break spam!()': ! | 208 | 176..189 'break spam!()': ! |
209 | [195; 209) 'return spam!()': ! | 209 | 195..209 'return spam!()': ! |
210 | [215; 269) 'match ... }': isize | 210 | 215..269 'match ... }': isize |
211 | [239; 240) '_': isize | 211 | 239..240 '_': isize |
212 | [274; 290) 'spam!(...am!())': {unknown} | 212 | 274..290 'spam!(...am!())': {unknown} |
213 | [296; 318) 'Spam {...m!() }': {unknown} | 213 | 296..318 'Spam {...m!() }': {unknown} |
214 | [324; 340) 'spam!(...am!()]': {unknown} | 214 | 324..340 'spam!(...am!()]': {unknown} |
215 | [365; 381) 'spam!(... usize': usize | 215 | 365..381 'spam!(... usize': usize |
216 | [387; 395) '&spam!()': &isize | 216 | 387..395 '&spam!()': &isize |
217 | [401; 409) '-spam!()': isize | 217 | 401..409 '-spam!()': isize |
218 | [415; 431) 'spam!(...pam!()': {unknown} | 218 | 415..431 'spam!(...pam!()': {unknown} |
219 | [437; 454) 'spam!(...pam!()': isize | 219 | 437..454 'spam!(...pam!()': isize |
220 | "### | 220 | "### |
221 | ); | 221 | ); |
222 | } | 222 | } |
@@ -244,9 +244,9 @@ fn foo() { | |||
244 | } | 244 | } |
245 | "#), | 245 | "#), |
246 | @r###" | 246 | @r###" |
247 | ![0; 5) '42i32': i32 | 247 | !0..5 '42i32': i32 |
248 | [171; 206) '{ ...32); }': () | 248 | 171..206 '{ ...32); }': () |
249 | [181; 184) 'foo': i32 | 249 | 181..184 'foo': i32 |
250 | "### | 250 | "### |
251 | ); | 251 | ); |
252 | } | 252 | } |
@@ -357,12 +357,12 @@ fn main() { | |||
357 | } | 357 | } |
358 | "#), | 358 | "#), |
359 | @r###" | 359 | @r###" |
360 | [159; 164) '{ 0 }': u64 | 360 | 159..164 '{ 0 }': u64 |
361 | [161; 162) '0': u64 | 361 | 161..162 '0': u64 |
362 | [175; 197) '{ ...f(); }': () | 362 | 175..197 '{ ...f(); }': () |
363 | [185; 187) '_a': u64 | 363 | 185..187 '_a': u64 |
364 | [191; 192) 'f': fn f() -> u64 | 364 | 191..192 'f': fn f() -> u64 |
365 | [191; 194) 'f()': u64 | 365 | 191..194 'f()': u64 |
366 | "### | 366 | "### |
367 | ); | 367 | ); |
368 | } | 368 | } |
@@ -379,10 +379,10 @@ fn main() { | |||
379 | } | 379 | } |
380 | "#), | 380 | "#), |
381 | @r###" | 381 | @r###" |
382 | ![0; 6) '1usize': usize | 382 | !0..6 '1usize': usize |
383 | [11; 90) '{ ...!(); }': () | 383 | 11..90 '{ ...!(); }': () |
384 | [17; 66) 'macro_... }': {unknown} | 384 | 17..66 'macro_... }': {unknown} |
385 | [75; 77) '_a': usize | 385 | 75..77 '_a': usize |
386 | "### | 386 | "### |
387 | ); | 387 | ); |
388 | } | 388 | } |
@@ -399,9 +399,9 @@ fn main() { | |||
399 | } | 399 | } |
400 | "#), | 400 | "#), |
401 | @r###" | 401 | @r###" |
402 | ![0; 1) '0': i32 | 402 | !0..1 '0': i32 |
403 | [64; 88) '{ ...!(); }': () | 403 | 64..88 '{ ...!(); }': () |
404 | [74; 75) 'x': i32 | 404 | 74..75 'x': i32 |
405 | "### | 405 | "### |
406 | ); | 406 | ); |
407 | } | 407 | } |
@@ -418,9 +418,9 @@ fn main() { | |||
418 | } | 418 | } |
419 | "#), | 419 | "#), |
420 | @r###" | 420 | @r###" |
421 | ![0; 2) '""': &str | 421 | !0..2 '""': &str |
422 | [64; 88) '{ ...!(); }': () | 422 | 64..88 '{ ...!(); }': () |
423 | [74; 75) 'x': &str | 423 | 74..75 'x': &str |
424 | "### | 424 | "### |
425 | ); | 425 | ); |
426 | } | 426 | } |
@@ -437,9 +437,9 @@ fn main() { | |||
437 | } | 437 | } |
438 | "#), | 438 | "#), |
439 | @r###" | 439 | @r###" |
440 | ![0; 1) '0': i32 | 440 | !0..1 '0': i32 |
441 | [66; 92) '{ ...!(); }': () | 441 | 66..92 '{ ...!(); }': () |
442 | [76; 77) 'x': i32 | 442 | 76..77 'x': i32 |
443 | "### | 443 | "### |
444 | ); | 444 | ); |
445 | } | 445 | } |
@@ -456,9 +456,9 @@ fn main() { | |||
456 | } | 456 | } |
457 | "#), | 457 | "#), |
458 | @r###" | 458 | @r###" |
459 | ![0; 13) '"helloworld!"': &str | 459 | !0..13 '"helloworld!"': &str |
460 | [66; 122) '{ ...")); }': () | 460 | 66..122 '{ ...")); }': () |
461 | [76; 77) 'x': &str | 461 | 76..77 'x': &str |
462 | "### | 462 | "### |
463 | ); | 463 | ); |
464 | } | 464 | } |
@@ -591,9 +591,9 @@ fn main() { | |||
591 | } | 591 | } |
592 | "#), | 592 | "#), |
593 | @r###" | 593 | @r###" |
594 | ![0; 13) '"helloworld!"': &str | 594 | !0..13 '"helloworld!"': &str |
595 | [104; 161) '{ ...")); }': () | 595 | 104..161 '{ ...")); }': () |
596 | [114; 115) 'x': &str | 596 | 114..115 'x': &str |
597 | "### | 597 | "### |
598 | ); | 598 | ); |
599 | } | 599 | } |
@@ -611,9 +611,9 @@ fn main() { | |||
611 | } | 611 | } |
612 | "#), | 612 | "#), |
613 | @r###" | 613 | @r###" |
614 | ![0; 5) '"bar"': &str | 614 | !0..5 '"bar"': &str |
615 | [88; 116) '{ ...o"); }': () | 615 | 88..116 '{ ...o"); }': () |
616 | [98; 99) 'x': &str | 616 | 98..99 'x': &str |
617 | "### | 617 | "### |
618 | ); | 618 | ); |
619 | } | 619 | } |
@@ -703,12 +703,12 @@ fn main() { | |||
703 | } | 703 | } |
704 | "#), | 704 | "#), |
705 | @r###" | 705 | @r###" |
706 | [52; 111) '{ ... }; }': () | 706 | 52..111 '{ ... }; }': () |
707 | [62; 63) 'x': u32 | 707 | 62..63 'x': u32 |
708 | [66; 108) 'match ... }': u32 | 708 | 66..108 'match ... }': u32 |
709 | [72; 74) '()': () | 709 | 72..74 '()': () |
710 | [85; 92) 'unit!()': () | 710 | 85..92 'unit!()': () |
711 | [96; 101) '92u32': u32 | 711 | 96..101 '92u32': u32 |
712 | "### | 712 | "### |
713 | ); | 713 | ); |
714 | } | 714 | } |