-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
2024 reserved ## breaks some proc-macros #133887
Copy link
Copy link
Closed as not planned
Labels
A-edition-2024Area: The 2024 editionArea: The 2024 editionA-proc-macrosArea: Procedural macrosArea: Procedural macrosC-bugCategory: This is a bug.Category: This is a bug.D-editionDiagnostics: An error or lint that should account for edition differences.Diagnostics: An error or lint that should account for edition differences.F-unprefixed_guarded_strings`#![feature(unprefixed_guarded_strings)]``#![feature(unprefixed_guarded_strings)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language team
Metadata
Metadata
Assignees
Labels
A-edition-2024Area: The 2024 editionArea: The 2024 editionA-proc-macrosArea: Procedural macrosArea: Procedural macrosC-bugCategory: This is a bug.Category: This is a bug.D-editionDiagnostics: An error or lint that should account for edition differences.Diagnostics: An error or lint that should account for edition differences.F-unprefixed_guarded_strings`#![feature(unprefixed_guarded_strings)]``#![feature(unprefixed_guarded_strings)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language team
Type
Fields
Give feedbackNo fields configured for issues without a type.
The prohibition of
##in Rust 2024 breaks some proc-macros. For example, thepegmakes use of##for calling methods:Here this will suggest to add a space to supposedly maintain compatibility with Rust 2024:
However, this breaks
pegbecause the peg macro uses Jointness to detect the##IDENT()syntax. When the##tokens are separated, they change to haveAlonespacing.I don't know what we can do here, other than remove the
##reservation in 2024, but that has other implications.Meta
Tracking: