Skip to content

Commit bdbe7a7

Browse files
committed
Remove macros with optional ident
This is now unsupported and treated as a hard syntax error. cc rust-lang/rust#62258.
1 parent fcc1d87 commit bdbe7a7

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

tests/source/macros.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ itemmacro!(really, long.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
66

77
itemmacro!{this, is.brace().formatted()}
88

9-
peg_file! modname ("mygrammarfile.rustpeg");
10-
119
fn main() {
1210
foo! ( );
1311

@@ -474,7 +472,6 @@ pub fn fold_abi<V: Fold + ?Sized>(_visitor: &mut V, _i: Abi) -> Abi {
474472

475473
// #3463
476474
x ! {()}
477-
x ! y {()}
478475

479476
// #3583
480477
foo!(|x = y|);

tests/target/issue-3439.rs

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/target/macros.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ itemmacro!(
1111

1212
itemmacro! {this, is.brace().formatted()}
1313

14-
peg_file! modname("mygrammarfile.rustpeg");
15-
1614
fn main() {
1715
foo!();
1816

@@ -1051,7 +1049,6 @@ pub fn fold_abi<V: Fold + ?Sized>(_visitor: &mut V, _i: Abi) -> Abi {
10511049

10521050
// #3463
10531051
x! {()}
1054-
x! y {()}
10551052

10561053
// #3583
10571054
foo!(|x = y|);

0 commit comments

Comments
 (0)