Commit b47ff52
committed
Return empty list early for non-function child segments
Instead of computing self_ty during error recovery, skip generic args
processing entirely when the child segment resolves to a non-function. The error (E0423) is already emitted elsewhere.
Also rename test to remove ice- prefix and add needs-rustc-debug-assertions.1 parent 88a9135 commit b47ff52
3 files changed
Lines changed: 7 additions & 15 deletions
File tree
- compiler/rustc_hir_analysis/src
- tests/ui/delegation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
600 | 604 | | |
601 | 605 | | |
602 | 606 | | |
| |||
608 | 612 | | |
609 | 613 | | |
610 | 614 | | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | 615 | | |
624 | 616 | | |
625 | 617 | | |
626 | 618 | | |
627 | 619 | | |
628 | 620 | | |
629 | | - | |
| 621 | + | |
630 | 622 | | |
631 | 623 | | |
632 | 624 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments