Commit 7417110
committed
Auto merge of #96246 - SparrowLii:bound_contxet, r=compiler-errors
Add `BoundKind` in `visit_param_bounds` to check questions in bounds
From the FIXME in the impl of `AstValidator`. Better bound checks by adding `BoundCtxt` type parameter to `visit_param_bound`
cc `@ecstatic-morse`File tree
5 files changed
+78
-56
lines changed- compiler
- rustc_ast_passes/src
- rustc_ast/src
- rustc_passes/src
- rustc_resolve/src
5 files changed
+78
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
35 | 54 | | |
36 | 55 | | |
37 | 56 | | |
| |||
139 | 158 | | |
140 | 159 | | |
141 | 160 | | |
142 | | - | |
| 161 | + | |
143 | 162 | | |
144 | 163 | | |
145 | 164 | | |
| |||
311 | 330 | | |
312 | 331 | | |
313 | 332 | | |
314 | | - | |
| 333 | + | |
315 | 334 | | |
316 | 335 | | |
317 | 336 | | |
| |||
346 | 365 | | |
347 | 366 | | |
348 | 367 | | |
349 | | - | |
| 368 | + | |
350 | 369 | | |
351 | 370 | | |
352 | 371 | | |
353 | 372 | | |
354 | | - | |
| 373 | + | |
355 | 374 | | |
356 | 375 | | |
357 | 376 | | |
| |||
416 | 435 | | |
417 | 436 | | |
418 | 437 | | |
419 | | - | |
420 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
421 | 443 | | |
422 | 444 | | |
423 | 445 | | |
| |||
503 | 525 | | |
504 | 526 | | |
505 | 527 | | |
506 | | - | |
| 528 | + | |
507 | 529 | | |
508 | 530 | | |
509 | 531 | | |
| |||
566 | 588 | | |
567 | 589 | | |
568 | 590 | | |
569 | | - | |
| 591 | + | |
570 | 592 | | |
571 | 593 | | |
572 | 594 | | |
| |||
585 | 607 | | |
586 | 608 | | |
587 | 609 | | |
588 | | - | |
| 610 | + | |
589 | 611 | | |
590 | 612 | | |
591 | 613 | | |
| |||
612 | 634 | | |
613 | 635 | | |
614 | 636 | | |
615 | | - | |
| 637 | + | |
616 | 638 | | |
617 | 639 | | |
618 | 640 | | |
619 | 641 | | |
620 | 642 | | |
621 | 643 | | |
622 | | - | |
| 644 | + | |
623 | 645 | | |
624 | 646 | | |
625 | 647 | | |
| |||
672 | 694 | | |
673 | 695 | | |
674 | 696 | | |
675 | | - | |
| 697 | + | |
676 | 698 | | |
677 | 699 | | |
678 | 700 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | 348 | | |
366 | 349 | | |
367 | 350 | | |
| |||
873 | 856 | | |
874 | 857 | | |
875 | 858 | | |
876 | | - | |
877 | 859 | | |
878 | 860 | | |
879 | 861 | | |
| |||
1242 | 1224 | | |
1243 | 1225 | | |
1244 | 1226 | | |
1245 | | - | |
1246 | 1227 | | |
1247 | 1228 | | |
1248 | 1229 | | |
1249 | 1230 | | |
1250 | 1231 | | |
1251 | 1232 | | |
1252 | | - | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
1253 | 1236 | | |
1254 | 1237 | | |
1255 | 1238 | | |
| |||
1476 | 1459 | | |
1477 | 1460 | | |
1478 | 1461 | | |
1479 | | - | |
1480 | | - | |
1481 | | - | |
1482 | | - | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
1483 | 1490 | | |
1484 | | - | |
1485 | | - | |
1486 | | - | |
| 1491 | + | |
1487 | 1492 | | |
| 1493 | + | |
1488 | 1494 | | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
1494 | | - | |
1495 | | - | |
1496 | 1495 | | |
1497 | 1496 | | |
1498 | 1497 | | |
| |||
1662 | 1661 | | |
1663 | 1662 | | |
1664 | 1663 | | |
1665 | | - | |
| 1664 | + | |
1666 | 1665 | | |
1667 | 1666 | | |
1668 | 1667 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
305 | | - | |
| 306 | + | |
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
838 | | - | |
| 838 | + | |
839 | 839 | | |
840 | 840 | | |
841 | 841 | | |
| |||
1026 | 1026 | | |
1027 | 1027 | | |
1028 | 1028 | | |
1029 | | - | |
| 1029 | + | |
1030 | 1030 | | |
1031 | 1031 | | |
1032 | 1032 | | |
1033 | 1033 | | |
1034 | | - | |
| 1034 | + | |
1035 | 1035 | | |
1036 | 1036 | | |
1037 | 1037 | | |
| |||
1496 | 1496 | | |
1497 | 1497 | | |
1498 | 1498 | | |
1499 | | - | |
| 1499 | + | |
1500 | 1500 | | |
1501 | 1501 | | |
1502 | 1502 | | |
| |||
1580 | 1580 | | |
1581 | 1581 | | |
1582 | 1582 | | |
1583 | | - | |
| 1583 | + | |
1584 | 1584 | | |
1585 | 1585 | | |
1586 | 1586 | | |
| |||
0 commit comments