Karoy Lorentey
ccdc218cbd
[stdlib] _Hasher: append => combine
2018-04-18 14:18:44 +01:00
Slava Pestov
2e5aef9c8d
stdlib: Remove redundant @usableFromInline attributes
2018-04-06 00:02:30 -07:00
Slava Pestov
e1f50b2d36
SE-0193: Rename @_inlineable to @inlinable, @_versioned to @usableFromInline
2018-03-30 21:55:30 -07:00
Sho Ikeda
a08fef219e
[gardening] Change static public to public static for consistency
2018-03-11 18:06:01 +09:00
Karoy Lorentey
f8ce96273e
[stdlib] Implement _hash(into:) for standard Hashable types.
2018-03-09 14:35:22 +00:00
swift-ci
abbaa47614
Merge pull request #12504 from glessard/umbp-nonmutating-setter
2018-03-06 06:37:58 -08:00
Connor Wakamo
a2aacd73dd
[stdlib] Deprecated PlaygroundQuickLook and CustomPlaygroundQuickLookable.
...
Deprecated the `PlaygroundQuickLook` enum and `CustomPlaygroundQuickLookable`
protocol. These are being targeted for removal in Swift 5, so we want to
unconditionally deprecate them now to encourage use of
`CustomPlaygroundDisplayConvertible` instead.
This commit includes deprecated the various `CustomPlaygroundQuickLookable`
conformances across the standard library and overlay libraries.
2018-02-21 13:38:31 -08:00
Max Moiseev
531a5eb582
[stdlib] Dispatch pointer arithmetic operators via Strideable conformance
2018-01-08 15:46:28 -08:00
Nate Cook
0782b482b3
[stdlib] Documentation improvements
...
- Revise Equatable and Hashable for synthesized requirements
- Complete Strideable and stride(from:...:by:) documentation
- Revise DoubleWidth type docs
- Add complexity notes for Set.index(of:) and .contains(_:)
- Fix typos in Set.formUnion docs
- Add missing axioms for SetAlgebra (SR-6319)
- Improve guidance for description and debugDescription
- Add note about the result of passing duplicate keys to
Dictionary(uniqueKeysWithValues:)
- Fix typo in BinaryInteger docs
- Update Substring docs with better conversion example
- Improve docs for withMemoryRebound and isKnownUniquelyReferenced
- Add missing docs not propagated from protocols
2018-01-05 17:06:44 -06:00
swift-ci
9633c91146
Merge pull request #13082 from glessard/patch-1
2017-12-12 10:14:53 -08:00
Guillaume Lessard
9eeb6a0788
skip assignment when source and destination are the same address
2017-12-08 14:14:53 -07:00
Ben Cohen
b31cb302fe
Part the second
2017-12-01 11:49:10 -08:00
Guillaume Lessard
4427a66da8
[gardening] fix an inconsistency
...
This doc-comment's two paragraphs said in the first that the memory must be uninitialized before assignment, while in the second that it cannot be uninitialized.
2017-11-27 10:09:08 -07:00
taylor swift
c85880899d
implement SE 184: add allocation methods to Unsafe buffer pointers, drop all parameters from deallocation, adjust namings, and add repeated-value assignment methods
2017-11-17 21:28:03 -08:00
Max Moiseev
53b8419279
[stdlib] Make all the stdlib APIs @_inlineable
...
This change in theory should allow us to remove a special stdlib-only
sil-serialize-all compilation mode.
<rdar://problem/34138683>
2017-09-29 11:26:56 -07:00
Arnold Schwaighofer
8a85a9efd5
Use array copy runtime implementation instead of the array value witnesses
...
And add builtins for the added runtime functions (assign-take, assign-copy).
rdar://27412867
SR-3376
2017-09-12 12:43:26 -07:00
Maxim Moiseev
ee5fb33656
[stdlib] Remove the Grand Renaming artifacts of Swift 3 era
2017-08-28 15:54:11 -07:00
Nate Cook
1698fd388b
[stdlib] Manually propagate integer documentation
2017-08-01 15:17:20 -05:00
Ugur Unlu
f441f53e65
[stdlib] Correct UnsafeRawPointer.bindMemory example
2017-07-07 15:29:03 +02:00
Nate Cook
825e9d077d
[stdlib] More documentation revisions / consistency fixes.
2017-06-13 14:08:00 -05:00
Nate Cook
b7af9bfe83
[stdlib] Remove SeeAlso tags
2017-06-13 11:23:51 -05:00
Ben Cohen
ea2f64cad2
[stdlib] Add Sequence.Element, change ExpressibleByArrayLiteral.Element to ArrayLiteralElement ( #8990 )
...
* Give Sequence a top-level Element, constrain Iterator to match
* Remove many instances of Iterator.
* Fixed various hard-coded tests
* XFAIL a few tests that need further investigation
* Change assoc type for arrayLiteralConvertible
* Mop up remaining "better expressed as a where clause" warnings
* Fix UnicodeDecoders prototype test
* Fix UIntBuffer
* Fix hard-coded Element identifier in CSDiag
* Fix up more tests
* Account for flatMap changes
2017-05-14 06:33:25 -07:00
Dave Abrahams
38b902d461
[stdlib] add Unsafe[Mutable]Pointer._max, unbounded buffer pointers
2017-05-08 07:58:18 -07:00
Nate Cook
8c15c72dfa
[stdlib] Minor documentation fixes
...
* Revise `withExtendedLifetime(_:_:)`
* Correct method in UnsafeMutablePointer discussion
* `Sequence.filter(_:)` documentation fixes
2017-04-20 12:23:17 -05:00
Max Moiseev
b9fb3badc8
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-03-22 12:30:24 -07:00
Roman Levenstein
29ad714bb7
Annotate stdlib functions to get a good performance even in resilient mode, when -sil-serialize-all is disabled
...
This commit mostly improves the performance of arrays and ranges.
It does not cover Strings, Dictionaries and Sets yet.
2017-03-16 19:46:11 -07:00
Max Moiseev
835b8809d2
Merge branch 'master' into new-integer-protocols
2017-03-07 16:18:54 -08:00
Nate Cook
c25bf40c26
[stdlib] Various documentation improvements
...
* Revise type(of:)
* Revise withoutActuallyEscaping(_:do:)
* Add slicing / index sharing to Collection
* Other cleanups
2017-02-07 23:02:41 -06:00
Max Moiseev
d128ed42b0
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-19 14:16:32 -08:00
Max Moiseev
195691523f
[stdlib] Eliminating some 'unsafeBitcast' related warnings
2017-01-10 12:36:22 -08:00
Max Moiseev
aecccc7e48
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-09 17:38:04 -08:00
Ben Cohen
578a52627a
Merge branch 'master' into se-147
2017-01-07 13:19:15 -08:00
Max Moiseev
27889c6376
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2017-01-06 15:54:44 -08:00
practicalswift
30a88d38e6
[gardening] Fix recently introduced typos
2017-01-06 21:16:02 +01:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
Ben Cohen
fefc2e40df
Migrate _copyContents to be called from UnsafeMutableBufferPointer with checks for overrun.
2017-01-05 11:59:49 -08:00
Nate Cook
77fc4948cc
[stdlib] Add note about pointer alignment for subtraction
2016-12-20 12:39:01 -06:00
Nate Cook
e070568078
[stdlib] Add documentation for pointer operators
2016-12-15 13:51:32 -06:00
Nate Cook
7494e2045e
[stdlib] Revise unsafe pointers documentation
...
This revises and expands upon documentation for the standard library's
unsafe pointer types. This includes typed and raw pointers and buffers,
the MemoryLayout type, and some other top-level functions.
2016-12-14 14:58:24 -06:00
Max Moiseev
9b2f8858ec
Merge branch 'master' into new-integer-protocols
2016-12-08 09:38:38 -08:00
Maxim Moiseev
bfae2471d6
[stdlib] operators on pointer types to static funcs ( #6100 )
2016-12-06 13:32:32 -08:00
Max Moiseev
356c15cb4a
Merge remote-tracking branch 'origin/master' into new-integer-protocols
2016-12-06 10:35:27 -08:00
Alexis Beingessner
ff82c1e59f
[docs] Change argument name to match docs.
2016-11-30 18:35:54 -05:00
Alexis Beingessner
8e4f98ff42
[docs] downgrade internal notes to normal comments.
2016-11-30 18:35:54 -05:00
Alexis Beingessner
3d0d3e17a9
[docs] Add GEP preconditions to UnsafePointer.
...
Offsets lower to GetElementPointer inbounds, which specifies that it's
Undefined Behaviour for the result to be out of bounds, regardless of if
the result is actually dereferenced.
2016-11-30 18:35:54 -05:00
Max Moiseev
70b2343626
Merge branch 'master' into new-integer-protocols
2016-11-28 15:25:01 -08:00
practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
Max Moiseev
ffc8a37811
Strideable for _Pointer is not necessary in Swift 4
...
All the necessary methods and operators are already implemented for
concrete pointer types more efficiently.
2016-11-16 14:45:33 -08:00
Max Moiseev
76e0a99a37
Merge branch 'master' into new-integer-protocols
2016-10-31 09:29:19 -07:00
practicalswift
cc852042c9
[gardening] Fix accidental trailing whitespace.
2016-10-29 10:22:58 +02:00