File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,18 @@ help: remove the `#[no_mangle]` attribute
19
19
LL - #[no_mangle]
20
20
|
21
21
22
- warning: the `#[no_mangle]` attribute may not be used in combination with `#[export_name]`
22
+ warning: the `#[unsafe( no_mangle) ]` attribute may not be used in combination with `#[export_name]`
23
23
--> $DIR/mixed_export_name_and_no_mangle.rs:11:1
24
24
|
25
25
LL | #[unsafe(no_mangle)]
26
- | ^^^^^^^^^^^^^^^^^^^^ `#[no_mangle]` is ignored
26
+ | ^^^^^^^^^^^^^^^^^^^^ `#[unsafe( no_mangle) ]` is ignored
27
27
|
28
28
note: `#[export_name]` takes precedence
29
29
--> $DIR/mixed_export_name_and_no_mangle.rs:13:1
30
30
|
31
31
LL | #[export_name = "baz"]
32
32
| ^^^^^^^^^^^^^^^^^^^^^^
33
- help: remove the `#[no_mangle]` attribute
33
+ help: remove the `#[unsafe( no_mangle) ]` attribute
34
34
|
35
35
LL - #[unsafe(no_mangle)]
36
36
|
You can’t perform that action at this time.
0 commit comments