This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 7d4e47f
authored
Unrolled build for rust-lang#118112
Rollup merge of rust-lang#118112 - compiler-errors:index-ambiguity-ice, r=aliemjay
Don't ICE when ambiguity is found when selecting `Index` implementation in typeck
Fixes rust-lang#118111
The problem here is when we're manually "selecting" an impl for `base_ty: Index<?0>`, we don't consider placeholder region errors (leak check) or ambiguous predicates. Those can lead to us not actually emitting any fulfillment errors on line 3131.File tree
3 files changed
+56
-4
lines changed- compiler/rustc_hir_typeck/src
- tests/ui/typeck
3 files changed
+56
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3063 | 3063 | | |
3064 | 3064 | | |
3065 | 3065 | | |
3066 | | - | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
3067 | 3069 | | |
3068 | 3070 | | |
3069 | 3071 | | |
| |||
3073 | 3075 | | |
3074 | 3076 | | |
3075 | 3077 | | |
3076 | | - | |
| 3078 | + | |
3077 | 3079 | | |
3078 | 3080 | | |
3079 | 3081 | | |
| |||
3109 | 3111 | | |
3110 | 3112 | | |
3111 | 3113 | | |
3112 | | - | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
| 3126 | + | |
3113 | 3127 | | |
3114 | 3128 | | |
3115 | 3129 | | |
3116 | | - | |
| 3130 | + | |
3117 | 3131 | | |
3118 | 3132 | | |
3119 | 3133 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments