Commit Graph

7754 Commits

Author SHA1 Message Date
swift-ci
fe9cb517c7 Merge remote-tracking branch 'origin/main' into rebranch 2022-06-10 19:13:29 -07:00
Andrew Trick
cafe5ccbd1 Merge pull request #59308 from atrick/comment-fixedpoint-test
Remove a FIXME from validation-test/stdlib/FixedPoint.swift.gyb
2022-06-10 19:01:42 -07:00
swift-ci
1fc7eb905e Merge remote-tracking branch 'origin/main' into rebranch 2022-06-10 18:53:38 -07:00
Slava Pestov
56f2f44592 Merge pull request #59369 from slavapestov/rqm-unavailable-conformance-fix
RequirementMachine: Fix handling of unavailable Sendable conformances in concretizeNestedTypesFromConcreteParent()
2022-06-10 21:41:10 -04:00
Slava Pestov
0254c0ee7c RequirementMachine: Fix handling of unavailable Sendable conformances in concretizeNestedTypesFromConcreteParent()
We can't just ignore unavailable conformances because the
generic signature we're computing might itself be attached
to an unavailable declaration.

Until we get a proper fix, only drop unavailable conformances
to Sendable here.

Fixes rdar://problem/94305457.
2022-06-10 17:46:40 -04:00
swift-ci
1ee42620c7 Merge remote-tracking branch 'origin/main' into rebranch 2022-06-09 11:53:31 -07:00
swift-ci
48ee0a6cff Merge pull request #59279 from buttaface/droid
[android][test] Fix several tests on the Android CI
2022-06-09 11:40:21 -07:00
swift-ci
3f0d94e444 Merge remote-tracking branch 'origin/main' into rebranch 2022-06-09 10:13:28 -07:00
Pavel Yaskevich
5ed21c6842 Merge pull request #59328 from xedin/rdar-94619388
[TypeChecker/CodeCompletion] Re-introduce expression sanitization bef…
2022-06-09 10:03:47 -07:00
swift-ci
3597ca75f0 Merge remote-tracking branch 'origin/main' into rebranch 2022-06-09 02:52:39 -07:00
Alastair Houghton
a9fe9716da Merge pull request #59287 from al45tair/eng/PR-90776105-2
[Build][Runtime] Add a new threading library.
2022-06-09 02:41:53 -07:00
Butta
3933fc0006 [android][test] Fix several tests on the Android CI
- #58975 switched many tests from XFAIL on linux to linux-gnu, so seven
  fail on the Android CI and two natively. They are now explicitly excluded.
- #39605 added several C++ Interop tests, 11 of which fail on the Android CI,
  so disable them for now.
- #42478 removed the @noescape attribute for the non-Android
  SIL/clang-function-types tests, so I remove it for Android too.
- My pull #40779 moved the Swift pointer tags to the second byte, so
  SILOptimizer/concat_string_literals.64 will need to be updated for that,
  disabled it for now.
- Compiler-rt moved the directory in which it places those libraries for
  Android, llvm/llvm-project@a68ccba, so lit.cfg is updated for that.
2022-06-09 14:35:41 +05:30
Pavel Yaskevich
3159591234 [TypeChecker/CodeCompletion] Re-introduce expression sanitization before solving
A call to `SanitizeExpr` has been incorrectly removed from
`typeCheckForCodeCompletion` by refactoring to use `ASTNode`.

It is still required because fallback calls could have partially
type-checked AST.

Resolves: https://github.com/apple/swift/issues/59315
Resolves: rdar://94619388
2022-06-08 13:26:54 -07:00
swift-ci
4e68d78107 Merge remote-tracking branch 'origin/main' into rebranch 2022-06-08 13:15:12 -07:00
Pavel Yaskevich
965a54f037 Merge pull request #59304 from xedin/rdar-94506352
[CSClosure] Fix handling of property wrapped pattern bindings
2022-06-08 13:11:53 -07:00
Alex Hoppen
55051a71b2 [test] Explicitly specify --cmake %cmake for build_lld.test
I believe this was causing CMake to get built for the test case and make the test case take ~5min on Linux instead of ~15sec.
2022-06-08 18:36:19 +02:00
Andrew Trick
9db9c1438e Remove a FIXME from validation-test/stdlib/FixedPoint.swift.gyb
Leave this test in long_test because it takes so long to compile. This
issue has nothing to do with the FIXME comment.
2022-06-07 18:02:26 -07:00
Pavel Yaskevich
066bbd18eb [CSClosure] Fix handling of property wrapped pattern bindings
Property wrappers trigger initializer synthesis. Synthesized
initializers should not be re-typechecked when encountered e.g.
 while re-solving closure with a different contextual type.

Resolves: https://github.com/apple/swift/issues/59294
Resolves: rdar://94506352
2022-06-07 13:41:53 -07:00
Alastair Houghton
f5bdb858e0 [Threading] Create new threading library and use it.
Moved all the threading code to one place.  Added explicit support for
Darwin, Linux, Pthreads, C11 threads and Win32 threads, including new
implementations of Once for Linux, Pthreads, C11 and Win32.

rdar://90776105
2022-06-07 07:39:51 +01:00
Alastair Houghton
0cf687aa2b [Build][Runtime] Replace SWIFT_STDLIB_SINGLE_THREADED_RUNTIME.
SWIFT_STDLIB_SINGLE_THREADED_RUNTIME is too much of a blunt instrument here.
It covers both the Concurrency runtime and the rest of the runtime, but we'd
like to be able to have e.g. a single-threaded Concurrency runtime while
the rest of the runtime is still thread safe (for instance).

So: rename it to SWIFT_STDLIB_SINGLE_THREADED_CONCURRENCY and make it just
control the Concurrency runtime, then add a SWIFT_STDLIB_THREADING_PACKAGE
setting at the CMake/build-script level, which defines
SWIFT_STDLIB_THREADING_xxx where xxx depends on the chosen threading package.

This is especially useful on systems where there may be a choice of threading
package that you could use.

