This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit b0da0da
authored
Unrolled build for rust-lang#123003
Rollup merge of rust-lang#123003 - maurer:dyn-empty, r=compiler-errors
CFI: Handle dyn with no principal
In user-facing Rust, `dyn` always has at least one predicate following it. Unfortunately, because we filter out marker traits from receivers at callsites and `dyn Sync` is, for example, legal, this results in us having `dyn` types with no predicates on occasion in our alias set encoding. This patch handles cases where there are no predicates in a `dyn` type which are relevant to its alias set.
Fixes rust-lang#122998
r? workingjubileeFile tree
2 files changed
+35
-13
lines changed- compiler/rustc_symbol_mangling/src/typeid
- tests/ui/sanitizer
2 files changed
+35
-13
lines changedLines changed: 14 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
750 | | - | |
751 | | - | |
752 | | - | |
| 750 | + | |
| 751 | + | |
753 | 752 | | |
754 | 753 | | |
755 | 754 | | |
| |||
758 | 757 | | |
759 | 758 | | |
760 | 759 | | |
761 | | - | |
762 | | - | |
763 | | - | |
| 760 | + | |
| 761 | + | |
764 | 762 | | |
765 | 763 | | |
766 | 764 | | |
| |||
1171 | 1169 | | |
1172 | 1170 | | |
1173 | 1171 | | |
1174 | | - | |
1175 | | - | |
| 1172 | + | |
| 1173 | + | |
1176 | 1174 | | |
1177 | 1175 | | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
1183 | 1184 | | |
1184 | 1185 | | |
| 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 | + | |
0 commit comments