Skip to content

[6.0🍒] NCGenerics: improve diagnostics #74148

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

kavon
Copy link
Member

@kavon kavon commented Jun 5, 2024

  • Explanation: Changes diagnostics by deleting old, ad-hoc ones in favor of allowing the regular diagnosis logic in the constraint solver diagnose things instead. Does add one new, simple note.
  • Scope: Important for understanding why you can't call a method in a Copyable-constrained extension of a type.
  • Issue: rdar://127369509
  • Original PR: NCGenerics: improve diagnostics #73927
  • Risk: Low, it's a diagnostics-focused change.
  • Testing: included.
  • Reviewer: @xedin & @jckarter

kavon added 2 commits June 5, 2024 11:15
Removing the old, ad-hoc diagnostics code improves the diagnostics we
emit, since the existing diagnostics for missing conformances is already
pretty good.

rdar://127369509
(cherry picked from commit c9cfe28)
resolves the assertion failure in rdar://125196271 but not the
underlying issue.

(cherry picked from commit 8090e39)
@kavon kavon requested a review from a team as a code owner June 5, 2024 18:24
@kavon
Copy link
Member Author

kavon commented Jun 5, 2024

@swift-ci test

@kavon
Copy link
Member Author

kavon commented Jun 5, 2024

@swift-ci test

@kavon kavon enabled auto-merge June 5, 2024 19:48
@kavon kavon merged commit 23bce84 into swiftlang:release/6.0 Jun 6, 2024
@kavon kavon deleted the 6.0-ncgenerics-improve-diagnostics branch June 6, 2024 03: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