Skip to content

Commit d5dc797

Browse files
Update uitests
1 parent c1c204d commit d5dc797

8 files changed

+509
-312
lines changed

tests/ui/attributes/rustc_confusables.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ impl Bar {
4545
#[rustc_confusables("blah")]
4646
//~^ ERROR attribute cannot be used on
4747
//~| HELP can only be applied to
48+
//~| HELP remove the attribute
4849
fn not_inherent_impl_method() {}

tests/ui/extern/issue-47725.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
//~^ WARN attribute cannot be used on
55
//~| WARN previously accepted
66
//~| HELP can be applied to
7+
//~| HELP remove the attribute
78
struct Foo;
89

910
#[link_name = "foobar"]
1011
//~^ WARN attribute cannot be used on
1112
//~| WARN previously accepted
1213
//~| HELP can be applied to
14+
//~| HELP remove the attribute
1315
extern "C" {
1416
fn foo() -> u32;
1517
}
@@ -19,6 +21,7 @@ extern "C" {
1921
//~| HELP must be of the form
2022
//~| WARN attribute cannot be used on
2123
//~| WARN previously accepted
24+
//~| HELP remove the attribute
2225
//~| HELP can be applied to
2326
//~| NOTE for more information, visit
2427
extern "C" {

tests/ui/extern/issue-47725.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0539]: malformed `link_name` attribute input
2-
--> $DIR/issue-47725.rs:17:1
2+
--> $DIR/issue-47725.rs:19:1
33
|
44
LL | #[link_name]
55
| ^^^^^^^^^^^^ help: must be of the form: `#[link_name = "name"]`
@@ -21,7 +21,7 @@ LL | #![warn(unused_attributes)]
2121
| ^^^^^^^^^^^^^^^^^
2222

2323
warning: `#[link_name]` attribute cannot be used on foreign modules
24-
--> $DIR/issue-47725.rs:9:1
24+
--> $DIR/issue-47725.rs:10:1
2525
|
2626
LL | #[link_name = "foobar"]
2727
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -30,7 +30,7 @@ LL | #[link_name = "foobar"]
3030
= help: `#[link_name]` can be applied to foreign functions, foreign statics
3131

3232
warning: `#[link_name]` attribute cannot be used on foreign modules
33-
--> $DIR/issue-47725.rs:17:1
33+
--> $DIR/issue-47725.rs:19:1
3434
|
3535
LL | #[link_name]
3636
| ^^^^^^^^^^^^

0 commit comments

Comments
 (0)