reference icon indicating copy to clipboard operation
reference copied to clipboard

2024: Add `macro_rules` `expr` and `expr_2021`

Open ehuss opened this issue 1 year ago • 4 comments

Draft pending stabilization of 2024.

Tracing issue: https://github.com/rust-lang/rust/issues/123742

ehuss avatar Aug 19 '24 16:08 ehuss

Does macro-ambiguity.md need updating for this sort of change?

Eg should this line:

  * FOLLOW(expr) = FOLLOW(stmt) =  {`=>`, `,`, `;`}`.

now list FOLLOW(expr_2021) too?

mattheww avatar Aug 20 '24 17:08 mattheww

@mattheww Are you suggesting it should be this?

-  * FOLLOW(expr) = FOLLOW(stmt) =  {`=>`, `,`, `;`}`.
+  * FOLLOW(expr) = FOLLOW(expr_2021) = FOLLOW(stmt) =  {`=>`, `,`, `;`}`.

ehuss avatar Aug 20 '24 18:08 ehuss

Yes, I think that's how it works.

mattheww avatar Aug 20 '24 18:08 mattheww

Thanks! Yea, that makes sense to me.

ehuss avatar Aug 20 '24 18:08 ehuss

Merging now that https://github.com/rust-lang/rust/pull/129972 has stabilized.

ehuss avatar Oct 02 '24 20:10 ehuss