Pavel Yaskevich
6c518bd311
Merge pull request #61388 from xedin/support-closures-with-implicitly-wrapped-params
...
[CSClosure] Don't try to infer types for implicitly wrapped parameters
2022-10-03 09:14:17 -07:00
Doug Gregor
e7b107b53e
Ensure that there is a syntax error even with lazy parsing.
...
Without any syntax errors prior to lazy parsing, we'll reject this in
valid-parse testing of the new parser. Adding this doesn't change the
fundamental nature of this test.
2022-09-30 14:27:36 -07:00
Pavel Yaskevich
77f9c01b77
[CSClosure] Don't try to infer types for implicitly wrapped parameters
...
Update `applyPropertyWrapperToParameter` to set types to projected
and wrapped values and allow `TypeVariableRefFinder` to skip decls
with implicit property wrappers that are not yet resolved.
2022-09-30 12:53:01 -07:00
Anthony Latsis
e1d1760c87
Merge pull request #61141 from AnthonyLatsis/migrate-test-suite-to-gh-issues-28
...
Gardening: Migrate test suite to GH issues p. 28
2022-09-29 10:01:18 +03:00
Anthony Latsis
c55218d0e8
Merge pull request #61132 from AnthonyLatsis/migrate-test-suite-to-gh-issues-27
...
Gardening: Migrate test suite to GH issues p. 27
2022-09-28 05:10:40 +03:00
Anthony Latsis
34f78b2f8e
Gardening: Migrate test suite to GH issues: validation-test/compiler_crashers_2_fixed (4/4)
2022-09-27 23:44:12 +03:00
Anthony Latsis
24ac121da1
Gardening: Migrate test suite to GH issues: validation-test/compiler_crashers_2_fixed (3/4)
2022-09-27 23:44:05 +03:00
Anthony Latsis
3304744698
Merge pull request #61130 from AnthonyLatsis/migrate-test-suite-to-gh-issues-26
...
Gardening: Migrate test suite to GH issues p. 26
2022-09-27 08:01:51 +03:00
Anthony Latsis
06195573f2
Gardening: Migrate test suite to GH issues: validation-test/compiler_crashers_2_fixed (2/4)
2022-09-27 03:14:58 +03:00
Anthony Latsis
2577af7967
Gardening: Migrate test suite to GH issues: validation-test/compiler_crashers_2_fixed (1/4)
2022-09-27 03:14:39 +03:00
Anthony Latsis
73b6784946
Gardening: Migrate test suite to GH issues: validation-test/stdlib
2022-09-20 02:32:29 +03:00
Anthony Latsis
42e47d74f5
Gardening: Migrate test suite to GH issues: validation-test/SILOptimizer
2022-09-20 02:32:29 +03:00
Anthony Latsis
6192ffde27
Gardening: Migrate test suite to GH issues: validation-test/SIL
2022-09-20 02:32:29 +03:00
Anthony Latsis
1e2f6bbbfa
Gardening: Migrate test suite to GH issues: validation-test/Serialization (2/2)
2022-09-20 02:32:18 +03:00
Anthony Latsis
456a8debee
Gardening: Migrate test suite to GH issues: validation-test/Serialization (1/2)
2022-09-20 02:31:46 +03:00
Anthony Latsis
7778505bc6
Gardening: Migrate test suite to GH issues: validation-test/Sema (2/2)
2022-09-19 23:12:45 +03:00
Anthony Latsis
26791bc21e
Gardening: Migrate test suite to GH issues: validation-test/Sema (1/2)
2022-09-19 23:12:12 +03:00
Anthony Latsis
b2f386d521
Gardening: Migrate test suite to GH issues: validation-test/Runtime
2022-09-19 22:58:06 +03:00
Anthony Latsis
e52618ee34
Gardening: Migrate test suite to GH issues: validation-test/IRGen
2022-09-19 22:52:07 +03:00
Anthony Latsis
afb1eecb3e
Gardening: Migrate test suite to GH issues: validation-test/IDE
2022-09-19 22:47:19 +03:00
Anthony Latsis
763df189e5
Gardening: Migrate test suite to GH issues: validation-test/execution
2022-09-19 22:35:26 +03:00
Anthony Latsis
3fcadf6c15
Gardening: Migrate test suite to GH issues: validation-test/Evolution
2022-09-19 22:34:06 +03:00
Anthony Latsis
25e42ca56c
Gardening: Migrate test suite to GH issues: validation-test/compiler_crashers_fixed
2022-09-19 22:34:06 +03:00
Anthony Latsis
d024dc363f
Gardening: Migrate test suite to GH issues: validation-test/compiler_crashers_2
2022-09-19 22:33:48 +03:00
Anthony Latsis
2c955cbca8
Gardening: Migrate test suite to GH issues: validation-test/Casting
2022-09-19 03:37:41 +03:00
Drew Maxwell
7825221cd4
Updating Swift tests to remove outdated tests and use more current calls.
2022-09-16 15:11:10 -07:00
Pavel Yaskevich
c4b7d6da24
Merge pull request #61091 from xedin/issue-60958-alt
...
[ConstraintSystem] Use witnesses for `makeIterator` and `next` refs in `for-in` context
2022-09-15 08:58:20 -07:00
Guillaume Lessard
8a146bc417
Merge pull request #61110 from glessard/rdar99933632-32bit-slice-loadUnaligned
...
[test] fix buffer overflow in 32-bit device testing
2022-09-15 04:48:31 -06:00
Guillaume Lessard
03c9ac9c98
[test] fix buffer overflow in 32-bit device testing
2022-09-14 16:24:16 -06:00
Pavel Yaskevich
c798a7fb72
[CSSimplify] Member ref decays into value witness for makeIterator in for-in
...
Reference to `makeIterator` in for-in loop context needs to be
treated as a reference to a witness of `Sequence#makeIterator`
requirement, otherwise it could lead to problems with retroactive
conformances.
2022-09-14 11:35:27 -07:00
Guillaume Lessard
2689b6044b
Merge pull request #41608 from glessard/se-pointer-family-initialization
2022-09-13 22:00:59 -06:00
Pavel Yaskevich
3e791dd169
[CSClosure] Use correct type for implicit wrapper variables
...
Using `computeWrappedValueType` is incorrect because
that return a type of the wrapped variable and not
the *wrapper* variable (one that starts with `_`).
Resolves: https://github.com/apple/swift/issues/61017
2022-09-12 09:53:24 -07:00
Guillaume Lessard
71b6d99126
[test] fix a test warning
2022-09-11 05:17:22 -06:00
Guillaume Lessard
56c688777d
[test] test overflow preconditions in collection copies
2022-09-09 18:02:43 -06:00
Alastair Houghton
67304e56fb
[Test] Remove nonexistent library from target-run command.
...
This caused tests to fail if they were running remotely, but not locally.
rdar://99627836
2022-09-07 11:21:38 +01:00
Guillaume Lessard
83c18dee6b
Update validation-test/stdlib/UnsafeBufferPointerSlices.swift
...
Co-authored-by: Ben Rimmington <me@benrimmington.com >
2022-09-06 15:10:53 -06:00
Luciano Almeida
cc11e1938f
[test] Add regression test for fn builders
2022-09-06 01:39:30 -03:00
Eric Miotto
f7a11c7543
Tests all cases of infer-cross-compile-hosts-on-darwin at once ( #60824 )
...
The current implementation currently requires to have physical machine
for each architecture supported by macOS, which is not desirable.
To allow all cases to be tested on a random Mac machine, allow
to inject an arbitratry current architecture into the inference
of the cross compile hosts by means of an environment variable.
Addresses rdar://99096874
2022-08-30 00:10:40 -07:00
Arnold Schwaighofer
c528e966e8
Add missing REQUIRES: executable_test to the test IRGen/98995607.swift.gyb
...
redar://99229421
2022-08-29 06:17:18 -07:00
Guillaume Lessard
3e22d3a2bc
[test] update to use the fromContentsOf argument label
2022-08-26 17:36:40 -06:00
Guillaume Lessard
d86b727c80
[test] add tests for load and store from slices
2022-08-26 17:36:40 -06:00
Guillaume Lessard
d63747f13d
[stdlib] remove the single-element update functions
...
- as per an update to the proposal
2022-08-26 17:36:40 -06:00
Guillaume Lessard
bb69e34b52
[test] initialization of slices of UnsafeBufferPointer types
2022-08-26 17:36:40 -06:00
John McCall
013eda4cd2
Merge pull request #60782 from rjmccall/use-after-free-lazy-global-emission
...
Fix a potential use-after-free in lazy global emission.
2022-08-25 19:53:03 -04:00
Guillaume Lessard
1bba62ec13
Merge pull request #60613 from glessard/pointer-arithmetic-overflow-checks
...
[stdlib] add overflow checks for some pointer arithmetic
2022-08-25 14:37:44 -06:00
John McCall
847c060eaf
Fix a potential use-after-free in lazy global emission.
...
Extended existential type shapes can trigger this by introducing
more entities (and thus causing GlobalVars to be rehashed) during
the lazy-emission callback.
Fixes rdar://98995607
2022-08-25 16:31:17 -04:00
Guillaume Lessard
3fcf2a2046
[test] pointer arithmetic overflow checks
2022-08-23 14:27:42 -06:00
Allan Shortlidge
6471cd24c3
Merge pull request #60714 from tshortli/property-wrapper-availability
...
Sema: Check the availability of property wrappers attached to VarDecls in named patterns
2022-08-23 09:04:25 -07:00
Eric Miotto
67b23d7d45
Merge pull request #60664 from edymtt/infer-cross-compile-hosts-on-darwin
...
Add a flag to infer appropriate cross compile hosts on Darwin
2022-08-23 07:04:36 -07:00
Doug Gregor
714eee0f52
Merge pull request #60720 from DougGregor/attribute-eof-parser-loop
2022-08-23 06:48:05 -07:00