Commit Graph

3132 Commits

Author SHA1 Message Date
swift-ci
d0700b3f2a Merge remote-tracking branch 'origin/main' into rebranch 2022-08-10 16:34:37 -07:00
Michael Gottesman
471142c838 Merge pull request #60493 from gottesmm/pr-5090c953a85817f4f92399698c8d97134ff8cae4
[move-keyword] Put the move keyword behind the experimental move only flag for now.
2022-08-10 16:20:06 -07:00
Michael Gottesman
f3081d0e9a [move-keyword] Put the move keyword behind the experimental move only flag for now.
Originally move when it was in the stdlib as _move was behind a keyword but we
moved it in front to allow for some testing. Now that we are going with a
keyword (which we can't leave in/deprecate) move it behind the move only
experimental flag until this gets through evolution.
2022-08-10 12:45:17 -07:00
swift-ci
85f48aeb15 Merge remote-tracking branch 'origin/main' into rebranch 2022-08-09 18:53:20 -07:00
swift-ci
7701ddc054 Merge pull request #60428 from Catfish-Man/tag-youre-it
Handle long tagged NSStrings
2022-08-09 18:47:39 -07:00
David Smith
27a27fe034 Fix test 2022-08-09 14:35:10 -07:00
David Smith
ad00633cf1 Fix assert 2022-08-09 14:12:20 -07:00
David Smith
f966017c9c Review feedback 2022-08-08 17:27:23 -07:00
swift-ci
0409774802 Merge remote-tracking branch 'origin/main' into rebranch 2022-08-08 16:56:17 -07:00
David Smith
b3d8875834 Iterate on the long tagged string test 2022-08-08 16:23:54 -07:00
Michael Gottesman
6493886e1d [move-keyword] Wire up support for the move keyword in lvalue/rvalue emission.
I also updated the move function tests to show that this is working. As a nice
bonus, I was able to enable all of the tests also in a non-optimized stdlib.
2022-08-08 12:50:42 -07:00
David Smith
e0dd80fe3b Handle long tagged NSStrings 2022-08-05 19:02:37 -07:00
swift-ci
3da724cee2 Merge remote-tracking branch 'origin/main' into rebranch 2022-08-01 13:34:53 -07:00
Duo Wang
72e0ac2819 [tests] fix missing codesign in test files 2022-07-28 13:59:44 -07:00
swift-ci
3562f25346 Merge remote-tracking branch 'origin/main' into rebranch 2022-07-14 13:34:16 -07:00
Guillaume Lessard
480361b360 [test] move test to a file requiring the full stdlib
- SIMD types are not available in the minimal stdlib
2022-07-14 13:52:21 -06:00
swift-ci
d919357e5f Merge remote-tracking branch 'origin/main' into rebranch 2022-07-13 16:13:25 -07:00
Guillaume Lessard
bee4eaefc4 Merge pull request #60025 from glessard/rdar96841899
[stdlib] fix unaligned loads of large SIMD vectors on x86_64
2022-07-13 17:04:32 -06:00
Guillaume Lessard
9d1ca61bec Update test/stdlib/UnsafeRawPointer.swift 2022-07-13 11:29:44 -06:00
Guillaume Lessard
8bb22f88fc [test] unaligned loads of large, generic SIMD types 2022-07-12 14:50:48 -06:00
swift-ci
a3f161112b Merge remote-tracking branch 'origin/main' into rebranch 2022-07-12 05:14:46 -07:00
Anthony Latsis
d74384cfcf Merge pull request #59931 from AnthonyLatsis/close-issues-3
Add regression tests to close several issues p. 3
2022-07-12 15:11:52 +03:00
swift-ci
7382a9c41e Merge remote-tracking branch 'origin/main' into rebranch 2022-07-11 07:53:46 -07:00
nate-chandler
aff4e799d9 Merge pull request #59726 from nate-chandler/freestanding/task-to-thread-model
[Freestanding] Disable unstructured tasks.
2022-07-11 07:40:31 -07:00
Nate Chandler
34c08b8344 [TaskToThread] Add Task.runInline.
The new intrinsic, exposed via static functions on Task<T, Never> and
Task<T, Error> (rethrowing), begins an asynchronous context within a
synchronous caller's context.  This is only available for use under the
task-to-thread concurrency model, and even then only under SPI.
2022-07-08 08:44:18 -07:00
Nate Chandler
68eea8adec [TaskToThread] No unstructured tasks.
In this mode, the following are disabled:

- task creation
- global actors
- MainActor
- custom executors
2022-07-06 11:51:16 -07:00
swift-ci
33cce02ddb Merge remote-tracking branch 'origin/main' into rebranch 2022-07-06 11:14:12 -07:00
Nate Chandler
3439ce77da [Test] Disable stdlib/Mirror.swift for back deploy.
rdar://96520492
2022-07-06 09:12:52 -07:00
Anthony Latsis
3615aa1106 Add regression test to close #43154 2022-07-05 19:29:07 +03:00
swift-ci
aa5f56d983 Merge remote-tracking branch 'origin/main' into rebranch 2022-06-28 16:53:21 -07:00
Anthony Latsis
087eba83a2 Merge pull request #59757 from AnthonyLatsis/close-issues-2
Add regression tests to close several issues p. 2
2022-06-29 02:48:54 +03:00
Anthony Latsis
f9b76b88f9 Add regression test to resolve #43068 2022-06-28 22:36:14 +03:00
Anthony Latsis
2a84083714 Add regression test to close #43211 2022-06-28 22:36:14 +03:00
Anthony Latsis
e487acf43b Enable additional checks in test/stdlib/Mirror.swift that used to not compile 2022-06-28 22:36:14 +03:00
Anthony Latsis
7732306fa9 Add regression test to close #43135 2022-06-25 00:48:02 +03:00
swift-ci
b8f39b56be Merge remote-tracking branch 'origin/main' into rebranch 2022-06-22 09:15:09 -07:00
Alejandro Alonso
95da55b182 [stdlib] Implement String.WordView (#42414)
* Implement String.WordView

* Add isWordAligned bit

* Hide WordView for now (also separate Index type)

add bidirectional conformance

Fix tests

* Address comments from Karoy and Michael

* Remove word view, use index methods

* Address Karoy's comments

aaa
2022-06-22 09:10:09 -07:00
swift-ci
1ee42620c7 Merge remote-tracking branch 'origin/main' into rebranch 2022-06-09 11:53:31 -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
Ben Barham
bcffb8e543 [next] Temporarily disable tgmath.swift.gyb
Disable `test/stdlib/tgmath.swift.gyb` while it's being looked into in
order to unblock CI.
2022-06-08 15:19:32 -07:00
Allan Shortlidge
e365fd1ef4 Tests: Mark test/stdlib/StringCreate.swift as unsupported on back deployment bots.
Using XFAIL won't work here because the tests pass on the iOS back deployment bots, resulting in a UPASS.

I was able to take a look at the test binary and rule out both codegen for `if #available(...)` and the optimizer as culprits so the next step is to check if `_stdlib_isOSVersionAtLeast()` is actually busted in the runtime libraries in older versions of macOS.
2022-06-06 17:05:18 -07:00
Allan Shortlidge
c0b91c9cad Tests: XFAIL test/stdlib/StringCreate.swift on the back deployment bots until the failures there can be investigated further. 2022-06-02 09:14:23 -07:00
Ben Barham
c163e0fe5e [Tests] Make OS features consistent
lit.py currently allows any substring of `target_triple` to be used as a
feature in REQUIRES/UNSUPPORTED/XFAIL. This results in various forms of
the OS spread across the tests and is also somewhat confusing since they
aren't actually listed in the available features.

Modify all OS-related features to use the `OS=` version that Swift adds
instead. We can later remove `config.target_triple` so that these don't
the non-OS versions don't work in the first place.
2022-05-20 19:51:23 -07:00
Karoy Lorentey
07ffddebae Merge pull request #58954 from lorentey/string-bincompat-workarounds
[stdlib] Work around binary compatibility issues with String index validation fixes in 5.7
2022-05-18 11:09:44 -07:00
Karoy Lorentey
50c2399a94 [stdlib] Work around binary compatibility issues with String index validation fixes in 5.7
Swift 5.7 added stronger index validation for `String`, so some illegal cases that previously triggered inconsistently diagnosed out of bounds accesses now result in reliable runtime errors. Similarly, attempts at applying an index originally vended by a UTF-8 string on a UTF-16 string now result in a reliable runtime error.

As is usually the case, new traps to the stdlib exposes code that contains previously undiagnosed / unreliably diagnosed coding issues.

Allow invalid code in binaries built with earlier versions of the stdlib to continue running with the 5.7 library by disabling some of the new traps based on the version of Swift the binary was built with.

In the case of an index encoding mismatch, allow transcoding of string storage regardless of the direction of the mismatch. (Previously we only allowed transcoding a UTF-8 string to UTF-16.)

rdar://93379333
2022-05-17 19:25:10 -07:00
David Smith
9dd8d3ad1a Actually slice things in _StringGutsSlice 2022-05-17 14:31:11 -07:00
Josh Soref
624a54b9cf Spelling stdlib (#42544)
* spelling: abcdefghijklmnopqrstuvwxyz

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: clazz

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: collection

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: compressible

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: constituent

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: contiguous

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: convertibility

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: element

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: enforce

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: exhaustive

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: exhausts

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: existential

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: facilitate

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: ignored

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: incorporated

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: intersection

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: laziness

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: misaligned

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: overhaul

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: preamble

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: precondition

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: replacement

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: trailing

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: unambiguous

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: uncompressible

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: world

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-04-22 19:18:38 -07:00
Doug Gregor
c76a99ba02 [SE-0352] Enable implicit opening of existentials by default 2022-04-20 17:51:04 -07:00
Karoy Lorentey
2574d78d40 Merge pull request #42442 from lorentey/better-index-conversions 2022-04-19 20:22:06 -07:00
Karoy Lorentey
e21b846828 [test] Add new tests for String.Index(_:within:) 2022-04-18 20:57:54 -07:00