Skip to content

Commit

Permalink
fix: adjust the expected error message after #132180 was fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sassman committed Oct 29, 2024
1 parent 518d257 commit 85ae010
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ui/attributes/mixed_export_name_and_no_mangle.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ help: remove the `#[no_mangle]` attribute
LL - #[no_mangle]
|

warning: the `#[no_mangle]` attribute may not be used in combination with `#[export_name]`
warning: the `#[unsafe(no_mangle)]` attribute may not be used in combination with `#[export_name]`
--> $DIR/mixed_export_name_and_no_mangle.rs:11:1
|
LL | #[unsafe(no_mangle)]
| ^^^^^^^^^^^^^^^^^^^^ `#[no_mangle]` is ignored
| ^^^^^^^^^^^^^^^^^^^^ `#[unsafe(no_mangle)]` is ignored
|
note: `#[export_name]` takes precedence
--> $DIR/mixed_export_name_and_no_mangle.rs:13:1
|
LL | #[export_name = "baz"]
| ^^^^^^^^^^^^^^^^^^^^^^
help: remove the `#[no_mangle]` attribute
help: remove the `#[unsafe(no_mangle)]` attribute
|
LL - #[unsafe(no_mangle)]
|
Expand Down

0 comments on commit 85ae010

Please sign in to comment.