-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Odd macro expansion errors with nested macros #95605
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
I apologize that I can't get a full MCVE going at the moment.
The macro is defined in
calypso_diagnostic/src/types.rsand used incalypso_parsing/src/lexer.rs. I originally thought this was related to #52234 after testing in the playground, but I'm not sure anymore as I've tried some workarounds that worked in the playground that did not work here, and did not change anything about the odd behaviour of rustc here.I expected to see this happen: The program builds
Instead, this happened:
Version it worked on
It most recently worked on: 1.59.0
Version with regression
rustc --version --verbose:@rustbot modify labels: +regression-from-stable-to-nightly +E-needs-mcve +E-needs-bisection