The check_abi
function in typeck is not called for ABIs in trait declarations or type aliases
#86232
Labels
A-ABI
Area: Concerning the application binary interface (ABI)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider the following code:
The
check_abi
function…rust/compiler/rustc_typeck/src/check/check.rs
Lines 37 to 59 in 0a8629b
… is not called for the following two ABI lines, meaning that the checks present therein do not activate, potentially allowing circumvention of the checks this function implements. In particular one thing that is allowed is taking the
TAU
function pointer as an argument and calling it on architectures where this ABI is unsupported.This becomes especially relevant after #86231 lands.
The text was updated successfully, but these errors were encountered: