bless test

This commit is contained in:
tiif 2025-03-12 16:59:25 +00:00
parent 71c4b2492d
commit 650c8a2fb5
8 changed files with 15 additions and 15 deletions

View file

@ -9,7 +9,7 @@ fn main() {
// Make sure we check the ABI when Miri itself invokes a function
// as part of a shim implementation.
std::intrinsics::catch_unwind(
//~^ ERROR: calling a function with calling convention C using calling convention Rust
//~^ ERROR: calling a function with calling convention "C" using calling convention "Rust"
std::mem::transmute::<extern "C" fn(*mut u8), _>(try_fn),
std::ptr::null_mut(),
|_, _| unreachable!(),

View file

@ -1,4 +1,4 @@
error: Undefined Behavior: calling a function with calling convention C using calling convention Rust
error: Undefined Behavior: calling a function with calling convention "C" using calling convention "Rust"
--> tests/fail/function_calls/check_callback_abi.rs:LL:CC
|
LL | / std::intrinsics::catch_unwind(
@ -7,7 +7,7 @@ LL | | std::mem::transmute::<extern "C" fn(*mut u8), _>(try_fn),
LL | | std::ptr::null_mut(),
LL | | |_, _| unreachable!(),
LL | | );
| |_________^ calling a function with calling convention C using calling convention Rust
| |_________^ calling a function with calling convention "C" using calling convention "Rust"
|
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information

View file

@ -1,8 +1,8 @@
error: Undefined Behavior: calling a function with calling convention Rust using calling convention C
error: Undefined Behavior: calling a function with calling convention "Rust" using calling convention "C"
--> tests/fail/function_calls/exported_symbol_abi_mismatch.rs:LL:CC
|
LL | foo();
| ^^^^^ calling a function with calling convention Rust using calling convention C
| ^^^^^ calling a function with calling convention "Rust" using calling convention "C"
|
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information

View file

@ -1,8 +1,8 @@
error: Undefined Behavior: calling a function with calling convention Rust using calling convention C
error: Undefined Behavior: calling a function with calling convention "Rust" using calling convention "C"
--> tests/fail/function_calls/exported_symbol_abi_mismatch.rs:LL:CC
|
LL | std::mem::transmute::<unsafe fn(), unsafe extern "C" fn()>(foo)();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ calling a function with calling convention Rust using calling convention C
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ calling a function with calling convention "Rust" using calling convention "C"
|
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information

View file

@ -1,8 +1,8 @@
error: Undefined Behavior: calling a function with calling convention Rust using calling convention C
error: Undefined Behavior: calling a function with calling convention "Rust" using calling convention "C"
--> tests/fail/function_calls/exported_symbol_abi_mismatch.rs:LL:CC
|
LL | foo();
| ^^^^^ calling a function with calling convention Rust using calling convention C
| ^^^^^ calling a function with calling convention "Rust" using calling convention "C"
|
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information

View file

@ -12,7 +12,7 @@ fn main() {
#[cfg(fn_ptr)]
unsafe {
std::mem::transmute::<unsafe fn(), unsafe extern "C" fn()>(foo)();
//~[fn_ptr]^ ERROR: calling a function with calling convention Rust using calling convention C
//~[fn_ptr]^ ERROR: calling a function with calling convention "Rust" using calling convention "C"
}
// `Instance` caching should not suppress ABI check.
@ -28,8 +28,8 @@ fn main() {
}
unsafe {
foo();
//~[no_cache]^ ERROR: calling a function with calling convention Rust using calling convention C
//~[cache]| ERROR: calling a function with calling convention Rust using calling convention C
//~[no_cache]^ ERROR: calling a function with calling convention "Rust" using calling convention "C"
//~[cache]| ERROR: calling a function with calling convention "Rust" using calling convention "C"
}
}
}

View file

@ -1,4 +1,4 @@
//@error-in-other-file: Undefined Behavior: calling a function with calling convention C using calling convention Rust
//@error-in-other-file: Undefined Behavior: calling a function with calling convention "C" using calling convention "Rust"
#![feature(explicit_tail_calls)]
#![allow(incomplete_features)]

View file

@ -1,8 +1,8 @@
error: Undefined Behavior: calling a function with calling convention C using calling convention Rust
error: Undefined Behavior: calling a function with calling convention "C" using calling convention "Rust"
--> RUSTLIB/core/src/ops/function.rs:LL:CC
|
LL | extern "rust-call" fn call_once(self, args: Args) -> Self::Output;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ calling a function with calling convention C using calling convention Rust
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ calling a function with calling convention "C" using calling convention "Rust"
|
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information