extern "x86-interrupt" fn
allows absurd signatures
#132835
Labels
A-ABI
Area: Concerning the application binary interface (ABI)
A-hardware-interrupts
Area: Code for handling the "interrupt ABI" of various processors
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
F-abi_x86_interrupt
O-x86_32
Target: x86 processors, 32 bit (like i686-*)
O-x86_64
Target: x86-64 processors (like x86_64-*)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see rustc reject this code, because this signature makes no sense for this ABI.
Instead, this happened:
Meta
rustc --version --verbose
:@rustbot label: +F-abi_x86_interrupt +A-LLVM +O-x86_64 +O-x86_32 +A-ABI +T-compiler
Related Issues
x86-interrupt
calling convention #40180Tried to make Ignore indirect
#126418"x86-interrupt" fn
should be invalid #132834The text was updated successfully, but these errors were encountered: