Negative numbers are not correctly identified as literals inside macros #70050
Labels
A-parser
Area: The parsing of Rust source code to an AST
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Negative numbers are no longer parsed as literals when used as a parameter to a macro inside a macro. This appears to be a regression from stable to nightly.
According to cargo-bisect-rustc, #69023 is responsible (thanks to @jebrosen for helping with this on the Rust discord)
Specifically, the changes to this function look suspicious.
The below fails to compile:
with the following error on nightly-2020-02-14,
The text was updated successfully, but these errors were encountered: