Pavel Yaskevich
c246a7a372
[AST/Sema] Hide using declaration behind DefaultIsolationPerFile experimental feature
2025-05-31 10:49:50 -07:00
swift-ci
781cb5de48
Merge remote-tracking branch 'origin/main' into rebranch
2025-05-31 02:14:22 -07:00
Hamish Knight
dde37c0f01
Merge pull request #81868 from hamishknight/x-of-hearts
...
Change InlineArray sugar separator `x` -> `of`
2025-05-31 10:05:26 +01:00
Allan Shortlidge
aca604660f
AST/Sema: Make MemberImportVisibility a migratable feature.
...
The migration to `MemberImportVisibility` can be performed mechanically by
adding missing import declarations, so offer automatic migration for the
feature.
Resolves rdar://151931597.
2025-05-30 15:34:08 -07:00
swift-ci
e79cecfe96
Merge remote-tracking branch 'origin/main' into rebranch
2025-05-30 09:55:35 -07:00
Ben Barham
b0d5e0e8f1
Merge pull request #81697 from bnbarham/use-toolchain-version
...
Add the distribution tag to `-print-target-info`
2025-05-30 09:51:03 -07:00
Hamish Knight
5d1f219acb
Change InlineArray sugar separator x -> of
2025-05-30 13:50:22 +01:00
Ben Barham
3c098782b4
Add the distribution tag to -print-target-info
...
Ideally this would also update the `--version` output to be overridden
by `SWIFT_TOOLCHAIN_VERSION`, but unfortunately various tools rely on
the current format (eg. swift-build).
2025-05-28 17:29:17 -07:00
swift-ci
e33c562009
Merge remote-tracking branch 'origin/main' into rebranch
2025-05-22 08:53:45 -07:00
Doug Gregor
abad2fae0f
Make the optional feature StrictMemorySafety migratable
...
This feature is essentially self-migrating, but fit it into the
migration flow by marking it as migratable, adding
`-strict-memory-safety:migrate`, and introducing a test.
2025-05-22 11:07:13 +01:00
Doug Gregor
a32782bcbc
Make InferIsolatedConformances a migratable upcoming feature
...
When migrating, provide warnings that add 'nonisolated' to nonisolated
conformances that don't already have it and would end up being inferred
to be isolated under the upcoming feature.
2025-05-22 11:07:13 +01:00
swift-ci
1be25bb35f
Merge remote-tracking branch 'origin/main' into rebranch
2025-05-21 13:51:40 -07:00
Artem Chikin
24f2975db6
Merge pull request #81510 from artemcm/ConstSyntacticVerify
...
[Compile Time Values] Add syntactic verification of valid expressions in `@const` contexts
2025-05-21 13:22:05 -07:00
swift-ci
8ec33f9344
Merge remote-tracking branch 'origin/main' into rebranch
2025-05-20 10:39:13 -07:00
Stephen Canon
3aa7b592b6
Implement Builtin.select binding llvm select instruction ( #81598 )
...
Not used (yet), but needed to implement SIMD.replacing(with:where:) idiomatically, and probably useful otherwise.
2025-05-20 13:30:59 -04:00
Artem Chikin
d8176a7e89
[Compile Time Values] Add syntactic verification of valid expressions in '@const' contexts
...
Syntactically verify that initializer expressions of '@const' variables and argument expressions to '@const' parameters consist strictly of syntactically-verifiable set of basic values and operations
2025-05-20 09:38:36 -07:00
swift-ci
fe523c4b0b
Merge remote-tracking branch 'origin/main' into rebranch
2025-05-20 02:15:11 -07:00
Hamish Knight
d672f750e7
[Basic] Rename abortWithPrettyStackTraceMessage to ABORT
...
Turn it into a wrapping macro that includes the file location, and
move into `Assertions.h`.
2025-05-19 20:55:01 +01:00
Hamish Knight
ffb474e0b9
[Basic] NFC: Factor out _FILENAME_FOR_ASSERT macro
2025-05-19 20:55:01 +01:00
Hamish Knight
92641253f7
[Basic] NFC: Remove ASSERT_help from header
...
It's not clear this is a useful utility to expose since it will only
print the message once.
2025-05-19 20:55:01 +01:00
Hamish Knight
d46aec9f00
[Basic] Handle multiline strings in abortWithPrettyStackTraceMessage
...
Improve the formatting by indenting to match the rest of the
pretty stack trace.
2025-05-19 20:55:01 +01:00
swift-ci
3d8feb9841
Merge remote-tracking branch 'origin/main' into rebranch
2025-05-16 03:17:21 -07:00
Erik Eckstein
7f6fb74418
SILBridging: move BridgedInstruction.OptionalInt -> BridgedOptionalInt in BasicBridging.h
2025-05-15 21:29:02 +02:00
swift-ci
a9c3de06ca
Merge remote-tracking branch 'origin/main' into rebranch
2025-05-15 08:33:46 -07:00
swift-ci
33ad7cd97b
Merge remote-tracking branch 'origin/main' into rebranch
2025-05-15 05:54:06 -07:00
Anthony Latsis
fe575c66a9
Manually merge remote-tracking branch 'origin/main' into rebranch
...
Conflicts:
lib/AST/RequirementMachine/RequirementLowering.cpp
2025-05-15 13:48:37 +01:00
Pavel Yaskevich
c050e8f75a
[AST] Protect declarations with @_inheritActorContext(always) by a feature flag
...
This is going to avoid condfails when declarations are printed
in the swiftinterface files.
2025-05-14 20:07:59 -07:00
Becca Royal-Gordon
36de3a85e9
Merge pull request #81459 from beccadax/mod-squad-serialize
2025-05-14 19:25:22 -07:00
Becca Royal-Gordon
c3a61bee0e
Add experimental feature for module selector
2025-05-14 11:16:02 -07:00
Steven Wu
3c81c1ca9f
[Caching] Remove CASFS clang module implemenation
...
Remove the CASFS based clang module implemenation as it is not longer
used.
2025-05-14 09:35:03 -07:00
swift-ci
37311139fc
Merge remote-tracking branch 'origin/main' into rebranch
2025-05-13 16:33:41 -07:00
Steven Wu
201e4faea7
[Caching] Reduce the number of cas ID passed on frontend commandline
...
Using IncludeTree::FileList to concat the include tree file systems that
are passed on the command-line. This significantly reduce the
command-line size, and also makes the cache key computation a lot
faster.
rdar://148752988
2025-05-13 09:20:13 -07:00
swift-ci
4f529ae154
Merge remote-tracking branch 'origin/main' into rebranch
2025-05-09 11:19:56 -07:00
Mike Ash
0f2b047155
[Concurrency] Use reinterpret_cast for function_cast when ptrauth is on.
...
We need to use reinterpret_cast when ptrauth is enabled to ensure that any necessary auth-and-sign operations are performed.
rdar://150747009
2025-05-08 16:28:45 -04:00
swift-ci
3f37a819b8
Merge remote-tracking branch 'origin/main' into rebranch
2025-05-08 13:23:40 -07:00
Ben Barham
6667471b3d
Merge pull request #81115 from beccadax/abi-let-you-graduate
...
Finish implementing `@abi` (SE-0476)
2025-05-08 12:52:00 -07:00
Anthony Latsis
0c536923c9
Manually merge branch 'main' into rebranch
2025-05-07 14:05:43 +01:00
Becca Royal-Gordon
01431b87b2
Make @abi non-experimental
...
This includes changing the feature name so that compilers with the experimental feature don’t accidentally pick up content that only works in the final version.
Resolves rdar://150065196.
2025-05-05 13:50:51 -07:00
Michael Gottesman
9d59dbed17
[swift-settings] Now that we aren't using it immediately, remove it from tree.
...
We can always get it back from the git history.
rdar://150695113
2025-05-05 13:39:03 -07:00
Egor Zhdan
b51cfa5c76
[cxx-interop] Remove symbolic import mode
...
Importing C++ class templates in symbolic mode has proven to be problematic in interaction with other compiler features, and it isn't used widely. This change removes the feature.
rdar://150528798
2025-05-02 18:43:09 +01:00
swift-ci
568819fe0f
Merge remote-tracking branch 'origin/main' into rebranch
2025-05-02 00:14:13 -07:00
Karoy Lorentey
74efc7d354
Merge pull request #80859 from lorentey/is_same_metatype_condfail
...
[stdlib] Allow metatype comparisons to work with outdated compilers
2025-05-02 00:06:18 -07:00
swift-ci
29867f0108
Merge remote-tracking branch 'origin/main' into rebranch
2025-04-29 17:39:43 -07:00
Pavel Yaskevich
085078dd8a
[Feature] Rename Feature APIs from adoption to migration
2025-04-28 11:52:46 -07:00
Pavel Yaskevich
2a479acf9e
[Feature] NFC: Rename ADOPTABLE_ with MIGRATABLE_ to match the proposal
2025-04-28 10:42:22 -07:00
swift-ci
dd8c99e095
Merge remote-tracking branch 'origin/main' into rebranch
2025-04-25 10:17:16 -07:00
Pavel Yaskevich
6d89bca765
[Frontend] Add ExtensibleAttribute to guard use of @extensible attribute
...
Guard against condfails when older compilers get a swift interface
that uses `@extensible` attribute. The attribute itself doesn't
have any effect in swift interfaces yet since all of the public
enums are already resilient in that mode.
2025-04-24 12:09:17 -07:00
Anthony Latsis
b301dfe263
Basic: Rename symbol in bitfield macro to not collide with Clang
...
Per 131acb07d814fabcc969dcaa63f4f352cd529267 (llvm-project).
2025-04-24 01:52:46 +01:00
Pavel Yaskevich
c110941c27
[Frontend] Rename AsyncCallerExecution upcoming feature to NonisolatedNonsendingBeDefault
2025-04-21 13:59:29 -07:00
Pavel Yaskevich
a3d35d54e5
[Frontend] Mark AsyncCallerExecution as an upcoming feature in Swift 7
2025-04-21 11:45:48 -07:00