Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
ef00751
stdlib: move Dictionary's find functions into __RawDictionaryStorage.
eeckstein Jan 22, 2020
d412ea4
[Diagnostics] Unsatisfied requirement `in reference` diagnostics expe…
xedin Jan 23, 2020
74f65ba
[ConstraintSystem] Find solutions for code with invalid '_' using
hborla Jan 23, 2020
f081ae5
Revert "Revert "Don't heap allocate for active requests""
hamishknight Jan 23, 2020
9027d52
[AST] Fix friendship with AnyRequestBase
hamishknight Jan 23, 2020
b94ea98
build: remove `SWIFT_BUILD_STDLIB` check (NFC)
compnerd Jan 23, 2020
1f96141
build: remove support for `EXCLUDE_FROM_ALL` (NFC)
compnerd Jan 23, 2020
bc21d4f
build: move the RPATH handling to the executables
compnerd Jan 23, 2020
9d9a5ce
build: add imported library for libedit
compnerd Jan 23, 2020
04affa2
build: use the new libedit imported library
compnerd Jan 23, 2020
ac48feb
Add `@noDerivative` flag to `SILParameterInfo`.
dan-zheng Jan 23, 2020
a56e77a
Lower AST `@noDerivative` attribute to SIL.
dan-zheng Jan 23, 2020
689a57b
[CSDiag] Remove some dead code for diagnosing ambiguity from CSDiag.
hborla Jan 24, 2020
ae04531
Fix EscapeAnalysis value_to_bridge_object and strong_copy_unowned_value.
atrick Jan 23, 2020
06645d3
Add EscapeAnalysis verification to catch unmapped SILValues.
atrick Jan 24, 2020
7217cfa
[Constraint system] Move statement condition constraint generation.
DougGregor Jan 24, 2020
23615ba
[Function builders] Add support for "if #available".
DougGregor Jan 24, 2020
d3e0b60
Remove the unused utils/build-overlay script.
Jan 24, 2020
eac71b4
Remove the unused utils/error_enum_to_cases.pl script.
Jan 24, 2020
cd17aae
Remove the unused utils/guard-malloc-swift script.
Jan 24, 2020
1e554bd
[Gardening] Update the utils/backtrace-check script to use more moder…
Jan 24, 2020
78728d8
stdlib: extract the common code of _NativeDictionary.resize and copyA…
eeckstein Jan 23, 2020
603a472
[Build System: build-script] Allow users to enable distcc via the USE…
Jan 24, 2020
1d0f8d7
[Build System: build-script] Update the DarwinPlatform.is_embedded me…
Jan 24, 2020
4555611
Merge pull request #29381 from eeckstein/dict-change
swift-ci Jan 24, 2020
0fa9a96
[IRGen] Fully disable an assert that leaves junk in /tmp
davezarzycki Jan 24, 2020
2c7cc7b
[CSDiag] Remove obsolete FailureDiagnosis::visitIdentityExpr from CSDiag
LucianoPAlmeida Jan 24, 2020
ce76544
Re-apply "Don't heap allocate for active requests" (#29391)
hamishknight Jan 24, 2020
a40e699
Merge pull request #29427 from davezarzycki/pr29427
davezarzycki Jan 24, 2020
07ea64b
Merge pull request #29404 from compnerd/edit-your-patterns
compnerd Jan 24, 2020
4ece4fc
Merge pull request #29392 from compnerd/unchecked-build
compnerd Jan 24, 2020
9d8d013
Merge pull request #29383 from compnerd/exclude-exclusion
compnerd Jan 24, 2020
d3f7215
Merge pull request #29399 from compnerd/sk-rpath
compnerd Jan 24, 2020
5280fb0
build: remove `SWIFT_BUILD_STDLIB` check (NFC)
compnerd Jan 23, 2020
48ba315
Add SE-0269 to the changelog (#29285)
Jumhyn Jan 24, 2020
825127b
Added an inline keyword to a function defined in a header
gribozavr Jan 24, 2020
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
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
f8ebc98
[sourcekitd-test] When setting -fmodules-cache-path also set -fmodules
benlangmuir Jan 24, 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
8a7c970
Merge pull request #29418 from slavapestov/lazy-member-loading-incons…
slavapestov Jan 25, 2020
4bc7837
Merge pull request #29442 from nate-chandler/generic-metadata-prespec…
nate-chandler Jan 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,33 @@ 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
---------

Expand Down Expand Up @@ -7856,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 Down
8 changes: 7 additions & 1 deletion cmake/modules/FindLibEdit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ else()
LibEdit_LIBRARIES
VERSION_VAR
LibEdit_VERSION_STRING)
mark_as_advanced(LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES)
endif()

if(LibEdit_FOUND AND NOT TARGET libedit)
add_library(libedit UNKNOWN IMPORTED)
set_target_properties(libedit PROPERTIES
IMPORTED_LOCATION ${LibEdit_LIBRARIES}
INTERFACE_INCLUDE_DIRECTORIES ${LibEdit_INCLUDE_DIRS})
endif()
mark_as_advanced(LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES)
4 changes: 4 additions & 0 deletions include/swift/AST/ASTContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,10 @@ class ASTContext final {
/// compiler for the target platform.
AvailabilityContext getSwift52Availability();

/// Get the runtime availability of features that have been introduced in the
/// Swift compiler for future versions of the target platform.
AvailabilityContext getSwiftFutureAvailability();


//===--------------------------------------------------------------------===//
// Diagnostics Helper functions
Expand Down
Loading