@@ -22,8 +22,20 @@ error: macro definition ended unexpectedly
22
22
LL | macro_rules! attr_incomplete_4 { attr() {} => }
23
23
| ^ expected right-hand side of macro rule
24
24
25
+ error: macro definition ended unexpectedly
26
+ --> $DIR/macro-attr-bad.rs:16:40
27
+ |
28
+ LL | macro_rules! attr_incomplete_5 { unsafe }
29
+ | ^ expected `attr`
30
+
31
+ error: macro definition ended unexpectedly
32
+ --> $DIR/macro-attr-bad.rs:19:45
33
+ |
34
+ LL | macro_rules! attr_incomplete_6 { unsafe attr }
35
+ | ^ expected macro attr args
36
+
25
37
error: `attr` rule argument matchers require parentheses
26
- --> $DIR/macro-attr-bad.rs:16 :36
38
+ --> $DIR/macro-attr-bad.rs:22 :36
27
39
|
28
40
LL | macro_rules! attr_noparens_1 { attr{} {} => {} }
29
41
| ^^
@@ -35,7 +47,7 @@ LL + macro_rules! attr_noparens_1 { attr() {} => {} }
35
47
|
36
48
37
49
error: `attr` rule argument matchers require parentheses
38
- --> $DIR/macro-attr-bad.rs:19 :36
50
+ --> $DIR/macro-attr-bad.rs:25 :36
39
51
|
40
52
LL | macro_rules! attr_noparens_2 { attr[] {} => {} }
41
53
| ^^
@@ -47,34 +59,34 @@ LL + macro_rules! attr_noparens_2 { attr() {} => {} }
47
59
|
48
60
49
61
error: invalid macro matcher; matchers must be contained in balanced delimiters
50
- --> $DIR/macro-attr-bad.rs:22 :37
62
+ --> $DIR/macro-attr-bad.rs:28 :37
51
63
|
52
64
LL | macro_rules! attr_noparens_3 { attr _ {} => {} }
53
65
| ^
54
66
55
67
error: duplicate matcher binding
56
- --> $DIR/macro-attr-bad.rs:25 :52
68
+ --> $DIR/macro-attr-bad.rs:31 :52
57
69
|
58
70
LL | macro_rules! attr_dup_matcher_1 { attr() {$x:ident $x:ident} => {} }
59
71
| -------- ^^^^^^^^ duplicate binding
60
72
| |
61
73
| previous binding
62
74
63
75
error: duplicate matcher binding
64
- --> $DIR/macro-attr-bad.rs:28 :49
76
+ --> $DIR/macro-attr-bad.rs:34 :49
65
77
|
66
78
LL | macro_rules! attr_dup_matcher_2 { attr($x:ident $x:ident) {} => {} }
67
79
| -------- ^^^^^^^^ duplicate binding
68
80
| |
69
81
| previous binding
70
82
71
83
error: duplicate matcher binding
72
- --> $DIR/macro-attr-bad.rs:31 :51
84
+ --> $DIR/macro-attr-bad.rs:37 :51
73
85
|
74
86
LL | macro_rules! attr_dup_matcher_3 { attr($x:ident) {$x:ident} => {} }
75
87
| -------- ^^^^^^^^ duplicate binding
76
88
| |
77
89
| previous binding
78
90
79
- error: aborting due to 10 previous errors
91
+ error: aborting due to 12 previous errors
80
92
0 commit comments