1 error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
2 --> $DIR/no_mangle_with_rust_abi.rs:5:1
4 LL | fn rust_abi_fn_one(arg_one: u32, arg_two: usize) {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::no-mangle-with-rust-abi` implied by `-D warnings`
10 LL | extern "C" fn rust_abi_fn_one(arg_one: u32, arg_two: usize) {}
12 help: or explicitly set the default
14 LL | extern "Rust" fn rust_abi_fn_one(arg_one: u32, arg_two: usize) {}
17 error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
18 --> $DIR/no_mangle_with_rust_abi.rs:8:1
20 LL | pub fn rust_abi_fn_two(arg_one: u32, arg_two: usize) {}
21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 LL | pub extern "C" fn rust_abi_fn_two(arg_one: u32, arg_two: usize) {}
27 help: or explicitly set the default
29 LL | pub extern "Rust" fn rust_abi_fn_two(arg_one: u32, arg_two: usize) {}
32 error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
33 --> $DIR/no_mangle_with_rust_abi.rs:13:1
35 LL | pub unsafe fn rust_abi_fn_three(arg_one: u32, arg_two: usize) {}
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 LL | pub unsafe extern "C" fn rust_abi_fn_three(arg_one: u32, arg_two: usize) {}
42 help: or explicitly set the default
44 LL | pub unsafe extern "Rust" fn rust_abi_fn_three(arg_one: u32, arg_two: usize) {}
47 error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
48 --> $DIR/no_mangle_with_rust_abi.rs:18:1
50 LL | unsafe fn rust_abi_fn_four(arg_one: u32, arg_two: usize) {}
51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55 LL | unsafe extern "C" fn rust_abi_fn_four(arg_one: u32, arg_two: usize) {}
57 help: or explicitly set the default
59 LL | unsafe extern "Rust" fn rust_abi_fn_four(arg_one: u32, arg_two: usize) {}
62 error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
63 --> $DIR/no_mangle_with_rust_abi.rs:21:1
65 LL | / fn rust_abi_multiline_function_really_long_name_to_overflow_args_to_multiple_lines(
67 LL | | arg_two: usize,
73 LL | extern "C" fn rust_abi_multiline_function_really_long_name_to_overflow_args_to_multiple_lines(
75 help: or explicitly set the default
77 LL | extern "Rust" fn rust_abi_multiline_function_really_long_name_to_overflow_args_to_multiple_lines(
80 error: aborting due to 5 previous errors