diff options
Diffstat (limited to 'crates/ra_hir_ty/src/tests/macros.rs')
-rw-r--r-- | crates/ra_hir_ty/src/tests/macros.rs | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/crates/ra_hir_ty/src/tests/macros.rs b/crates/ra_hir_ty/src/tests/macros.rs index 4c6099aa2..be2b48dcc 100644 --- a/crates/ra_hir_ty/src/tests/macros.rs +++ b/crates/ra_hir_ty/src/tests/macros.rs | |||
@@ -71,8 +71,8 @@ fn main() { | |||
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 | 155..181 '{ ...,2); }': () |
75 | 166..167 'x': Foo | 75 | 165..166 'x': Foo |
76 | "### | 76 | "### |
77 | ); | 77 | ); |
78 | } | 78 | } |
@@ -104,10 +104,10 @@ fn main() { | |||
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 | 194..250 '{ ...,2); }': () |
108 | 205..206 'x': Foo | 108 | 204..205 'x': Foo |
109 | 228..229 'y': {unknown} | 109 | 227..228 'y': {unknown} |
110 | 232..248 'crate:...!(1,2)': {unknown} | 110 | 231..247 'crate:...!(1,2)': {unknown} |
111 | "### | 111 | "### |
112 | ); | 112 | ); |
113 | } | 113 | } |
@@ -133,9 +133,9 @@ fn main() { | |||
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 | 110..163 '{ ...!(); }': () |
137 | 121..122 'x': i32 | 137 | 120..121 'x': i32 |
138 | 148..149 'y': i32 | 138 | 147..148 'y': i32 |
139 | "### | 139 | "### |
140 | ); | 140 | ); |
141 | } | 141 | } |
@@ -197,26 +197,26 @@ fn spam() { | |||
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 | 53..456 '{ ...!(); }': () |
201 | 88..109 'spam!(...am!())': {unknown} | 201 | 87..108 'spam!(...am!())': {unknown} |
202 | 115..134 'for _ ...!() {}': () | 202 | 114..133 'for _ ...!() {}': () |
203 | 119..120 '_': {unknown} | 203 | 118..119 '_': {unknown} |
204 | 132..134 '{}': () | 204 | 131..133 '{}': () |
205 | 139..149 '|| spam!()': || -> isize | 205 | 138..148 '|| spam!()': || -> isize |
206 | 155..171 'while ...!() {}': () | 206 | 154..170 'while ...!() {}': () |
207 | 169..171 '{}': () | 207 | 168..170 '{}': () |
208 | 176..189 'break spam!()': ! | 208 | 175..188 'break spam!()': ! |
209 | 195..209 'return spam!()': ! | 209 | 194..208 'return spam!()': ! |
210 | 215..269 'match ... }': isize | 210 | 214..268 'match ... }': isize |
211 | 239..240 '_': isize | 211 | 238..239 '_': isize |
212 | 274..290 'spam!(...am!())': {unknown} | 212 | 273..289 'spam!(...am!())': {unknown} |
213 | 296..318 'Spam {...m!() }': {unknown} | 213 | 295..317 'Spam {...m!() }': {unknown} |
214 | 324..340 'spam!(...am!()]': {unknown} | 214 | 323..339 'spam!(...am!()]': {unknown} |
215 | 365..381 'spam!(... usize': usize | 215 | 364..380 'spam!(... usize': usize |
216 | 387..395 '&spam!()': &isize | 216 | 386..394 '&spam!()': &isize |
217 | 401..409 '-spam!()': isize | 217 | 400..408 '-spam!()': isize |
218 | 415..431 'spam!(...pam!()': {unknown} | 218 | 414..430 'spam!(...pam!()': {unknown} |
219 | 437..454 'spam!(...pam!()': isize | 219 | 436..453 'spam!(...pam!()': isize |
220 | "### | 220 | "### |
221 | ); | 221 | ); |
222 | } | 222 | } |
@@ -245,8 +245,8 @@ fn foo() { | |||
245 | "#), | 245 | "#), |
246 | @r###" | 246 | @r###" |
247 | !0..5 '42i32': i32 | 247 | !0..5 '42i32': i32 |
248 | 171..206 '{ ...32); }': () | 248 | 170..205 '{ ...32); }': () |
249 | 181..184 'foo': i32 | 249 | 180..183 'foo': i32 |
250 | "### | 250 | "### |
251 | ); | 251 | ); |
252 | } | 252 | } |
@@ -397,12 +397,12 @@ fn main() { | |||
397 | } | 397 | } |
398 | "#), | 398 | "#), |
399 | @r###" | 399 | @r###" |
400 | 159..164 '{ 0 }': u64 | 400 | 158..163 '{ 0 }': u64 |
401 | 161..162 '0': u64 | 401 | 160..161 '0': u64 |
402 | 175..197 '{ ...f(); }': () | 402 | 174..196 '{ ...f(); }': () |
403 | 185..187 '_a': u64 | 403 | 184..186 '_a': u64 |
404 | 191..192 'f': fn f() -> u64 | 404 | 190..191 'f': fn f() -> u64 |
405 | 191..194 'f()': u64 | 405 | 190..193 'f()': u64 |
406 | "### | 406 | "### |
407 | ); | 407 | ); |
408 | } | 408 | } |
@@ -419,10 +419,10 @@ fn main() { | |||
419 | } | 419 | } |
420 | "#), | 420 | "#), |
421 | @r###" | 421 | @r###" |
422 | !0..6 '1usize': usize | 422 | !0..6 '1usize': usize |
423 | 11..90 '{ ...!(); }': () | 423 | 10..89 '{ ...!(); }': () |
424 | 17..66 'macro_... }': {unknown} | 424 | 16..65 'macro_... }': {unknown} |
425 | 75..77 '_a': usize | 425 | 74..76 '_a': usize |
426 | "### | 426 | "### |
427 | ); | 427 | ); |
428 | } | 428 | } |
@@ -466,8 +466,8 @@ fn main() { | |||
466 | "#), | 466 | "#), |
467 | @r###" | 467 | @r###" |
468 | !0..1 '0': i32 | 468 | !0..1 '0': i32 |
469 | 64..88 '{ ...!(); }': () | 469 | 63..87 '{ ...!(); }': () |
470 | 74..75 'x': i32 | 470 | 73..74 'x': i32 |
471 | "### | 471 | "### |
472 | ); | 472 | ); |
473 | } | 473 | } |
@@ -485,8 +485,8 @@ fn main() { | |||
485 | "#), | 485 | "#), |
486 | @r###" | 486 | @r###" |
487 | !0..2 '""': &str | 487 | !0..2 '""': &str |
488 | 64..88 '{ ...!(); }': () | 488 | 63..87 '{ ...!(); }': () |
489 | 74..75 'x': &str | 489 | 73..74 'x': &str |
490 | "### | 490 | "### |
491 | ); | 491 | ); |
492 | } | 492 | } |
@@ -504,8 +504,8 @@ fn main() { | |||
504 | "#), | 504 | "#), |
505 | @r###" | 505 | @r###" |
506 | !0..1 '0': i32 | 506 | !0..1 '0': i32 |
507 | 66..92 '{ ...!(); }': () | 507 | 65..91 '{ ...!(); }': () |
508 | 76..77 'x': i32 | 508 | 75..76 'x': i32 |
509 | "### | 509 | "### |
510 | ); | 510 | ); |
511 | } | 511 | } |
@@ -523,8 +523,8 @@ fn main() { | |||
523 | "#), | 523 | "#), |
524 | @r###" | 524 | @r###" |
525 | !0..13 '"helloworld!"': &str | 525 | !0..13 '"helloworld!"': &str |
526 | 66..122 '{ ...")); }': () | 526 | 65..121 '{ ...")); }': () |
527 | 76..77 'x': &str | 527 | 75..76 'x': &str |
528 | "### | 528 | "### |
529 | ); | 529 | ); |
530 | } | 530 | } |
@@ -658,8 +658,8 @@ fn main() { | |||
658 | "#), | 658 | "#), |
659 | @r###" | 659 | @r###" |
660 | !0..13 '"helloworld!"': &str | 660 | !0..13 '"helloworld!"': &str |
661 | 104..161 '{ ...")); }': () | 661 | 103..160 '{ ...")); }': () |
662 | 114..115 'x': &str | 662 | 113..114 'x': &str |
663 | "### | 663 | "### |
664 | ); | 664 | ); |
665 | } | 665 | } |
@@ -677,9 +677,9 @@ fn main() { | |||
677 | } | 677 | } |
678 | "#), | 678 | "#), |
679 | @r###" | 679 | @r###" |
680 | !0..5 '"bar"': &str | 680 | !0..22 '"__RA_...TED__"': &str |
681 | 88..116 '{ ...o"); }': () | 681 | 62..90 '{ ...o"); }': () |
682 | 98..99 'x': &str | 682 | 72..73 'x': &str |
683 | "### | 683 | "### |
684 | ); | 684 | ); |
685 | } | 685 | } |
@@ -794,12 +794,12 @@ fn main() { | |||
794 | } | 794 | } |
795 | "#), | 795 | "#), |
796 | @r###" | 796 | @r###" |
797 | 52..111 '{ ... }; }': () | 797 | 51..110 '{ ... }; }': () |
798 | 62..63 'x': u32 | 798 | 61..62 'x': u32 |
799 | 66..108 'match ... }': u32 | 799 | 65..107 'match ... }': u32 |
800 | 72..74 '()': () | 800 | 71..73 '()': () |
801 | 85..92 'unit!()': () | 801 | 84..91 'unit!()': () |
802 | 96..101 '92u32': u32 | 802 | 95..100 '92u32': u32 |
803 | "### | 803 | "### |
804 | ); | 804 | ); |
805 | } | 805 | } |