-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expansion info is reset for the mark #52363
Comments
visiting for triage. @petrochenkov do you have any status update to report here? |
No updates, low priority. |
In the worst case, the issue can be masked by turning the assert into debug assert. |
downgrading to P-medium to reflect lower-priority status. |
So do we want to remove the assertion and file a follow-up issue to resurrect it? Seems like we should "close the issue" by doing that? |
(In particular, it seems a bit odd to have a |
Bumping up to P-high to "stop the bleeding" |
For easy reference: we are referring to the following assertion: rust/src/libsyntax_pos/hygiene.rs Lines 107 to 116 in 20ce910
|
Assert is removed in #53653 |
I'll keep this issue open for future investigation. |
Fixed in #62476 |
…rkers Create a fresh expansion for them instead - this is the usual way to allow unstable features for generated/desugared code. Fixes rust-lang#52363
Continue refactoring macro expansion and resolution This PR continues the work started in rust-lang#62042. It contains a set of more or less related refactorings with the general goal of making things simpler and more orthogonal. Along the way most of the issues uncovered in rust-lang#62086 are fixed. The PR is better read in per-commit fashion with whitespace changes ignored. I tried to leave some more detailed commit messages describing the motivation behind the individual changes. Fixes rust-lang#44692 Fixes rust-lang#52363 Unblocks rust-lang#62086 r? @matthewjasper
Correct behavior on all compilers 1.15.0 through 1.28.0-beta.10:
But on nightly:
(UPDATE: The ICE is now suppressed, but the issue still needs investigation.)
Repro script
Mentioning @petrochenkov because this bug was exposed by #51726.
The text was updated successfully, but these errors were encountered: