Robert Widmann
28b66f6225
Switch DeclValidation Counter to Request Counter
...
Now that validateDecl is gone, stop duplicating work here and use the
request counter instead.
2019-10-28 15:36:50 -07:00
swift-ci
3971c0a973
Merge pull request #27890 from vedantk/master
2019-10-28 13:51:52 -07:00
Vedant Kumar
157cb2a654
[build-script] Forward --skip-local-build to build-script-impl
...
Otherwise, build-script-impl ignores --skip-local-build.
2019-10-28 12:20:38 -07:00
Robert Widmann
30fd3f0a07
Merge pull request #27872 from CodaFi/a-designation-without-a-difference
...
[NFC] Remove Some Users of -solver-enable-operator-designated-types
2019-10-25 18:51:04 -07:00
Robert Widmann
bbed5276ee
Merge pull request #27862 from CodaFi/valid-the-impalers-revenge
...
Remove The Last Vestiges of `isInvalid` from Parse Harder This Time
2019-10-25 17:38:01 -07:00
Robert Widmann
86e5ed18a0
Add a bailout path to protocol requirement source formation
...
The GSB will try to form and note invalid constraints, but there are
a few paths that aren't prepared for error types to pop up. Add
a defensive check to formProtocolRelativeType to make sure we don't wind
up force-casting an error type.
Fixes rdar://56116278
2019-10-25 13:08:41 -07:00
Xi Ge
96523124a9
[test] xfail several stdlib tests failing in CI
...
10:21:57 Failing Tests (4):
10:21:57 Swift(macosx-x86_64) :: stdlib/SwiftNativeNSBase.swift
10:21:57 Swift(macosx-x86_64) :: stdlib/TestNSString.swift
10:21:57 Swift(macosx-x86_64) :: stdlib/TestJSONEncoder.swift
rdar://55727144
2019-10-25 11:04:52 -07:00
Robert Widmann
46ae4757d2
Remove Some Users of -solver-enable-operator-designated-types
...
There are now two regression tests that need this feature enabled to
pass.
2019-10-24 16:50:45 -07:00
Robert Widmann
a1e956d3e7
Resolve a compiler crasher
2019-10-24 16:03:41 -07:00
David Smith
637af2f9fe
Merge pull request #27709 from Catfish-Man/bridge-to-the-future
...
Optimize accessing Swift arrays via ObjC
2019-10-23 00:19:06 -07:00
David Smith
d9cef0afef
Optimize accessing Swift Arrays from ObjC
2019-10-22 20:57:36 -07:00
Suyash Srijan
76a5896c3f
Merge pull request #27727 from theblixguy/fix/SR-11603
...
[PropertyWrappers] Fix lvalue computation in buildStorageReference
2019-10-19 13:28:36 +01:00
Suyash Srijan
d311879122
[Test] Move test case to compiler crashers
2019-10-19 03:34:09 +01:00
Holly Borla
e5c99cace6
Merge pull request #27769 from hborla/anyobject-conformance-failure
...
[ConstraintSystem] Diagnose missing AnyObject conformance using the MissingConformance constraint fix.
2019-10-18 22:10:21 -04:00
Holly Borla
dca1373e46
[ConstraintSystem] Don't fail in matchTypes when two primary archetype types
...
are not equal when part of a type requirement. This allows the
SkipSameTypeRequirement constraint fix to be applied instead.
2019-10-18 17:34:03 -07:00
Rintaro Ishizaki
bb0b8f72a5
Merge pull request #27741 from rintaro/xfail-55944126
...
Disable ArrayNew.swift.gyb in armv7k or armv7s
2019-10-17 15:19:53 +02:00
Rintaro Ishizaki
836b929bd0
Disable ArrayNew.swift.gyb in armv7k or armv7s
...
rdar://problem/55944126
2019-10-16 17:13:36 -07:00
Jordan Rose
056979680d
Revert "[reflection] Fix tests with bitwise_takable output"
...
This reverts commit b906348665 .
2019-10-16 16:09:56 -07:00
Jordan Rose
52035c1cb9
Merge pull request #27081 from ismetanin/SR-7165
...
SR-7165. Excise <iostream> from reflection
2019-10-16 13:34:02 -07:00
Ivan Smetanin
b906348665
[reflection] Fix tests with bitwise_takable output
2019-10-16 09:03:55 +03:00
Brent Royal-Gordon
ecf76c8fdf
Merge pull request #27586 from brentdax/everything-evil
...
Fix keypath-as-function crasher
2019-10-15 17:54:13 -07:00
Rintaro Ishizaki
cb00b8faf9
Revert "Merge pull request #27120 from rintaro/parser-rdar55267292"
...
This reverts commit e1b51f32aa , reversing
changes made to 086eb07ede .
2019-10-14 13:39:48 -07:00
Brent Royal-Gordon
ca25640cc3
Merge branch 'master' into everything-evil
2019-10-14 13:24:03 -07:00
Rintaro Ishizaki
4eadbaa9f6
Revert "Merge pull request #27466 from rintaro/syntaxparse-type"
...
This reverts commit a4fcd26b38 , reversing
changes made to 88ecae4b9a .
2019-10-14 12:19:04 -07:00
swift-ci
7b9f30b517
Merge pull request #27643 from DougGregor/rdar45590743-test
2019-10-11 22:20:58 -07:00
Doug Gregor
99d9c94ab9
Add now-fixed test case for rdar://problem/45590743
2019-10-11 20:54:52 -07:00
Slava Pestov
eef8c11dd9
This test case only fails with asserts on
...
Fixes <rdar://problem/56196703>.
2019-10-11 18:44:10 -04:00
Slava Pestov
de8745b733
Sema: Simplify error handling in typeCheckParameterList()
2019-10-10 13:08:08 -04:00
Brent Royal-Gordon
eca51d4d53
Fix keypath-as-function crasher
...
The autoclosures generated for the keypath-as-function feature were not added to the list of closures that needed captures computed. In top-level code, this caused a crash. Fixes rdar://problem/56055600.
2019-10-08 18:11:41 -07:00
Hamish Knight
e2096ae34d
[CSDiagnostics] Tweak candidate note text for arg mismatch
...
Number the parameters starting at 1 in order to
match other diagnostics such as
diag::missing_argument_positional, and change the
text to make it explicit that we're referring to
the parameter position (rather than argument
position).
2019-10-03 15:26:31 -07:00
Brent Royal-Gordon
14477a7610
Merge pull request #27480 from brentdax/absence-of-results
...
Fix StringInterpolationProtocol validation crasher
2019-10-01 23:57:11 -07:00
Rintaro Ishizaki
f88fb20a01
[SyntaxParse] Mark a SIL crasher test case "fixed"
2019-10-01 17:55:41 -07:00
Brent Royal-Gordon
6456b39660
Fix StringInterpolationProtocol validation crasher
...
Some old circularity-breaking code caused an unexpected null type, which led to crashes in the decl checker when trying to check that an `appendInterpolation` method in a different file would satisfy the informal requirement for one in a StringInterpolationProtocol conformer. This code appears to now be unnecessary, so this commit removes it. Fixes rdar://problem/55864759.
2019-10-01 17:43:42 -07:00
Pavel Yaskevich
10b1baebb2
Merge pull request #27362 from xedin/port-missing-args
...
[Diagnostics] Port missing argument(s) diagnostics
2019-09-25 21:08:54 -07:00
Pavel Yaskevich
ec6a874ac8
[TypeChecker] NFC: Update test-cases improved by new missing arguments diagnostic
2019-09-25 10:47:26 -07:00
Slava Pestov
c6c1573423
Merge pull request #27287 from slavapestov/typealias-sugar
...
Preserve TypeAliasType sugar when substituting types
2019-09-24 21:25:15 -04:00
Robert Widmann
a331dee8e4
Merge pull request #27340 from CodaFi/party-crashers
...
Extensions Do Not Have Parent Signatures
2019-09-24 15:24:56 -07:00
Slava Pestov
0ade7b70d9
AST: Type::subst() preserves TypeAliasType sugar
...
Fixes <rdar://problem/45313760>.
2019-09-24 17:42:15 -04:00
Robert Widmann
574a450537
Extensions Do Not Have Parent Signatures
...
Remove the parent signature from consideration when computing the
generic signature for an extension. This cuts off a series of crashers
that involved nested extensions with trailing where clauses a la
extension Foo {
extension Foo where Self.Undefined == Bar {
}
}
The inner (invalid) extension technically has a parent signature from
Foo itself. Adding that signature to the GSB means when we go to
register the inner extension's generic parameters we crash.
Since extensions have to occur at the top level, just remove the parent
signature from consideration.
Fixes rdar://55502661
2019-09-24 13:13:51 -07:00
Suyash Srijan
9c97153b2a
[Test] Adds a test case
2019-09-24 00:45:29 +01:00
Slava Pestov
5189daafd3
Add a couple of crashing test cases
2019-09-20 15:08:47 -04:00
Slava Pestov
8fab074bb5
AST: Fix regression from SubstFlags::UseErrorTypes removal
...
Note that while the original crasher in the radar is gone, my reduced test
case triggers an IRGen crash on both 5.1 and master because of an unrelated
bug that appears to be related to protocol requirement signatures and
declaration ordering.
Fixes <rdar://problem/54952911>.
2019-09-19 15:50:40 -04:00
Holly Borla
29044e5d34
Merge pull request #27176 from hborla/type-cannot-conform-diag
...
[Diagnostics] Generalize the "protocol type cannot conform" error to work for all types that cannot conform to protocols.
2019-09-18 10:38:00 -07:00
Jordan Rose
1eaa767407
[test] Run scale-tests on Linux too ( #27223 )
...
It's likely that these were listed as "REQUIRES: OS=macosx" to not
redundantly run them for iOS et al, but they don't take that long and
so it's more useful for Linux devs to be able to run them locally if
need be. Or to catch something that really is different on non-macOS.
2019-09-18 08:27:37 -07:00
Holly Borla
bf80250c84
Merge remote-tracking branch 'upstream/master' into type-cannot-conform-diag
2019-09-17 11:54:03 -07:00
Holly Borla
7687293b7b
[Diagnostics] Adjust the description of existential types for the
...
type_cannot_conform diagnostic message.
2019-09-17 11:52:43 -07:00
Holly Borla
2a7e0099d2
[Diagnostics] Add notes for the type_cannot_conform error that point
...
to the declaration that requires protocol conformance.
2019-09-17 09:22:07 -07:00
Holly Borla
173e4526ee
[Diagnostics] Adjust wording of type_cannot_conform error message.
2019-09-16 14:55:38 -07:00
Pavel Yaskevich
f302da0f9b
Merge pull request #27063 from xedin/diag-arg-conversion-failure
...
[Diagnostics] Introduce argument-to-parameter mismatch
2019-09-16 01:14:15 -07:00
Doug Gregor
d74a24be37
[AST] Look through ConstructorRefCallExpr to find direct callee.
...
Fixes SR-11062 / rdar://problem/54141935
2019-09-13 22:37:43 -07:00