Wowbagger and his liquid lunch
f8c58036a4
fix typo in remove(_:)'s documentation
...
"newMember" → "member"
2020-05-22 16:17:34 -04:00
Ben Cohen
e67e8ab0b2
Prespecialize common metadata ( #31925 )
2020-05-21 03:50:34 -07:00
Valeriy Van
a0b6517272
Fixes filter function of RangeReplaceableCollection. Addresses ticket SR-12648
2020-05-20 14:08:26 +02:00
Gwynne Raskind
3ae3a7b459
Restore documentation for the pattern-matching operator as applied to RangeExpressions
...
The previous documentation of this operator in `Range` context was lost sometime during 2017. This new version is a simplified version of the original copy, with substantial inspiration taken from the present-day documentation of the same operator on `Optional`.
Fixes [SR-12842](https://bugs.swift.org/browse/SR-12842 ).
2020-05-20 03:46:48 -05:00
Saleem Abdulrasool
1e74c202ef
build: optimize the build of LLVMSupport
...
Rather than build multiple copies of LLVMSupport (4x!) build it one and
merge it into the various targets. This would ideally not be needed to
be named explicitly everywhere, but that requires using `add_library`
rather than `add_swift_target_library`.
2020-05-19 17:04:59 +00:00
Meghana Gupta
0a77ce33b2
Remove @inline(always) from Array's nonNative getter
...
This forces it to be inlined even in cold paths
2020-05-18 14:36:20 -07:00
Meghana Gupta
a461a48862
stdlib: Make non-native ArrayBuffer.capacity smaller
...
Similar to #28486 in motivation.
Before this change 'count' got lowered to multiple 'endIndex' calls
Fixes rdar://46702232
2020-05-18 13:17:57 -07:00
Robert Widmann
616a787c6b
Merge pull request #31797 from valeriyvan/FixExampleSnippetsSet.swift
...
Fix example snippets Set.swift
2020-05-15 14:16:46 -07:00
Valeriy Van
d57cbce3c0
Fixes example snippets in Set.swift
2020-05-15 06:55:07 +02:00
Robert Widmann
43d1ba9ed9
[Gardening] Shepherd a Fix To SetAlgebra Docs
2020-05-14 11:50:35 -07:00
Alex Martini
710897852a
Remove stray backtick in doc comment.
...
Fixes <rdar://problem/63195315>
2020-05-13 13:11:29 -07:00
Valeriy Van
d6b2d06420
Fixes snippet
2020-05-12 13:51:54 +02:00
Valeriy Van
b59e689b95
Fixes example snippets in FloatingPoint.swift
...
In terms of Swift [-9.5, 2.5, 3.0, 21.25, .nan] != [-9.5, 2.5, 3.0, 21.25, .nan] because Double.nan != Double.nan
2020-05-12 13:47:03 +02:00
Valeriy Van
68ee82c132
Fixes example snippet in Slice.swift
2020-05-11 23:42:24 +02:00
Ben Rimmington
ff264da966
[stdlib] Remove unneeded numericCasts
2020-05-08 06:03:49 +01:00
Joe Groff
c5863ac0f3
SILOptimizer: Constant fold the _kvcKeyPathString of literal key paths.
...
Eliminate the intermediate key path object when a literal key path is passed to a function that
just wants its KVC string to pass down to an ObjC API.
2020-05-07 13:33:01 -07:00
Valeriy Van
9f2e196db0
Fixes example snippets in FloatingPoint.swift
2020-05-05 23:19:09 +02:00
Robert Widmann
23fdde73ac
Merge pull request #31499 from valeriyvan/FixExampleSnippetResult.swift
...
Fixes example snippet in Result.swift
2020-05-04 11:36:04 -07:00
Valeriy Van
5669dbc9d9
Fixes example snippets in UTF16.swift ( #31520 )
2020-05-04 12:52:46 -05:00
Valeriy Van
1e9bc9f408
Fixes example snippets in UnicodeScalarProperties.swift ( #31514 )
2020-05-04 12:49:28 -05:00
Robert Widmann
9ae451d322
Merge pull request #31505 from valeriyvan/FixExampleSnippetsSequenceAlgorithms.swift
...
Fixes example snippets in SequenceAlgorithms.swift
2020-05-04 10:44:38 -07:00
Robert Widmann
08d133cce7
Merge pull request #31512 from valeriyvan/FixExampleSnippetsStringUTF8View.swift
...
Fixes example snippets in StringUTF8View.swift
2020-05-04 10:44:16 -07:00
Robert Widmann
8f05879764
Merge pull request #31513 from valeriyvan/FixExampleSnippetsUnicodeScalar.swift
...
Fixes example snippets in UnicodeScalar.swift
2020-05-04 10:43:59 -07:00
Valeriy Van
35c191acee
Fixes example snippets in UnicodeScalar.swift
2020-05-03 13:01:40 +02:00
Valeriy Van
33a1bac89b
Fixes example snippets in StringUTF8View.swift
2020-05-03 12:32:24 +02:00
Robert Widmann
35e897817f
Merge pull request #31500 from valeriyvan/FixExampleSnippetReverse.swift
...
Fixes example snippet in Reverse.swift
2020-05-02 16:15:15 -07:00
Kyle Macomber
6b14c2a746
[Docs] Clarifies Identifiable requirements ( #31472 )
...
[SR-12528](https://bugs.swift.org/browse/SR-12528 )
rdar://62201744
2020-05-02 13:04:20 -07:00
Valeriy Van
933d8a8073
Fixes example snippets in SequenceAlgorithms.swift
2020-05-02 16:38:56 +02:00
Valeriy Van
9a551ab9d7
Uses default catch
2020-05-02 16:32:36 +02:00
Valeriy Van
7d8c75489d
Fixes example snippet in Reverse.swift
2020-05-02 13:45:56 +02:00
Valeriy Van
75f30676b9
Fixes example snippet in Result.swift
2020-05-02 13:30:49 +02:00
Valeriy Van
9eab9f3913
Fixes example snippets in MutableCollection.swift
2020-05-02 06:15:37 +02:00
swift-ci
fa69a341ae
Merge pull request #31487 from amartini51/master
2020-05-01 19:10:19 -07:00
swift-ci
68e01035f7
Merge pull request #31471 from valeriyvan/FixExampleSnippetKeyValuePairs.swift
2020-05-01 18:22:09 -07:00
swift-ci
82e04f8f48
Merge pull request #31480 from valeriyvan/FixExampleSnippetMemoryLayout.swift
2020-05-01 17:26:41 -07:00
Valeriy Van
55006887d1
Fixes example snippet in ExistentialCollection.swift ( #31462 )
...
* Fixes example snippet in ExistentialCollection.swift
* Removes extra parentheses
2020-05-01 16:40:39 -07:00
Alex Martini
89464353ac
Remove stray backtick in docs.
...
Fixes <rdar://problem/62747693>
2020-05-01 16:01:15 -07:00
Valeriy Van
e34ee7b61c
Fixes example snippet in MemoryLayout.swift
2020-05-01 22:52:34 +02:00
Nate Cook
2938466ecb
Update docs for numericCast ( #31464 )
...
Drops outdated random number generation example and simplifies a bit.
Fixes <rdar://problem/57888487>
2020-05-01 15:14:33 -05:00
Valeriy Van
71f8a4eda6
Fixes example snippet in KeyValuePairs.swift
2020-05-01 21:23:44 +02:00
swift-ci
f503a2d58a
Merge pull request #31450 from valeriyvan/FixExampleSnippetsDictionary.swift
2020-04-30 18:48:39 -07:00
swift-ci
74b4e43bd7
Merge pull request #31334 from valeriyvan/StringUnicodeScalarView
2020-04-30 14:46:17 -07:00
swift-ci
4bf38a1eeb
Merge pull request #31448 from valeriyvan/FixDocCommentCTypes
2020-04-30 14:43:07 -07:00
Valeriy Van
589dd73d39
Fixes example snippets in Dictionary.swift
2020-04-30 22:24:08 +02:00
Valeriy Van
2d6313f919
Adds doc comment to internal func _memcpy in CTypes.swift
2020-04-30 21:48:00 +02:00
Valeriy Van
b90f996824
Fixes doc comment of func _memmove in CTypes.swift
2020-04-30 21:45:56 +02:00
swift-ci
62e5780c78
Merge pull request #31348 from valeriyvan/StringUTF16View
2020-04-30 12:36:08 -07:00
Robert Widmann
bb9a41ef2a
Merge pull request #31405 from valeriyvan/FixSnippetsCharacterProperties
...
Fixes example snippets in CharacterProperties.swift
2020-04-30 10:33:48 -07:00
Valeriy Van
d30661dace
Fixes example snippets in CString.swift ( #31407 )
...
* Fixes example snippets in CString.swift
* Fixes example snippet in CString.swift
2020-04-29 16:43:27 -07:00
tbkka
70b3f01504
Reduce generics in Codable ( #31278 )
...
In particular, types generic on the CodingKey produce a lot of runtime metadata.
Reducing the number of such types should help with some of the reported memory
bloat from Codable.
Based on a suggestion of @jckarter
Resolves rdar://62620208
2020-04-29 15:23:26 -07:00