Hamish Knight
088bda7424
Merge pull request #85952 from hamishknight/skip-body-macro
...
[AST] Avoid walking macro expanded bodies in non-expanded mode
2025-12-11 14:08:45 +00:00
Ben Barham
7887ce8a8e
[SourceKit] Allow converting functions containing shorthand ifs to async
...
Resolves rdar://154753663.
2025-12-11 21:46:37 +10:00
Egor Zhdan
063b906966
[cxx-interop] Handle missing <ptrauth.h>
...
Android NDK, as of version 28, does not include the `ptrauth.h` header. This causes CI failures when building the Swift SDK for Android on Windows.
rdar://166242941
2025-12-11 11:39:20 +00:00
Susana Monteiro
91d1d2e06f
Merge pull request #85793 from susmonteiro/susmonteiro/diagnose-swift-attrs
...
[cxx-interop] Diagnose invalid swift attributes
2025-12-11 11:06:41 +00:00
Max Desiatov
125a63d349
docs/WebAssembly.md: add Wasm stdlib testing steps ( #85947 )
...
Added instructions for building and running Wasm stdlib tests, including filtering options and environment variable usage.
2025-12-11 09:06:42 +00:00
Slava Pestov
956dc0c1a2
Merge pull request #85955 from slavapestov/fix-issue-85860
...
SILGen: Fix keypath descriptor emission for class nested inside generic context
swift-DEVELOPMENT-SNAPSHOT-2025-12-11-a
2025-12-11 00:36:18 -05:00
Saleem Abdulrasool
6253a0d60b
Merge pull request #85900 from compnerd/library-binning
...
test: adjust the path compuation for plugins
2025-12-10 21:26:09 -08:00
Ben Barham
432935e37d
Remove Ben Barham from code owners
2025-12-11 14:28:24 +10:00
Hiroshi Yamauchi
5634d99c4f
Add several headers to WinSDK ( #85915 )
...
This was needed for explicit module builds to work for internal apps.
2025-12-10 19:31:27 -08:00
Michael Gottesman
7b9281fcb8
[concurrency] Hide Concurrency StackNesting builtins behind a feature flag.
...
rdar://166244033
2025-12-10 16:02:18 -08:00
Slava Pestov
a0927392f3
Add some regression tests
2025-12-10 18:49:41 -05:00
Slava Pestov
56baeac901
Sema: More descriptive comment for determineLiteralCoverage()
2025-12-10 18:48:47 -05:00
Slava Pestov
205d8e6640
Sema: Remove unnecessary operator new overload
2025-12-10 18:48:47 -05:00
Slava Pestov
ba7df4013e
Sema: Avoid copying BindingSets
...
They're stored inside the ConstraintGraphNode now, so returning a
`const BindingSet *` from within determineBestBindings() should
be safe.
2025-12-10 18:48:00 -05:00
Ben Barham
92070a655d
[Test] Disable userdoc validation on freebsd
...
Currently failing to find Foundation when running
`generate-doc-index.swift`. This really only needs to run on a single
platform anyway, so let's just disable it from freebsd for now.
2025-12-11 09:41:44 +10:00
Alexis Laferrière
175d0ba8e6
Serialization: Minor improvements to the error on conformance mismatch
...
Clarify the sources of information when a conformance reference in a
swiftmodule doesn't match with the requirements seen by the reader.
2025-12-10 15:08:03 -08:00
Guillaume Lessard
e293876e4f
Merge pull request #85597 from glessard/substring-test-tweaks
2025-12-10 14:09:13 -08:00
Andrew Trick
10e1be4387
Merge pull request #85870 from atrick/comment-copyprop
...
Add a FIXME to CopyPropagation to highlight an incomplete fix.
2025-12-10 13:51:30 -08:00
Joe Groff
79225fa841
Add missing feature flags to borrow_accessor_address_only_non_escapable.swift
2025-12-10 13:40:34 -08:00
Egor Zhdan
f995144c1d
Merge pull request #85906 from egorzhdan/egorzhdan/reland-cxx-string-cs
...
Reapply "[ConstraintSystem] C++ Interop: Binding a string literal to `std.string` shouldn't increase the score"
2025-12-10 21:04:15 +00:00
Joe Groff
4479b49fd8
SIL: Handle address ReturnInsts from borrow accessors as yielding uses.
...
This avoids a spurious lifetime error when an address-only borrow accessor returns a
non-`Escapable` value from a non-`Escapable` aggregate.
2025-12-10 11:44:41 -08:00
Saleem Abdulrasool
528cca0c2f
test: adjust the path compuation for plugins
...
DLLs on Windows are built/installed into the binary directory while only
import libraries are placed into the library directory to differentitate
between the distributable and developer content. Introduce a helper to
compute the appropriate plugin path.
2025-12-10 11:26:29 -08:00
Steven Wu
da8b721654
Merge pull request #85926 from cachemeifyoucan/eng/PR-ebm-scirpt
...
[TEST-ONLY] Add utility to perform explicit module build
2025-12-10 10:52:03 -08:00
Tim Kientzle
efdd00892c
Merge pull request #85797 from tbkka/tbkka-float-parsing
...
Reimplement Floating-Point Parsing in pure Swift
2025-12-10 18:42:41 +00:00
Slava Pestov
1013d25746
SILGen: Fix keypath descriptor emission for class nested inside generic context
...
hasGenericParamList() is the wrong thing to check -- we actually need to
know if any parent context is generic, as well.
- Fixes https://github.com/swiftlang/swift/issues/85860 .
2025-12-10 13:28:54 -05:00
Joe Groff
da4e72cf2d
SIL verifier: The atInstruction/atArgument parameter to require should not be optional.
...
The underlying C++ code expects a non-null `Instruction*` or `SILArgument*` pointer, and
most of the contextual information in a verifier error is derived from these arguments,
so it doesn't really make sense for the Swift level interface to present these arguments
as optional.
2025-12-10 10:27:56 -08:00
John Bute
90aaa0fe3e
using msvc compilers instead
2025-12-10 13:09:13 -05:00
John Bute
1128182d67
add c to usebuiltcompilers for swiftargumentparser build
2025-12-10 13:09:13 -05:00
John Bute
ec11ba8717
bumped minor version number swift argument parser
2025-12-10 13:09:13 -05:00
Meghana Gupta
96cfec4f84
Merge pull request #85935 from meg-gupta/lifetimeflags
...
Fix swiftinterface printing of accessors and inferred lifetime dependencies when Lifetimes feature is enabled
2025-12-10 10:01:01 -08:00
Hamish Knight
a9ad4e2cae
[AST] Avoid walking macro expanded bodies in non-expanded mode
...
Make sure we don't walk into the expansion of a body macro if the AST
walker is configured not to walk macro expansions.
2025-12-10 17:41:00 +00:00
Hamish Knight
f0d4572a92
[SourceKit] Always check buffer in SemanticAnnotator
...
Make sure we don't ever try to record semantic tokens for a different
buffer. This works around an ASTWalker issue where it will walk macro
expanded bodies even in non-macro-expansion mode.
rdar://165420658
2025-12-10 17:41:00 +00:00
Charles Zablit
f7c4dd81b7
Merge pull request #85702 from charles-zablit/charles-zablit/update-checkout/add-status-command
2025-12-10 17:40:55 +00:00
susmonteiro
fb5bc7282f
[cxx-interop] Diagnose invalid copyability, escapability and mutability attributes
...
Fixes: https://github.com/swiftlang/swift/issues/84559
2025-12-10 17:26:14 +00:00
Arnold Schwaighofer
d019f37b68
[embedded] Enable support for existentials/boxed protocol types per default
...
And enable this feature in production.
2025-12-10 08:50:23 -08:00
Max Desiatov
f9c064d161
Merge pull request #85844 from MaxDesiatov/wasm-build-instructions
...
docs: Add instructions for Wasm stdlib building and testing
2025-12-10 16:07:39 +00:00
Arnold Schwaighofer
be78127c23
Merge pull request #85923 from aschwaighofer/embedded_existentials_requires_embedded
...
[embedded] Feature::EmbeddedExistentials requires Feature::Embedded
2025-12-10 07:13:45 -08:00
Mishal Shah
0c0a98d591
Merge pull request #85943 from egorzhdan/egorzhdan/std-function-compile-error
...
[cxx-interop] Fix compile error
2025-12-10 06:59:10 -08:00
Arnold Schwaighofer
4730181c7a
Merge pull request #85914 from aschwaighofer/embedded_foreign_type_metadata
...
[embedded] Add support for some foreign metadata
2025-12-10 06:58:55 -08:00
Pavel Yaskevich
2c9092486e
Merge pull request #85939 from xedin/rdar-159408715
...
[Diagnostics] Don't attempt to synthesize arguments when destructurin…
2025-12-10 06:49:02 -08:00
Pavel Yaskevich
cb8d672511
Merge pull request #85873 from xedin/rdar-165862285
...
[CSRanking] Disambiguate static vs. instance method that used to be s…
2025-12-10 06:48:20 -08:00
Hamish Knight
28d637625a
Merge pull request #85928 from hamishknight/overrun
...
[test] Add a couple more unterminated string delimiter test cases
2025-12-10 14:01:12 +00:00
Hamish Knight
63abfab670
Merge pull request #85738 from hamishknight/to-wit
...
[Frontend] Enforce an error was emitted for invalid conformance
2025-12-10 14:00:14 +00:00
Egor Zhdan
39d13c4093
[cxx-interop] Fix compile error
...
This fixes a compiler error introduced by ad56e061 . The signature of `isMemberwiseInitializer()` changed after the CI ran on the PR.
2025-12-10 13:43:21 +00:00
Egor Zhdan
ad56e061af
Merge pull request #85066 from egorzhdan/egorzhdan/std-function-context
...
[cxx-interop] Allow initializing `std::function` from Swift capturing closures
2025-12-10 13:35:34 +00:00
Slava Pestov
3dcd9bb011
Merge pull request #85938 from slavapestov/12-year-old-fixme-strikes-back
...
Sema: Tighten ridiculous disambiguation hack for overloaded type declarations
2025-12-10 06:53:43 -05:00
Slava Pestov
e7d2c163be
Merge pull request #85933 from slavapestov/fix-ben-regression
...
Sema: Disambiguate some more bidirectional conversions
2025-12-10 06:53:01 -05:00
Tim Kientzle
313c4a6e77
Do not bother trying to run this test on watchOS
2025-12-10 09:06:53 +00:00
Slava Pestov
6701e5b39b
Sema: Tighten ridiculous disambiguation hack for overloaded type declarations
...
We noticed that a project failed to build with prepared overloads enabled,
but built successfully with prepared overloads disabled.
It turns out that the code clearly should never have been accepted in the
first place, because the type checker was making an arbitrary choice between
two nominal type declarations with the same name.
Further inspection revealed this was because of a FIXME added in 2013 which
was far too broad. Tighten up the logic here to only disambiguate if at least
one of the two declarations is a type alias, and it has the same underlying
type as the other one. A choice between unrelated nominal type declarations
should always be ambiguous.
This still isn't perfect, because we might have two generic type aliases
that are referenced in both solutions with different substitution maps,
in which case we will still erroneously pick the first one. But this
is better than the old logic, at least.
Fixes rdar://165863775.
2025-12-09 22:48:12 -05:00
Saleem Abdulrasool
58035835d2
Merge pull request #85899 from compnerd/filename
...
DriverTool: adjust `argv[0]` scanning for CAS
2025-12-09 18:13:01 -08:00