swift-ci
92898618cb
Merge pull request #10982 from apple/stdlib-swift4-modernization
2017-07-20 18:56:23 -07:00
Dave Abrahams
1f6867892a
[stdlib] Correct a comment
2017-07-20 18:11:57 -07:00
Dave Abrahams
e8ba44a8d5
Merge pull request #11027 from apple/backward-compatible-utf8-view-slicing
...
Backward compatible utf8 view slicing
2017-07-20 18:05:27 -07:00
Itai Ferber
409473781d
Merge pull request #10350 from inamiy/CodingKey-CustomStringConvertible
...
Let CodingKey inherit CustomStringConvertible for better debugging
2017-07-20 15:19:57 -07:00
Dave Abrahams
05ff40d125
[stdlib] Backward-compatible String.UTF8View slicing
...
When slicing String.UTF8View in Swift 3 mode, in the absence of type
context, produce String.UTF8View.
2017-07-20 14:54:16 -07:00
Michael Gottesman
1991d0e7d5
Merge pull request #11060 from gottesmm/disable_tests
...
Disable some failing tests while I look into a solution.
2017-07-19 23:57:39 -07:00
Itai Ferber
f6e48dceb6
Merge pull request #11025 from michael-lehew/codable_support_for_nsarchival
...
NSKeyed{Una,A}rchiver should support Codable
2017-07-19 19:11:57 -07:00
Michael LeHew
ef35a001e6
NSKeyed{Una,A}rchiver should support Codable
2017-07-19 16:43:55 -07:00
Michael Gottesman
ab6a4f5249
Disable some failing tests.
...
rdar://33358110
2017-07-19 16:25:39 -07:00
Saleem Abdulrasool
21a27b05e6
stdlib: tweak printf specifier to be more portable
...
This just adjusts the printf specifier to use the standard defined
printf conversion specifier rather than assuming that %zd will convert
properly. NFC.
2017-07-19 10:14:03 -07:00
Dave Abrahams
a86d9ae562
Merge branch 'master' into rationalize-bitshifting
2017-07-18 16:09:05 -07:00
Dave Abrahams
33e9ec4690
[stdlib] Rationalize bitshifting in protocols
...
Only FixedWidthInteger, not BinaryInteger, should have masking shifts.
BinaryInteger should have a non-masking shift requirement.
Removed some dead code.
2017-07-18 16:00:44 -07:00
Dave Abrahams
879e8e548f
Merge pull request #10994 from apple/drop-introduced-annotations
...
[stdlib] Drop some @available(introduced:...)
2017-07-18 14:30:26 -07:00
Saleem Abdulrasool
40569f01f3
Merge pull request #11039 from compnerd/type-matching
...
stubs: match return type to header declaration
2017-07-18 14:23:02 -07:00
Huon Wilson
994121e3d2
Merge pull request #10861 from huonw/symbol-list-10
...
TBD: includes all symbols from a full build and test
2017-07-18 10:54:17 -07:00
Saleem Abdulrasool
8b3bff8277
stubs: match return type to header declaration
...
Because of differences in the definition of ssize_t, swift uses
`__swift_ssize_t` in the headers. Make the definition match the
declaration. NFC.
2017-07-18 10:36:23 -07:00
Dave Abrahams
ff07df8df3
Merge pull request #11006 from apple/bidirectional-utf8-view
...
[stdlib] Make String.UTF8View bidirectional
2017-07-17 21:40:34 -07:00
Dave Abrahams
e6519fbd2b
[stdlib] Make String.UTF8View bidirectional
...
This is a step along the way toward handling backward-compatiblity of UTF8View
slicing and preventing inadvertent creation of String instances that keep
inaccessible memory alive.
2017-07-17 13:53:45 -07:00
Ben Cohen
4d7ae8ca85
[stdlib] Fix array slice self-assignment bug ( #10958 )
...
* Fix bug where assigning from self wasn't checking bounds of the assigned slice matched
* break up if statement
2017-07-17 13:09:35 -07:00
Joe Groff
e2dc62b207
Merge pull request #11004 from jckarter/iuo-key-path
...
Handle IUO unwraps in key paths.
2017-07-17 12:02:30 -07:00
Joe Groff
69a290edda
Handle IUO unwraps in key paths.
...
In the type checker, we need to recognize when a member lookup succeeded through an IUO unwrap, and insert the implicit optional-unwrap component into the key path. In the standard library, we need to cope with the fact that IUO is still a first-class type with unique type metadata in a few places. Fix for rdar://problem/33230845.
2017-07-17 11:21:36 -07:00
Maxim Moiseev
3a1d6e1ebf
Merge pull request #10980 from moiseev/uikit-drag-drop
...
[overlay] Add NSItemProviderReading/Writing methods to UIKit overlay
2017-07-17 10:44:14 -07:00
Yasuhiro Inami
e017508a9b
Simplify CodingKey description
2017-07-17 12:02:56 +09:00
Dave Abrahams
fb35257511
[stdlib] Drop some @available(introduced:...)
...
These annotations make it hard to write code that works in both Swift 3 and Swift 4, so if they aren't needed we should remove them.
2017-07-16 07:22:09 -07:00
Yasuhiro Inami
98ed5f97de
Improve CodingKey description (add double-quote)
2017-07-16 12:50:08 +09:00
Yasuhiro Inami
33582e61e7
Improve CodingKey description
2017-07-16 12:46:37 +09:00
Yasuhiro Inami
f4e8cbb4e5
Let CodingKey inherit CustomStringConvertible for better debugging
2017-07-16 12:13:10 +09:00
Ling Wang
c781dc1598
Fix code formatting issues
2017-07-15 12:32:33 -05:00
Max Moiseev
e43f146c5b
[overlay] Replace _SwiftDragDropItemProvider with _ObjectiveCBridgeable
2017-07-14 22:47:17 -07:00
Dave Rahardja
340447ac64
[overlay] Add NSItemProvider overlay
...
<rdar://problem/32138540>
2017-07-14 22:13:30 -07:00
Philippe Hausler
5dfa9160f9
[Foundation] replaceSubrange in the cases of immutable and mutable backing stores should recalculate length per the reference backing store change and not the length of the replacement
2017-07-14 18:34:57 -07:00
Dave Abrahams
c497969987
[stdlib] Swift4 Modernizations Compatible with Swift 3.2
2017-07-14 17:54:33 -07:00
Dave Rahardja
1382fc85d7
[overlay] Add NSItemProviderReading/Writing methods to UIKit overlay
...
<rdar://problem/32138581>
2017-07-14 17:15:58 -07:00
swift-ci
efb7d75489
Merge pull request #10970 from apple/rdar-33307780
2017-07-14 17:14:44 -07:00
Dave Abrahams
38828872b9
[stdlib] Add missing unwraps for backward compatibility
...
Otherwise, the result would have been an infinite recursion.
2017-07-14 15:30:06 -07:00
Dave Abrahams
e59cb97048
[stdlib/Foundation] Swift 3 backward compatibility hack
...
Since samePosition(in:) now unconditionally returns optionals,
String.UTF16View.Index.distance(to: String.UTF16View.Index) must accept an
optional to keep some code working.
Fixes <rdar://33307780>.
2017-07-14 15:30:06 -07:00
David Rönnqvist
e15ea5fcf3
[stdlib] Implement reduce with inout (SE-0171)
...
Implement and document `reduce(into:_:)`, with a few notes:
- The `initial` parameter was renamed `initialResult` to match the first parameter in `reduce(_:_:)`.
- The unnamed `combining` parameter was renamed `updateAccumulatingResult` to try and resemble the naming of the closure parameter in `reduce(_:_:)`.
- The closure throws and `reduce(into:_)` re-throws.
- This documentation mentions that `reduce(into:_)` is preferred over `reduce(_:_:)` when the result is a copy-on-write type and an example where the result is a dictionary.
Add benchmarks for reduce with accumulation into a scalar, an array, and a dictionary.
Update expected error message in closures test (since there are now two `reduce` methods, the diagnostic is different).
2017-07-14 23:24:42 +02:00
Ling Wang
6bbb96b97d
String.UTF8View.Index's conversion init should check whether sourcePosition is already a utf8 index first. Otherwise it may return nil for a valid utf8 sourcePosition.
2017-07-14 14:27:41 -05:00
Rintaro Ishizaki
d2eab3c342
[stdlib] Use #if guarded switch case
...
_Cocoa{Set,Dictionary}{Buffer,Index,Iterator} can be completely
eliminated from non-ObjC runtime environments.
2017-07-14 18:14:34 +09:00
Huon Wilson
f94f16b358
[Foundation] Functions declared in a header should be static.
...
These were accidentally left as `extern` rather than the correct `static` or
`static inline` (etc.).
2017-07-13 15:57:30 -07:00
Huon Wilson
e8f522920d
[Dispatch] Functions declared in a header should be static.
...
These were accidentally non-static.
2017-07-13 15:23:16 -07:00
Maxim Moiseev
16b7de05a3
Merge pull request #10376 from moiseev/foundation-string-extensions
...
[WIP][overlay] Port Foundation String extensions to StringProtocol
2017-07-13 14:50:47 -07:00
Jordan Rose
1e38b4b624
Merge pull request #10893 from jrose-apple/are-you-having-issues
...
[stdlib] Surface NSKeyedArchiver issues in Xcode.
2017-07-13 12:53:01 -07:00
Jordan Rose
fd3b585de0
[stdlib] Surface NSKeyedArchiver issues in Xcode.
...
By calling through to swift_reportToDebugger, Xcode can pick up the
NSKeyedArchiver/Unarchiver issues with Swift classes and display them
in the Issues Navigator. This increases the probability that they'll
be seen and acted upon.
This is not a fully-general interface yet, please do not start hooking
random things up to it. Especially if you're working on something that
doesn't ship with Xcode itself. :-)
rdar://problem/32900735
2017-07-13 11:19:03 -07:00
Jordan Rose
9c10398514
[runtime] Expose reportToDebugger as swift_reportToDebugger.
...
...so that the overlays can use it. See next commit.
2017-07-13 11:18:41 -07:00
Maxim Moiseev
4d70a7c4c5
Merge pull request #10856 from moiseev/color-literal-init
...
[overlay] Hide the _ExpressibleByColorLiteral initizlier from code completion
2017-07-13 10:40:59 -07:00
swift-ci
7fc46747b0
Merge pull request #10931 from apple/rdar-33276845
2017-07-13 10:06:13 -07:00
Maxim Moiseev
7d3627a972
Merge pull request #10558 from lorentey/binaryinteger-words
...
Implement BinaryInteger.words
2017-07-13 09:06:51 -07:00
Dave Abrahams
c62cdf3dc0
[stdlib] Use minimal bits for stride for indices in String.UTF8View
...
Fixes <rdar://33276845>
2017-07-13 07:55:53 -07:00
Greg Parker
79e33808f1
Fix swift_getObjectType() of class objects.
2017-07-12 20:37:20 -07:00