Skip to content

GSB: Don't forget to concretize conformances when processing a same-type requirement [5.5] #38208

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

Conversation

slavapestov
Copy link
Contributor

When merging two type parameters T1 and T2, if T2 had a concrete type
and T1 had conformance requirements, we did not "concretize" the
conformances.

As a result, the conformance requirements were not marked as redundant,
which would cause a crash (no assert build) or assertion failure (in an
assert build) later on inside rebuildSignatureWithoutRedundantRequirements().

Fixes rdar://problem/79570734.

@slavapestov slavapestov requested a review from a team as a code owner July 1, 2021 21:05
…ype requirement

When merging two type parameters T1 and T2, if T2 had a concrete type
and T1 had conformance requirements, we did not "concretize" the
conformances.

As a result, the conformance requirements were not marked as redundant,
which would cause a crash (no assert build) or assertion failure (in an
assert build) later on inside rebuildSignatureWithoutRedundantRequirements().

Fixes rdar://problem/79570734.
@slavapestov slavapestov force-pushed the gsb-concrete-conformance-fix-5.5 branch from c66f85c to a7a38d6 Compare July 1, 2021 21:13
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Jul 1, 2021

Build failed
Swift Test Linux Platform
Git Sha - a7a38d6

@slavapestov
Copy link
Contributor Author

This is the 5.5 cherry-pick of #38207.

@slavapestov
Copy link
Contributor Author

Linux failure is unrelated:

<unknown>:0: error: module file '/home/buildnode/jenkins/workspace/swift-PR-Linux/branch-release/5.5/buildbot_linux/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-driver/module-cache/39VS1T8DVNY7P/CDispatch-RAPLRX6YU1H6.pcm' is out of date and needs to be rebuilt: signature mismatch

@slavapestov
Copy link
Contributor Author

@swift-ci Please test Linux

@slavapestov slavapestov merged commit 114ab33 into swiftlang:release/5.5 Jul 2, 2021
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants