]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/no_mangle_with_rust_abi.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / no_mangle_with_rust_abi.stderr
1 error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
2 --> $DIR/no_mangle_with_rust_abi.rs:5:1
3 |
4 LL | fn rust_abi_fn_one(arg_one: u32, arg_two: usize) {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `-D clippy::no-mangle-with-rust-abi` implied by `-D warnings`
8 help: set an ABI
9 |
10 LL | extern "C" fn rust_abi_fn_one(arg_one: u32, arg_two: usize) {}
11 | ++++++++++
12 help: or explicitly set the default
13 |
14 LL | extern "Rust" fn rust_abi_fn_one(arg_one: u32, arg_two: usize) {}
15 | +++++++++++++
16
17 error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
18 --> $DIR/no_mangle_with_rust_abi.rs:8:1
19 |
20 LL | pub fn rust_abi_fn_two(arg_one: u32, arg_two: usize) {}
21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 |
23 help: set an ABI
24 |
25 LL | pub extern "C" fn rust_abi_fn_two(arg_one: u32, arg_two: usize) {}
26 | ++++++++++
27 help: or explicitly set the default
28 |
29 LL | pub extern "Rust" fn rust_abi_fn_two(arg_one: u32, arg_two: usize) {}
30 | +++++++++++++
31
32 error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
33 --> $DIR/no_mangle_with_rust_abi.rs:13:1
34 |
35 LL | pub unsafe fn rust_abi_fn_three(arg_one: u32, arg_two: usize) {}
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 |
38 help: set an ABI
39 |
40 LL | pub unsafe extern "C" fn rust_abi_fn_three(arg_one: u32, arg_two: usize) {}
41 | ++++++++++
42 help: or explicitly set the default
43 |
44 LL | pub unsafe extern "Rust" fn rust_abi_fn_three(arg_one: u32, arg_two: usize) {}
45 | +++++++++++++
46
47 error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
48 --> $DIR/no_mangle_with_rust_abi.rs:18:1
49 |
50 LL | unsafe fn rust_abi_fn_four(arg_one: u32, arg_two: usize) {}
51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 |
53 help: set an ABI
54 |
55 LL | unsafe extern "C" fn rust_abi_fn_four(arg_one: u32, arg_two: usize) {}
56 | ++++++++++
57 help: or explicitly set the default
58 |
59 LL | unsafe extern "Rust" fn rust_abi_fn_four(arg_one: u32, arg_two: usize) {}
60 | +++++++++++++
61
62 error: `#[no_mangle]` set on a function with the default (`Rust`) ABI
63 --> $DIR/no_mangle_with_rust_abi.rs:21:1
64 |
65 LL | / fn rust_abi_multiline_function_really_long_name_to_overflow_args_to_multiple_lines(
66 LL | | arg_one: u32,
67 LL | | arg_two: usize,
68 LL | | ) -> u32 {
69 | |________^
70 |
71 help: set an ABI
72 |
73 LL | extern "C" fn rust_abi_multiline_function_really_long_name_to_overflow_args_to_multiple_lines(
74 | ++++++++++
75 help: or explicitly set the default
76 |
77 LL | extern "Rust" fn rust_abi_multiline_function_really_long_name_to_overflow_args_to_multiple_lines(
78 | +++++++++++++
79
80 error: aborting due to 5 previous errors
81