1
Fork 0
rust/compiler/rustc_middle/src
bors 29fe618f75 Auto merge of #123052 - maurer:addr-taken, r=compiler-errors
CFI: Support function pointers for trait methods

Adds support for both CFI and KCFI for function pointers to trait methods by attaching both concrete and abstract types to functions.

KCFI does this through generation of a `ReifyShim` on any function pointer for a method that could go into a vtable, and keeping this separate from `ReifyShim`s that are *intended* for vtable us by setting a `ReifyReason` on them.

CFI does this by setting both the concrete and abstract type on every instance.

This should land after #123024 or a similar PR, as it diverges the implementation of CFI vs KCFI.

r? `@compiler-errors`
2024-04-04 06:40:30 +00:00
..
dep_graph Reduce exposure of things. 2023-11-16 16:49:22 +11:00
hir Auto merge of #123429 - matthiaskrgr:rollup-4emw4e9, r=matthiaskrgr 2024-04-03 20:19:51 +00:00
hooks Rename mir_const query to mir_built 2024-03-20 09:05:22 +00:00
infer rustc_index: Add a ZERO constant to index types 2024-04-03 19:06:22 +03:00
middle Auto merge of #122972 - beetrees:use-align-type, r=fee1-dead 2024-04-01 03:16:45 +00:00
mir Auto merge of #123052 - maurer:addr-taken, r=compiler-errors 2024-04-04 06:40:30 +00:00
query Rollup merge of #123401 - Zalathar:assert-size-aarch64, r=fmease 2024-04-03 20:17:06 -04:00
thir Implement mut ref/mut ref mut 2024-03-27 09:53:23 -04:00
traits Check x86_64 size assertions on aarch64, too 2024-04-03 16:53:03 +11:00
ty Auto merge of #123052 - maurer:addr-taken, r=compiler-errors 2024-04-04 06:40:30 +00:00
util Make span_bug panic site useful again 2024-03-19 09:19:12 +00:00
arena.rs Remove MIR unsafe check 2024-04-03 08:50:12 +00:00
error.rs Rename DiagnosticMessage as DiagMessage. 2024-03-05 12:14:49 +11:00
lib.rs step cfgs 2024-03-20 08:49:13 -04:00
lint.rs Guard decorate on when not to skip instead 2024-03-17 15:07:22 +00:00
macros.rs Remove unnecessary braces from span_bug 2024-03-21 11:24:24 -04:00
metadata.rs rustc_metadata: Remove Span from ModChild 2023-04-18 17:25:04 +03:00
tests.rs Remove outdated references to librustc_middle. 2024-01-05 16:34:52 +00:00
thir.rs Rollup merge of #123401 - Zalathar:assert-size-aarch64, r=fmease 2024-04-03 20:17:06 -04:00
values.rs make Representability::Infinite carry ErrorGuaranteed 2024-03-14 20:52:13 +01:00