Skip to content

Commit 85ae010

Browse files
committed
fix: adjust the expected error message after rust-lang#132180 was fixed
1 parent 518d257 commit 85ae010

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ui/attributes/mixed_export_name_and_no_mangle.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ help: remove the `#[no_mangle]` attribute
1919
LL - #[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
|
2525
LL | #[unsafe(no_mangle)]
26-
| ^^^^^^^^^^^^^^^^^^^^ `#[no_mangle]` is ignored
26+
| ^^^^^^^^^^^^^^^^^^^^ `#[unsafe(no_mangle)]` is ignored
2727
|
2828
note: `#[export_name]` takes precedence
2929
--> $DIR/mixed_export_name_and_no_mangle.rs:13:1
3030
|
3131
LL | #[export_name = "baz"]
3232
| ^^^^^^^^^^^^^^^^^^^^^^
33-
help: remove the `#[no_mangle]` attribute
33+
help: remove the `#[unsafe(no_mangle)]` attribute
3434
|
3535
LL - #[unsafe(no_mangle)]
3636
|

0 commit comments

Comments
 (0)