Commit Graph

5 Commits

Author SHA1 Message Date
Saleem Abdulrasool
b67d5f0cf7 test: convert rm -rf && mkdir -p into %empty-directory
This converts the instances of the pattern for which we have a proper
substitution in lit.  This will make it easier to replace it
appropriately with Windows equivalents.
2018-03-06 14:30:54 -08:00
Max Moiseev
42eb45347b [stdlib] Conditional gardening 2017-12-05 16:33:48 -08:00
Joe Groff
cdbdb7a6e8 stdlib: Skeleton implementation of proposed KeyPath API.
Handles projection of stored struct and class properties. Most other functionality TODO.
2017-04-04 11:31:15 -07:00
Nate Cook
3ef1dc2e6c [test] Expand collection combinatorics to include index
This adds a custom index to the variations in collection types in
the collection-combinatorics test. This is important because Int has
properties that make it more powerful as an index, particularly for
random-access collections.

Adding that custom index identified a weird edge-case in macOS for a
non-mutable range replaceable random-access collection with a custom
index where the `DefaultRandomAccessIndices` type doesn’t attach
without a type alias. Linux shows the same behavior with a custom-
indexed random-access collection.
2017-03-13 01:44:22 -05:00
Joe Groff
34ec424898 stdlib: Adding missing default implementations of subscript(Range<Index>) for combinations of [Mutable][RangeReplaceable][Bidirectional|RandomAccess]Collection.
These were overlooked, and somehow code that attempted to make a minimal collection conform to RangeReplaceableCollection and RandomAccessCollection managed to compile successfully in Swift 3.0, but in Swift 3.1…*something* changed to reject a type that conforms to both due to the lack of a suitable default slicing subscript implementation in the stdlib that provided all the requirements. Fill in these missing implementations, fixing rdar://problem/30228957.
2017-01-30 09:54:58 -08:00