Skip to content
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

Don't use DesugaringKind to track desugared operators #73571

Closed

Conversation

Aaron1011
Copy link
Member

See #73468 (comment)

This removes the immediate need for PR #73468, since Clippy will no
longer be confused by the precense of a new ExpnId 'on top of' a
macro expansion ExpnId.

This makes some of the 'self move diagnostics' added by PR #72389
slightly worse. I've left the operator-related diagnostics code in
place, so it should be easy for a followup PR to plug in a new way of
detecting desugared operators.

@rust-highfive
Copy link
Collaborator

r? @varkor

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 21, 2020
See rust-lang#73468 (comment)

This removes the immediate need for PR rust-lang#73468, since Clippy will no
longer be confused by the precense of a new `ExpnId` 'on top of' a
macro expansion `ExpnId`.

This makes some of the 'self move diagnostics' added by PR rust-lang#72389
slightly worse. I've left the operator-related diagnostics code in
place, so it should be easy for a followup PR to plug in a new way of
detecting desugared operators.
@Aaron1011 Aaron1011 force-pushed the remove-operator-desugar-span branch from c7d9205 to 571beb4 Compare June 21, 2020 02:17
@petrochenkov petrochenkov self-assigned this Jun 21, 2020
@petrochenkov
Copy link
Contributor

petrochenkov commented Jun 21, 2020

Meta: it is hard to see what ends up in master if the changes are submitted like this.

I see that not all changes in hygiene.rs and AST lowering are reverted, so now I need to go through two PRs simultaneously and compare the diffs. This is not a work that I'd want to do on this great Sunday.

Could you just submit a revert of #72389 (+ a commit re-enabling clippy tests, I'll r+ it immediately then), and then re-land it as a separate PR some time later.

@petrochenkov petrochenkov added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 21, 2020
@petrochenkov
Copy link
Contributor

Closing in favor of #73594.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants