-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit 7307dc0
Rollup merge of #144694 - compiler-errors:with-self-ty, r=SparrowLii
Distinguish prepending and replacing self ty in predicates
There are two kinds of functions called `with_self_ty`:
1. Prepends the `Self` type onto an `ExistentialPredicate` which lacks it in its internal representation.
2. Replaces the `Self` type of an existing predicate, either for diagnostics purposes or in the new trait solver when normalizing that self type.
This PR distinguishes these two because I often want to only grep for one of them. Namely, let's call it `with_replaced_self_ty` when all we're doing is replacing the self type.File tree
15 files changed
+53
-42
lines changed- compiler
- rustc_hir_analysis/src
- check
- hir_ty_lowering
- rustc_hir_typeck/src
- method
- rustc_next_trait_solver/src/solve
- assembly
- normalizes_to
- rustc_trait_selection/src/error_reporting
- infer
- traits
- rustc_type_ir/src
- src/tools/clippy/clippy_lints/src
15 files changed
+53
-42
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
493 | 493 |
| |
494 | 494 |
| |
495 | 495 |
| |
496 | - | ||
496 | + | ||
497 | 497 |
| |
498 | 498 |
| |
499 | 499 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
888 | 888 |
| |
889 | 889 |
| |
890 | 890 |
| |
891 | - | ||
892 | - | ||
891 | + | ||
892 | + | ||
893 | 893 |
| |
894 | 894 |
| |
895 | 895 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1800 | 1800 |
| |
1801 | 1801 |
| |
1802 | 1802 |
| |
1803 | - | ||
1803 | + | ||
1804 | 1804 |
| |
1805 | - | ||
1806 | - | ||
1807 | - | ||
1805 | + | ||
1806 | + | ||
1807 | + | ||
1808 | + | ||
1809 | + | ||
1808 | 1810 |
| |
1809 | 1811 |
| |
1810 | 1812 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1053 | 1053 |
| |
1054 | 1054 |
| |
1055 | 1055 |
| |
1056 | - | ||
1057 | - | ||
1056 | + | ||
1057 | + | ||
1058 | 1058 |
| |
1059 | 1059 |
| |
1060 | 1060 |
| |
| |||
2157 | 2157 |
| |
2158 | 2158 |
| |
2159 | 2159 |
| |
2160 | - | ||
2160 | + | ||
2161 | 2161 |
| |
2162 | 2162 |
| |
2163 | 2163 |
| |
| |||
2196 | 2196 |
| |
2197 | 2197 |
| |
2198 | 2198 |
| |
2199 | - | ||
2199 | + | ||
2200 | 2200 |
| |
2201 | 2201 |
| |
2202 | 2202 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
170 | - | ||
170 | + | ||
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
53 | - | ||
53 | + | ||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
| |||
376 | 376 |
| |
377 | 377 |
| |
378 | 378 |
| |
379 | - | ||
380 | - | ||
379 | + | ||
380 | + | ||
381 | 381 |
| |
382 | 382 |
| |
383 | 383 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 | - | ||
33 | - | ||
32 | + | ||
33 | + | ||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
102 | - | ||
103 | - | ||
102 | + | ||
103 | + | ||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 | - | ||
37 | - | ||
36 | + | ||
37 | + | ||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
| |||
1263 | 1263 |
| |
1264 | 1264 |
| |
1265 | 1265 |
| |
1266 | - | ||
1266 | + | ||
1267 | + | ||
1268 | + | ||
1267 | 1269 |
| |
1268 | 1270 |
| |
1269 | 1271 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
581 | 581 |
| |
582 | 582 |
| |
583 | 583 |
| |
584 | - | ||
584 | + | ||
585 | 585 |
| |
586 | 586 |
| |
587 | 587 |
| |
|
0 commit comments