198142 Commits

Author SHA1 Message Date
swift_jenkins
722f55575c Merge remote-tracking branch 'origin/main' into next 2025-12-14 05:01:32 -08:00
finagolfin
bee1ed3046 Android: disable C++ Interop test that is failing with new @available stdlib 6.4 annotations in #82055 (#86034)
This should [get the Android CI
green](https://ci.swift.org/job/oss-swift-package-swift-sdk-for-android/137/console)
again, until we can figure out how we want to handle this matter.
2025-12-14 18:18:39 +05:30
swift_jenkins
d2047a32ae Merge remote-tracking branch 'origin/main' into next 2025-12-13 16:03:13 -08:00
Hamish Knight
54fd18e5b5 Merge pull request #86011 from hamishknight/dyn-apply
[CS] Do member lookup last when binding dynamic member overload
2025-12-13 23:45:15 +00:00
swift_jenkins
5e2dd6f6e3 Merge remote-tracking branch 'origin/main' into next 2025-12-13 15:43:06 -08:00
Max Desiatov
a71c1836c7 docs/Wasm: remove incompatible --libcxx flags for build-script (#86017)
Freshly built libc++ introduces issues when building `swift-build`:

```
Undefined symbols for architecture arm64:
  "std::__1::__hash_memory(void const*, unsigned long)", referenced from:
      (anonymous namespace)::CAPIBuildDB::buildUpKeyCache(std::__1::vector<llbuild::core::KeyType, std::__1::allocator<llbuild::core::KeyType>>&) in BuildDB-C-API.cpp.o
      _llb_build_key_make in BuildKey-C-API.cpp.o
      _llb_build_key_make_command in BuildKey-C-API.cpp.o
      _llb_build_key_make_custom_task in BuildKey-C-API.cpp.o
      _llb_build_key_make_custom_task_with_data in BuildKey-C-API.cpp.o
      _llb_build_key_make_directory_contents in BuildKey-C-API.cpp.o
      _llb_build_key_make_filtered_directory_contents in BuildKey-C-API.cpp.o
      ...
ld: symbol(s) not found for architecture arm64
```

<!--
If this pull request is targeting a release branch, please fill out the
following form:

https://github.com/swiftlang/.github/blob/main/PULL_REQUEST_TEMPLATE/release.md?plain=1

Otherwise, replace this comment with a description of your changes and
rationale. Provide links to external references/discussions if
appropriate.
If this pull request resolves any GitHub issues, link them like so:

  Resolves <link to issue>, resolves <link to another issue>.

For more information about linking a pull request to an issue, see:

https://docs.github.com/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
-->

<!--
Before merging this pull request, you must run the Swift continuous
integration tests.
For information about triggering CI builds via @swift-ci, see:

https://github.com/apple/swift/blob/main/docs/ContinuousIntegration.md#swift-ci

Thank you for your contribution to Swift!
-->
2025-12-13 15:31:05 -08:00
swift_jenkins
08b1a1d515 Merge remote-tracking branch 'origin/main' into next 2025-12-13 12:03:07 -08:00
Tim Kientzle
33e2cfa82c Merge pull request #86006 from tbkka/tbkka-float-parsing
Fix parsing issues on 32-bit hosts
2025-12-13 11:43:40 -08:00
swift_jenkins
5793446236 Merge remote-tracking branch 'origin/main' into next 2025-12-13 09:01:30 -08:00
eeckstein
80640f7f39 Merge pull request #86005 from eeckstein/fix-sil-combine
SILCombine: don't sink forwarding instructions with address operands
2025-12-13 16:50:48 +00:00
swift_jenkins
eb5235b860 Merge remote-tracking branch 'origin/main' into next 2025-12-13 06:04:17 -08:00
Slava Pestov
ab8ca27701 Merge pull request #86020 from slavapestov/opaque-archetype-sugar-type-variable
AST: Canonicalize opaque archetype substitution maps in the solver arena
2025-12-13 08:54:58 -05:00
swift_jenkins
874f83a0d7 Merge remote-tracking branch 'origin/main' into next 2025-12-12 22:42:56 -08:00
Saleem Abdulrasool
e391bf55e9 Merge pull request #85960 from compnerd/plain-frontend
test: introduce swift-target-frontend-plain for CAS tests
2025-12-12 22:27:49 -08:00
Saleem Abdulrasool
3a4cd07e9a test: introduce swift-target-frontend-plain for CAS tests
This introduces a new substitution for use in the CAS tests. The plain
variant of the target frontend invokes the tool with the variant target
triple and resource dir only. This allows us to properly invoke the
frontend for the CAS tests.
2025-12-12 17:13:31 -08:00
swift_jenkins
7a4e58d028 Merge remote-tracking branch 'origin/main' into next 2025-12-12 16:41:35 -08:00
Meghana Gupta
96cd2e1e10 Merge pull request #85987 from meg-gupta/undefcapture
Tolerate undef closure captures in ClosureLifetimeFixup
2025-12-12 16:31:09 -08:00
swift_jenkins
3a9939b9cf Merge remote-tracking branch 'origin/main' into next 2025-12-12 15:22:07 -08:00
Slava Pestov
54521bd21b AST: Canonicalize opaque archetype substitution maps in the solver arena
Preserving sugar if we have type variables uses way too much memory.

Canonicalize these substitution maps for now, as a (temporary?) workaround.

In the future, if we decide preserving sugar is more important than a
few dozen Mb of memory usage, we can also bump the arena memory limit,
instead.

Fixes rdar://166237860.
Fixes rdar://165863647.
2025-12-12 18:11:04 -05:00
Alexis Laferrière
74c8fcfc66 Merge pull request #85990 from xymus/serial-conf-diag
Serialization: Minor improvements to the error on conformance mismatch
2025-12-12 15:05:53 -08:00
Slava Pestov
a381b1d954 Merge pull request #85968 from slavapestov/tests-12-10-2025
Add some regression tests
2025-12-12 18:05:28 -05:00
swift_jenkins
8af4846ca6 Merge remote-tracking branch 'origin/main' into next 2025-12-12 14:21:27 -08:00
Anthony Latsis
dea291c047 Merge pull request #85971 from swiftlang/jepa-main4
SIL: Adjust pack `isa` after upstream LLVM implementation change
2025-12-12 22:20:39 +00:00
swift_jenkins
87fb4e0e60 Merge remote-tracking branch 'origin/main' into next 2025-12-12 12:21:34 -08:00
Chris McGee
a2529addef Merge pull request #85489 from johnbute/argument-parser-version-change 2025-12-12 15:07:56 -05:00
swift_jenkins
4dd0ce938e Merge remote-tracking branch 'origin/main' into next 2025-12-12 09:21:21 -08:00
Hamish Knight
a4ae17133c Merge pull request #85973 from bnbarham/convert-async-shorthand
[SourceKit] Allow converting functions containing shorthand ifs to async
2025-12-12 17:19:23 +00:00
swift_jenkins
48827de0b0 Merge remote-tracking branch 'origin/main' into next 2025-12-12 09:02:44 -08:00
Pavel Yaskevich
3754042c9c Merge pull request #85964 from xedin/rdar-166244164
[Concurrency] Add `ApproachableConcurrency` as a pseudo upcoming feature flag
2025-12-12 09:01:34 -08:00
Gábor Horváth
0fcf2e1ce8 Merge pull request #85980 from Xazax-hun/recursive-enums-fix
[cxx-interop] Fix crashing on recursive enums
2025-12-12 16:45:12 +00:00
Hamish Knight
4b25dc528d [CS] Do member lookup last when binding dynamic member overload
Otherwise if the member lookup gets simplified immediately and we 
have a recursive dynamic member lookup we will crash since we wouldn't
have introduced the corresponding applicable function constraint.

rdar://164321858
2025-12-12 16:39:02 +00:00
swift_jenkins
7e832bb538 Merge remote-tracking branch 'origin/main' into next 2025-12-12 08:21:23 -08:00
Kathy Gray
472937e57d Merge pull request #85591 from kathygray-pl/kathy/diagnosticProperty
[Diagnostics] Increase possibility for missed property diagnostic
2025-12-12 16:09:12 +00:00
swift_jenkins
8fd5c7e739 Merge remote-tracking branch 'origin/main' into next 2025-12-12 08:03:29 -08:00
John Hui
747234cf0c Merge pull request #86002 from j-hui/migrate-incomplete-template-spec-check 2025-12-12 07:52:00 -08:00
Tim Kientzle
e75a8c03e7 Fix parsing issues on 32-bit hosts
These were mostly bugs with code of the following form:
```
  if uint64Value < (... literal expression ...)
```
Swift's comparison operators allow their left- and right-hand sides to be of
different widths.  This in turn means that the literal expression above
typically gets typechecked by default as a plain `Int` or `UInt` expression.
In a number of cases, this led to truncation on platforms where `Int` is
not 64 bits.

In particular, this seems to fix tests on wasm32.
2025-12-12 07:16:59 -08:00
Erik Eckstein
aa4e77a46c SILCombine: don't sink forwarding instructions with address operands
We don't do memory lifetime analysis for this peephole optimization.
Therefore we can't risk sinking instructions with address operands out of the addressed memory's lifetime.

For example:
```
  %3 = mark_dependence %2 on %1 : $*T  // must not be moved after the destroy_addr
  destroy_addr %1
```

Fixes a verifier crash
rdar://166240751
2025-12-12 16:11:13 +01:00
swift_jenkins
20a16f307b Merge remote-tracking branch 'origin/main' into next 2025-12-12 02:42:24 -08:00
Saleem Abdulrasool
f82cf1ebfb Merge pull request #85993 from compnerd/scanning
swift-scan-test: adjust frontend detection for Windows
2025-12-12 02:25:52 -08:00
swift_jenkins
6c6df6f70a Merge remote-tracking branch 'origin/main' into next 2025-12-12 02:22:39 -08:00
Egor Zhdan
ab275373fe Merge pull request #85979 from egorzhdan/egorzhdan/android-ptrauth
[cxx-interop] Handle missing `<ptrauth.h>`
2025-12-12 10:04:02 +00:00
swift_jenkins
47e3f3435f Merge remote-tracking branch 'origin/main' into next 2025-12-12 00:36:15 -08:00
Michael Gottesman
22d182552c Merge pull request #85999 from gottesmm/pr-c29e9002447c10b77a408ede1f7b7e42c5034dbf
[rbi] When looking for closure uses, handle unresolved_non_copyable_value and store_borrow temporaries.
2025-12-12 00:09:08 -08:00
swift_jenkins
b4b51c31c1 Merge remote-tracking branch 'origin/main' into next 2025-12-12 00:06:39 -08:00
Michael Gottesman
79eee82b87 Merge pull request #85997 from gottesmm/pr-10810fd33c3e8d8fd1e4072f78d63d3200d35aa7
[rbi] Remove highlights from errors.
2025-12-11 23:57:55 -08:00
swift_jenkins
48316568a6 Merge remote-tracking branch 'origin/main' into next 2025-12-11 22:44:08 -08:00
Chris Williams
fe0191c62c [CSSimplify] Parameter pack wrapping logic incorrectly considers tuple LValueTypes to not be tuples (#85962)
In #65125 (and beyond) `matchTypes`, has logic to attempt to wrap an
incoming parameter in a tuple under certain conditions that might help
with type expansion.

In the case the incoming type was backed by a `var`, it would be wrapped
by an `LValueType` then be subsequently mis-diagnosed as not-a-tuple.

More details in #85924 , this this is also the cause of (and fix for)
#85837 as well...
2025-12-11 22:29:42 -08:00
swift_jenkins
8130d3806c Merge remote-tracking branch 'origin/main' into next 2025-12-11 21:22:05 -08:00
Slava Pestov
ca12185204 Merge pull request #85967 from slavapestov/dont-copy-that-floppy
Sema: Avoid copying BindingSets
2025-12-12 00:18:47 -05:00
Michael Gottesman
e186e5e5d0 Merge pull request #85972 from gottesmm/pr-9663abc1697da1382a8514e6877a6c3ce3f439b9
[concurrency] Hide Concurrency StackNesting builtins behind a feature flag
2025-12-11 21:16:37 -08:00