2023-02-28 03:01:12 +00:00
|
|
|
error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/no_mangle_with_rust_abi.rs:6:1
|
2023-02-18 16:47:27 +00:00
|
|
|
|
|
|
|
|
LL | fn rust_abi_fn_one(arg_one: u32, arg_two: usize) {}
|
2023-02-28 03:01:12 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-02-18 16:47:27 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::no-mangle-with-rust-abi` implied by `-D warnings`
|
2023-02-28 03:01:12 +00:00
|
|
|
help: set an ABI
|
|
|
|
|
|
|
|
|
LL | extern "C" fn rust_abi_fn_one(arg_one: u32, arg_two: usize) {}
|
|
|
|
| ++++++++++
|
|
|
|
help: or explicitly set the default
|
|
|
|
|
|
|
|
|
LL | extern "Rust" fn rust_abi_fn_one(arg_one: u32, arg_two: usize) {}
|
|
|
|
| +++++++++++++
|
2023-02-18 16:47:27 +00:00
|
|
|
|
2023-02-28 03:01:12 +00:00
|
|
|
error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/no_mangle_with_rust_abi.rs:11:1
|
2023-02-18 16:47:27 +00:00
|
|
|
|
|
|
|
|
LL | pub fn rust_abi_fn_two(arg_one: u32, arg_two: usize) {}
|
2023-02-28 03:01:12 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: set an ABI
|
|
|
|
|
|
|
|
|
LL | pub extern "C" fn rust_abi_fn_two(arg_one: u32, arg_two: usize) {}
|
|
|
|
| ++++++++++
|
|
|
|
help: or explicitly set the default
|
|
|
|
|
|
|
|
|
LL | pub extern "Rust" fn rust_abi_fn_two(arg_one: u32, arg_two: usize) {}
|
|
|
|
| +++++++++++++
|
2023-02-18 16:47:27 +00:00
|
|
|
|
2023-02-28 03:01:12 +00:00
|
|
|
error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/no_mangle_with_rust_abi.rs:17:1
|
2023-02-18 16:47:27 +00:00
|
|
|
|
|
|
|
|
LL | pub unsafe fn rust_abi_fn_three(arg_one: u32, arg_two: usize) {}
|
2023-02-28 03:01:12 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: set an ABI
|
|
|
|
|
|
|
|
|
LL | pub unsafe extern "C" fn rust_abi_fn_three(arg_one: u32, arg_two: usize) {}
|
|
|
|
| ++++++++++
|
|
|
|
help: or explicitly set the default
|
|
|
|
|
|
|
|
|
LL | pub unsafe extern "Rust" fn rust_abi_fn_three(arg_one: u32, arg_two: usize) {}
|
|
|
|
| +++++++++++++
|
2023-02-18 16:47:27 +00:00
|
|
|
|
2023-02-28 03:01:12 +00:00
|
|
|
error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/no_mangle_with_rust_abi.rs:23:1
|
2023-02-18 16:47:27 +00:00
|
|
|
|
|
|
|
|
LL | unsafe fn rust_abi_fn_four(arg_one: u32, arg_two: usize) {}
|
2023-02-28 03:01:12 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: set an ABI
|
|
|
|
|
|
|
|
|
LL | unsafe extern "C" fn rust_abi_fn_four(arg_one: u32, arg_two: usize) {}
|
|
|
|
| ++++++++++
|
|
|
|
help: or explicitly set the default
|
|
|
|
|
|
|
|
|
LL | unsafe extern "Rust" fn rust_abi_fn_four(arg_one: u32, arg_two: usize) {}
|
|
|
|
| +++++++++++++
|
2023-02-18 16:47:27 +00:00
|
|
|
|
2023-02-28 03:01:12 +00:00
|
|
|
error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/no_mangle_with_rust_abi.rs:27:1
|
2023-02-18 16:47:27 +00:00
|
|
|
|
|
|
|
|
LL | / fn rust_abi_multiline_function_really_long_name_to_overflow_args_to_multiple_lines(
|
2023-07-28 19:35:48 +00:00
|
|
|
LL | |
|
2023-02-18 16:47:27 +00:00
|
|
|
LL | | arg_one: u32,
|
|
|
|
LL | | arg_two: usize,
|
|
|
|
LL | | ) -> u32 {
|
|
|
|
| |________^
|
|
|
|
|
|
2023-02-28 03:01:12 +00:00
|
|
|
help: set an ABI
|
2023-02-18 16:47:27 +00:00
|
|
|
|
|
2023-02-28 03:01:12 +00:00
|
|
|
LL | extern "C" fn rust_abi_multiline_function_really_long_name_to_overflow_args_to_multiple_lines(
|
|
|
|
| ++++++++++
|
|
|
|
help: or explicitly set the default
|
2023-02-18 16:47:27 +00:00
|
|
|
|
|
2023-02-28 03:01:12 +00:00
|
|
|
LL | extern "Rust" fn rust_abi_multiline_function_really_long_name_to_overflow_args_to_multiple_lines(
|
|
|
|
| +++++++++++++
|
2023-02-18 16:47:27 +00:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|