Commit Graph

7604 Commits

Author SHA1 Message Date
Hamish Knight
72fe29f7f4 [CS] Add custom diagnostic for missing result builder element
If we have a single missing argument for an empty
`buildBlock` call, emit a custom diagnostic.
2024-09-08 16:17:11 +01:00
swift-ci
577e000cf9 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-05 12:15:20 -07:00
Allan Shortlidge
c04736f75f Merge pull request #76276 from tshortli/remove-valid-triples-for-zippering-assertion
SILGen: Remove triplesAreValidForZippering() assert
2024-09-05 12:03:06 -07:00
Allan Shortlidge
4c3a009c2b SILGen: Remove triplesAreValidForZippering() assert.
This assert was correctly catching the fact that `-target-variant` is not being
normalized at the same time as `-target` when building arm64e modules from
swiftinterface. That should be fixed, but at the moment it isn't causing any
concrete harm and the assertion fails when building against the SDKs included
with the latest Xcode 16 betas.

Resolves rdar://133020098.
2024-09-04 22:39:21 -07:00
swift-ci
b29ebad446 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-04 12:04:17 -07:00
Slava Pestov
a3c0e225a7 Merge pull request #76238 from slavapestov/existential-signature-rework-part-3
Allow type variables to appear inside opened existential archetypes
2024-09-04 14:53:18 -04:00
swift-ci
a58ebac7f0 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-04 09:34:28 -07:00
Pavel Yaskevich
f9e08bc6ec Merge pull request #76174 from xedin/remodel-constraint-generation-for-assignment
[ConstraintSystem] Introduce `LValueObject` constraint to replace direct l-value assignments
2024-09-04 09:27:59 -07:00
Slava Pestov
5a43d2403e Sema: Simplify opened existential types in solution 2024-09-04 10:42:19 -04:00
swift-ci
e092119807 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-04 07:14:03 -07:00
Hamish Knight
3b0d692b30 [test] Restrict complete_sdk_platform.swift to macOS
rdar://135232586
2024-09-04 10:26:23 +01:00
swift-ci
5116eda564 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-03 16:14:13 -07:00
Hamish Knight
142daacd61 [test] Re-enable expectation in complete_sdk_platform.swift
rdar://134963605
2024-09-03 18:40:51 +01:00
swift-ci
a4cffa96e4 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-03 10:34:34 -07:00
Hamish Knight
350c1ce771 Merge pull request #76222 from hamishknight/xfactor
[test] NFC: Factor out `%xcode-extra-platform-search-paths`
2024-09-03 18:21:39 +01:00
Hamish Knight
4f1bebf598 [test] NFC: Factor out %xcode-extra-platform-search-paths 2024-09-03 14:19:59 +01:00
swift-ci
0a19be5d95 Merge remote-tracking branch 'origin/main' into rebranch 2024-09-03 04:34:14 -07:00
Erik Eckstein
6c46d03601 tests: reduce the timeout of SILOptimizer/large_nested_array.swift.gyb again
It turns out that some CI jobs need 5-6 minutes for this test. To give some slack, use a timeout of 10 minutes.

This is a follow-up of https://github.com/swiftlang/swift/pull/76146
2024-09-03 09:26:31 +02:00
swift-ci
bc515098a3 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-30 22:14:01 -07:00
nate-chandler
9ee877943e Merge pull request #76186 from nate-chandler/rdar133779160
[ODL] Handle builtins.
2024-08-30 21:54:08 -07:00
Nate Chandler
5d9802f25f [ODL] Handle builtins.
No update is needed for the values they produce.  This pass should
really be refactored not to crash on instructions that aren't explicitly
listed or at least not to compile if not every instruction is listed.

rdar://133779160
2024-08-30 16:09:11 -07:00
Pavel Yaskevich
dab01bc1fe [Tests] NFC: Update some of the changed/improved tests 2024-08-30 15:39:25 -07:00
swift-ci
3c49138928 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-29 18:34:15 -07:00
Hamish Knight
17b143cd99 Merge pull request #76156 from hamishknight/fix-test
[test] Temporarily remove a check from complete_sdk_platform.swift
2024-08-30 02:23:36 +01:00
swift-ci
229f81a516 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-29 14:34:05 -07:00
Ben Langmuir
d94bce7355 Merge pull request #76027 from benlangmuir/explicit-targets
[test] Add explicit targets to tests depending on the default
2024-08-29 14:25:05 -07:00
Hamish Knight
51dcc9e0b9 [test] Temporarily remove a check from complete_sdk_platform.swift 2024-08-29 22:19:05 +01:00
swift-ci
fd6a875975 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-29 11:55:41 -07:00
Ben Langmuir
7d11d43d6d [test] Add explicit targets to tests depending on the default
Add specific deployment target versions to some tests that need to test
10.x-specific behaviours and are currently depending on the default
deployment target.

Certain tests were only checking either the stable or unstable ABI
depending on the platform the test was running. In those cases I doubled
up the checks so that we would test both cases on platforms that
supported it. This might use a bit of extra time on targets that only
support the stable ABI, but it seemed worth it for the additional
coverage in CI.
2024-08-29 07:55:14 -07:00
Mike Ash
eead3fa921 [Test] Temporarily increase large_nested_array.swift.gyb timeout to 2400 seconds while we investigate timeouts in CI. 2024-08-29 09:07:52 -04:00
swift-ci
05354cab9a Merge remote-tracking branch 'origin/main' into rebranch 2024-08-27 22:13:30 -07:00
nate-chandler
c56a313d6c Merge pull request #76114 from nate-chandler/rdar133969821_2
[DAH] Bail on pointer use if ignoring barriers.
2024-08-27 21:57:39 -07:00
Nate Chandler
74c4bc9c55 [DAH] Bail on pointer use if ignoring barriers.
Unknown uses of raw pointers should not result in bailing out when an
address is lexical--the destroy of the address will already not be
hoisted over any instructions which may access pointers.  If the address
is not lexical however (such as any address when lexical lifetimes are
disabled), that rationale does not apply, so unknown uses of raw
pointers must cause hoisting to bail.

rdar://133969821
2024-08-27 16:18:39 -07:00
swift-ci
e473b6f53b Merge remote-tracking branch 'origin/main' into rebranch 2024-08-27 15:33:41 -07:00
Erik Eckstein
c1c3f76885 tests: fix SILOptimizer/rdar114699006.swift after a mangling change
Also enable this test for all 64 bit platforms, like arm64
2024-08-27 20:04:37 +02:00
swift-ci
97f2c34604 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-27 08:14:27 -07:00
Hamish Knight
940f5f7c2a [AST] Treat platform modules as non-user
Modules defined within the SDK are considered
non-user modules, extend this to any module found
within the parent platform directory if there is
one. This ensures we include modules such as
XCTest and Testing.

rdar://131854240
2024-08-23 14:23:37 +01:00
Becca Royal-Gordon
fd84e7273d Rename module.map -> module.modulemap in tests
The legacy `module.map` spelling of module map files was deprecated by llvm/llvm-project#75142 and clang expects to remove support for them in the future. Switch all tests to use the supported spelling.

Fixes rdar://128431478.
2024-08-12 17:47:26 -07:00
Ben Barham
df81d0a450 [Tests] XFAIL the remaining test failures on rebranch
Only a few tests remaining. XFAIL so we can test the rest of the
toolchain.
2024-08-08 14:47:18 -07:00
swift-ci
6172e1dc44 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-07 17:34:15 -07:00
Alex Hoppen
8edb57c756 Merge pull request #75667 from ahoppen/build-issues-live-issues
[Sema/SourceKit] Emit same diagnostics for missing protocol requirements on the command line and in SourceKit
2024-08-07 17:24:47 -07:00
swift-ci
04d8b3e7a2 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-07 17:15:02 -07:00
Slava Pestov
2925d4659b Merge pull request #75756 from slavapestov/fix-issue-74569
SIL: Fix signature of reabstraction thunk involving parameterized existential
2024-08-07 20:14:03 -04:00
Alex Hoppen
66104395d7 [Sema/SourceKit] Emit same diagnostics for missing protocol requirements on the command line and in SourceKit
Some editors use diagnostics from SourceKit to replace build issues. This causes issues if the diagnostics from SourceKit are formatted differently than the build issues. Make sure they are rendered the same way, removing most uses of `DiagnosticsEditorMode`.

To do so, always emit the `add stubs for conformance` note (which previously was only emitted in editor mode) and remove all `; add <something>` suffixes from notes that state which requirements are missing.

rdar://129283608
2024-08-07 14:01:30 -07:00
Slava Pestov
de16ed8d27 SIL: Fix signature of reabstraction thunk involving parameterized existential
Fixes https://github.com/swiftlang/swift/issues/74569
Fixes rdar://problem/130402282
2024-08-07 15:25:52 -04:00
swift-ci
cb245d1e55 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-07 09:17:37 -07:00
Ben Barham
7bdf1e117e Merge remote-tracking branch 'origin/main' into manually-merge-main-to-rebranch
Conflicts:
  - `lib/PrintAsClang/PrintSwiftToClangCoreScaffold.cpp` not positive
    what the cause here was, just took main.
2024-08-06 13:44:27 -07:00
Ryan Mansfield
35fb08790b Use num_extra_inhabitants_64bit to fix reflect_CheckedContinuation.swift and
reflect_UnsafeContinuation.swift on non-Darwin platforms.
2024-08-06 16:05:55 -04:00
Holly Borla
93191020bc Merge pull request #75687 from hborla/sendable-param-diagnostics
[Concurrency] Split up the non-`Sendable` diagnostics and improve wording.
2024-08-05 21:21:33 -07:00
Holly Borla
7dbec846f7 [NFC] Update a few tests for concurrency diagnostics changes. 2024-08-05 17:26:07 -07:00