-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit e745b4d
Auto merge of #95767 - oli-obk:all_your_generics_belong_to_the_definitions, r=compiler-errors
Report opaque type mismatches directly during borrowck of the function instead of within the `type_of` query.
This allows us to only store a single hidden type per opaque type instead of having to store one per set of substitutions.
r? `@compiler-errors`
This does not affect diagnostics, because the diagnostic messages are exactly the same.File tree
5 files changed
+44
-34
lines changed- compiler
- rustc_borrowck/src
- region_infer
- rustc_middle/src
- mir
- ty
- rustc_typeck/src/collect
5 files changed
+44
-34
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | + | ||
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
11 | - | ||
12 | + | ||
12 | 13 |
| |
13 | 14 |
| |
14 | 15 |
| |
| |||
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
46 | - | ||
47 | + | ||
47 | 48 |
| |
48 | 49 |
| |
49 | 50 |
| |
| |||
372 | 373 |
| |
373 | 374 |
| |
374 | 375 |
| |
375 | - | ||
376 | + | ||
376 | 377 |
| |
377 | 378 |
| |
378 | 379 |
| |
|
Lines changed: 14 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | + | ||
3 | 4 |
| |
4 | 5 |
| |
5 | 6 |
| |
| |||
54 | 55 |
| |
55 | 56 |
| |
56 | 57 |
| |
57 | - | ||
58 | - | ||
58 | + | ||
59 | + | ||
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
| |||
124 | 125 |
| |
125 | 126 |
| |
126 | 127 |
| |
127 | - | ||
128 | + | ||
128 | 129 |
| |
129 | - | ||
130 | - | ||
131 | - | ||
132 | - | ||
133 | - | ||
134 | - | ||
130 | + | ||
131 | + | ||
132 | + | ||
133 | + | ||
134 | + | ||
135 | + | ||
135 | 136 |
| |
136 | 137 |
| |
137 | 138 |
| |
138 | 139 |
| |
139 | 140 |
| |
140 | 141 |
| |
141 | - | ||
142 | + | ||
143 | + | ||
144 | + | ||
145 | + | ||
142 | 146 |
| |
143 | 147 |
| |
144 | 148 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 | - | ||
13 | 12 |
| |
14 | 13 |
| |
15 | 14 |
| |
| |||
242 | 241 |
| |
243 | 242 |
| |
244 | 243 |
| |
245 | - | ||
244 | + | ||
246 | 245 |
| |
247 | 246 |
| |
248 | 247 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1112 | 1112 |
| |
1113 | 1113 |
| |
1114 | 1114 |
| |
1115 | + | ||
1116 | + | ||
1117 | + | ||
1118 | + | ||
1119 | + | ||
1120 | + | ||
1121 | + | ||
1122 | + | ||
1123 | + | ||
1124 | + | ||
1125 | + | ||
1126 | + | ||
1127 | + | ||
1128 | + | ||
1129 | + | ||
1130 | + | ||
1131 | + | ||
1132 | + | ||
1133 | + | ||
1134 | + | ||
1115 | 1135 |
| |
1116 | 1136 |
| |
1117 | 1137 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
356 | 356 |
| |
357 | 357 |
| |
358 | 358 |
| |
359 | - | ||
359 | + | ||
360 | 360 |
| |
361 | 361 |
| |
362 | 362 |
| |
| |||
591 | 591 |
| |
592 | 592 |
| |
593 | 593 |
| |
594 | - | ||
595 | - | ||
594 | + | ||
595 | + | ||
596 | 596 |
| |
597 | 597 |
| |
598 | 598 |
| |
599 | 599 |
| |
600 | - | ||
600 | + | ||
601 | 601 |
| |
602 | 602 |
| |
603 | 603 |
| |
604 | - | ||
605 | - | ||
606 | - | ||
607 | - | ||
608 | - | ||
609 | - | ||
610 | - | ||
611 | - | ||
612 | - | ||
613 | - | ||
614 | - | ||
615 | - | ||
616 | - | ||
617 | - | ||
618 | - | ||
604 | + | ||
619 | 605 |
| |
620 | 606 |
| |
621 | 607 |
| |
|
0 commit comments