Skip to content

[Diagnostics] Update existential type error message for clarity #60390

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

Conversation

mazevedofs
Copy link
Contributor

@mazevedofs mazevedofs commented Aug 4, 2022

Updating the redundant_any_in_existential error message by making it more explicit that the issue is the redundant any keyword.

Note: This is my first pull request as part of the Swift Mentorship.
@hborla I guess it's ready for review :)

@hborla hborla self-requested a review August 4, 2022 17:56
@mazevedofs mazevedofs force-pushed the existential-error-message branch from 7ca1d9f to 637e2d4 Compare August 26, 2022 00:20
Copy link
Member

@hborla hborla left a comment

Choose a reason for hiding this comment

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

Looks great, thank you for your contribution!

@hborla
Copy link
Member

hborla commented Sep 2, 2022

@swift-ci please smoke test

@LucianoPAlmeida
Copy link
Contributor

@mazevedofs CI failure is because tests have to be updated in type/explicit_existential_swift6.swift as well =]

@mazevedofs
Copy link
Contributor Author

@mazevedofs CI failure is because tests have to be updated in type/explicit_existential_swift6.swift as well =]

@LucianoPAlmeida That's right! Is there a way to run this test locally so I can properly test it?

@LucianoPAlmeida
Copy link
Contributor

LucianoPAlmeida commented Sep 3, 2022

@LucianoPAlmeida That's right! Is there a way to run this test locally so I can properly test it?

Yes, we can use lit to run them locally against our ninja build. The exact commands are here in Running Tests section =]

@mazevedofs mazevedofs force-pushed the existential-error-message branch from 637e2d4 to 68687a6 Compare September 5, 2022 16:18
@LucianoPAlmeida
Copy link
Contributor

@swift-ci Please test

@LucianoPAlmeida
Copy link
Contributor

Given that @hborla approved already, let's land it

@LucianoPAlmeida LucianoPAlmeida merged commit 01b0fa0 into swiftlang:main Sep 6, 2022
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.

3 participants