Skip to content

[pull] master from apple:master #38

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 3,804 commits into from
Feb 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3804 commits
Select commit Hold shift + click to select a range
0dcb78f
Merge pull request #29389 from xedin/rdar-50666427
xedin Jan 24, 2020
96cd8fa
Merge pull request #29408 from atrick/fix-escape-bridge
atrick Jan 24, 2020
7b611fc
Merge pull request #29410 from atrick/escape-verify-unmapped
atrick Jan 24, 2020
2d08a3f
[AutoDiff upstream] Add SIL derivative function type calculation. (#2…
dan-zheng Jan 24, 2020
8c17687
Merge pull request #29405 from dan-zheng/autodiff-upstream-sil-diff-p…
dan-zheng Jan 24, 2020
d608220
negative test for SR-12076: completion crash
Jan 24, 2020
449651a
Merge pull request #29424 from Rostepher/reformat-backtrace-check-script
Rostepher Jan 24, 2020
5669985
Merge pull request #29419 from DougGregor/function-builder-if-available
DougGregor Jan 24, 2020
27cd8d2
[Constraint system] Save contextual types into each Solution
DougGregor Jan 24, 2020
465e5da
[Constraint system] Set the contextual type for condition expressions.
DougGregor Jan 24, 2020
5285bf7
Turn off speculative devirtualization by default. (#29359)
meg-gupta Jan 24, 2020
27c6de1
Merge pull request #29421 from Rostepher/remove-build-overlay-script
Rostepher Jan 24, 2020
a3de0e3
Merge pull request #29422 from Rostepher/remove-error-enum-to-cases-s…
Rostepher Jan 24, 2020
ba113be
Merge pull request #29423 from Rostepher/remove-guard-malloc-swift-sc…
Rostepher Jan 24, 2020
aa7908c
Merge pull request #29425 from Rostepher/use-distcc-default
Rostepher Jan 24, 2020
758f6e0
Merge pull request #29430 from gribozavr/add-inline
swift-ci Jan 24, 2020
9dae127
[AutoDiff] Add missing REQUIRES to test after #29405
davezarzycki Jan 24, 2020
cad0c7a
build: add support for optionally building PythonKit
compnerd Jan 22, 2020
f8ebc98
[sourcekitd-test] When setting -fmodules-cache-path also set -fmodules
benlangmuir Jan 24, 2020
c97a0cf
[sil.rst] Clarify documentation around partial_apply closure contexts…
gottesmm Jan 22, 2020
8f3d2b2
Merge pull request #29434 from davezarzycki/pr29434
swift-ci Jan 24, 2020
8e5ae4c
Merge pull request #29432 from DougGregor/contextual-conditions-for-f…
DougGregor Jan 24, 2020
f30b4e2
Merge pull request #29429 from compnerd/verified
compnerd Jan 24, 2020
7b12c2e
Merge pull request #29353 from eeckstein/dict-code-size
eeckstein Jan 24, 2020
78d7243
Merge pull request #29437 from benlangmuir/modules-woes
benlangmuir Jan 24, 2020
af847c2
Merge pull request #29415 from hborla/ambiguity-special-cases
hborla Jan 24, 2020
1c0bdc8
Merge pull request #29413 from LucianoPAlmeida/remove-visit-identity-…
xedin Jan 24, 2020
caf1f1f
SILGen: Uncomment a FIXME in a test since it works now
slavapestov Jan 24, 2020
305620b
ClangImporter: Reconcile Clang declaration hidden-ness between loadAl…
slavapestov Jan 24, 2020
23ff5f8
[metadata prespecialization] Future availability.
nate-chandler Jan 24, 2020
462978f
Merge pull request #29426 from Rostepher/maccatalyst-darwin-platform
Rostepher Jan 24, 2020
c6a428f
Update fast dealloc to match libobjc
Catfish-Man Jan 24, 2020
8a7c970
Merge pull request #29418 from slavapestov/lazy-member-loading-incons…
slavapestov Jan 25, 2020
147087c
[test] Adjust new Substring test
lorentey Jan 25, 2020
b7eb2fc
[test] Substring: remove unnecessary `expected` arguments
lorentey Jan 25, 2020
4bc7837
Merge pull request #29442 from nate-chandler/generic-metadata-prespec…
nate-chandler Jan 25, 2020
a12fe9a
[SIL Optimization] Fix a bug in the identification of dead constant
ravikandhadai Jan 25, 2020
52f274a
[OSLogOptimization] Add support for eliminating dead alloc stacks
ravikandhadai Jan 25, 2020
183de84
build: begin rooting out `EXCLUDE_FROM_ALL`
compnerd Jan 25, 2020
23e2b70
Merge pull request #29447 from ravikandhadai/oslog-dead-code-elim-all…
ravikandhadai Jan 25, 2020
e26b216
Merge pull request #29366 from compnerd/optional-pythonkit-support
compnerd Jan 25, 2020
26d8bad
Add DirectLookupRequest
CodaFi Dec 5, 2019
b09c995
Reintroduce NameLookupFlags::IgnoreNewExtensions
CodaFi Jan 2, 2020
e626cfb
Remove lazy member loading re-entrancy guards
CodaFi Jan 2, 2020
d1823eb
[NFC] Make prepareLookupTable lazier about loading Extension members
CodaFi Jan 24, 2020
f690a9e
Also search nested types tables in overlay modules
CodaFi Jan 24, 2020
2da9601
Merge pull request #28732 from CodaFi/you-know-my-name-look-up-my-member
CodaFi Jan 25, 2020
d8b3b62
build: use modern target property handling
compnerd Jan 25, 2020
729ad36
build: delegate rpath handling to CMake
compnerd Jan 25, 2020
ef7ddda
Make -sil-print-only-function take comma separated values (#29433)
meg-gupta Jan 26, 2020
3f823e5
[test] Remove debugging dumps to /tmp
finagolfin Jan 26, 2020
407b6c4
Merge pull request #29416 from marcrasi/add-complete-repl-test
rintaro Jan 26, 2020
fb57af4
Merge pull request #29453 from compnerd/outsourcing
compnerd Jan 26, 2020
80d9e0a
Merge pull request #29450 from compnerd/inclusive-builds
compnerd Jan 26, 2020
66c9da0
Merge pull request #29455 from buttaface/tests-tmp
compnerd Jan 26, 2020
f7744bd
[Constraint solver] Make DeclContext explicit. NFC
DougGregor Jan 24, 2020
5063cb5
[Constraint solver] Factor out adding a contextual conversion constra…
DougGregor Jan 24, 2020
d752f41
[Constraint solver] Rework solveImpl(Expr*) to return SolutionResult.
DougGregor Jan 25, 2020
2ec583f
[NFC] Tweak code snippet in changelog (#29456)
theblixguy Jan 26, 2020
e80bb67
build: remove a hack for clang dependencies
compnerd Jan 26, 2020
6ec3ab9
[NFC] Define SILGen Request Zone and GenerateSIL Request
CodaFi Jan 15, 2020
b6fb6ed
Add type info for unique_ptr
CodaFi Jan 26, 2020
3bc3f79
[Build System: build-script] Remove the debug module from swift_build…
Jan 26, 2020
5652986
[Sanitizers] Add Scudo support (#28538)
Lukasa Jan 27, 2020
745a5e5
Merge pull request #29461 from Rostepher/remove-debug-module
Rostepher Jan 27, 2020
c881a4f
Fix EscapeAnalysis verification for an array.uninitialized case.
atrick Jan 27, 2020
fbd51e2
test: attempt to fix #28538
compnerd Jan 27, 2020
ca4fc19
[Build System: build-script] Remove the tar module from swift_build_s…
Jan 27, 2020
35563ca
Merge pull request #29467 from compnerd/28538
swift-ci Jan 27, 2020
21905ea
Merge pull request #29428 from eeckstein/opt-empty-collection
eeckstein Jan 27, 2020
8732b15
[Testing] Fix unused/read-only variable warnings
davezarzycki Jan 27, 2020
bcb13a0
[Testing] Unbreak Linux builds that do not have the scudo runtime
davezarzycki Jan 27, 2020
3c8fba0
[AST] NFC: Fix -Wdeprecated-copy warning
davezarzycki Jan 27, 2020
1766f1f
Merge pull request #29470 from davezarzycki/pr29470
swift-ci Jan 27, 2020
d6b9d84
Merge pull request #29471 from davezarzycki/pr29471
swift-ci Jan 27, 2020
03b0a6c
DeadFunctionElimination: remove externally available witness tables a…
eeckstein Jan 27, 2020
37e267f
Merge pull request #29469 from davezarzycki/pr29469
davezarzycki Jan 27, 2020
824a71d
Merge pull request #29466 from atrick/fix-escape-verify
atrick Jan 27, 2020
e3b511d
Merge pull request #29458 from compnerd/unhack
compnerd Jan 27, 2020
e8b00a1
Merge pull request #29472 from eeckstein/delete-dead-wt
eeckstein Jan 27, 2020
efa526e
Merge pull request #29451 from compnerd/someone-else-can-do-it
compnerd Jan 27, 2020
d850ed6
Fix test that didn't actually improve
DougGregor Jan 27, 2020
fecaca5
Merge pull request #29468 from Rostepher/remove-tar-module
Rostepher Jan 27, 2020
509ffb3
Merge pull request #29446 from lorentey/substring-test-cleanup
lorentey Jan 27, 2020
b188b90
[AutoDiff] Minor `@differentiable` attribute type-checking fix.
dan-zheng Jan 27, 2020
dfdb2e5
[SILProfiler] Do not set up a profiler for a function twice
vedantk Jan 27, 2020
23b936c
[Build System: build-script] Re-organize build-script into more logic…
Jan 27, 2020
fbcb41f
build: simplify the ICU include handling
compnerd Jan 27, 2020
9274e86
Merge pull request #29477 from dan-zheng/autodiff-upstream-diff-attr
swift-ci Jan 27, 2020
87e9bc7
Merge pull request #29478 from vedantk/prof
swift-ci Jan 27, 2020
aea6d97
Merge pull request #29474 from Rostepher/build-script-sections
Rostepher Jan 27, 2020
cc44f22
[Function builder] Eliminate unnecessary dependency on UnderlyingType…
DougGregor Jan 27, 2020
c10b904
[Build System: build-script] Move the static methods from the BuildSc…
Jan 27, 2020
d61f6f2
Changes to support per-type-body fingerprints.
Jan 17, 2020
021a40a
Coarse + prints -> warning, not error
Jan 27, 2020
6f65e0e
Change unfinished handling
Jan 25, 2020
d7474ec
Adjust handling after failure & ensure failed files get recompiled.
Jan 26, 2020
0a3be75
unit tests compile
Jan 26, 2020
8f4fd06
Use Optional for fingerprint
Jan 27, 2020
84fa03f
Added -disable-type-fingerprints to tests.
Jan 27, 2020
4510c2f
type body prints-on-by-default
Jan 26, 2020
26c1617
TBDGen: also using target variant to decide whether @_originallyDefin…
nkcsgexi Jan 27, 2020
1f84729
Merge pull request #29479 from compnerd/i-c-u-hiding
compnerd Jan 27, 2020
46a6500
[Constraint system] Eliminate global flag UnderlyingTypeForOpaqueRetu…
DougGregor Jan 27, 2020
423bcdf
Merge pull request #29242 from CodaFi/smooth-as-sil-k
CodaFi Jan 28, 2020
c7c9510
[ConstraintSystem] Don't re-attempt to bind type variable if it could…
xedin Jan 25, 2020
dea79e0
[ConstraintSystem] Detect that function type has failures before appl…
xedin Jan 27, 2020
e50756c
[CSDiag] Obsolete function re-typecheck and diagnostics from `visitAp…
xedin Jan 28, 2020
c8fa3b6
Merge pull request #29445 from Catfish-Man/fast-dealloc-fixups
Catfish-Man Jan 28, 2020
8b249e7
Merge pull request #29484 from Rostepher/build-script-staticmethod-no…
Rostepher Jan 28, 2020
a2df6b9
Merge pull request #29463 from davidungar/PBP-2-21-ICNR-on
Jan 28, 2020
7b0cdc4
off-off-off!
Jan 28, 2020
6873005
Fix mismatch use of target_link_options
kateinoigakukun Jan 28, 2020
f29de2e
Merge pull request #29496 from davidungar/type-prints-off-by-default
Jan 28, 2020
ccde540
Merge pull request #29487 from DougGregor/constraint-system-localized…
DougGregor Jan 28, 2020
c198c1a
[Constant Evaluator] Add support for BinaryInteger.description which
ravikandhadai Jan 28, 2020
a1c9719
build: repair the Windows build
compnerd Jan 27, 2020
3e42a0f
[android] Escape include paths in Android.
drodriguez Jan 28, 2020
2b5fa68
Merge pull request #29499 from kateinoigakukun/katei/fix-mismatch-com…
swift-ci Jan 28, 2020
c662a91
Merge pull request #29490 from xedin/remove-more-code-from-visitapply…
xedin Jan 28, 2020
38aded7
[Diagnostics] Add a special case diagnostic for call to init on `Void…
xedin Jan 28, 2020
8777a87
Merge pull request #29502 from drodriguez/android-escape-include-path…
drodriguez Jan 28, 2020
02b6161
Merge pull request #29483 from compnerd/duplication-is-good-for-you
compnerd Jan 28, 2020
18babf7
SILGen: Lower the type of the return value merge phi in the context o…
aschwaighofer Jan 27, 2020
6f026fb
Merge pull request #29504 from xedin/special-void-init-handling
xedin Jan 28, 2020
049e384
build: move `compute_library_subdir` to where it is used
compnerd Jan 28, 2020
5428060
[build][gardening] adjust framework paths (#29507)
edymtt Jan 28, 2020
88d6559
[GSB] Map invalid subject types in requirement constraints to ErrorType
CodaFi Jan 27, 2020
f83fead
Merge pull request #29485 from nkcsgexi/zippered-linker-directive
nkcsgexi Jan 28, 2020
566d574
Merge pull request #29501 from ravikandhadai/constexpr-binary-integer…
ravikandhadai Jan 28, 2020
1fff12f
Merge pull request #29511 from compnerd/cohabitation
compnerd Jan 28, 2020
a5ff907
Merge pull request #29508 from aschwaighofer/silgen_fix_return_arg_ty…
aschwaighofer Jan 28, 2020
c81cecf
Merge pull request #29491 from CodaFi/constraint-kinds
CodaFi Jan 28, 2020
42345da
SymbolGraph: Move pathComponents up and include interfaceLanguage
bitjammer Jan 28, 2020
255b2cf
[NFC] Improve Nested Types Table Test
CodaFi Jan 28, 2020
4a123f1
Fix the build-script --skip-build option.
atrick Jan 28, 2020
608b1b4
[ConstraintSystem] Allow solving same-type requirements for associate…
hborla Jan 28, 2020
bf41881
Move swift runtime failure from linkage name to function name
medismailben Jan 22, 2020
aa8d69a
Merge pull request #29517 from CodaFi/nest-egg
swift-ci Jan 28, 2020
682bb31
[Constant Evaluator] Add support for displaying assertion/precondition
ravikandhadai Jan 28, 2020
d160503
Merge pull request #29520 from hborla/same-type-requirement-corner-case
hborla Jan 29, 2020
14fd6c8
Merge pull request #29506 from medismailben/master
medismailben Jan 29, 2020
39d28fc
Merge pull request #29500 from atrick/fix-skip-build
Rostepher Jan 29, 2020
4d65c34
Merge pull request #29521 from ravikandhadai/constexpr-precondition-s…
ravikandhadai Jan 29, 2020
37e403d
Compile libraries in testcases with -parse-as-library (NFC)
adrian-prantl Jan 29, 2020
7392c8d
[WebAssembly] Add no-op MutexWASI.h implementation (#29459)
MaxDesiatov Jan 29, 2020
44a6475
[WebAssembly] enable shims and stubs for WASI (#29505)
MaxDesiatov Jan 29, 2020
f2c61d8
Bug fixes for type fingerprints
Jan 28, 2020
bbffc09
Tests for type fingerprints are enabled.
Jan 28, 2020
b0786e7
Fix propagation of guaranteed phi args during DiagnoseUnreachable.
atrick Jan 29, 2020
1af49ec
Fix an EscapeAnalysis assert to handle recent changes.
atrick Jan 29, 2020
f70f60b
Merge pull request #29526 from atrick/fix-guaranteed-phi
atrick Jan 29, 2020
b2083db
[ConstraintSystem] Add a fix to allow conversion between non-class ty…
xedin Jan 29, 2020
ec3b783
[Diagnostics] Improve diagnostic for invalid conversion to AnyObject
xedin Jan 29, 2020
7710ee8
Merge pull request #29527 from atrick/fix-escape-assert
swift-ci Jan 29, 2020
dd09401
Merge pull request #29528 from xedin/anyobject-conversion-diagnostics
xedin Jan 29, 2020
ffa6bf4
Fix memory leaks in ThreadBarriers.swift (#12212)
chrisamanse Jan 29, 2020
9676625
Merge pull request #29522 from adrian-prantl/test-update
adrian-prantl Jan 29, 2020
7351bfc
[CSFix] Add a fix to add a missing qualifier to shadowed top-level na…
xedin Jan 4, 2020
c9c20af
[Diagnostics] Port name shadowing diagnostics
xedin Jan 4, 2020
78fda9e
[ConstraintSystem] Use new fix/diagnostic for name shadowing
xedin Jan 6, 2020
ec95397
[CSDiag] NFC: Remove obsolete name shadowing diagnostics
xedin Jan 6, 2020
217c343
[Diagnostics] NFC: Fix name shadowing diagnostic comment to refer to …
xedin Jan 6, 2020
93c2321
[TypeChecker] Add types nested in protocol to lookup results
xedin Jan 7, 2020
4bd1ffc
Serialize whether a VarDecl is a top-level global.
adrian-prantl Jan 28, 2020
15c1b4e
Compile libraries in testcases with -parse-as-library (NFC)
adrian-prantl Jan 29, 2020
3fff5dd
[ConstraintSystem] Extend metatype instance type mismatch coverage
xedin Jan 29, 2020
0bd1e61
[build][gardening] adjust one more framework path (#29529)
edymtt Jan 29, 2020
17d9d20
Improve one of the comments in COWArrayOpts.
atrick Jan 29, 2020
0440e91
Try setting mod times explicitly to fix unreproducible ci failure.
Jan 29, 2020
4028ac2
EscapeAnalysis: add support for access markers.
atrick Jan 29, 2020
5b8ba88
Merge pull request #29525 from davidungar/type-prints-off-by-default2
Jan 29, 2020
f7b0cbc
Merge pull request #29531 from xedin/diag-all-metatype-mismatches
xedin Jan 29, 2020
b896013
Add source annotation to SILPrinter under flag -sil-print-sourceinfo …
meg-gupta Jan 29, 2020
454b30d
Merge pull request #29532 from atrick/comment-cow-array
swift-ci Jan 29, 2020
3c86061
Sema: Fix module interface printing of inherited generic initializers
slavapestov Jan 29, 2020
5661bff
Merge pull request #29533 from davidungar/putative-fix-for-rdar-58959…
swift-ci Jan 29, 2020
2e1e428
Added ability to add fingerprint via #
Jan 29, 2020
2c39aa1
Merge pull request #29534 from atrick/escape-access-marker
atrick Jan 29, 2020
b872052
Merge pull request #29535 from slavapestov/inherited-init-sugar-fix
slavapestov Jan 29, 2020
e13ea48
Private method should be for non-Windows only
Jan 29, 2020
2d59365
Merge pull request #29414 from bitjammer/acgarland/rdar-58853310-inte…
bitjammer Jan 29, 2020
d2ad3dc
[NFC] Commit a regression test for rdar://58960414
CodaFi Jan 29, 2020
286781f
Add a unit test for an individual node change, & add ability to set f…
Jan 30, 2020
30709ce
Merge pull request #29539 from davidungar/type-fingerprints-off-by-de…
Jan 30, 2020
6f6d786
Merge pull request #29536 from chrisamanse/fixWindows
compnerd Jan 30, 2020
9bd6385
Sema: Fix duplicate diagnostic spam with 'Self' in properties
slavapestov Jan 29, 2020
f4a5301
Sema: Fix crash when property type references type alias with unsatis…
slavapestov Jan 30, 2020
be37141
Revert "build: simplify version tracking logic"
shahmishal Jan 30, 2020
f0b7fb9
Merge pull request #29542 from slavapestov/self-diagnostic-spam
slavapestov Jan 30, 2020
dcaa950
[CSDiag] Removing unused FailureDiagnosis::visitTryExpr
LucianoPAlmeida Jan 30, 2020
2d10a8a
[ConstraintSystem] Extend function type conversion mismatch coverage
xedin Jan 30, 2020
d171b30
Allow fine-grained-dependency-include-intrafile in tests for compatib…
Jan 30, 2020
458ae7b
Use -fine-grained-dependency-include-intrafile for compatibility with…
Jan 30, 2020
6debe3d
[ConstraintSystem] Don't produce conformance fixes for mismatches ass…
xedin Jan 30, 2020
836d88f
Merge pull request #29546 from LucianoPAlmeida/visit-try-expr
xedin Jan 30, 2020
4ef4cd6
Merge pull request #29544 from slavapestov/conditional-requirements-c…
slavapestov Jan 30, 2020
9511295
Merge pull request #29548 from davidungar/type-fingerprints-off-by-de…
Jan 30, 2020
38f599d
Turn type-body-fingerprints on-by-default
Jan 30, 2020
a572c4b
Merge pull request #29549 from xedin/diag-all-function-type-mismatches
xedin Jan 30, 2020
a34b044
Merge pull request #29545 from apple/revert-29040-version-control
shahmishal Jan 30, 2020
3375b36
Search nested types tables in parent modules
CodaFi Jan 30, 2020
e121cb0
Revert "[SourceKit] Disable module system headers validation"
rintaro Jan 30, 2020
cb20d0e
Revert "[CodeCompletion] Disable module system headers validation"
rintaro Jan 30, 2020
82ec36d
Update tsan-emptyarraystorage.swift to run on remote_run
shahmishal Jan 30, 2020
a56cd12
Merge pull request #29554 from CodaFi/module-scope-context-is-king
swift-ci Jan 31, 2020
59fd697
Merge pull request #29538 from CodaFi/heavy-industrial-runoff
CodaFi Jan 31, 2020
b3e4ac8
Merge pull request #29555 from rintaro/revert-sourcekit-rdar58550697
rintaro Jan 31, 2020
ad1ad43
Generalize SolutionApplicationTarget and use it more widely.
DougGregor Jan 28, 2020
98db6e6
[Constraint solver] Don’t mark a moved-from instance as “diagnosed”.
DougGregor Jan 28, 2020
e3124dc
[Constraint system] Expand SolutionApplicationTarget for expressions.
DougGregor Jan 28, 2020
eb2862e
[Constraint system] Collapse applySolutionImpl() into applySolution().
DougGregor Jan 28, 2020
56aeac5
[Constraint system] Push SolutionApplicationTarget into the solveImpl
DougGregor Jan 28, 2020
54ac78d
[Constrsint solver] Remove ExprTypeCheckListener::constraintGeneratio…
DougGregor Jan 28, 2020
754afff
[Constraint solver] Remove ExprTypeCheckListener::preCheckFailed().
DougGregor Jan 28, 2020
f8fd197
[Constraint solver] Remove ExprTypeCheckListener::applySolutionFailed.
DougGregor Jan 28, 2020
5c6608f
[Constraint solver] Remove the FallbackDiagnosticListener.
DougGregor Jan 28, 2020
40ca1ef
[Constraint solver] Eliminate ExprTypeCheckListener::foundSolution()
DougGregor Jan 28, 2020
e0702d9
[Constraint solver] Generalize solve() for arbitrary solution targets.
DougGregor Jan 31, 2020
ce35731
[Constraint solver] Reinstate the fallback diagnostic, just in case.
DougGregor Jan 31, 2020
f0173b3
Merge pull request #29557 from apple/shahmishal/enable-tsan-test-remo…
shahmishal Jan 31, 2020
5c956ba
[AST/ASTDumper] Fix linker error for `SWIFT_BUILD_ONLY_SYNTAXPARSERLI…
akyrtzi Jan 31, 2020
a4dbe67
Merge pull request #29440 from gottesmm/pr-1b807b886ce5cba8ed0e399f6a…
gottesmm Jan 31, 2020
a7d6cd8
[Build System: build-script] Adds a new cache_utils module to build_s…
Jan 31, 2020
a0fbeb9
Merge pull request #29565 from akyrtzi/parser-only-build-fix-link-error
swift-ci Jan 31, 2020
fce335b
SILGen: Fix withoutActuallyEscaping of 'c' closures
aschwaighofer Jan 31, 2020
3e4e078
Merge pull request #29563 from DougGregor/generalize-solve
DougGregor Jan 31, 2020
d24537f
Merge pull request #29024 from xedin/diagnose-shadowing
xedin Jan 31, 2020
c4bd50c
Merge pull request #29569 from aschwaighofer/silgen_fix_withoutActual…
aschwaighofer Jan 31, 2020
8d20c1f
Merge pull request #29567 from Rostepher/cache-utils
Rostepher Jan 31, 2020
de9ffcb
Merge pull request #29551 from davidungar/type-fingerprints-on-by-def…
Jan 31, 2020
6b9c570
build: correct the handling for the static variants
compnerd Jan 31, 2020
950c73f
[Serialization] Bump module format version.
DougGregor Feb 1, 2020
ab5c682
Revert "Revert "build: simplify version tracking logic""
compnerd Feb 1, 2020
95e98d9
Merge pull request #29584 from DougGregor/bump-top-level-var-module-v…
Catfish-Man Feb 1, 2020
a92724b
AST: Fix computeSelfParam() to respect __consuming on class methods
slavapestov Jan 31, 2020
62ca2aa
SIL: Fix an old FIXME
slavapestov Jan 31, 2020
bf124b8
[Type checker] Use typeCheckCondition() rather than fake it.
DougGregor Feb 1, 2020
4b0e7b2
[Type checker] Sink logic for @autoclosure default parameters into th…
DougGregor Feb 1, 2020
7cabef8
Merge pull request #29579 from slavapestov/no-ethical-consumption-of-…
slavapestov Feb 1, 2020
8c8f5b1
Merge pull request #29588 from DougGregor/silence-the-listeners
swift-ci Feb 1, 2020
e056d46
[Type checker] Remove unused overload of typeCheckExpression().
DougGregor Feb 1, 2020
9fa03cd
[Type checker] Eliminate TypeCheckExprFlags::ConvertTypeIsOnlyAHint.
DougGregor Feb 1, 2020
25c2e02
[Type checker] Eliminate TypeCheckExprFlags::DisableStructuralChecks.
DougGregor Feb 1, 2020
8beb904
Merge pull request #29580 from compnerd/indirection
compnerd Feb 1, 2020
a493004
[Type checker] Remove unused IsInOutYield flag.
DougGregor Feb 1, 2020
c5ed8d6
[Constraint solver] Fix tautological assert.
DougGregor Feb 1, 2020
3190433
[Constraint system] Give SolutionApplicationTarget purpose.
DougGregor Feb 1, 2020
b6d9dcc
Merge pull request #29589 from DougGregor/expr-type-check-flag-cleanups
swift-ci Feb 1, 2020
2c018ce
Merge pull request #29583 from compnerd/try-try-try-again
shahmishal Feb 1, 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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

<!-- If this pull request resolves any bugs in the Swift bug tracker, provide a link: -->
Resolves [SR-NNNN](https://bugs.swift.org/browse/SR-NNNN).
Resolves SR-NNNN.

<!--
Before merging this pull request, you must run the Swift continuous integration tests.
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#==============================================================================#
cscope.files
cscope.out
.vimrc
tags

#==============================================================================#
# Directories to ignore (do not add trailing '/'s, they skip symlinks).
Expand All @@ -37,6 +39,9 @@ docs/_build
# Visual Studio metadata
.vs

# clangd
.clangd

#==============================================================================#
# Ignore CMake temporary files
#==============================================================================#
Expand Down
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Amr Aboelela <[email protected]> <[email protected]>
Ankit Aggarwal <[email protected]> <[email protected]>
Argyrios Kyrtzidis <[email protected]> <[email protected]>
Arsen Gasparyan <[email protected]> <[email protected]>
Ashley Garland <[email protected]> <[email protected]>
Ben Cohen <[email protected]>
Ben Cohen <[email protected]> <[email protected]>
Ben Cohen <[email protected]> <[email protected]>
Expand Down
122 changes: 120 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,99 @@ CHANGELOG

</details>

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

* [SE-0269][]:

When an escaping closure explicitly captures `self` in its capture list, the
use of implicit `self` is enabled within that closure. This means that the
following code is now valid:

```swift
func doStuff(_ stuff: @escaping () -> Void) {}

class C {
var x = 0

func method() {
doStuff { [self] in
x += 1
}
}
}
```

This proposal also introduces new diagnostics for inserting `self` into the
closure's capture list in addition to the existing 'use `self.` explicitly'
fix-it.

Swift 5.2
---------

* [SR-11841][]:

When chaining calls to `filter(_:)` on a lazy sequence or collection, the
filtering predicates will now be called in the same order as eager filters.

```swift
let evens = (1...10).lazy
.filter { $0.isMultiple(of: 2) }
.filter { print($0); return true }
_ = evens.count
// Prints 2, 4, 6, 8, and 10 on separate lines
```

Previously, the predicates were called in reverse order.

* [SR-2790][]:

The compiler will now emit a warning when attempting to pass a temporary
pointer argument produced from an array, string, or inout argument to a
parameter which is known to escape it. This includes the various initializers
for the `UnsafePointer`/`UnsafeBufferPointer` family of types, as well as
memberwise initializers.

```swift
struct S {
var ptr: UnsafePointer<Int8>
}

func foo() {
var i: Int8 = 0
let ptr = UnsafePointer(&i)
// warning: initialization of 'UnsafePointer<Int8>' results in a
// dangling pointer

let s1 = S(ptr: [1, 2, 3])
// warning: passing '[Int8]' to parameter, but argument 'ptr' should be a
// pointer that outlives the call to 'init(ptr:)'

let s2 = S(ptr: "hello")
// warning: passing 'String' to parameter, but argument 'ptr' should be a
// pointer that outlives the call to 'init(ptr:)'
}
```

All 3 of the above examples are unsound because each argument produces a
temporary pointer only valid for the duration of the call they are passed to.
Therefore the returned value in each case references a dangling pointer.

* [SR-2189][]:

The compiler now supports local functions whose default arguments capture
values from outer scopes.

```swift
func outer(x: Int) -> (Int, Int) {
func inner(y: Int = x) -> Int {
return y
}

return (inner(), inner(y: 0))
}
```

* [SR-11429][]:

The compiler will now correctly strip argument labels from function references
Expand Down Expand Up @@ -58,6 +148,29 @@ Swift 5.2
(foo as Magic)(5)
```

* [SR-11298][]:

A class-constrained protocol extension, where the extended protocol does
not impose a class constraint, will now infer the constraint implicitly.

```swift
protocol Foo {}
class Bar: Foo {
var someProperty: Int = 0
}

// Even though 'Foo' does not impose a class constraint, it is automatically
// inferred due to the Self: Bar constraint.
extension Foo where Self: Bar {
var anotherProperty: Int {
get { return someProperty }
// As a result, the setter is now implicitly nonmutating, just like it would
// be if 'Foo' had a class constraint.
set { someProperty = newValue }
}
}
```

* [SE-0253][]:

Values of types that declare `func callAsFunction` methods can be called
Expand All @@ -83,10 +196,10 @@ Swift 5.2

* [SR-4206][]:

A method override is no longer allowed to have a generic signature with
A method override is no longer allowed to have a generic signature with
requirements not imposed by the base method. For example:

```
```swift
protocol P {}

class Base {
Expand Down Expand Up @@ -7770,6 +7883,7 @@ Swift 1.0
[SE-0252]: <https://github.com/apple/swift-evolution/blob/master/proposals/0252-keypath-dynamic-member-lookup.md>
[SE-0253]: <https://github.com/apple/swift-evolution/blob/master/proposals/0253-callable.md>
[SE-0254]: <https://github.com/apple/swift-evolution/blob/master/proposals/0254-static-subscripts.md>
[SE-0269]: <https://github.com/apple/swift-evolution/blob/master/proposals/0269-implicit-self-explicit-capture.md>

[SR-106]: <https://bugs.swift.org/browse/SR-106>
[SR-419]: <https://bugs.swift.org/browse/SR-419>
Expand All @@ -7780,11 +7894,13 @@ Swift 1.0
[SR-1529]: <https://bugs.swift.org/browse/SR-1529>
[SR-2131]: <https://bugs.swift.org/browse/SR-2131>
[SR-2176]: <https://bugs.swift.org/browse/SR-2176>
[SR-2189]: <https://bugs.swift.org/browse/SR-2189>
[SR-2388]: <https://bugs.swift.org/browse/SR-2388>
[SR-2394]: <https://bugs.swift.org/browse/SR-2394>
[SR-2608]: <https://bugs.swift.org/browse/SR-2608>
[SR-2672]: <https://bugs.swift.org/browse/SR-2672>
[SR-2688]: <https://bugs.swift.org/browse/SR-2688>
[SR-2790]: <https://bugs.swift.org/browse/SR-2790>
[SR-4206]: <https://bugs.swift.org/browse/SR-4206>
[SR-4248]: <https://bugs.swift.org/browse/SR-4248>
[SR-5581]: <https://bugs.swift.org/browse/SR-5581>
Expand All @@ -7799,4 +7915,6 @@ Swift 1.0
[SR-8974]: <https://bugs.swift.org/browse/SR-8974>
[SR-9043]: <https://bugs.swift.org/browse/SR-9043>
[SR-9827]: <https://bugs.swift.org/browse/SR-9827>
[SR-11298]: <https://bugs.swift.org/browse/SR-11298>
[SR-11429]: <https://bugs.swift.org/browse/SR-11429>
[SR-11841]: <https://bugs.swift.org/browse/SR-11841>
Loading