Stop passing -requirement-machine-{abstract,inferred,protocol}-signatures flags in tests

These flags are now no-ops.
This commit is contained in:
Slava Pestov
2022-05-10 11:53:37 -04:00
parent bfcaa39d37
commit dac8d666ee
195 changed files with 261 additions and 261 deletions

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-emit-silgen -verify -module-name main %s -requirement-machine-inferred-signatures=on -warn-redundant-requirements | %FileCheck %s // RUN: %target-swift-emit-silgen -verify -module-name main %s -warn-redundant-requirements | %FileCheck %s
// RUN: %target-swift-emit-sil -verify -module-name main %s -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-swift-emit-sil -verify -module-name main %s -warn-redundant-requirements
// NOTE(SR-11950): SILParser crashes for SILGen round-trip. // NOTE(SR-11950): SILParser crashes for SILGen round-trip.

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-emit-sil -verify %s -requirement-machine-inferred-signatures=on -warn-redundant-requirements | %FileCheck %s -check-prefix=CHECK-SIL // RUN: %target-swift-emit-sil -verify %s -warn-redundant-requirements | %FileCheck %s -check-prefix=CHECK-SIL
import _Differentiation import _Differentiation

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on // RUN: %target-swift-frontend -typecheck -verify %s
import _Differentiation import _Differentiation

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -swift-version 4 -requirement-machine-protocol-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -swift-version 4 -warn-redundant-requirements
// RUN: not %target-swift-frontend -typecheck -swift-version 5 -requirement-machine-protocol-signatures=on // RUN: not %target-swift-frontend -typecheck -swift-version 5
protocol P : class, AnyObject { } // expected-warning{{redundant inheritance from 'AnyObject' and Swift 3 'class' keyword}}{{14-21=}} protocol P : class, AnyObject { } // expected-warning{{redundant inheritance from 'AnyObject' and Swift 3 'class' keyword}}{{14-21=}}
// expected-warning@-1{{redundant constraint 'Self' : 'AnyObject'}} // expected-warning@-1{{redundant constraint 'Self' : 'AnyObject'}}

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on // RUN: %target-typecheck-verify-swift
struct RequiresStrideable<T: Strideable> { } struct RequiresStrideable<T: Strideable> { }

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -enable-objc-interop -requirement-machine-inferred-signatures=on // RUN: %target-typecheck-verify-swift -enable-objc-interop
class B { class B {
init() {} init() {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift %s -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift %s -warn-redundant-requirements
class Base<T> { } class Base<T> { }
class Derived: Base<Int> { } class Derived: Base<Int> { }

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -enable-objc-interop -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on // RUN: %target-typecheck-verify-swift -enable-objc-interop
infix operator +++ infix operator +++

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift // RUN: %target-typecheck-verify-swift
// RUN: not %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: not %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
protocol P {} protocol P {}

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: not %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: not %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
protocol Fooable { protocol Fooable {
associatedtype Foo // expected-note{{protocol requires nested type 'Foo'; do you want to add it?}} associatedtype Foo // expected-note{{protocol requires nested type 'Foo'; do you want to add it?}}

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on -disable-requirement-machine-concrete-contraction 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -disable-requirement-machine-concrete-contraction 2>&1 | %FileCheck %s
protocol P { protocol P {
associatedtype T associatedtype T

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on -disable-requirement-machine-concrete-contraction 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -disable-requirement-machine-concrete-contraction 2>&1 | %FileCheck %s
protocol P1 { protocol P1 {
associatedtype X associatedtype X

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -emit-ir %s -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on // RUN: %target-swift-frontend -emit-ir %s
protocol P { protocol P {
associatedtype T : Q associatedtype T : Q

View File

@@ -1,6 +1,6 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: not %target-swift-frontend -typecheck -debug-generic-signatures %s -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on > %t.dump 2>&1 // RUN: not %target-swift-frontend -typecheck -debug-generic-signatures %s > %t.dump 2>&1
// RUN: %FileCheck -check-prefix CHECK-GENERIC %s < %t.dump // RUN: %FileCheck -check-prefix CHECK-GENERIC %s < %t.dump
protocol P1 { protocol P1 {

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -swift-version 4 -requirement-machine-protocol-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -swift-version 4 -warn-redundant-requirements
func needsSameType<T>(_: T.Type, _: T.Type) {} func needsSameType<T>(_: T.Type, _: T.Type) {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
struct G<T> {} struct G<T> {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// rdar://problem/23149063 // rdar://problem/23149063
protocol P0 { } protocol P0 { }

View File

@@ -1,4 +1,4 @@
// RUN: not %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: not %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK-LABEL: circular_protocol_superclass.(file).A@ // CHECK-LABEL: circular_protocol_superclass.(file).A@
// CHECK-NEXT: Requirement signature: <Self where Self : a> // CHECK-NEXT: Requirement signature: <Self where Self : a>

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s -debug-generic-signatures -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -verify %s -debug-generic-signatures 2>&1 | %FileCheck %s
protocol P1 { protocol P1 {
associatedtype T where T == Int associatedtype T where T == Int

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on -disable-requirement-machine-concrete-contraction 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -disable-requirement-machine-concrete-contraction 2>&1 | %FileCheck %s
struct MyOptionSet : OptionSet { struct MyOptionSet : OptionSet {
let rawValue: UInt let rawValue: UInt

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on -disable-requirement-machine-concrete-contraction 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -disable-requirement-machine-concrete-contraction 2>&1 | %FileCheck %s
protocol P1 {} protocol P1 {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
protocol P { protocol P {
associatedtype T : Q associatedtype T : Q

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s -debug-generic-signatures -requirement-machine-inferred-signatures=on -warn-redundant-requirements 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -verify %s -debug-generic-signatures -warn-redundant-requirements 2>&1 | %FileCheck %s
// Another GenericSignatureBuilder oddity, reduced from RxSwift. // Another GenericSignatureBuilder oddity, reduced from RxSwift.
// //

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on -disable-requirement-machine-concrete-contraction 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -disable-requirement-machine-concrete-contraction 2>&1 | %FileCheck %s
protocol P1 { protocol P1 {
associatedtype T associatedtype T

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
struct G<T> {} struct G<T> {}

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: not %target-swift-frontend -typecheck -debug-generic-signatures -requirement-machine-inferred-signatures=on %s 2>&1 | %FileCheck %s // RUN: not %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s
struct S {} struct S {}
class C {} class C {}

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-typecheck-verify-swift -debug-generic-signatures -requirement-machine-inferred-signatures=on -warn-redundant-requirements > %t.dump 2>&1 // RUN: %target-typecheck-verify-swift -debug-generic-signatures -warn-redundant-requirements > %t.dump 2>&1
// RUN: %FileCheck %s < %t.dump // RUN: %FileCheck %s < %t.dump
protocol P1 {} protocol P1 {}

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// FIXME(rqm-diagnostics): The redundant conformance warnings here should not be emitted, since // FIXME(rqm-diagnostics): The redundant conformance warnings here should not be emitted, since
// these requirements participate in conditional requirement inference. // these requirements participate in conditional requirement inference.

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// The GSB crashes with P1 and P2, and rejects P3. // The GSB crashes with P1 and P2, and rejects P3.

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -swift-version 4 -requirement-machine-protocol-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -swift-version 4 -warn-redundant-requirements
protocol P0 { } protocol P0 { }
protocol Q0: P0 { } protocol Q0: P0 { }

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on // RUN: %target-typecheck-verify-swift
// RUN: not %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: not %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK-LABEL: .P@ // CHECK-LABEL: .P@
// CHECK-NEXT: Requirement signature: <Self where Self.[P]T : C> // CHECK-NEXT: Requirement signature: <Self where Self.[P]T : C>

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures -requirement-machine-protocol-signatures=on %s 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s
protocol P { protocol P {
associatedtype T associatedtype T

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
protocol P {} protocol P {}
class C {} class C {}

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-swift-frontend -debug-generic-signatures -typecheck %s -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -debug-generic-signatures -typecheck %s 2>&1 | %FileCheck %s
protocol P24 { protocol P24 {
associatedtype C: P20 associatedtype C: P20

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on // RUN: %target-typecheck-verify-swift
protocol MyFormattedPrintable { protocol MyFormattedPrintable {
func myFormat() -> String func myFormat() -> String

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK-LABEL: identity_conformance.(file).P1@ // CHECK-LABEL: identity_conformance.(file).P1@
// CHECK: Requirement signature: <Self where Self == Self.[P1]X> // CHECK: Requirement signature: <Self where Self == Self.[P1]X>

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on // RUN: %target-typecheck-verify-swift
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
class S<T, U> where T : P, U == T.T {} class S<T, U> where T : P, U == T.T {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on // RUN: %target-typecheck-verify-swift
class G<T> {} class G<T> {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
protocol Sequence {} protocol Sequence {}

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift %s -requirement-machine-protocol-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift %s -warn-redundant-requirements
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// The GenericSignatureBuilder was unable to derive the redundant conformance requirement 'B: P4' // The GenericSignatureBuilder was unable to derive the redundant conformance requirement 'B: P4'
// in protocol P1. // in protocol P1.

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift %s -requirement-machine-protocol-signatures=on // RUN: %target-typecheck-verify-swift %s
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// The GenericSignatureBuilder was unable to derive the redundant conformance requirement 'B: P4' // The GenericSignatureBuilder was unable to derive the redundant conformance requirement 'B: P4'
// in protocol P1. // in protocol P1.

View File

@@ -1,6 +1,6 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -disable-requirement-machine-reuse -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -disable-requirement-machine-reuse 2>&1 | %FileCheck %s
// CHECK-LABEL: .NonEmptyProtocol@ // CHECK-LABEL: .NonEmptyProtocol@
// CHECK-NEXT: Requirement signature: <Self where Self : Collection, Self.[NonEmptyProtocol]C : Collection, Self.[Sequence]Element == Self.[NonEmptyProtocol]C.[Sequence]Element, Self.[Collection]Index == Self.[NonEmptyProtocol]C.[Collection]Index> // CHECK-NEXT: Requirement signature: <Self where Self : Collection, Self.[NonEmptyProtocol]C : Collection, Self.[Sequence]Element == Self.[NonEmptyProtocol]C.[Sequence]Element, Self.[Collection]Index == Self.[NonEmptyProtocol]C.[Collection]Index>

View File

@@ -1,6 +1,6 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on // RUN: %target-typecheck-verify-swift
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -disable-requirement-machine-reuse -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -disable-requirement-machine-reuse 2>&1 | %FileCheck %s
// CHECK-LABEL: .NonEmptyProtocol@ // CHECK-LABEL: .NonEmptyProtocol@
// CHECK-NEXT: Requirement signature: <Self where Self : Collection, Self.[NonEmptyProtocol]C : Collection, Self.[Sequence]Element == Self.[NonEmptyProtocol]C.[Sequence]Element, Self.[Collection]Index == Self.[NonEmptyProtocol]C.[Collection]Index> // CHECK-NEXT: Requirement signature: <Self where Self : Collection, Self.[NonEmptyProtocol]C : Collection, Self.[Sequence]Element == Self.[NonEmptyProtocol]C.[Sequence]Element, Self.[Collection]Index == Self.[NonEmptyProtocol]C.[Collection]Index>

View File

@@ -1,6 +1,6 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -disable-requirement-machine-reuse -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -disable-requirement-machine-reuse 2>&1 | %FileCheck %s
// CHECK-LABEL: .NonEmptyProtocol@ // CHECK-LABEL: .NonEmptyProtocol@
// CHECK-NEXT: Requirement signature: <Self where Self : Collection, Self.[NonEmptyProtocol]C : Collection, Self.[Sequence]Element == Self.[NonEmptyProtocol]C.[Sequence]Element, Self.[Collection]Index == Self.[NonEmptyProtocol]C.[Collection]Index> // CHECK-NEXT: Requirement signature: <Self where Self : Collection, Self.[NonEmptyProtocol]C : Collection, Self.[Sequence]Element == Self.[NonEmptyProtocol]C.[Sequence]Element, Self.[Collection]Index == Self.[NonEmptyProtocol]C.[Collection]Index>

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on // RUN: %target-typecheck-verify-swift
protocol he where A : B { // expected-error {{cannot find type 'A' in scope}} protocol he where A : B { // expected-error {{cannot find type 'A' in scope}}
// expected-error@-1 {{cannot find type 'B' in scope}} // expected-error@-1 {{cannot find type 'B' in scope}}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// This is a funny monoid presentation from Joe Groff. // This is a funny monoid presentation from Joe Groff.

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
protocol P { protocol P {
associatedtype T associatedtype T

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
protocol P1 { protocol P1 {
associatedtype A associatedtype A

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on // RUN: %target-typecheck-verify-swift
// This test was reduced from the NonEmpty open-source project; it motivated enabling // This test was reduced from the NonEmpty open-source project; it motivated enabling
// loop normalization by default, since without it, it takes too long to complete. // loop normalization by default, since without it, it takes too long to complete.

View File

@@ -1,6 +1,6 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on -disable-requirement-machine-concrete-contraction 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -disable-requirement-machine-concrete-contraction 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on -disable-requirement-machine-concrete-contraction -dump-requirement-machine 2>&1 | %FileCheck %s --check-prefix=RULE // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -disable-requirement-machine-concrete-contraction -dump-requirement-machine 2>&1 | %FileCheck %s --check-prefix=RULE
protocol P {} protocol P {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
struct G<T> {} struct G<T> {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
class A<T> {} class A<T> {}
class B<T> : A<T> {} class B<T> : A<T> {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
class A<T, U, V> {} class A<T, U, V> {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
class A {} class A {}
class B : A {} class B : A {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on // RUN: %target-typecheck-verify-swift
protocol ABA // expected-error {{cannot build rewrite system for protocol; rule length limit exceeded}} protocol ABA // expected-error {{cannot build rewrite system for protocol; rule length limit exceeded}}
// expected-note@-1 {{failed rewrite rule is [ABA:A].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:A] => [ABA:A].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B]}} // expected-note@-1 {{failed rewrite rule is [ABA:A].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:A] => [ABA:A].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B].[ABA:B]}}

View File

@@ -1,6 +1,6 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures -requirement-machine-inferred-signatures=on %s 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures -requirement-machine-inferred-signatures=on -disable-requirement-machine-concrete-contraction %s 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -debug-generic-signatures -disable-requirement-machine-concrete-contraction %s 2>&1 | %FileCheck %s
public protocol P { public protocol P {
associatedtype A : Q where A.B == Self associatedtype A : Q where A.B == Self

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -typecheck -verify %s -disable-availability-checking -debug-generic-signatures -requirement-machine-inferred-signatures=on -enable-requirement-machine-opaque-archetypes 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -verify %s -disable-availability-checking -debug-generic-signatures -enable-requirement-machine-opaque-archetypes 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -emit-silgen %s -disable-availability-checking -requirement-machine-inferred-signatures=on -enable-requirement-machine-opaque-archetypes // RUN: %target-swift-frontend -emit-silgen %s -disable-availability-checking -enable-requirement-machine-opaque-archetypes
protocol P1 { protocol P1 {
associatedtype T : P2 associatedtype T : P2

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s -disable-availability-checking -requirement-machine-inferred-signatures=on -enable-requirement-machine-opaque-archetypes // RUN: %target-swift-frontend -typecheck -verify %s -disable-availability-checking -enable-requirement-machine-opaque-archetypes
protocol P1 {} protocol P1 {}

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -typecheck -verify %s -disable-availability-checking -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -verify %s -disable-availability-checking -debug-generic-signatures 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -emit-silgen %s -disable-availability-checking -requirement-machine-inferred-signatures=on // RUN: %target-swift-frontend -emit-silgen %s -disable-availability-checking
// FIXME: This does not work with -enable-requirement-machine-opaque-archetypes. // FIXME: This does not work with -enable-requirement-machine-opaque-archetypes.
// See opaque_archetype_concrete_requirement_rejected.swift for a demonstration // See opaque_archetype_concrete_requirement_rejected.swift for a demonstration

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -disable-availability-checking -requirement-machine-inferred-signatures=on -enable-requirement-machine-opaque-archetypes // RUN: %target-typecheck-verify-swift -disable-availability-checking -enable-requirement-machine-opaque-archetypes
// FIXME: This does not work with -enable-requirement-machine-opaque-archetypes. // FIXME: This does not work with -enable-requirement-machine-opaque-archetypes.
// See opaque_archetype_concrete_requirement_recursive.swift for a demonstration // See opaque_archetype_concrete_requirement_recursive.swift for a demonstration

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
protocol P1 { protocol P1 {
associatedtype T associatedtype T

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-typecheck-verify-swift -debug-generic-signatures -requirement-machine-protocol-signatures=on -warn-redundant-requirements > %t.dump 2>&1 // RUN: %target-typecheck-verify-swift -debug-generic-signatures -warn-redundant-requirements > %t.dump 2>&1
// RUN: %FileCheck %s < %t.dump // RUN: %FileCheck %s < %t.dump
// CHECK-LABEL: .P1@ // CHECK-LABEL: .P1@

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on // RUN: %target-typecheck-verify-swift
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -disable-requirement-machine-concrete-contraction // RUN: %target-typecheck-verify-swift -disable-requirement-machine-concrete-contraction
// This triggered a Requirement Machine assertion because the permanent // This triggered a Requirement Machine assertion because the permanent
// 'identity conformance' rule ([P].[P] => [P]) was the source of the // 'identity conformance' rule ([P].[P] => [P]) was the source of the

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: not %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on > %t.dump 2>&1 // RUN: not %target-swift-frontend -typecheck %s -debug-generic-signatures > %t.dump 2>&1
func sameType<T>(_: T.Type, _: T.Type) {} func sameType<T>(_: T.Type, _: T.Type) {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
protocol P1 { protocol P1 {
typealias T = Array<U> typealias T = Array<U>

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -requirement-machine-protocol-signatures=on // RUN: %target-swift-frontend -typecheck %s
protocol P { protocol P {
typealias MyFunction = typealias MyFunction =

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK-LABEL: .P@ // CHECK-LABEL: .P@
// CHECK-NEXT: Requirement signature: <Self where Self.[P]X == _A<Int>> // CHECK-NEXT: Requirement signature: <Self where Self.[P]X == _A<Int>>

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
protocol P : Sequence { protocol P : Sequence {
typealias Element = Iterator.Element typealias Element = Iterator.Element

View File

@@ -1,4 +1,4 @@
// RUN: not %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: not %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK-LABEL: .P@ // CHECK-LABEL: .P@
// CHECK-NEXT: Requirement signature: <Self> // CHECK-NEXT: Requirement signature: <Self>

View File

@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t) // RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module %S/Inputs/protocol_typealias_other.swift -emit-module-path %t/protocol_typealias_other.swiftmodule -module-name protocol_typealias_other -requirement-machine-protocol-signatures=on // RUN: %target-swift-frontend -emit-module %S/Inputs/protocol_typealias_other.swift -emit-module-path %t/protocol_typealias_other.swiftmodule -module-name protocol_typealias_other
// RUN: %target-swift-frontend -typecheck %s -I %t -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -I %t -debug-generic-signatures 2>&1 | %FileCheck %s
import protocol_typealias_other import protocol_typealias_other

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
class Base<T> {} class Base<T> {}
class Derived : Base<Int> {} class Derived : Base<Int> {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend %s -emit-ir -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend %s -emit-ir -debug-generic-signatures 2>&1 | %FileCheck %s
// REQUIRES: asserts // REQUIRES: asserts
class PropertyDataSource<O: PropertyHosting> { class PropertyDataSource<O: PropertyHosting> {

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on 2>&1 // RUN: %target-typecheck-verify-swift 2>&1
protocol FP {} protocol FP {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on -requirement-machine-abstract-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// Reduced from https://github.com/plx/HDXLSIMDSupport. // Reduced from https://github.com/plx/HDXLSIMDSupport.

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s
protocol P { protocol P {
associatedtype X : P associatedtype X : P

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-typecheck-verify-swift -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK: 65015626.(file).G@ // CHECK: 65015626.(file).G@
// CHECK-NEXT: Requirement signature: <Self where Self.[G]Word : FixedWidthInteger, Self.[G]Word == Self.[G]Word.[Numeric]Magnitude> // CHECK-NEXT: Requirement signature: <Self where Self.[G]Word : FixedWidthInteger, Self.[G]Word == Self.[G]Word.[Numeric]Magnitude>

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s -requirement-machine-inferred-signatures=on -warn-redundant-requirements 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s -warn-redundant-requirements 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -verify -emit-ir %s -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-swift-frontend -verify -emit-ir %s -warn-redundant-requirements
public protocol P { public protocol P {
associatedtype Element associatedtype Element

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-typecheck-verify-swift -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK: 68084643.(file).R@ // CHECK: 68084643.(file).R@
// CHECK-NEXT: Requirement signature: <Self where Self.[R]RT : F> // CHECK-NEXT: Requirement signature: <Self where Self.[R]RT : F>

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s -requirement-machine-inferred-signatures=on -warn-redundant-requirements 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s -warn-redundant-requirements 2>&1 | %FileCheck %s
protocol P1 { protocol P1 {
associatedtype A : P2 associatedtype A : P2

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s
protocol P1 { protocol P1 {
associatedtype T associatedtype T

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
protocol P {} protocol P {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK-LABEL: rdar77683844.(file).P1@ // CHECK-LABEL: rdar77683844.(file).P1@
// CHECK-LABEL: Requirement signature: <Self where Self.[P1]T1 : P2, Self.[P1]T1 == Self.[P1]T3.[P3]T1, Self.[P1]T2 == Self.[P1]T1.[P2]T2, Self.[P1]T3 == Self.[P1]T1.[P2]T3, Self.[P1]T1.[P2]T2 == Self.[P1]T1.[P2]T4.[P5]T2, Self.[P1]T1.[P2]T3 == Self.[P1]T2.[P4]T3> // CHECK-LABEL: Requirement signature: <Self where Self.[P1]T1 : P2, Self.[P1]T1 == Self.[P1]T3.[P3]T1, Self.[P1]T2 == Self.[P1]T1.[P2]T2, Self.[P1]T3 == Self.[P1]T1.[P2]T3, Self.[P1]T1.[P2]T2 == Self.[P1]T1.[P2]T4.[P5]T2, Self.[P1]T1.[P2]T3 == Self.[P1]T2.[P4]T3>

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK-LABEL: rdar78233378.(file).P1@ // CHECK-LABEL: rdar78233378.(file).P1@
// CHECK-LABEL: Requirement signature: <Self where Self : P4, Self == Self.[P1]T1.[P5]T2, Self.[P1]T1 : P2> // CHECK-LABEL: Requirement signature: <Self where Self : P4, Self == Self.[P1]T1.[P5]T2, Self.[P1]T1 : P2>

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-typecheck-verify-swift -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK: 78643612.(file).Z1@ // CHECK: 78643612.(file).Z1@
// CHECK-NEXT: Requirement signature: <Self where Self == Self.[Z1]T> // CHECK-NEXT: Requirement signature: <Self where Self == Self.[Z1]T>

View File

@@ -1,6 +1,6 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on // RUN: %target-typecheck-verify-swift
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s -requirement-machine-inferred-signatures=on -disable-requirement-machine-concrete-contraction 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s -disable-requirement-machine-concrete-contraction 2>&1 | %FileCheck %s
protocol P { protocol P {
associatedtype T where T == Self associatedtype T where T == Self

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -debug-generic-signatures -requirement-machine-protocol-signatures=on -warn-redundant-requirements 2>&1 | %FileCheck %s // RUN: %target-typecheck-verify-swift -debug-generic-signatures -warn-redundant-requirements 2>&1 | %FileCheck %s
// CHECK: rdar83308672.(file).A@ // CHECK: rdar83308672.(file).A@
// CHECK-NEXT: Requirement signature: <Self where Self == Self.[A]X.[P1]T, Self.[A]X : P1, Self.[A]Y : P2> // CHECK-NEXT: Requirement signature: <Self where Self == Self.[A]X.[P1]T, Self.[A]X : P1, Self.[A]Y : P2>

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -emit-ir %s // RUN: %target-swift-frontend -emit-ir %s
public protocol P1 {} public protocol P1 {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-typecheck-verify-swift -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK: 83848546.(file).Reporter@ // CHECK: 83848546.(file).Reporter@
// CHECK-NEXT: Requirement signature: <Self where Self.[Reporter]SubReporterType : SubReporter> // CHECK-NEXT: Requirement signature: <Self where Self.[Reporter]SubReporterType : SubReporter>

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-typecheck-verify-swift -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK: rdar83955123.(file).Cyclo@ // CHECK: rdar83955123.(file).Cyclo@
// CHECK-NEXT: Requirement signature: <Self where Self == Self.[Cyclo]L.[Cyclo]R, Self.[Cyclo]D : Cyclo, Self.[Cyclo]L : Cyclo, Self.[Cyclo]R : Cyclo, Self.[Cyclo]U : Cyclo, Self.[Cyclo]L.[Cyclo]R == Self.[Cyclo]U.[Cyclo]D> // CHECK-NEXT: Requirement signature: <Self where Self == Self.[Cyclo]L.[Cyclo]R, Self.[Cyclo]D : Cyclo, Self.[Cyclo]L : Cyclo, Self.[Cyclo]R : Cyclo, Self.[Cyclo]U : Cyclo, Self.[Cyclo]L.[Cyclo]R == Self.[Cyclo]U.[Cyclo]D>

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
protocol P1 { protocol P1 {
associatedtype A associatedtype A

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK-LABEL: .P1@ // CHECK-LABEL: .P1@
// CHECK-NEXT: Requirement signature: <Self where Self.[P1]B : P2, Self.[P1]C : P4, Self.[P1]D : P5, Self.[P1]E : P6, Self.[P1]F : P3, Self.[P1]G == Self.[P1]B.[P2]G, Self.[P1]B.[P2]G == Self.[P1]C.[P4]G, Self.[P1]C.[P4]G == Self.[P1]D.[P5]G, Self.[P1]D.[P5]G == Self.[P1]E.[P6]G, Self.[P1]F.[Sequence]Element == SIMD2<Self.[P1]G>> // CHECK-NEXT: Requirement signature: <Self where Self.[P1]B : P2, Self.[P1]C : P4, Self.[P1]D : P5, Self.[P1]E : P6, Self.[P1]F : P3, Self.[P1]G == Self.[P1]B.[P2]G, Self.[P1]B.[P2]G == Self.[P1]C.[P4]G, Self.[P1]C.[P4]G == Self.[P1]D.[P5]G, Self.[P1]D.[P5]G == Self.[P1]E.[P6]G, Self.[P1]F.[Sequence]Element == SIMD2<Self.[P1]G>>

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK-LABEL: .P1@ // CHECK-LABEL: .P1@
// CHECK-NEXT: Requirement signature: <Self where Self == Self.[P1]A.[P2]C, Self.[P1]A : P3, Self.[P1]B : P4, Self.[P1]A.[P2]C == Self.[P1]B.[P2]C> // CHECK-NEXT: Requirement signature: <Self where Self == Self.[P1]A.[P2]C, Self.[P1]A : P3, Self.[P1]B : P4, Self.[P1]A.[P2]C == Self.[P1]B.[P2]C>

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
protocol P1 { protocol P1 {
associatedtype T associatedtype T

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// The Requirement Machine works with canonical types internally, so make sure // The Requirement Machine works with canonical types internally, so make sure
// we reconstitute sugar in trivial cases before surfacing the generic // we reconstitute sugar in trivial cases before surfacing the generic

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
protocol P1 {} protocol P1 {}
protocol P2 : P1 {} protocol P2 : P1 {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK-LABEL: redundant_parent_path_in_protocol.(file).P1@ // CHECK-LABEL: redundant_parent_path_in_protocol.(file).P1@
// CHECK-NEXT: Requirement signature: <Self> // CHECK-NEXT: Requirement signature: <Self>

View File

@@ -1,4 +1,4 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// The GenericSignatureBuilder did not diagnose the first two. // The GenericSignatureBuilder did not diagnose the first two.

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures -requirement-machine-protocol-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
protocol P {} protocol P {}
class C : P {} class C : P {}

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-protocol-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures -requirement-machine-protocol-signatures=on %s 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s
// CHECK-LABEL: redundant_protocol_refinement.(file).Base@ // CHECK-LABEL: redundant_protocol_refinement.(file).Base@
// CHECK-LABEL: Requirement signature: <Self> // CHECK-LABEL: Requirement signature: <Self>

View File

@@ -1,5 +1,5 @@
// RUN: %target-typecheck-verify-swift -requirement-machine-inferred-signatures=on -warn-redundant-requirements // RUN: %target-typecheck-verify-swift -warn-redundant-requirements
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s -requirement-machine-inferred-signatures=on 2>&1 | %FileCheck %s // RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s
struct G<T> {} struct G<T> {}

Some files were not shown because too many files have changed in this diff Show More