-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
ExpressibleByArrayLiteral
conformance of _TinyArray
to the d…
…eclaring module (#157) Motivation Nightly compilers start complaining about retroactive conformances. Modifications - move conformance to declaring module - optimise code to not allocate Result no warning, optimal generated code for: ```swift func foo1(int: Int) -> _TinyArray<Int> { [int] } ``` compiles down to: ``` output.foo1(int: Swift.Int) -> output._TinyArray<Swift.Int>: mov rax, rdi xor edx, edx ret ``` https://godbolt.org/z/a91fPe6or
- Loading branch information
Showing
5 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters