mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-07 08:26:14 +00:00
CFI: Fix ICE in KCFI non-associated function pointers We oddly weren't testing the more usual case of casting non-methods to function pointers. The KCFI shim insertion logic would ICE on these due to asking for an irrefutable associated item if we cast a function to a function pointer without needing a traditional shim. r? `@compiler-errors`
For more information about how rustc works, see the rustc dev guide.