Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Ignore duplicate replacements #131

Merged
merged 1 commit into from
Jul 16, 2018

Conversation

alexcrichton
Copy link
Member

Currently the compiler suffers from bugs like rust-lang/rust#51211 where it will
emit duplicate suggestions for code that originates in a macro. This commit
allows rustfix to accept and process these suggestions by ignoring exact
duplicates of replacements. While not a great solution long term it should
hopefully be a non-harmful band-aid until rustc is fixed!

Copy link
Member

@killercup killercup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! I think this should suffice to catch the duped suggestions we get right now!

Currently the compiler suffers from bugs like rust-lang/rust#51211 where it will
emit duplicate suggestions for code that originates in a macro. This commit
allows rustfix to accept and process these suggestions by ignoring exact
duplicates of replacements. While not a great solution long term it should
hopefully be a non-harmful band-aid until rustc is fixed!
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants