Skip to content

Merge 2020-09-14 into tensorflow #33959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1,090 commits into from
Sep 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1090 commits
Select commit Hold shift + click to select a range
4a62800
Sema: Remove old pre-ASTScope logic from TypeCheckStmt.cpp
slavapestov Sep 3, 2020
70b68d6
[stdlib] Include Float16 among source types recognized for generic co…
xwu Sep 4, 2020
a7a8d9f
[AST] Remove NewBodyKind default
hamishknight Sep 4, 2020
9b8b206
Add AbstractFunctionDecl::getTypecheckedBody
hamishknight Sep 4, 2020
8fd6d7e
Add some missing calls to setThrows
hamishknight Sep 4, 2020
28246a7
[SILGen] Use getTypecheckedBody
hamishknight Sep 4, 2020
e4f6041
[ConstraintSystem] Record generic fix if destination of a pointer con…
xedin Sep 4, 2020
6489e1a
[Concurrency] Fix nested await/try parsing and effects checking.
DougGregor Sep 4, 2020
2b67a9d
Merge pull request #33774 from compnerd/timeout
compnerd Sep 4, 2020
903a06f
Merge pull request #33802 from nkcsgexi/remark-sdk-build-versions
nkcsgexi Sep 4, 2020
b604635
🤮
xwu Sep 4, 2020
193cf0d
Code review feedback from @davidungar
slavapestov Sep 4, 2020
6fbbc49
Delete build-windows-rebranch.bat
shahmishal Sep 5, 2020
11154b1
Merge pull request #33807 from DougGregor/concurrency-nested-await-try
DougGregor Sep 5, 2020
3f84fe4
Merge pull request #33801 from xwu/generic-conversion-performance
xwu Sep 5, 2020
a7e8dbf
Merge pull request #33814 from apple/shahmishal/remove-build-windows-…
shahmishal Sep 5, 2020
4fa57ae
[serialization] Refactor from large SILInstruction loop, writeNoOpera…
gottesmm Sep 4, 2020
56f6d9e
Merge pull request #33805 from slavapestov/remove-enable-astscope-loo…
slavapestov Sep 5, 2020
c54fb33
[opt-remark] Infer the source loc retain, release even if they have n…
gottesmm Sep 5, 2020
1acecd1
[test][IRGen] Fix check on local_extern test.
3405691582 Sep 5, 2020
38e724b
Merge pull request #33809 from xedin/rdar-68254165
xedin Sep 5, 2020
26b9e0e
Merge pull request #33815 from gottesmm/pr-0bf456cc2c826eabf3ff3e5543…
swift-ci Sep 5, 2020
60b7c57
[benchmark] Add mock floating-point types for conversion benchmarks
xwu Sep 5, 2020
191a4f8
[Concurrency] Split @objc checking into a separate test file.
DougGregor Sep 4, 2020
fbdd1eb
Platform: improve WinSDK modulemap to repair build
compnerd Sep 5, 2020
713b57b
Frontend: Remove -lazy-astscopes flag
slavapestov Sep 5, 2020
b82c57a
[Sema] Require function builders to have at least one buildBlock method
Jumhyn Sep 4, 2020
c89b5ac
[serialization] Rename ResultVal -> ResultInst.
gottesmm Sep 5, 2020
1757893
Merge pull request #33820 from gottesmm/pr-2022a20c73c213c8d5041a6de0…
gottesmm Sep 5, 2020
cf9be38
Merge pull request #33816 from 3405691582/FixLocalExtern
compnerd Sep 5, 2020
b9d1b98
Merge pull request #33489 from compnerd/additional-paths
compnerd Sep 5, 2020
44a7038
[benchmark] Address review comments on FP conversion benchmarks
xwu Sep 5, 2020
f0a6d6f
Merge pull request #33803 from xwu/fp-init-specialization
xwu Sep 5, 2020
ea5604e
Merge pull request #33823 from compnerd/foundation
compnerd Sep 5, 2020
c6a266e
Merge pull request #29735 from owenv/multiple-varargs
owenv Sep 5, 2020
93d4854
[test][IRGen] Maybe Windows needs dso_local.
3405691582 Sep 5, 2020
cc511c2
Merge pull request #33824 from gottesmm/pr-1f4572f8ac489c51f79eaddae5…
gottesmm Sep 5, 2020
923d6ed
Merge pull request #33827 from 3405691582/LocalExternTestDsoLocal
xedin Sep 5, 2020
7128611
AST: align `ImportedModule` to 64-bits
compnerd Sep 6, 2020
b1c4951
[userdocs] Flesh out alternatives/workarounds for protocol type non-c…
xwu Sep 6, 2020
bec3136
Sema: Unqualified lookup either needs a source location or a top-leve…
slavapestov Sep 5, 2020
658d4bf
SourceKit: Refactor walkRelatedDecls() to not use unqualified lookup
slavapestov Sep 5, 2020
83f49b3
AST: Remove old unqualified lookup implementation
slavapestov Sep 5, 2020
14aaa2e
[docs] Minor revision of trailing closure matching edu note
xwu Sep 6, 2020
680682f
[docs] Update educational note for accuracy about `Error` requirements
xwu Sep 6, 2020
87e1a13
Merge pull request #33821 from xwu/more-fp-conversion-benchmarks
swift-ci Sep 6, 2020
765dd47
Merge pull request #33822 from slavapestov/remove-old-unqualified-lookup
slavapestov Sep 6, 2020
3692751
[Benchmark] Fix build failure on armv7 by guarding Float80 availability
theblixguy Sep 7, 2020
4103cb8
[docs] Restore original wording in two places about trailing closure …
xwu Sep 7, 2020
537017a
Merge pull request #33836 from theblixguy/chore/fix-benchmark-float80
xwu Sep 7, 2020
9685179
Merge pull request #33324 from kateinoigakukun/katei/swift-module-sum…
MaxDesiatov Sep 7, 2020
df0117e
[docs] Address typo in trailing closure education note
xwu Sep 7, 2020
3c5322d
[docs] Deprecate Python 2 in Windows build instructions (#33819)
stevapple Sep 7, 2020
f8d8005
[Changelog] Add entries for SE-0279 and SE-0286 (#33729)
Jumhyn Sep 7, 2020
8c2e423
Merge pull request #33834 from xwu/trailing-closure-edu
swift-ci Sep 7, 2020
87906df
Add missing SWIFT_FALLTHROUGH to the tryCastToString
shabalind Sep 7, 2020
edf8947
Update WindowsBuild.md
compnerd Sep 7, 2020
79a2ab0
[ConstraintSystem] Record `unable to infer base` only if hole origina…
xedin Sep 7, 2020
6aebda5
Merge pull request #33840 from apple/compnerd-windows-build-rules
compnerd Sep 7, 2020
a6a1f8f
caches: add a cache for building just the runtime on Windows
compnerd Sep 5, 2020
4b3d15d
Update WindowsBuild.md
compnerd Sep 7, 2020
f40fd36
[stdlib] Add another fast path for generic floating-point conversion
xwu Sep 5, 2020
9a6900a
[stdlib] Refactor generic floating-point conversion fast paths
xwu Sep 7, 2020
4f464ff
[Localization] Extract testing fixture and diagnostic definitions int…
xedin Sep 8, 2020
495087f
[sil-opt] Fix to satisfy all trapping instruction case at SILInstruct…
freddi-kit Sep 6, 2020
0ec6eb2
SimplifyCFG: Handle checked_cast_addr_br with consumption kind copy_o…
eeckstein Sep 7, 2020
0baf844
[Localization] Expose a way to create temporary files through `Locali…
xedin Sep 8, 2020
dbe7995
[Localization] Add localization serialization tests
xedin Sep 8, 2020
d84bab0
Merge pull request #33839 from eeckstein/improve-cast-optimizer
eeckstein Sep 8, 2020
6eebf61
Merge pull request #33845 from apple/compnerd-swiftpm-pd-libs
compnerd Sep 8, 2020
45d69d5
[stdlib] Use 'truncatingIfNeeded:' in floating-point conversion fast …
xwu Sep 7, 2020
643834e
[stdlib] Simplify generic floating-point conversion fast paths
xwu Sep 8, 2020
db6e3af
[IDE] Fix a typo (#33841)
theblixguy Sep 8, 2020
7f16910
[docs] Drop a word based on reviewer feedback
xwu Sep 8, 2020
4247b60
Merge pull request #33417 from adrian-prantl/55412920
adrian-prantl Sep 8, 2020
295b3d4
Merge pull request #33852 from xedin/localization-tests
xedin Sep 8, 2020
6a85fa7
[benchmark] Delete two benchmarks and add generic floating-point conv…
xwu Sep 8, 2020
0f18948
[Concurrency] Allow @objc async methods.
DougGregor Sep 7, 2020
daf9e2d
[Concurrency] Print @objc async declarations as Objective-C declarati…
DougGregor Sep 7, 2020
8dc8532
[Concurrency] Ban asynchronous methods returning 'Self' from being @objc
DougGregor Sep 8, 2020
d2b70e4
Merge pull request #33811 from rintaro/sourcekit-completion-globalconfig
rintaro Sep 8, 2020
ed30712
Fixes example snippet in OutputStream.swift (#33844)
valeriyvan Sep 8, 2020
ee660c6
[CodeCompletion] Remove old DotExpr completion handling code - it's u…
Sep 8, 2020
2e03264
Merge pull request #33842 from xedin/rdar-68254165-followup
xedin Sep 8, 2020
9b8fb7d
[CodeCompletion] Rename a few types/methods for clarity plus other sm…
Sep 8, 2020
03adbe3
Merge pull request #33837 from DougGregor/concurrency-objc-async
DougGregor Sep 8, 2020
b5759c9
[Concurrency] Allow overload 'async' with non-async and disambiguate …
DougGregor Sep 8, 2020
cbb7228
[Sema] Evaluate SPI groups for all decls, not only public ones
xymus Sep 8, 2020
d60116d
[CodeCompletion] Remove unused forward declaration and fix up an out-…
Sep 9, 2020
cd3440e
Merge pull request #33832 from xwu/existential-edu-part-2
xwu Sep 9, 2020
7a06792
[CodeCompletion] Remove unused field in CodeCompletionCallbacksImpl (…
Sep 9, 2020
14e6338
[AutoDiff] Generate transparent ossa reabstraction thunks. (#33854)
dan-zheng Sep 9, 2020
0ceaa58
[AutoDiff] Fix forward-mode crashes related to tangent buffers (#33633)
efremale Sep 9, 2020
e5d587a
[Constraint system] Cope with implicit patterns in closure checks.
DougGregor Sep 9, 2020
f467c0a
[Concurrency] Add more tests for async overloading.
DougGregor Sep 9, 2020
7ed32b8
[Concurrency] Add a test for async ranking over optional promotion.
DougGregor Sep 9, 2020
3fe3500
[docs] Add First Pull Request guide and Getting Started guide.
varungandhi-apple May 24, 2020
ae8db93
[docs] Revise documentation building instructions and move to FAQ.md.
varungandhi-apple Sep 6, 2020
d647794
[cxx-interop] Replace inline member "operator+" with "operator-".
zoecarver Sep 9, 2020
7c81f49
Merge pull request #33798 from Jumhyn/function-builder-static-buildblock
DougGregor Sep 9, 2020
56f1a55
Merge pull request #33797 from tbkka/tbkka/dynamicCastRework-Specific…
swift-ci Sep 9, 2020
324ba39
Merge pull request #33853 from xwu/benchmark-to-lit-test
xwu Sep 9, 2020
ba06cfa
[docs] Remove the /docs/Refactoring.md file
benrimmington Sep 9, 2020
1110962
Merge pull request #33862 from DougGregor/concurrency-async-overloading
DougGregor Sep 9, 2020
78c957f
Move fallthrough one line up
shabalind Sep 9, 2020
d50bc21
Merge pull request #33786 from varungandhi-apple/vg-doc-new-starter-g…
varungandhi-apple Sep 9, 2020
9876513
[Gardening] Document a Strange Sort
CodaFi Sep 9, 2020
389d099
[stdlib] Silence a few assert related warnings
kastiglione Sep 9, 2020
5f98d39
Merge pull request #33867 from benrimmington/docs-refactoring-placeho…
akyrtzi Sep 9, 2020
f095eee
Stop ReplaceOpaqueTypesWithUnderlyingTypes recursion if it hits a fix…
jckarter Sep 9, 2020
7dcb0ea
Merge pull request #33861 from xymus/spi-non-public
xymus Sep 9, 2020
7b0e46b
[ConstraintSystem] Adjust impact of a missing member fix
xedin Sep 9, 2020
b15c1fd
[CodeCompletion] Deduplicate the two isMemberCompletion functions in …
Sep 9, 2020
c25d6ff
ModuleInterface: avoid verifying textual interfaces without -enable-l…
nkcsgexi Sep 9, 2020
f9c70b4
Merge pull request #33863 from apple/stdlib-Silence-a-few-assert-rela…
kastiglione Sep 9, 2020
58fcc46
[docs] Fix typos and broken links.
varungandhi-apple Sep 9, 2020
296d252
[docs] Add link to FAQ in README.
varungandhi-apple Sep 9, 2020
b6558fd
[docs] Describe using `git grep` in FAQ.
varungandhi-apple Sep 9, 2020
49e7c61
[Diagnostics] Diagnose comparisons with '.nan' and suggest using '.is…
theblixguy Sep 9, 2020
0e53fea
Merge pull request #33873 from nkcsgexi/68223978
nkcsgexi Sep 9, 2020
f7b826f
Merge pull request #33872 from jckarter/replace-opaque-types-terminat…
jckarter Sep 9, 2020
9de171a
[AutoDiff] Add missing `REQUIRES: asserts` to test. (#33874)
dan-zheng Sep 9, 2020
b59910e
Add OpenBSD to PlatformKinds.def.
3405691582 Aug 21, 2020
cd7570f
ManagedBuffer capacity is unavailable on OpenBSD.
3405691582 Aug 21, 2020
69c11b6
[Serialization] Remove documentation for the extInfo parameter
xymus Sep 9, 2020
5dad735
[docs] Fix typos in CppInteroperabilityManifesto.md.
dan-zheng Sep 9, 2020
4f5d4d8
[Gardening] Add re-usable copy* utility methods to use in code comple…
bnbarham Sep 3, 2020
a1ef6e4
Merge pull request #33749 from nathawes/new-member-completion
Sep 10, 2020
c16ddb5
Merge pull request #33882 from xymus/extinfo-doc
xymus Sep 10, 2020
c8cfd2c
Merge pull request #33843 from compnerd/runtime-only
shahmishal Sep 10, 2020
22a350b
[Concurrency] Add parsing support for actor classes.
DougGregor Sep 9, 2020
a532756
[AutoDiff] Split `forward_mode.swift` test into separate files. (#33728)
efremale Sep 10, 2020
a4dfb35
Merge pull request #33866 from zoecarver/cxx/tests/member-inline-minu…
swift-ci Sep 10, 2020
3fe7abe
WinSDK: add Shell32 (#33849)
dduan Sep 10, 2020
4865207
Merge pull request #33826 from xwu/float-like-a-butterfly
xwu Sep 10, 2020
0e68e4d
Fix WindowsBuild.md
stevapple Sep 10, 2020
d80d7cf
Merge pull request #33838 from shabalind/topic/fix-fallthrough-warning
compnerd Sep 10, 2020
084ff3d
Avoid using a resilient offset in swift_readAtKeyPath (#33847)
kubamracek Sep 10, 2020
a61e704
Witness tables have special ptrauth requirements (#33876)
tbkka Sep 10, 2020
2676839
[sil-opt] added test for unconditional_checked_cast_addr and uncondit…
freddi-kit Sep 10, 2020
3bb4f11
[Sema] Fix detection of required availability attributes on extensions
xymus Aug 29, 2020
ad7afe4
[Sema] @_spi decls don't require an availability attribute
xymus Sep 10, 2020
01547a6
Merge pull request #33887 from stevapple/windows-build-fix
CodaFi Sep 10, 2020
a084d04
Merge pull request #31686 from 3405691582/ManagedBuffer_WithoutMalloc…
lorentey Sep 10, 2020
55e7050
Merge pull request #32311 from Molanda/string_varargs_object_protocol
lorentey Sep 10, 2020
0d0dd53
[Sema] Support pattern binding decls with -require-explicit-availability
xymus Aug 29, 2020
8248020
[Sema] Require availability for inits and subscripts in extensions
xymus Sep 10, 2020
b8e9684
[stdlib] Correct shell32 casing
smeenai Sep 10, 2020
e885a6d
Merge pull request #33870 from xedin/rdar-68155466
xedin Sep 10, 2020
1926cc7
Optimize ASTContext::getOpenedArchetypeSignature
AnthonyLatsis Sep 9, 2020
23b65ed
[docs] Properly reflect diversity in Swift programmers in emoji.
varungandhi-apple Sep 10, 2020
7f26d97
Don't use resilient getter for playgroundPrintHook when resilience is…
kubamracek Sep 10, 2020
8cae50a
AssociatedTypeInference: Generalize computeFixedTypeWitness to consid…
AnthonyLatsis Sep 10, 2020
1d4debe
Merge pull request #33869 from CodaFi/the-right-sort-of-stuff
CodaFi Sep 10, 2020
3457709
Merge pull request #33890 from smeenai/master
CodaFi Sep 10, 2020
107ba0b
Merge pull request #33884 from bnbarham/completion-copy-cleanup
bnbarham Sep 10, 2020
400accb
Merge pull request #33871 from AnthonyLatsis/o-some
swift-ci Sep 10, 2020
b5252eb
Fix incorrect build type regression from ef89b0dc51d (#33894)
kubamracek Sep 11, 2020
c3f801b
Merge pull request #33878 from varungandhi-apple/vg-doc-address-revie…
swift-ci Sep 11, 2020
9d77017
Merge pull request #33831 from compnerd/alignment
CodaFi Sep 11, 2020
b2fa269
Merge pull request #33886 from AnthonyLatsis/fixed-means-same-type
swift-ci Sep 11, 2020
5afe2f9
[NFC] Move ImportKind to a new Import.h header
beccadax Aug 30, 2020
cfd75a1
[AutoDiff] Fix forward-mode differentiation ownership verification fa…
dan-zheng Sep 11, 2020
c8523e5
[shims] Add AppKit overlay shims
lorentey Sep 11, 2020
f234da6
[Changelog] Add SE-0284
owenv Sep 5, 2020
1ed3cae
[NFC] Add new ImportPath types
beccadax Aug 31, 2020
cff4ddf
[NFC] Adopt new ImportPath types and terminology
beccadax Sep 11, 2020
6da428a
[NFC] Rename “DeclPath” -> “AccessPath”
beccadax Aug 31, 2020
f2249e9
[NFC] Define “access path” in the lexicon
beccadax Aug 31, 2020
61f716d
[NFC] Get rid of ASTContext::getModuleByName dups
beccadax Aug 31, 2020
7bfeeeb
[NFC] Add helper to parse import paths in strings
beccadax Aug 31, 2020
cce0411
[NFC] Add ASTContext::getModuleByIdentifier()
beccadax Aug 31, 2020
4be67a6
[NFC] Further simplify ModuleFile::associateWithFileContext
beccadax Aug 31, 2020
6f28536
[NFC] Delete obsolete AccessPathTy-based code
beccadax Aug 31, 2020
e00ba43
[Concurrency] Implement basic actor isolation rules.
DougGregor Sep 11, 2020
e9650cf
Merge pull request #33716 from brentdax/access-path-denied
swift-ci Sep 11, 2020
bb77323
[Parse][CodeCompletion] Stop code completion within a closure causing…
Sep 9, 2020
1d62d34
SIL: fix a memory leak, related to zombie functions
eeckstein Sep 10, 2020
eb5a79b
SIL: Remove the bump pointer allocator for zombie function names from…
eeckstein Sep 10, 2020
6f2cfa6
SILBasicBlock: a small refactoring - NFC
eeckstein Sep 10, 2020
170d9e9
SIL: Let SILGlobalVariables be destroyed.
eeckstein Sep 10, 2020
5f1b008
SIL: fix memory leaks in SILParser
eeckstein Sep 10, 2020
09b26e8
SILParser: don't accept instructions after "unreachable"
eeckstein Sep 11, 2020
61f2e7b
SILVerifier: remove the unused -verify-skip-unreachable-must-be-last …
eeckstein Sep 11, 2020
56c857a
SIL: Check for leaked instructions in the SILVerifier and in the SILM…
eeckstein Sep 10, 2020
9fb7769
Merge pull request #33888 from eeckstein/fix-leaks
eeckstein Sep 11, 2020
093c214
SILBuilder: require an insertion point when creating instructions.
eeckstein Sep 11, 2020
aa0f8e6
Add a SWIFT_STDLIB_OS_VERSIONING flag to avoid querying OS version at…
kubamracek Sep 11, 2020
efdc358
Merge pull request #33806 from hamishknight/typed-def
hamishknight Sep 11, 2020
266412c
Merge pull request #33909 from eeckstein/silbuilder-fix
eeckstein Sep 11, 2020
680f028
[CI] Re-enable test (#33900)
yln Sep 11, 2020
0a1be02
[Concurrency] Improve/fix some naming for actor isolation checking.
DougGregor Sep 11, 2020
79e6c61
[Concurrency] Treat actor-isolated references from closures as errors.
DougGregor Sep 11, 2020
c0d2ea4
Merge pull request #33892 from xymus/require-less-availability
xymus Sep 11, 2020
d9a13bc
Merge pull request #33883 from dan-zheng/fix-typos
swift-ci Sep 11, 2020
25b7949
[Localization] Tests: Track and remove temporary files on fixture tea…
xedin Sep 11, 2020
f0accb0
[test] Cover a few more function builder cases in test/IDE/complete_a…
Sep 11, 2020
cedef16
[NFC] Mark SourceManager::getIDForBufferIdentifier const
CodaFi Sep 11, 2020
d4b2e16
Model ObjCHeader Inputs
CodaFi Sep 11, 2020
618b0b9
Add doesActionPerformEndOfPipelineActions
CodaFi Sep 11, 2020
8d336a3
[AutoDiff] NFC: gardening. (#33914)
dan-zheng Sep 11, 2020
099de9d
[Concurrency] Assume non-escaping closures don't run concurrently.
DougGregor Sep 11, 2020
a4bf738
[stdlib] Align availability of a Float16 initializer with its type
xymus Sep 8, 2020
b9472f2
Update the TensorFlow CI info (#33920)
shahmishal Sep 11, 2020
948f551
Merge github/tensorflow into copy of github/master (using imerge)
Sep 11, 2020
fec67d6
AST: Add a GenericParamList::walk() method
slavapestov Sep 10, 2020
d711c6d
AST: Add a GenericParamList::lookUpGenericParam() method
slavapestov Sep 11, 2020
8f7c59e
Sema: Plumb a GenericParamList through type resolution for SIL parsing
slavapestov Sep 11, 2020
31edc6c
Merge pull request #33916 from xedin/explicitly-delete-files-at-teardown
xedin Sep 11, 2020
afde159
Drop assert(Atomicity::Atomic) from visitRetainValueAddrInst+visitRel…
kubamracek Sep 11, 2020
4b389cd
Merge pull request #33907 from nathawes/make-hascodecompletion-flag-n…
Sep 11, 2020
3c49e46
Merge pull request #33906 from DougGregor/concurrency-actors
DougGregor Sep 11, 2020
99147a8
Merge pull request #33917 from CodaFi/taking-a-header
CodaFi Sep 11, 2020
ce5f231
Remove obsolete tests
Sep 11, 2020
aef50ab
Merge pull request #33919 from xymus/fix-availability-float16
xymus Sep 11, 2020
dbdbbff
SILParser: Overhaul to not rely on parse-time lookup
slavapestov Sep 11, 2020
6f68c4c
Merge pull request #33828 from owenv/284-changelog
owenv Sep 12, 2020
513d108
[NFC] Drop SourceFileKind from getMainSourceFile
CodaFi Sep 12, 2020
8b725d8
[NFC] Inline inputFileKindCanHaveTBDValidated
CodaFi Sep 12, 2020
c3e33be
[NFC] Drop getSourceFileKind
CodaFi Sep 12, 2020
75116e9
[NFC] Inline CompilerInstance::setUpForInput
CodaFi Sep 12, 2020
66ad0c1
[Gardening] Document InputFile
CodaFi Sep 12, 2020
d9d929a
Revert "Start using optimization (-O0/-O2/-O3/-Os) and debug (-g) fla…
kubamracek Sep 12, 2020
c7f0f24
[NFC] Refactor InputFile Construction
CodaFi Sep 12, 2020
f103405
Use the new InputFile Constructor
CodaFi Sep 12, 2020
ac0814e
[Gardening] Drop some unused accessors
CodaFi Sep 12, 2020
9fd5918
Swap InputFileKind for ParseInputMode
CodaFi Sep 12, 2020
0a5a6f1
[NFC] Drop InputFileKind
CodaFi Sep 12, 2020
a8766cc
[NFC] Refactor InputFile's Accessors
CodaFi Sep 12, 2020
9b89c0c
[NFC] Consolidate SIL LangOpts Parsing
CodaFi Sep 12, 2020
c5a6cd6
[NFC] Refactor getPrimaryOrMainSourceFile
CodaFi Sep 12, 2020
3287c4b
[NFC] Refactor Main File Computation
CodaFi Sep 12, 2020
f9e0294
Restore InputMode For Module Interface
CodaFi Sep 12, 2020
7257627
Merge pull request #33903 from lorentey/appkit-shims
shahmishal Sep 12, 2020
1298f71
Merge pull request #33922 from slavapestov/sil-parser-overhaul
slavapestov Sep 12, 2020
e6f7b9d
Merge pull request #33926 from CodaFi/just-my-kind
CodaFi Sep 12, 2020
950eb74
ABI Checker: use lower-cased decl keywords to be consistent with sour…
nkcsgexi Sep 12, 2020
c56ae1e
Merge pull request #33851 from freddi-kit/fix/may-trap-condition
xedin Sep 13, 2020
88167e7
[test] diff --strip-trailing-cr is non-standard.
3405691582 Feb 29, 2020
c11cb44
Merge pull request #33928 from nkcsgexi/lower-case-keyword
nkcsgexi Sep 14, 2020
3d4c3cc
Merge s4tf work from apple/swift:tensorflow into tensorflow-stage
Sep 14, 2020
76a7160
Merge pull request #33931 from 3405691582/SedThenDiff
compnerd Sep 14, 2020
8e2a5bf
Merge apple/swift:master into tensorflow-stage (using imerge)
Sep 14, 2020
35604e9
Merge pull request #33943 from google/tensorflow-stage
texasmichelle Sep 15, 2020
582b5ba
update-checkout-config.json: adjust for tensorflow merge
texasmichelle Sep 15, 2020
f871e46
Add arg to install_toolchain_path()
texasmichelle Sep 15, 2020
4a2157e
Merge pull request #33960 from texasmichelle/install_toolchain_path_args
texasmichelle Sep 15, 2020
0165378
Update llvm hash in update-checkout-config.json
texasmichelle Sep 16, 2020
075535b
Merge pull request #33963 from texasmichelle/update-llvm-hash
texasmichelle Sep 16, 2020
28ca98e
Merge branch 'tensorflow' into tensorflow-merge
dan-zheng Sep 16, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
brew "cmake"
brew "ninja"
brew "sccache"
123 changes: 106 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,114 @@ CHANGELOG
<details>
<summary>Note: This is in reverse chronological order, so newer entries are added to the top.</summary>

| Version | Released | Toolchain |
| :--------------------- | :--------- | :---------- |
| [Swift 5.3](#swift-53) | | |
| [Swift 5.2](#swift-52) | 2020-03-24 | Xcode 11.4 |
| [Swift 5.1](#swift-51) | 2019-09-20 | Xcode 11.0 |
| [Swift 5.0](#swift-50) | 2019-03-25 | Xcode 10.2 |
| [Swift 4.2](#swift-42) | 2018-09-17 | Xcode 10.0 |
| [Swift 4.1](#swift-41) | 2018-03-29 | Xcode 9.3 |
| [Swift 4.0](#swift-40) | 2017-09-19 | Xcode 9.0 |
| [Swift 3.1](#swift-31) | 2017-03-27 | Xcode 8.3 |
| [Swift 3.0](#swift-30) | 2016-09-13 | Xcode 8.0 |
| [Swift 2.2](#swift-22) | 2016-03-21 | Xcode 7.3 |
| [Swift 2.1](#swift-21) | 2015-10-21 | Xcode 7.1 |
| [Swift 2.0](#swift-20) | 2015-09-17 | Xcode 7.0 |
| [Swift 1.2](#swift-12) | 2015-04-08 | Xcode 6.3 |
| [Swift 1.1](#swift-11) | 2014-12-02 | Xcode 6.1.1 |
| [Swift 1.0](#swift-10) | 2014-09-15 | Xcode 6.0 |
| Version | Released | Toolchain |
| :------------------------ | :--------- | :---------- |
| [Swift Next](#swift-next) |
| [Swift 5.3](#swift-53) | | |
| [Swift 5.2](#swift-52) | 2020-03-24 | Xcode 11.4 |
| [Swift 5.1](#swift-51) | 2019-09-20 | Xcode 11.0 |
| [Swift 5.0](#swift-50) | 2019-03-25 | Xcode 10.2 |
| [Swift 4.2](#swift-42) | 2018-09-17 | Xcode 10.0 |
| [Swift 4.1](#swift-41) | 2018-03-29 | Xcode 9.3 |
| [Swift 4.0](#swift-40) | 2017-09-19 | Xcode 9.0 |
| [Swift 3.1](#swift-31) | 2017-03-27 | Xcode 8.3 |
| [Swift 3.0](#swift-30) | 2016-09-13 | Xcode 8.0 |
| [Swift 2.2](#swift-22) | 2016-03-21 | Xcode 7.3 |
| [Swift 2.1](#swift-21) | 2015-10-21 | Xcode 7.1 |
| [Swift 2.0](#swift-20) | 2015-09-17 | Xcode 7.0 |
| [Swift 1.2](#swift-12) | 2015-04-08 | Xcode 6.3 |
| [Swift 1.1](#swift-11) | 2014-12-02 | Xcode 6.1.1 |
| [Swift 1.0](#swift-10) | 2014-09-15 | Xcode 6.0 |

</details>

Swift Next
----------

* [SE-0284][]:

Functions, subscripts, and initializers may now have more than one variadic parameter, as long as all parameters which follow variadic parameters are labeled. This makes declarations like the following valid:

```swift
func foo(_ a: Int..., b: Double...) { }

struct Bar {
subscript(a: Int..., b b: Int...) -> [Int] { a + b }

init(a: String..., b: Float...) { }
}
```

* [SE-0287][]:

Implicit member expressions now support chains of member accesses, making the following valid:

```swift
let milky: UIColor = .white.withAlphaComponent(0.5)
let milky2: UIColor = .init(named: "white")!.withAlphaComponent(0.5)
let milkyChance: UIColor? = .init(named: "white")?.withAlphaComponent(0.5)
```

As is the case with the existing implicit member expression syntax, the resulting type of the chain must be the same as the (implicit) base, so it is not well-formed to write:

```swift
let cgMilky: CGColor = .white.withAlphaComponent(0.5).cgColor
```

(Unless, of course, appropriate `white` and `withAlphaComponent` members were defined on `CGColor`.)

Members of a "chain" can be properties, method calls, subscript accesses, force unwraps, or optional chaining question marks. Furthermore, the type of each member along the chain is permitted to differ (again, as long as the base of the chain matches the resulting type) meaning the following successfully typechecks:

```swift
struct Foo {
static var foo = Foo()
static var bar = Bar()

var anotherFoo: Foo { Foo() }
func getFoo() -> Foo { Foo() }
var optionalFoo: Foo? { Foo() }
subscript() -> Foo { Foo() }
}

struct Bar {
var anotherFoo = Foo()
}

let _: Foo? = .bar.anotherFoo.getFoo().optionalFoo?.optionalFoo![]
```

Swift 5.3
---------

* [SE-0279][] & [SE-0286][]:

Trailing closure syntax has been extended to allow additional labeled closures to follow the initial unlabeled closure:

```swift
// Single trailing closure argument
UIView.animate(withDuration: 0.3) {
self.view.alpha = 0
}
// Multiple trailing closure arguments
UIView.animate(withDuration: 0.3) {
self.view.alpha = 0
} completion: { _ in
self.view.removeFromSuperview()
}
```

Additionally, trailing closure arguments now match the appropriate parameter according to a forward-scan rule (as opposed to the previous backward-scan rule):

```swift
func takesClosures(first: () -> Void, second: (Int) -> Void = { _ in }) {}

takesClosures {
print("First")
}
```

In the above example, the trailing closure argument matches parameter `first`, whereas pre-Swift-5.3 it would have matched `second`. In order to ease the transition to this new rule, cases in which the forward-scan and backward-scan match a single trailing closure to different parameters, the backward-scan result is preferred and a warning is emitted. This is expected to be upgraded to an error in the next major version of Swift.

* [SR-7083][]:

Property observers such as `willSet` and `didSet` are now supported on `lazy` properties:
Expand Down Expand Up @@ -8070,7 +8155,11 @@ Swift 1.0
[SE-0268]: <https://github.com/apple/swift-evolution/blob/master/proposals/0268-didset-semantics.md>
[SE-0269]: <https://github.com/apple/swift-evolution/blob/master/proposals/0269-implicit-self-explicit-capture.md>
[SE-0276]: <https://github.com/apple/swift-evolution/blob/master/proposals/0276-multi-pattern-catch-clauses.md>
[SE-0279]: <https://github.com/apple/swift-evolution/blob/master/proposals/0279-multiple-trailing-closures.md>
[SE-0280]: <https://github.com/apple/swift-evolution/blob/master/proposals/0280-enum-cases-as-protocol-witnesses.md>
[SE-0284]: <https://github.com/apple/swift-evolution/blob/master/proposals/0284-multiple-variadic-parameters.md>
[SE-0286]: <https://github.com/apple/swift-evolution/blob/master/proposals/0286-forward-scan-trailing-closures.md>
[SE-0287]: <https://github.com/apple/swift-evolution/blob/master/proposals/0287-implicit-member-chains.md>

[SR-75]: <https://bugs.swift.org/browse/SR-75>
[SR-106]: <https://bugs.swift.org/browse/SR-106>
Expand Down
16 changes: 0 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -648,22 +648,6 @@ if("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC" OR "${CMAKE_CXX_SIMULATE_ID}" STREQU
set(SWIFT_COMPILER_IS_MSVC_LIKE TRUE)
endif()

if(NOT SWIFT_COMPILER_IS_MSVC_LIKE)
# CMake's default for CMAKE_CXX_FLAGS_RELEASE is "-O3 -DNDEBUG". Let's avoid "-O3" for consistency
# between Release and RelWithDebInfo. Dropping -DNDEBUG from this setting is blocked by triggering
# a test failure of Swift-Unit :: Syntax/./SwiftSyntaxTests/TypeSyntaxTests.MetatypeTypeWithAPIs
# because unit tests don't currently explicitly set -DNDEBUG/-UNDEBUG.
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")

_compute_lto_flag("${SWIFT_TOOLS_ENABLE_LTO}" _lto_flag_out)
if(_lto_flag_out)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_RELEASE} -gline-tables-only")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -gline-tables-only")
endif()
else()

endif()

#
# Configure SDKs.
#
Expand Down
Loading