rdar://90776105
2022-06-07 07:39:51 +01:00
swift-ci
44cd35310e Merge remote-tracking branch 'origin/main' into rebranch 2022-06-06 11:53:15 -07:00
Anthony Latsis
7a11b43058 Merge pull request #59271 from AnthonyLatsis/sr-2063
Add regression tests to close several fixed issues
2022-06-06 21:50:41 +03:00
Anthony Latsis
4bcb3713d0 Add regression test to close #56100 2022-06-05 21:59:10 +03:00
Lily Lin
fbd70fe6eb Fix build error for linux builds and add basic validation test 2022-06-03 15:26:06 -07:00
swift-ci
4b0a85f076 Merge remote-tracking branch 'origin/main' into rebranch 2022-06-02 10:34:25 -07:00
Pavel Yaskevich
27419446b6 Merge pull request #59064 from xedin/issue-59058
[CSSimplify] If function types mismatch on labels record a contextual…
2022-06-02 10:18:54 -07:00
Ben Barham
65ed78d3e7 Merge branch 'main' into manually-merge-main 2022-06-02 10:14:57 -07:00
Alex Hoppen
4aa2bbbf06 Revert "Merge pull request #42447 from al45tair/eng/PR-90776105"
This reverts commit 8bcb71140f, reversing
changes made to c4dd271d36.
2022-06-02 18:03:23 +02:00
Joe Groff
b7fd963b79 Merge pull request #59213 from jckarter/keypath-aeic
SILGen: Don't reference external property descriptors for @_alwaysEmitIntoClient properties.
2022-06-02 08:45:10 -07:00
Joe Groff
53e8e7b1d8 SILGen: Don't reference external property descriptors for @_alwaysEmitIntoClient properties.
Their definition is fully visible to clients to be copied into them, and there isn't necessarily
a symbol for the property descriptor in the defining module, so it isn't necessary or desirable to
try to use a property descriptor with them. Trying to reference the descriptor leads to missing
symbol errors at load time when trying to use keypaths with older versions of the defining dylib,
which goes against the purpose of `@_alwaysEmitIntoClient` meaning "no ABI liabilities for the
defining module". Fixes rdar://94049160.
2022-06-01 16:54:38 -07:00
Alastair Houghton
8bcb71140f Merge pull request #42447 from al45tair/eng/PR-90776105
[Build][Runtime] Add a new threading library.
2022-06-01 12:57:23 -07:00
swift-ci
10222c2489 Merge remote-tracking branch 'origin/main' into rebranch 2022-06-01 10:13:44 -07:00
Alejandro Alonso
c59f47389f Add Script and Script Extension tests (#59194) 2022-06-01 09:55:09 -07:00
swift-ci
b455bd1924 Merge remote-tracking branch 'origin/main' into rebranch 2022-05-27 22:14:10 -07:00
Josh Soref
0f78f006bb Spelling validation test (#58561) 2022-05-27 22:07:10 -07:00
swift-ci
f9a274d6fc Merge remote-tracking branch 'origin/main' into rebranch 2022-05-27 19:12:49 -07:00
Doug Gregor
686655b61f Update expected diagnostics 2022-05-27 14:46:30 -07:00
swift-ci
3b41d5f9d1 Merge remote-tracking branch 'origin/main' into rebranch 2022-05-25 16:14:04 -07:00
Ben Barham
efc9469444 Merge pull request #58975 from bnbarham/make-features-consistent
[Tests] Make OS features consistent
2022-05-25 16:02:43 -07:00
Ben Barham
92b6dd24c2 Merge branch 'main' into manually-merge-main 2022-05-25 15:55:35 -07:00
Robert Widmann
663722d892 Parameterized Existential Types Are Enabled By Default
See https://forums.swift.org/t/accepted-se-0353-constrained-existential-types/57560
2022-05-25 09:50:36 -07:00
Alex Hoppen
e2012dddf3 Merge pull request #41314 from ahoppen/pr/build-lld
[build-script] Add option to build lld as part of LLVM
2022-05-25 07:58:54 +02:00
Pavel Yaskevich
8fd8408075 [CSSimplify] If function types mismatch on labels record a contextual mismatch
`RelabelArguments` cannot possibly diagnose this issue because there
are no argument lists in this case. Let's report contextual mismatch
instead.

Resolves: https://github.com/apple/swift/issues/59058
2022-05-24 16:58:43 -07:00
swift-ci
89b4b5df26 Merge remote-tracking branch 'origin/main' into rebranch 2022-05-24 10:13:48 -07:00
Nate Chandler
e39caea26a [Test] Run test with 64-bit SIL on 64-bit arch. 2022-05-24 08:03:11 -07:00
Alastair Houghton
63a09007a1 [Threading] Create new threading library and use it.
Moved all the threading code to one place.  Added explicit support for
Darwin, Linux, Pthreads, C11 threads and Win32 threads, including new
implementations of Once for Linux, Pthreads, C11 and Win32.

rdar://90776105
2022-05-24 14:57:39 +01:00
Alastair Houghton
dadcb04ae2 [Build][Runtime] Replace SWIFT_STDLIB_SINGLE_THREADED_RUNTIME.
SWIFT_STDLIB_SINGLE_THREADED_RUNTIME is too much of a blunt instrument here.
It covers both the Concurrency runtime and the rest of the runtime, but we'd
like to be able to have e.g. a single-threaded Concurrency runtime while
the rest of the runtime is still thread safe (for instance).

So: rename it to SWIFT_STDLIB_SINGLE_THREADED_CONCURRENCY and make it just
control the Concurrency runtime, then add a SWIFT_STDLIB_THREADING_PACKAGE
setting at the CMake/build-script level, which defines
SWIFT_STDLIB_THREADING_xxx where xxx depends on the chosen threading package.

This is especially useful on systems where there may be a choice of threading
package that you could use.

rdar://90776105
2022-05-24 14:57:38 +01:00
swift-ci
522d42475e Merge remote-tracking branch 'origin/main' into rebranch 2022-05-24 03:33:13 -07:00
nate-chandler
2978bf0750 Merge pull request #58791 from nate-chandler/rdar92545900
[SSADestroyHoisting] Handle loops.
2022-05-24 03:17:34 -07:00
swift-ci
68542f3707 Merge remote-tracking branch 'origin/main' into rebranch 2022-05-24 00:54:46 -07:00