2024 reserved ## breaks some proc-macros #133887
Labels
A-edition-2024
Area: The 2024 edition
A-proc-macros
Area: Procedural macros
C-bug
Category: This is a bug.
D-edition
Diagnostics: An error or lint that should account for edition differences.
F-unprefixed_guarded_strings
`#![feature(unprefixed_guarded_strings)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
The prohibition of
##
in Rust 2024 breaks some proc-macros. For example, thepeg
makes use of##
for calling methods:Here this will suggest to add a space to supposedly maintain compatibility with Rust 2024:
However, this breaks
peg
because the peg macro uses Jointness to detect the##IDENT()
syntax. When the##
tokens are separated, they change to haveAlone
spacing.I don't know what we can do here, other than remove the
##
reservation in 2024, but that has other implications.Meta
Tracking:
The text was updated successfully, but these errors were encountered: