File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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
1919LL - #[no_mangle]
2020 |
2121
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]`
2323 --> $DIR/mixed_export_name_and_no_mangle.rs:11:1
2424 |
2525LL | #[unsafe(no_mangle)]
26- | ^^^^^^^^^^^^^^^^^^^^ `#[no_mangle]` is ignored
26+ | ^^^^^^^^^^^^^^^^^^^^ `#[unsafe( no_mangle) ]` is ignored
2727 |
2828note: `#[export_name]` takes precedence
2929 --> $DIR/mixed_export_name_and_no_mangle.rs:13:1
3030 |
3131LL | #[export_name = "baz"]
3232 | ^^^^^^^^^^^^^^^^^^^^^^
33- help: remove the `#[no_mangle]` attribute
33+ help: remove the `#[unsafe( no_mangle) ]` attribute
3434 |
3535LL - #[unsafe(no_mangle)]
3636 |
You can’t perform that action at this time.
0 commit comments