-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[Source compatibility suite] penny-bot failing to build with main branch #71423
Comments
Possible related: #39612 ? |
The SIL verifier is crashing right out of SILGen. I don’t see any recent changes to either the verifier or SILGen here, but there was a very recent change to The verifier is pointing at a private struct CodingStackEntry {
var key: URICoderCodingKey
var element: URIDecodedNode
}
Note the extension here: extension URICoderCodingKey: CodingKey { Okay, so the key path leads to a value of type var codingPath: [any CodingKey] { codingStack.map(\.key) } So yeah, we are indeed back-propagating a contextual type into the type of the |
@Jumhyn do you have time to look into this? |
Reduction: protocol CodingKey {}
struct URICoderCodingKey : CodingKey {
}
struct CodingStackEntry {
var key: URICoderCodingKey
}
struct Test {
var codingStack: [CodingStackEntry]
var codingPath: [any CodingKey] { codingStack.map(\.key) }
} |
Oop, missed this. Yeah I can take a look! |
@xedin any idea why the source compat run on the PR wouldn't have caught this? |
I think this project was added after the run of source compat suite on that PR. |
Finally had a chance to look at this: proposed fix is here |
[The issue](swiftlang/swift#71423) has been fixed and the project is currently UPASS'ing in main configuration.
Description
The penny-bot project is failing to build with the main branch on macOS. The error seen in the log is
Reproduction
Expected behavior
Expected to build
Environment
Apple Swift version 5.11-dev (LLVM 69fa38fd6c00774, Swift 2fa1022)
Target: x86_64-apple-macosx13.0
Additional information
https://ci.swift.org/view/Dashboard/job/swift-main-source-compat-suite/672
The text was updated successfully, but these errors were encountered: