Skip to content

[DNM] OutputSpan prototype (updated) #81637

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

Draft
wants to merge 63 commits into
base: main
Choose a base branch
from

Conversation

glessard
Copy link
Contributor

Prototype for OutputSpan (proposed here, updated from here)

glessard and others added 30 commits April 4, 2025 15:38
These initializers cause a crash in OwnershipModelEliminator in the toolchain build, but didn’t in the prototype package.
Co-authored-by: Karoy Lorentey <klorentey@apple.com>
Co-authored-by: Karoy Lorentey <klorentey@apple.com>
# Conflicts:
#	stdlib/public/core/Span/MutableSpan.swift
#	stdlib/public/core/Span/OutputRawSpan.swift
#	stdlib/public/core/Span/OutputSpan.swift
#	stdlib/public/core/Span/Span.swift
#	stdlib/public/core/UnsafePointer.swift
glessard added 27 commits April 17, 2025 18:09
- It should not return an optional, and trap when empty.
- Also add the multiple-element version of `removeLast()`.
- now that the `span` and `mutableSpan` properties are available
@glessard
Copy link
Contributor Author

@swift-ci please smoke test

@glessard
Copy link
Contributor Author

@swift-ci please build toolchain

@DougGregor
Copy link
Member

@swift-ci please build toolchain Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants