Alexis Beingessner
f12d7914e8
update comments in HashedCollections to reflect new design
2016-11-03 19:52:30 -04:00
Alexis Beingessner
052e94a34a
refactor HashedCollections to support verbatim bridging
2016-11-03 19:52:30 -04:00
Alexis Beingessner
d179655952
refactor Dictionary to support an empty singleton
2016-11-03 19:52:30 -04:00
swift-ci
84f7b1d84f
Merge pull request #5603 from JaSpa/CharacterSet-ClosedRange
2016-11-03 11:22:45 -07:00
Max Moiseev
31c2aace4f
Specialized implementation of Strideable conformance for Int
2016-11-02 16:14:28 -07:00
Max Moiseev
252106fcc6
Revert "Speeding up Strideable conformance for integers"
...
This reverts commit 8789e627f6 .
2016-11-02 15:33:17 -07:00
Max Moiseev
e03f3d38cc
Adding a fixme to possibly remove minimumSignedRepresentationBitWidth
2016-11-02 15:32:58 -07:00
Max Moiseev
f832c0cccc
Changing preconditions in integer inits for better performance
2016-11-02 15:30:55 -07:00
Max Moiseev
8789e627f6
Speeding up Strideable conformance for integers
2016-11-02 13:44:08 -07:00
Janek Spaderna
d5e1819416
[stdlib] Don't try to construct invalid UnicodeScalars
...
When inserting a closed range/creating a CharacterSet from a closed
range we must not try to convert this range to a half open one by
incrementing the upperBound UnicodeScalar because not all integer values
are valid values for UnicodeScalar
Fixes SR-2988
2016-11-02 12:20:31 +01:00
swift-ci
7a0e622f17
Merge pull request #5596 from DougGregor/stdlib-warnings
2016-11-01 23:30:37 -07:00
swift-ci
ad1406971f
Merge pull request #5595 from slavapestov/fixed-layout-workaround-corelibs-foundation
2016-11-01 23:19:33 -07:00
Doug Gregor
038558baf1
[Standard library] Address warnings. NFC
2016-11-01 23:10:04 -07:00
Slava Pestov
5ded13c8dd
stdlib: Make Unsafe{Mutable,}BufferPointer @_fixed_layout to work around rdar://18157434
2016-11-01 23:37:19 -06:00
Slava Pestov
c0f3d8d644
Fix broken build on ARM
...
There was a @_transparent extension lurking behind an #if, and CI pull
request testing doesn't build the standard library on ARM.
2016-11-01 22:32:38 -07:00
Slava Pestov
f63dff16c7
AST: Don't allow @_transparent on extensions
...
Quiz: What does @_transparent on an extension actually *do*?
1) Make all members @_transparent?
2) Allow your members to be @_transparent?
3) Some other magical effect that has nothing to do with members?
The correct answer is 1), however a few places in the stdlib defined
a @_transparent extension and then proceeded to make some or all members
also @_transparent, and in a couple of places we defined a @_transparent
extension with no members at all.
To avoid cargo culting and confusion, remove the ability to make
@_transparent extensions altogether, and force usages to be explicit.
2016-11-01 21:14:09 -07:00
Maxim Moiseev
70cf3633b5
Fixing the FloatingPoint.subtracting doc comment ( #5581 )
2016-11-01 20:13:08 -05:00
Max Moiseev
874930b80a
Implementing doubleWidthDivide
2016-11-01 16:32:44 -07:00
Max Moiseev
35dbab75d1
Proper availability attribute for toIntMax() method
2016-11-01 14:52:31 -07:00
Max Moiseev
8fdb6f007b
Uncommenting arithmetic operators in the FloatingPoint protocol
2016-11-01 14:42:54 -07:00
Max Moiseev
11132bde95
SeeAlso updated for the negate() function
2016-11-01 14:05:48 -07:00
Max Moiseev
79f1ff3694
Removing workarounds for <rdar://problem/29029561>
2016-11-01 12:03:27 -07:00
Max Moiseev
e51af7eb00
Merge branch 'master' into new-integer-protocols
2016-11-01 11:28:12 -07:00
Max Moiseev
9cd1d27ea1
Turning SignedArithmetic.negated() into a static prefix func -
2016-10-31 16:18:44 -07:00
Max Moiseev
2a576b9d6f
numericCast is wort keeping
2016-10-31 15:46:50 -07:00
Max Moiseev
fd42e0309e
Marking IntMax and UIntMax as obsoleted
2016-10-31 15:45:28 -07:00
Max Moiseev
51a3e22889
Marking init(truncatingBitPattern:) as obsoleted in Swift 4
2016-10-31 15:38:29 -07:00
Max Moiseev
d1a1570200
Addressing compiler warning for unsigned integers
2016-10-31 15:09:28 -07:00
Max Moiseev
205389a8ba
Marking workarounds for <rdar://problem/29029561>
2016-10-31 11:44:06 -07:00
Max Moiseev
76e0a99a37
Merge branch 'master' into new-integer-protocols
2016-10-31 09:29:19 -07:00
Doug Gregor
a66b35d79b
[Constraint solver] Allow constraint regeneration when inputs are simplified.
...
When we process a constraint, the first step is generally to call
getFixedTypeRecursive() to look through type variables. When this
operation actually does non-trivial work, we could save
that result by considering the current constraint "solved" and
generating a new constraint (if needed!) with the simplified types.
This commit adds the infrastructure to do that, because it's important
when getFixedTypeRecursive() starts performing more interesting
substitutions (e.g., handling member types of type
variables). However, enabling for the common case of looking through a
type variable isn't profitable (it's ~2% slower to type-check the
standard library). Stage in this infrastructure change now.
2016-10-31 09:27:22 -07:00
K Staring
536c1ac6ce
Merge branch 'master' of https://github.com/apple/swift
2016-10-31 07:10:16 +01:00
practicalswift
2024316e38
[gardening] Remove accidental trailing whitespace (" " and "\t")
2016-10-30 10:59:02 +01:00
Alexis Beingessner
953e51a97e
[stdlib] Handle some outstanding Dictionary indexing-model FIXMEs/TODOs
2016-10-29 10:04:35 -04:00
Alexis Beingessner
b08732cbd4
[stdlib] Update Dictionary comments to reflect new design
2016-10-29 10:04:35 -04:00
Alexis Beingessner
76c6281fea
[stdlib] Rewriting native hashed collection indices
...
Changes:
- Native dictionary and set indices no longer hold references to storage
- Cocoa-based dictionary and set indices no longer hold references to storage
- Removed double indirection trick from hashed collections
- Rewrote storage types to reflect simpler model
- Updated unit tests
2016-10-29 10:04:35 -04:00
practicalswift
f44686d825
[gardening] Fix trailing whitespace in *.cfg.in, *.html, *.mm and *.sil files
2016-10-29 14:06:43 +02:00
practicalswift
cc852042c9
[gardening] Fix accidental trailing whitespace.
2016-10-29 10:22:58 +02:00
Max Moiseev
3d4f00091d
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2016-10-28 15:55:40 -07:00
Max Moiseev
c9119fc15c
Commenting out some checks pending optimizer work
2016-10-28 15:49:53 -07:00
Max Moiseev
c5a36a3f27
Adding a temporary workaround for a missing optimizer feature
2016-10-28 15:28:32 -07:00
swift-ci
0bb1fc3aaa
Merge pull request #5491 from kperryua/dir-enumerator-crash
2016-10-27 16:41:57 -07:00
Max Moiseev
7fa5aa5e21
Commenting out the arithmetic operators on concrete types
2016-10-27 11:58:02 -07:00
Ben Cohen
fbed646d82
Merge pull request #5483 from airspeedswift/buffer-protocol
...
[stdlib] Make various free functions mutating an _ArrayBufferProtocol into extensions. Resolves ABI FIXME #14
2016-10-27 11:38:54 -07:00
Ben Cohen
3f534c254d
Merge pull request #5485 from airspeedswift/expectEnd-labels-fixme
...
[stdlib] Add arg labels to _expectEnd (ABI FIXME #15 )
2016-10-26 18:03:51 -07:00
Kevin Perry
6f83a82d14
Ensure directory URL enumerator error handler block is invoked with non-nil URL
2016-10-26 16:18:51 -07:00
Max Moiseev
ce5d7e8cef
Adding a few missing operators
2016-10-26 16:15:34 -07:00
Ben Cohen
81473386df
added arg labels to _expectEnd
2016-10-26 12:58:44 -07:00
Ben Cohen
77e13e042e
Remove the FIXME that led to this PR
2016-10-26 12:10:42 -07:00
Ben Cohen
f428a16635
tweaked local var names to avoid confusion with self's properties
2016-10-26 12:09:33 -07:00