Skip to content

Conversation

@glessard
Copy link
Contributor

@glessard glessard commented Jan 21, 2026

When compiled with library resilience, consuming functions which discard self cannot also be @inlinable. While this does not cause issues in the package (it is not compiled with resilience on,) this is a back-port of an internal bug fix. A diagnostic for this error is introduced in Swift 6.3.

Addresses #288

@glessard
Copy link
Contributor Author

@swift-ci please test

@glessard glessard linked an issue Jan 21, 2026 that may be closed by this pull request
@glessard
Copy link
Contributor Author

@swift-ci please test macOS platform

When compiled with library resilience, `consuming` functions which `discard self` cannot also be `@inlinable`.
@glessard glessard force-pushed the issue288-resilient-machport branch from 5a03cc6 to b0e5ec8 Compare January 21, 2026 17:10
@glessard
Copy link
Contributor Author

@swift-ci please test

@glessard glessard merged commit 7e474cb into apple:main Jan 21, 2026
47 checks passed
@glessard glessard deleted the issue288-resilient-machport branch January 21, 2026 20:40
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.

Consuming functions of resilient types cannot be inlinable

1 participant