Skip to content

[Diagnostics] [Typechecker] Emit fix-its for witness mismatches #26990

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

Merged
merged 9 commits into from
Sep 4, 2019
Merged

[Diagnostics] [Typechecker] Emit fix-its for witness mismatches #26990

merged 9 commits into from
Sep 4, 2019

Conversation

theblixguy
Copy link
Collaborator

@theblixguy theblixguy commented Sep 2, 2019

Saw a couple of FIXMEs, so I decided to address them and then also add fix-its for the rest of the cases.

This PR adds fix-its for when the witness does not match the requirements.

  1. I didn't add a fix-it for the @nonobjc case because the attribute's location does not look correct when I pass it to fixItReplace (i.e. the replaced range does not look correct).
  2. I couldn't reproduce two diagnostics - one for nonmutating and one for __consuming.

@jrose-apple
Copy link
Contributor

Forgot to say: thanks for picking these up!

@theblixguy
Copy link
Collaborator Author

@swift-ci please smoke test

@theblixguy
Copy link
Collaborator Author

@swift-ci please smoke test

@theblixguy
Copy link
Collaborator Author

@swift-ci please smoke test

@theblixguy theblixguy merged commit 6d90558 into swiftlang:master Sep 4, 2019
@theblixguy theblixguy deleted the chore/fix-it-witness branch September 4, 2019 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants