Commit 70ac00e
committed
CFI: Fix fn items, closures, and Fn trait objects
Fix casting between function items, closures, and Fn trait objects by
transforming function items, closures, and Fn trait objects into
function pointers for encoding.1 parent 8b9e47c commit 70ac00e
13 files changed
Lines changed: 525 additions & 104 deletions
File tree
- compiler
- rustc_middle/src/ty
- rustc_symbol_mangling/src
- typeid
- tests
- codegen/sanitizer/cfi
- ui/sanitizer
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1841 | 1841 | | |
1842 | 1842 | | |
1843 | 1843 | | |
1844 | | - | |
| 1844 | + | |
1845 | 1845 | | |
1846 | 1846 | | |
1847 | 1847 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1836 | 1836 | | |
1837 | 1837 | | |
1838 | 1838 | | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
1839 | 1844 | | |
1840 | 1845 | | |
1841 | 1846 | | |
| |||
2208 | 2213 | | |
2209 | 2214 | | |
2210 | 2215 | | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
2211 | 2221 | | |
2212 | 2222 | | |
2213 | 2223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
0 commit comments