Skip to content

[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

Merged
merged 16 commits into from
Aug 28, 2018

Conversation

airspeedswift
Copy link
Member

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..

@airspeedswift
Copy link
Member Author

@swift-ci please test

@airspeedswift
Copy link
Member Author

@swift-ci please test source compatibility

1 similar comment
@airspeedswift
Copy link
Member Author

@swift-ci please test source compatibility

@airspeedswift airspeedswift requested a review from moiseev August 28, 2018 03:48
@airspeedswift
Copy link
Member Author

@swift-ci please smoke test

Copy link
Contributor

@moiseev moiseev left a 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])] = [
Copy link
Contributor

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)] = [
Copy link
Contributor

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 =)

Copy link
Member Author

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.

@moiseev
Copy link
Contributor

moiseev commented Aug 28, 2018

Should we squash the tiny commits?

@airspeedswift
Copy link
Member Author

I'll just squash the whole thing on merge.

@airspeedswift airspeedswift merged commit 83823f5 into swiftlang:master Aug 28, 2018
@airspeedswift airspeedswift deleted the planned-obsolescence branch August 28, 2018 20:20
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.

2 participants