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
3
3
|
4
4
LL | #[export_name = "foo"]
5
5
| ^^^^^^^^^^^^^^^^^^^^^^ `export_name` takes precedence
6
6
|
7
- = note: when `export_name` is used `no_mangle` is ignored
8
7
note: the `no_mangle` attribute is ignored
9
- --> $DIR/E47446 .rs:1 :1
8
+ --> $DIR/mixed_export_name_and_no_mangle .rs:4 :1
10
9
|
11
10
LL | #[no_mangle]
12
11
| ^^^^^^^^^^^^
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
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
17
help: remove the `no_mangle` attribute
15
18
|
16
19
LL - #[no_mangle]
17
20
|
21
+
22
+ error: aborting due to 1 previous error
23
+
0 commit comments