withoutActuallyEscaping
with sending @escaping
causes crash
#79078
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
triage needed
This issue needs more specific labels
Description
This is pretty much a non-sensical use case. On accident, I tried to use an already
@escaping
closure inwithoutActuallyEscaping
. The crash does not happen with non-sending@escaping
closures.Reproduction
Stack dump
Expected behavior
Firstly, I'd expect this to not crash. But secondly, I don't know what else to expect. Maybe a compiler warning or error that you are passing an
@escaping
closure towithoutActuallyEscaping
, which does not make sense.Environment
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0
Additional information
No response
The text was updated successfully, but these errors were encountered: