-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[stdlib] Slab #76438
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
[stdlib] Slab #76438
Conversation
Whoops, meant to mark this as a draft, sorry for the pings everyone! |
@swift-ci please build toolchain |
1 similar comment
@swift-ci please build toolchain |
@swift-ci please build toolchain |
334ffd6
to
7f57ca9
Compare
@swift-ci please build toolchain |
@swift-ci please build toolchain macOS |
@swift-ci please build toolchain macOS |
@swift-ci please build toolchain Linux |
@swift-ci please build toolchain Windows |
@swift-ci please build toolchain |
@swift-ci please build toolchain |
@swift-ci please test |
@swift-ci please build toolchain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor niggles. 🎉
@swift-ci please test |
@swift-ci please build toolchain |
@@ -333,7 +333,7 @@ namespace { | |||
baseObjTy = baseObjTy->getWithoutSpecifierType(); | |||
} | |||
|
|||
if (baseObjTy->isArrayType()) { | |||
if (auto elementTy = baseObjTy->isArrayType()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really gotta rename this to getAsArrayType or something
@swift-ci please test |
@swift-ci please build toolchain macOS |
@swift-ci please test |
These changes have implications to how literals are handled by the solver, I think a better way to model this lieral -> slab interaction would be a conversion restriction . |
@xedin I can address this as a followup this week if that's ok? |
Sure, sounds good! |
This PR adds a new type to the standard library
Slab
who is a fixed size array. One can define a value ofSlab
like so: