We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
swift-driver version: 1.14 Apple Swift version 5.4 (swiftlang-1300.0.5.225 clang-1300.0.6.6) Target: x86_64-apple-macosx11.0
md5: a21247429b5e4137da60f0cd3ff312fa
Issue Description:
The code in SwiftNIO's EventLoopFuture produces an invalid warning. Reproducing the code here:
loop: while true { let cbl = onlyCallback() switch (cbl.firstCallback, cbl.furtherCallbacks) { case (.none, _): break loop case (.some(let ocb), .none): onlyCallback = ocb continue loop case (.some(_), .some(_)): var pending = cbl._allCallbacks() while let f = pending.popFirst() { let next = f() next.appendAllCallbacks(&pending) } break loop } }
This emits the following incorrect warning:
swift-nio/Sources/NIO/EventLoopFuture.swift:88:13: warning: will never be executed loop: while true { ^ swift-nio/Sources/NIO/EventLoopFuture.swift:88:25: note: condition always evaluates to true loop: while true { ^
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
I cannot reproduce this anymore with a recent Swift 5.5 compiler. Please reopen this issue if you still see the problem with a recent compiler
No branches or pull requests
Environment
swift-driver version: 1.14 Apple Swift version 5.4 (swiftlang-1300.0.5.225 clang-1300.0.6.6)
Target: x86_64-apple-macosx11.0
Additional Detail from JIRA
md5: a21247429b5e4137da60f0cd3ff312fa
Issue Description:
The code in SwiftNIO's EventLoopFuture produces an invalid warning. Reproducing the code here:
This emits the following incorrect warning:
The text was updated successfully, but these errors were encountered: