Max Moiseev
833721a172
[stdlib] Conditional conformances for LazyFilterCollection
2017-12-08 12:52:12 -08:00
Ben Cohen
4ddac3fbbd
[stdlib] Eradicate IndexDistance associated type ( #12641 )
...
* Eradicate IndexDistance associated type, replacing with Int everywhere
* Consistently use Int for ExistentialCollection’s IndexDistance type.
* Fix test for IndexDistance removal
* Remove a handful of no-longer-needed explicit types
* Add compatibility shims for non-Int index distances
* Test compatibility shim
* Move IndexDistance typealias into the Collection protocol
2017-12-08 12:00:23 -08:00
Thomas Roughton
c5bf2ec553
[runtime] Remove TwoWordPair and use the Swift calling convention instead. ( #13299 )
2017-12-07 19:27:24 -08:00
swift-ci
f767040b4a
Merge pull request #13316 from ikesyo/nsrange-init
2017-12-07 19:19:37 -08:00
Slava Pestov
3866bd21df
Merge pull request #13312 from slavapestov/class-resilience-part-3
...
Class resilience part 3
2017-12-07 18:26:19 -08:00
Sho Ikeda
4438834529
Merge pull request #13266 from ikesyo/sync-measurement-overlay
...
[overlay] Synchronize Measurement.swift with swift-corelibs-foundation
2017-12-08 08:53:40 +09:00
swift-ci
85dda16119
Merge pull request #13328 from moiseev/distance-revert
2017-12-07 15:31:02 -08:00
Max Moiseev
3bace08f9a
Revert "[stdlib] Improve default implementation of Collection.distance(from:to:)"
...
This reverts commit 72948cae9a .
2017-12-07 14:28:19 -08:00
Slava Pestov
0fa7440e51
IRGen/Runtime: Remove old class metadata relocation mechanism
2017-12-07 14:21:58 -08:00
Sho Ikeda
dacd46c95e
[overlay][gardening] Use NSRange.init over NSMakeRange
2017-12-07 22:03:14 +09:00
Sho Ikeda
ff5a27a62d
[overlay][gardening] Prefer os(macOS) over os(OSX)
2017-12-07 21:50:51 +09:00
Sho Ikeda
5682993d7c
[overlay][gardening] Use optional binding
2017-12-07 21:35:39 +09:00
Max Moiseev
72948cae9a
[stdlib] Improve default implementation of Collection.distance(from:to:)
2017-12-06 18:19:34 -08:00
Max Moiseev
80940efa6d
Merge pull request #13191 from moiseev/ungybbed
...
[stdlib] Conditional gardening [NFC]
2017-12-06 09:47:46 -08:00
Slava Pestov
66d7a3aad7
Merge pull request #13288 from slavapestov/class-resilience-part-1
...
Class resilience part 1
2017-12-05 20:57:27 -08:00
Ben Cohen
85d190cd7d
[stdlib] Replace various uses of BlahSlice with Slice to reduce warnings ( #13263 )
...
* Kill the slice variants from the gybbed collection test types
* Handful more SDK instances
* Fix SequencesCollections.swift.gyb
2017-12-05 19:09:56 -08:00
Max Moiseev
42eb45347b
[stdlib] Conditional gardening
2017-12-05 16:33:48 -08:00
Slava Pestov
40ed4e0353
Runtime: Remove "copy prefix" logic
...
When allocating metadata for a generic class we would copy
any prefix matter from the superclass metadata, if the
superclass metadata's address point was greater than our
address point.
While we may use prefix matter for resilient metadata
in the future, I don't believe just copying bytes like
this will prove useful.
2017-12-05 16:31:46 -08:00
Max Moiseev
8dbaa2a752
Revert "[stdlib] Temporarily exclude DoubleWidth from the standard library"
2017-12-05 15:37:07 -08:00
Philippe Hausler
beffbc6ce5
[Foundation] Discontiguous data slices should not heap corrupt ( #13252 )
...
* [Foundation] Byte access and methods that funnel to byte access for slices of discontiguous data (ala backed by dispatch_data_t) should void heap corruption and walking off the ends of buffers
* add missing parens on test_byte_access_of_discontiguousData
* Use the proper byte count in testing
2017-12-05 09:55:22 -08:00
Doug Gregor
31723be232
Merge pull request #13264 from DougGregor/se-0143-better-fail-than-crash
...
[Runtime] Always fail to find a conditional conformance at runtime.
2017-12-04 21:50:25 -08:00
Sho Ikeda
c1f7e236d9
Synchronize Measurement.swift with swift-corelibs-foundation
2017-12-05 13:51:34 +09:00
Doug Gregor
4f8edeb913
[Runtime] Always fail to find a conditional conformance at runtime.
...
Proper evaluation of conditional conformances at runtime (e.g., as part of
dynamic casting) is too large to tackle in the Swift 4.1 timeframe. For now,
record that a conformance is conditional in the protocol conformance record,
and always return "does not conform" to such types.
Fixes rdar://problem/35761301.
2017-12-04 16:51:52 -08:00
Karoy Lorentey
9fef06e59c
Merge pull request #12752 from hamishknight/dictionary-subscript-addressor
...
[stdlib] Use addressor for Dictionary's subscript(_:default:)
2017-12-04 15:04:29 +01:00
swift-ci
6cf9ed8275
Merge pull request #13235 from troughton/windows-errno-stdlibopen
2017-12-04 00:20:57 -08:00
Ben Cohen
fde0d928eb
Add conditional Lazy conformance to Slice when Base is Lazy ( #13242 )
2017-12-03 21:50:42 -08:00
Thomas Roughton
b4391f35de
Fix comment on #endif for defined(_Win32)
2017-12-04 11:39:22 +13:00
troughton
a1518031ec
Fix Windows errno() and _stdlib_open
2017-12-04 11:12:11 +13:00
Hamish
7876391f47
[stdlib] Call nativePointerToValue(at:) from nativePointerToValue(forKey:insertingDefault:)
2017-12-03 17:28:45 +00:00
swift-ci
6f19f4d1c3
Merge pull request #13189 from ikesyo/os-macos
2017-12-02 08:48:58 -08:00
Lance Parker
244a272500
Make Metal(Kit) overlays build in Swift 4 mode ( #13223 )
2017-12-02 07:38:46 -08:00
Greg Parker
da14cd79a6
[runtime] Clean up symbol exports in libc functions. ( #13202 )
2017-12-01 17:49:11 -08:00
Greg Parker
415b36dddc
[runtime] Clean up symbol exports in casting and class introspection. ( #13005 )
2017-12-01 17:48:48 -08:00
swift-ci
a5d9ace6bf
Merge pull request #13200 from airspeedswift/extensionify
2017-12-01 17:40:58 -08:00
Max Moiseev
156e6eb848
Exclude DoubleWidth due to the binary size concerns
...
<rdar://problem/32726173>
2017-12-01 14:29:53 -08:00
Max Moiseev
67e5cd0ff3
Merge pull request #13196 from apple/moiseev-patch-1
...
Remove the GYB artifact [NFC]
2017-12-01 14:25:37 -08:00
ben-cohen
d67c5f0025
Part the fourth
2017-12-01 14:06:14 -08:00
ben-cohen
e7b668e705
Part the third
2017-12-01 12:40:19 -08:00
Ben Cohen
b31cb302fe
Part the second
2017-12-01 11:49:10 -08:00
Nate Cook
956e793ef0
Improve consistency in NSNumber bridging
...
This makes sure casts of NaN succeed, and init(exactly: NaN) fails.
2017-12-01 13:44:33 -06:00
ben-cohen
6d22ded529
Part the first
2017-11-30 20:11:18 -08:00
Nate Cook
45c4c47393
[stdlib] Make DoubleWidth conform to Unsigned/SignedInteger
2017-11-30 21:58:26 -06:00
Max Moiseev
409c2437a4
Remove the GYB artifact from [NFC]
2017-11-30 18:51:34 -08:00
Sho Ikeda
e2b8bec138
[Overlay/Foundation][gardening] Prefer os(macOS) over os(OSX)
2017-12-01 09:00:49 +09:00
Ben Cohen
dcab9493ae
Removed some warnings ( #12753 )
2017-11-30 15:12:56 -08:00
samding01
e1db602212
Fix VarArgs.swift test case for s390x ( #12792 )
2017-11-30 14:08:52 -08:00
Doug Gregor
33de34bc38
Merge pull request #13178 from DougGregor/coding-conditional-conformances
...
[Coding] Make Codable conformances for Optional and collections conditional.
2017-11-30 13:43:30 -08:00
Jordan Rose
8f8f00012a
Merge pull request #12834 from jrose-apple/restrict-cross-module-struct-initializers-2
...
Implementation of SE-0189 "Restrict cross-module struct initializers to be delegating"
rdar://problem/34777878
2017-11-30 13:32:45 -08:00
Saleem Abdulrasool
9ea988f22d
Merge pull request #12758 from compnerd/ELF-registration
...
ELF registration Restructuring
2017-11-30 11:20:53 -08:00
Doug Gregor
89343e2c98
[Coding] Make Codable conformances for Optional and collections conditional.
...
Array, Set, Dictionary, and Optional all provide unconditional conformances
to Encodable & Decodable that dynamically check whether their type arguments
are Encodable/Decodable. Now that we have conditional conformances, make
these unconditional conformances properly conditional, removing all of
the Swift 4-era type-erasure hacks.
Fixes rdar://problem/34989162.
2017-11-30 11:06:29 -08:00