Skip to content

Conversation

@hborla
Copy link
Member

@hborla hborla commented Jun 14, 2023

… instead of

stripping PackType out of diagnostic arguments.

There are places in the type printing code that assume the substitution for a
type parameter pack is always a pack, and violating that invariant will crash
the compiler. We also never want to print 'Pack{...}' in diagnostics anyway,
so the print option is a better approach and fixes a few existing tests that still
contained 'Pack{...}' in error messages.

(cherry picked from commit e42667b)
@hborla hborla requested a review from a team as a code owner June 14, 2023 23:21
@hborla
Copy link
Member Author

hborla commented Jun 14, 2023

@swift-ci please test

@hborla
Copy link
Member Author

hborla commented Jun 15, 2023

@swift-ci please test

@hborla hborla merged commit 994e1b3 into swiftlang:release/5.9 Jun 15, 2023
@hborla hborla deleted the 5.9-pack-diagnostics branch June 15, 2023 07:20
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