Open celinval opened 1 month ago
In order to do this, I believe we will need to apply the same logic as stubbing external functions where we replace the method calls instead of replacing the function body.
(this is probably obvious from context, but the test case in the description needs to be wrapped in extern "rust-intrinsic" { ... }
)
Requested feature: Allow users to annotate external "C" functions and intrinsics with contracts. Use case: Adding safety contracts to std intrinsics and extern "C" functions. Link to relevant documentation (Rust reference, Nomicon, RFC):
Test case:
Fails with the following compilation error: