File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 1- warning : the attribute `export_name` may not be used in combination with `no_mangle`
2- --> $DIR/E47446 .rs:2 :1
1+ error : the attribute `export_name` may not be used in combination with `no_mangle`
2+ --> $DIR/mixed_export_name_and_no_mangle .rs:5 :1
33 |
44LL | #[export_name = "foo"]
55 | ^^^^^^^^^^^^^^^^^^^^^^ `export_name` takes precedence
66 |
7- = note: when `export_name` is used `no_mangle` is ignored
87note: the `no_mangle` attribute is ignored
9- --> $DIR/E47446 .rs:1 :1
8+ --> $DIR/mixed_export_name_and_no_mangle .rs:4 :1
109 |
1110LL | #[no_mangle]
1211 | ^^^^^^^^^^^^
13- = note: `#[warn(mixed_export_name_and_no_mangle)]` on by default
12+ note: the lint level is defined here
13+ --> $DIR/mixed_export_name_and_no_mangle.rs:1:9
14+ |
15+ LL | #![deny(mixed_export_name_and_no_mangle)]
16+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1417help: remove the `no_mangle` attribute
1518 |
1619LL - #[no_mangle]
1720 |
21+
22+ error: aborting due to 1 previous error
23+
You can’t perform that action at this time.
0 commit comments