Skip to content

Commit 3e61eb1

Browse files
m-ou-sejdonszelmann
authored andcommitted
Update tests.
1 parent bd71bc0 commit 3e61eb1

12 files changed

+39
-39
lines changed

tests/ui/eii/auxiliary/cross_crate_eii_declaration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![feature(rustc_attrs)]
44
#![feature(eii_internals)]
55

6-
#[core::eii_macro_for(bar)]
6+
#[eii_macro_for(bar)]
77
#[rustc_builtin_macro(eii_macro)]
88
pub macro foo() {
99

tests/ui/eii/errors.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
#![feature(rustc_attrs)]
55
#![feature(eii_internals)]
66

7-
#[core::eii_macro_for(bar)] //~ ERROR `#[eii_macro_for(...)]` is only valid on macros
7+
#[eii_macro_for(bar)] //~ ERROR `#[eii_macro_for(...)]` is only valid on macros
88
fn hello() {
9-
#[core::eii_macro_for(bar)] //~ ERROR `#[eii_macro_for(...)]` is only valid on macros
9+
#[eii_macro_for(bar)] //~ ERROR `#[eii_macro_for(...)]` is only valid on macros
1010
let x = 3 + 3;
1111
}
1212

13-
#[core::eii_macro_for] //~ ERROR `#[eii_macro_for(...)]` expects a list of one or two elements
14-
#[core::eii_macro_for()] //~ ERROR `#[eii_macro_for(...)]` expects a list of one or two elements
15-
#[core::eii_macro_for(bar, hello)] //~ ERROR expected this argument to be "unsafe"
16-
#[core::eii_macro_for(bar, "unsafe", hello)] //~ ERROR `#[eii_macro_for(...)]` expects a list of one or two elements
17-
#[core::eii_macro_for(bar, hello, "unsafe")] //~ ERROR `#[eii_macro_for(...)]` expects a list of one or two elements
18-
#[core::eii_macro_for = "unsafe"] //~ ERROR `#[eii_macro_for(...)]` expects a list of one or two elements
19-
#[core::eii_macro_for(bar)]
13+
#[eii_macro_for] //~ ERROR `#[eii_macro_for(...)]` expects a list of one or two elements
14+
#[eii_macro_for()] //~ ERROR `#[eii_macro_for(...)]` expects a list of one or two elements
15+
#[eii_macro_for(bar, hello)] //~ ERROR expected this argument to be "unsafe"
16+
#[eii_macro_for(bar, "unsafe", hello)] //~ ERROR `#[eii_macro_for(...)]` expects a list of one or two elements
17+
#[eii_macro_for(bar, hello, "unsafe")] //~ ERROR `#[eii_macro_for(...)]` expects a list of one or two elements
18+
#[eii_macro_for = "unsafe"] //~ ERROR `#[eii_macro_for(...)]` expects a list of one or two elements
19+
#[eii_macro_for(bar)]
2020
#[rustc_builtin_macro(eii_macro)]
2121
macro foo() {}
2222

tests/ui/eii/errors.stderr

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
error: `#[eii_macro_for(...)]` is only valid on macros
22
--> $DIR/errors.rs:7:1
33
|
4-
LL | #[core::eii_macro_for(bar)]
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
LL | #[eii_macro_for(bar)]
5+
| ^^^^^^^^^^^^^^^^^^^^^
66

77
error: `#[eii_macro_for(...)]` is only valid on macros
88
--> $DIR/errors.rs:9:5
99
|
10-
LL | #[core::eii_macro_for(bar)]
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
10+
LL | #[eii_macro_for(bar)]
11+
| ^^^^^^^^^^^^^^^^^^^^^
1212

1313
error: `#[eii_macro_for(...)]` expects a list of one or two elements
1414
--> $DIR/errors.rs:13:1
1515
|
16-
LL | #[core::eii_macro_for]
17-
| ^^^^^^^^^^^^^^^^^^^^^^
16+
LL | #[eii_macro_for]
17+
| ^^^^^^^^^^^^^^^^
1818

1919
error: `#[eii_macro_for(...)]` expects a list of one or two elements
2020
--> $DIR/errors.rs:14:1
2121
|
22-
LL | #[core::eii_macro_for()]
23-
| ^^^^^^^^^^^^^^^^^^^^^^^^
22+
LL | #[eii_macro_for()]
23+
| ^^^^^^^^^^^^^^^^^^
2424

2525
error: expected this argument to be "unsafe".
26-
--> $DIR/errors.rs:15:28
26+
--> $DIR/errors.rs:15:22
2727
|
28-
LL | #[core::eii_macro_for(bar, hello)]
29-
| ^^^^^
28+
LL | #[eii_macro_for(bar, hello)]
29+
| ^^^^^
3030
|
3131
note: the second argument is optional
32-
--> $DIR/errors.rs:15:28
32+
--> $DIR/errors.rs:15:22
3333
|
34-
LL | #[core::eii_macro_for(bar, hello)]
35-
| ^^^^^
34+
LL | #[eii_macro_for(bar, hello)]
35+
| ^^^^^
3636

3737
error: `#[eii_macro_for(...)]` expects a list of one or two elements
3838
--> $DIR/errors.rs:16:1
3939
|
40-
LL | #[core::eii_macro_for(bar, "unsafe", hello)]
41-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40+
LL | #[eii_macro_for(bar, "unsafe", hello)]
41+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4242

4343
error: `#[eii_macro_for(...)]` expects a list of one or two elements
4444
--> $DIR/errors.rs:17:1
4545
|
46-
LL | #[core::eii_macro_for(bar, hello, "unsafe")]
47-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46+
LL | #[eii_macro_for(bar, hello, "unsafe")]
47+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4848

4949
error: `#[eii_macro_for(...)]` expects a list of one or two elements
5050
--> $DIR/errors.rs:18:1
5151
|
52-
LL | #[core::eii_macro_for = "unsafe"]
53-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52+
LL | #[eii_macro_for = "unsafe"]
53+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
5454

5555
error: `#[foo]` is only valid on functions
5656
--> $DIR/errors.rs:27:1

tests/ui/eii/subtype_1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#![feature(rustc_attrs)]
66
#![feature(eii_internals)]
77

8-
#[core::eii_macro_for(bar)]
8+
#[eii_macro_for(bar)]
99
#[rustc_builtin_macro(eii_macro)]
1010
macro foo() {
1111

tests/ui/eii/subtype_2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#![feature(rustc_attrs)]
55
#![feature(eii_internals)]
66

7-
#[core::eii_macro_for(bar)]
7+
#[eii_macro_for(bar)]
88
#[rustc_builtin_macro(eii_macro)]
99
macro foo() {
1010

tests/ui/eii/subtype_3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#![feature(rustc_attrs)]
66
#![feature(eii_internals)]
77

8-
#[core::eii_macro_for(bar)]
8+
#[eii_macro_for(bar)]
99
#[rustc_builtin_macro(eii_macro)]
1010
macro foo() {
1111

tests/ui/eii/subtype_4.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#![feature(rustc_attrs)]
66
#![feature(eii_internals)]
77

8-
#[core::eii_macro_for(bar)]
8+
#[eii_macro_for(bar)]
99
#[rustc_builtin_macro(eii_macro)]
1010
macro foo() {
1111

tests/ui/eii/unsafe_impl_err.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#![feature(rustc_attrs)]
55
#![feature(eii_internals)]
66

7-
#[core::eii_macro_for(bar, "unsafe")]
7+
#[eii_macro_for(bar, "unsafe")]
88
#[rustc_builtin_macro(eii_macro)]
99
macro foo() {
1010

tests/ui/eii/unsafe_impl_ok.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#![feature(rustc_attrs)]
66
#![feature(eii_internals)]
77

8-
#[core::eii_macro_for(bar, "unsafe")]
8+
#[eii_macro_for(bar, "unsafe")]
99
#[rustc_builtin_macro(eii_macro)]
1010
macro foo() {
1111

tests/ui/eii/wrong_ret_ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#![feature(rustc_attrs)]
55
#![feature(eii_internals)]
66

7-
#[core::eii_macro_for(bar)]
7+
#[eii_macro_for(bar)]
88
#[rustc_builtin_macro(eii_macro)]
99
macro foo() {
1010

tests/ui/eii/wrong_ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#![feature(rustc_attrs)]
55
#![feature(eii_internals)]
66

7-
#[core::eii_macro_for(bar)]
7+
#[eii_macro_for(bar)]
88
#[rustc_builtin_macro(eii_macro)]
99
macro foo() {
1010

tests/ui/eii/wrong_ty_2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#![feature(rustc_attrs)]
55
#![feature(eii_internals)]
66

7-
#[core::eii_macro_for(bar)]
7+
#[eii_macro_for(bar)]
88
#[rustc_builtin_macro(eii_macro)]
99
macro foo() {
1010

0 commit comments

Comments
 (0)