Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1f849df

Browse files
committedOct 13, 2024
fix: test error output and formatting
1 parent b0705a5 commit 1f849df

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
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
33
|
44
LL | #[export_name = "foo"]
55
| ^^^^^^^^^^^^^^^^^^^^^^ `export_name` takes precedence
66
|
7-
= note: when `export_name` is used `no_mangle` is ignored
87
note: the `no_mangle` attribute is ignored
9-
--> $DIR/E47446.rs:1:1
8+
--> $DIR/mixed_export_name_and_no_mangle.rs:4:1
109
|
1110
LL | #[no_mangle]
1211
| ^^^^^^^^^^^^
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+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1417
help: remove the `no_mangle` attribute
1518
|
1619
LL - #[no_mangle]
1720
|
21+
22+
error: aborting due to 1 previous error
23+

0 commit comments

Comments
 (0)
Failed to load comments.