summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/no_mangle_with_rust_abi.stderr
blob: 71517d318095e797fd28eb5385ab6bb120990552 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
error: attribute #[no_mangle] set on a Rust ABI function
  --> $DIR/no_mangle_with_rust_abi.rs:7:1
   |
LL | fn rust_abi_fn_one(arg_one: u32, arg_two: usize) {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `extern "C" fn rust_abi_fn_one(arg_one: u32, arg_two: usize)`
   |
   = note: `-D clippy::no-mangle-with-rust-abi` implied by `-D warnings`

error: attribute #[no_mangle] set on a Rust ABI function
  --> $DIR/no_mangle_with_rust_abi.rs:10:1
   |
LL | pub fn rust_abi_fn_two(arg_one: u32, arg_two: usize) {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `pub extern "C" fn rust_abi_fn_two(arg_one: u32, arg_two: usize)`

error: attribute #[no_mangle] set on a Rust ABI function
  --> $DIR/no_mangle_with_rust_abi.rs:15:1
   |
LL | pub unsafe fn rust_abi_fn_three(arg_one: u32, arg_two: usize) {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `pub unsafe extern "C" fn rust_abi_fn_three(arg_one: u32, arg_two: usize)`

error: attribute #[no_mangle] set on a Rust ABI function
  --> $DIR/no_mangle_with_rust_abi.rs:20:1
   |
LL | unsafe fn rust_abi_fn_four(arg_one: u32, arg_two: usize) {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unsafe extern "C" fn rust_abi_fn_four(arg_one: u32, arg_two: usize)`

error: attribute #[no_mangle] set on a Rust ABI function
  --> $DIR/no_mangle_with_rust_abi.rs:23:1
   |
LL | / fn rust_abi_multiline_function_really_long_name_to_overflow_args_to_multiple_lines(
LL | |     arg_one: u32,
LL | |     arg_two: usize,
LL | | ) -> u32 {
   | |________^
   |
help: try
   |
LL + extern "C" fn rust_abi_multiline_function_really_long_name_to_overflow_args_to_multiple_lines(
LL +     arg_one: u32,
LL +     arg_two: usize,
LL ~ ) -> u32 {
   |

error: aborting due to 5 previous errors