Skip to content

Yet more typed throws fixes #69824

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 4 commits into from
Nov 14, 2023
Merged

Conversation

DougGregor
Copy link
Member

@DougGregor DougGregor commented Nov 13, 2023

Minor fixes for typed throws that were uncovered while testing the typed throws map implementation in the standard library:

  • When substituting into a generic throws(E), and E is either any Error or Never, simplify to throws or non-throwing
  • Teach TransferNonSendable, forEach unrolling, and speculative devirtualization that not all Error BB's have arguments

When substitution into a function type with `throws(E)` produces either
`throws(any Error)` or `throws(Never)`, adjust the resulting function
type to the equivalent `throws` or non-throwing.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

@swift-ci please smoke test Windows

@DougGregor DougGregor merged commit 273937a into swiftlang:main Nov 14, 2023
@DougGregor DougGregor deleted the typed-throws-fixes branch November 14, 2023 06:09
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.

1 participant