Skip to content

Remove RawSpan workaround #3

Open
@iCharlesHu

Description

@iCharlesHu

Currently the following snippet causes a crash during LifetimeDependenceScopeFixup:

                do {
                    switch result {
                    case .success(let data):
                        let output = try self.output(from: data.bytes) // <— `data.bytes` returns a `RawSpan`
                        try readFd.close()
                        continuation.resume(returning: output)
                    case .failure(let error):
                        try readFd.close()
                        continuation.resume(throwing: error)
                    }
                } catch {
                    try? readFd.close()
                    continuation.resume(throwing: error)
                }

We put in a workaround. This issue tracks the removal for these workarounds once the compiler fixes are merged.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions