-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
"X... range patterns are not supported" occurring in today's nightly #63115
Copy link
Copy link
Closed
Labels
A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTC-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-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.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Metadata
Metadata
Assignees
Labels
A-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an ASTC-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-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.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The CI for
libssh2-sysstarted to fail today with this error:It appears as though the compiler doesn't see
1 ... $eand only sees1...as the range expression and then generates this error.The expression is inside a
macro_rules!expansion.You can reproduce this by cloning the
extprimrepo and building it:The build succeeds on the stable channel and much older releases, so this appears to be a regression in the nightly.
Here's the version on my windows system, but note that this also fails on linux and macos too: