forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 50e3d62
Auto merge of rust-lang#123012 - maurer:cfi-supertraits, r=compiler-errors
CFI: Support calling methods on supertraits
Automatically adjust `Virtual` calls to supertrait functions to use the supertrait's trait object type as the receiver rather than the child trait.
cc `@compiler-errors` - this is the next usage of `trait_object_ty` I intend to have, so I thought it might be relevant while reviewing the existing one.File tree
2 files changed
+87
-10
lines changed- compiler/rustc_symbol_mangling/src/typeid
- tests/ui/sanitizer
2 files changed
+87
-10
lines changedLines changed: 14 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1140 | 1140 |
| |
1141 | 1141 |
| |
1142 | 1142 |
| |
1143 | - | ||
1144 | - | ||
1143 | + | ||
1144 | + | ||
1145 | + | ||
1146 | + | ||
1147 | + | ||
1148 | + | ||
1149 | + | ||
1150 | + | ||
1151 | + | ||
1152 | + | ||
1153 | + | ||
1145 | 1154 |
| |
1146 | 1155 |
| |
1147 | 1156 |
| |
| |||
1191 | 1200 |
| |
1192 | 1201 |
| |
1193 | 1202 |
| |
1194 | - | ||
1195 | - | ||
1196 | - | ||
1197 | - | ||
1198 | - | ||
1203 | + | ||
1199 | 1204 |
| |
1200 | 1205 |
| |
1201 | 1206 |
| |
1202 | - | ||
1207 | + | ||
1203 | 1208 |
| |
1204 | 1209 |
| |
1205 | 1210 |
| |
| |||
1210 | 1215 |
| |
1211 | 1216 |
| |
1212 | 1217 |
| |
1213 | - | ||
1214 | - | ||
1218 | + | ||
1215 | 1219 |
| |
1216 | 1220 |
| |
1217 | 1221 |
| |
|
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 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + |
0 commit comments