Greg Parker
fb1b8c9d75
Simply no-ObjC-interop case.
2017-07-12 20:37:20 -07:00
Greg Parker
05de18dc0a
[runtime] swift_getObjectType() must ignore KVO's artificial subclasses.
...
Fixes SR-4363.
2017-07-12 20:37:20 -07:00
Brian Croom
f7ee42588b
Merge pull request #10905 from briancroom/XCTAssert-continueAfterFailure
...
Stop swallowing test interruption exceptions thrown during XCTAssert evaluation
2017-07-12 17:22:32 -07:00
Joe Groff
4b615311d7
Merge pull request #10913 from jckarter/key-path-writeback-order
...
KeyPaths: Ensure mutation accesses are ended in the correct order.
2017-07-12 16:35:20 -07:00
Maxim Moiseev
ce53a6582f
Merge pull request #8354 from anayini/bugfix/SR-4172
...
[stdlib] 0-ary tuples should be equatable
2017-07-12 16:12:51 -07:00
swift-ci
846617fe3c
Merge pull request #10907 from CodaFi/mangolia
2017-07-12 16:05:14 -07:00
Max Moiseev
d9e0eef4aa
Add an @available initializer for source compatibility
2017-07-12 15:12:39 -07:00
Maxim Moiseev
ec77bd01de
Merge pull request #10903 from moiseev/metered-fare
...
[overlay] Add INRideOption
2017-07-12 14:57:18 -07:00
Robert Widmann
dabe18d2f9
Merge pull request #9605 from tinysun212/pr-no-freelibrary
...
[stdlib] Fixed image inspection for Win32
2017-07-12 14:44:18 -07:00
Joe Groff
34ec20c0e4
KeyPaths: Ensure mutation accesses are ended in the correct order.
...
Using an Array to hold onto all the cleanup objects for an access happens to destroy the cleanup objects in FIFO order (and it's probably not a good idea to rely on Array cleaning itself up in any particular order at all). For want of proper accessor coroutines, chain the cleanup objects in a linked list so that they reliably get destroyed in the desired inside-out order. Fixes SR-5442 | rdar://problem/33267959.
2017-07-12 14:41:34 -07:00
Anna Zaks
36a07e9a6b
Update swift_demangle and tests to use new symbol mangling.
2017-07-12 13:41:07 -07:00
Brian Croom
f788a309ff
Stop swallowing test interruption exceptions thrown during XCTAssert evaluation.
...
Rethrow any test interruption exceptions that get caught, mirroring the
behavior of the Objective-C XCTAssert macros.
<rdar://problem/33255447>
2017-07-12 12:28:34 -07:00
Kyle Zhao
923468be6b
[overlay] Add INRideOption
...
<rdar://problem/32935297>
2017-07-12 11:36:54 -07:00
Max Moiseev
391d49a31e
[overlay] Hide the _ExpressibleByColorLiteral initializer from code completion.
...
Fixes: <rdar://problem/32726800>
2017-07-12 09:05:06 -07:00
Dave Abrahams
69eb4d6fe2
Merge pull request #10785 from xwu/silence-warnings
...
[gardening] Silence compiler warnings [NFC]
2017-07-11 23:13:30 -07:00
Dave Abrahams
4f71d9e35c
[stdlib] Spot fix for https://bugs.swift.org/browse/SR-5401
...
The simplest way to keep the string buffer alive is simply to always grab its
iterator, even if we're not going to use it. Thanks @milseman for that idea and
@jckarter for the diagnosis help!
2017-07-11 14:58:29 -07:00
Maxim Moiseev
2e512cb7fe
Merge pull request #10865 from moiseev/intents-availability-again
...
[overlay] Fixing the availability of INSearchCallHistoryIntent.init
2017-07-11 09:13:27 -07:00
lynn
51eac53c4a
fix minor mistake ( #10839 )
...
* fix minor mistake
Use the `flatMap` method. Parameter transform: A closure that takes the unwrapped value, right?
* revert unwrapped
2017-07-11 00:46:33 -07:00
Károly Lőrentey
9996d071c4
[stdlib] Define custom Words types for each standard fixed with integer
...
This adds 8 more collection views, but makes integer definitions
more consistent across all the available bit widths and
between 32-bit and 64-bit platforms.
2017-07-11 04:53:23 +02:00
Károly Lőrentey
735fe97242
[stdlib] Fix sign extension in word -> multi-word integer conversions
...
This fixes integer conversion issues on 32-bit platforms.
2017-07-11 04:33:14 +02:00
Károly Lőrentey
e975445b70
[stdlib] Make UInt.Words.var internal
...
We don’t need Words’ members to be @_transparent;
simple conversions use _lowWord instead.
2017-07-11 03:26:20 +02:00
Károly Lőrentey
1dccb45278
[stdlib] Revert @_transparent to prevent SIL size explosion
2017-07-11 03:17:56 +02:00
Maxim Moiseev
659e17035b
Merge pull request #10845 from moiseev/default-profile
...
[overlay] Change INBooleanResolutionResul.defaultProfile to .isDefaultProfile
2017-07-10 16:34:37 -07:00
Max Moiseev
95d46b1ee0
[overlay] Fixing the availability of INSearchCallHistoryIntent.init
...
Addresses: <rdar://problem/33206673>
2017-07-10 15:49:54 -07:00
Michael Gottesman
e43334a2b5
Merge pull request #10853 from gottesmm/enable_silownership_on_stdlibCore_by_default
...
[semantic-sil] Turn on sil ownership/the verifier by default on stdlibCore.
2017-07-10 15:26:06 -07:00
Xiaodi Wu
075948c099
Explicitly discard result of NSDecimal operations
2017-07-10 17:11:42 -05:00
Xiaodi Wu
9df52168ab
Merge branch 'silence-warnings' of github.com:xwu/swift into silence-warnings
2017-07-10 16:46:40 -05:00
Xiaodi Wu
fbbe21331c
Address reviewer comment
2017-07-10 16:45:24 -05:00
giginet
74eca0dd2f
Fix warning on Xcode 9 beta2
2017-07-10 14:28:21 -07:00
Károly Lőrentey
826f8daf4a
[stdlib] _lowUWord => _lowWord
2017-07-10 22:40:52 +02:00
Károly Lőrentey
c8d4fd4242
[stdlib] Remove BinaryInteger._word(at:)
...
Removes BinaryInteger's _word(at:) requirement and its
countOfRepresentedWords property, making the words property the
sole way to access an integer's words.
This is a better fix for https://bugs.swift.org/browse/SR-5275 .
2017-07-10 22:40:52 +02:00
Michael Gottesman
62ece7e07d
[semantic-sil] Turn on sil ownership/the verifier by default on stdlibCore.
...
rdar://31880847
2017-07-10 13:39:08 -07:00
Kyle Zhao
5ab2e4d3a5
[overlay] Change INBooleanResolutionResul.defaultProfile to .isDefaultProfile
...
<rdar://problem/31816908>
2017-07-10 11:25:09 -07:00
Károly Lőrentey
7836268d45
[stdlib] Implement BinaryInteger.words in standard integer types.
...
Introduces the following new collection types as lightweight
views of a corresponding integer value:
- UInt.Words
- UInt64.Words (on 32-bit platforms)
- DoubleWidth.Words
The rest of the standard integer types define Words as a typealias
to one of the first two of these, based on their width.
2017-07-10 19:03:34 +02:00
Itai Ferber
acadd6ca32
Merge pull request #10819 from itaiferber/encoders-eliminate-overlapping-exclusive-accesses
...
Remove overlapping exclusive accesses in encoders
2017-07-07 16:08:17 -07:00
Xi Ge
82d9ec4634
[stdlib] Attaching document comment properly to AnyObject. NFC ( #10817 )
2017-07-07 16:01:47 -07:00
Max Moiseev
1a0436e9c7
[overlay] Use RangeExpression whenever possible instead of Range
2017-07-07 15:34:56 -07:00
Max Moiseev
77edc65003
[overlay] Potentially better bridging to NSString in StringProtocol extensions
2017-07-07 15:34:56 -07:00
Max Moiseev
72479aca50
[overlay] Move static unavailable members back to String
2017-07-07 15:34:56 -07:00
Max Moiseev
5f1c3f7021
[overlay] Generalize Foundation StringProtocol extensions
2017-07-07 15:34:56 -07:00
Max Moiseev
fc0cf33bdc
[overlay] Mark Foundation String slicing methods as deprecated
2017-07-07 15:34:56 -07:00
Max Moiseev
fe1ebdfc73
[overlay] Port Foundation extensions from String to StringProtocol
2017-07-07 15:34:08 -07:00
Xiaodi Wu
2c29408430
Merge branch 'master' into silence-warnings
2017-07-07 17:33:55 -05:00
Max Moiseev
f45c1888b6
[overlay] Move unavailable declarations to StringProtocol
2017-07-07 15:29:47 -07:00
Max Moiseev
b2b0dc42d4
[overlay] Extracting static string extensions
2017-07-07 15:29:46 -07:00
Dave Abrahams
076b2e115f
Merge pull request #10814 from apple/index-interchange
...
Index interchange
2017-07-07 15:01:17 -07:00
Joe Groff
8793212293
Merge pull request #10741 from jckarter/key-path-generic-computed
...
Handle generic computed properties in key paths.
2017-07-07 13:50:27 -07:00
Itai Ferber
18b523289d
Remove overlapping exclusive accesses in encoders
...
{JSON,Plist}{Encoder,Decoder} had overlapping accesses which were supposed to be mutually exclusive in their `with(pushedKey:)` methods.
Removes those methods and the overlapping accesses.
2017-07-07 13:43:21 -07:00
Itai Ferber
b8dc826d41
Merge pull request #10766 from itaiferber/jsonencoder-conditional-conformance-workarounds
...
JSONEncoder conditional conformance workarounds
2017-07-07 13:20:54 -07:00
Dave Abrahams
9159239995
Un-revert "[stdlib] String index interchange, etc." ( #10812 )
...
I failed to merge the upstream changes to swift-corelibs-foundation at the same
time as I merged that #9806 , and it broke on linux. Going to get it right this
time.
2017-07-07 12:13:25 -07:00