-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
[breaking batch] remove the sign from integer literals in the ast #30508
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @eddyb (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
}); | ||
P(ast::Expr { | ||
id: ast::DUMMY_NODE_ID, | ||
node: ast::ExprUnary(ast::UnNeg, lit), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't lit
be returned early if the value is positive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed. fixed it
5dfafe2
to
4c6a8ba
Compare
LGTM. r? @Manishearth for confirmal of acceptable breakage. |
This will likely cause aster breakage. I'm mostly okay with the clippy breakage this may cause (there's not much using this) |
What's the motivation for this work? Seems like a good change to make to the HIR, not sure if it is a good change for the AST - does this conflate different source situations? ( At the least, this should be batched with other changes. |
@nrc Rust doesn't have |
The only way to get a |
@eddyb as in, the |
In which case, this sounds like a good change, but I'd still like to see it batched with other changes since it is non-urgent. |
Should we add some kind of github label for these PRs so it's easy to find them when we need to batch up? plugins-breaking or something |
45cd3c4
to
2bb0d02
Compare
☔ The latest upstream changes (presumably #30826) made this pull request unmergeable. Please resolve the merge conflicts. |
I vote for "breaking-batch" (Apologies to Walter White) |
This has been rebased, is it ready to go? |
@oli-obk want to uplift this to the mega-breaking-batch PR? Since that will probably bitrot this when it lands. |
already done |
r? @eddyb