-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[stdlib] Obsolete various compatibility shims in 5.0 #19008
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] Obsolete various compatibility shims in 5.0 #19008
Conversation
@swift-ci please test |
@swift-ci please test source compatibility |
1 similar comment
@swift-ci please test source compatibility |
@swift-ci please smoke test |
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.
LGTM
var c = CollectionOfOne<OpaqueValue<Int>>(OpaqueValue(42)) | ||
expectCrashLater() | ||
${operation} | ||
let collectionOfOneIndexTests: [(String,(inout CollectionOfOne<OpaqueValue<Int>>,Int)->Void,[Int])] = [ |
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.
👍
var c = EmptyCollection<OpaqueValue<Int>>() | ||
expectCrashLater() | ||
${operation} | ||
let emptyCollectionIndexTests: [(String,(inout EmptyCollection<OpaqueValue<Int>>,Int)->Void)] = [ |
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.
s/Void/() would make the line shorter =)
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.
I think ()
for arguments, Void
for return is our style tho.
Should we squash the tiny commits? |
I'll just squash the whole thing on merge. |
Taking another run at this...
It's a lot of changes but mainly because we template out a zillion variation tests to eliminate modifiers on Slice from the templated tests..