Skip to content

[stdlib] Default initializers for Span-family types #82866

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

Merged

Conversation

glessard
Copy link
Contributor

@glessard glessard commented Jul 8, 2025

Adds no-parameter initializers that return empty, immortal instances of Span/RawSpan/MutableSpan/MutableRawSpan.

These were proposed as part of SE-0485.

Addresses rdar://155275054

@glessard glessard requested a review from a team as a code owner July 8, 2025 01:31
@glessard
Copy link
Contributor Author

glessard commented Jul 8, 2025

@swift-ci please smoke test

@glessard glessard requested a review from atrick July 8, 2025 01:33
@glessard
Copy link
Contributor Author

glessard commented Jul 8, 2025

@swift-ci please smoke test linux platform

@glessard glessard merged commit fe6a8fa into swiftlang:main Jul 8, 2025
3 checks passed
Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay! Thanks.

@glessard glessard deleted the rdar155275054-default-inits-allspans branch July 8, 2025 21:51
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