File: mixed_export_name_and_no_mangle.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (39 lines) | stat: -rw-r--r-- 1,097 bytes parent folder | download | duplicates (3)
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
warning: `#[no_mangle]` attribute may not be used in combination with `#[export_name]`
  --> $DIR/mixed_export_name_and_no_mangle.rs:6:1
   |
LL | #[no_mangle]
   | ^^^^^^^^^^^^ `#[no_mangle]` is ignored
   |
note: `#[export_name]` takes precedence
  --> $DIR/mixed_export_name_and_no_mangle.rs:8:1
   |
LL | #[export_name = "foo"]
   | ^^^^^^^^^^^^^^^^^^^^^^
note: the lint level is defined here
  --> $DIR/mixed_export_name_and_no_mangle.rs:5:9
   |
LL | #![warn(unused_attributes)]
   |         ^^^^^^^^^^^^^^^^^
help: remove the `#[no_mangle]` attribute
   |
LL - #[no_mangle]
   |

warning: `#[unsafe(no_mangle)]` attribute may not be used in combination with `#[export_name]`
  --> $DIR/mixed_export_name_and_no_mangle.rs:11:1
   |
LL | #[unsafe(no_mangle)]
   | ^^^^^^^^^^^^^^^^^^^^ `#[unsafe(no_mangle)]` is ignored
   |
note: `#[export_name]` takes precedence
  --> $DIR/mixed_export_name_and_no_mangle.rs:13:1
   |
LL | #[export_name = "baz"]
   | ^^^^^^^^^^^^^^^^^^^^^^
help: remove the `#[unsafe(no_mangle)]` attribute
   |
LL - #[unsafe(no_mangle)]
   |

warning: 2 warnings emitted