Skip to content

Commit c2247da

Browse files
committed
Tests: Temporarly disable checks from reverted exportability checking
1 parent 4cdb610 commit c2247da

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/Sema/access-level-import-conforming-types.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// RUN: %target-typecheck-verify-swift -I %t \
1414
// RUN: -swift-version 5 -package-name pkg
1515

16-
internal import BADLibrary // expected-note 14 {{protocol 'BadProto' imported as 'internal' from 'BADLibrary' here}}
16+
internal import BADLibrary // expected-note 9 {{protocol 'BadProto' imported as 'internal' from 'BADLibrary' here}}
1717
// expected-note @-1 2 {{struct 'IntLike' imported as 'internal' from 'BADLibrary' here}}
1818
// expected-note @-2 2 {{class 'BadClass' imported as 'internal' from 'BADLibrary' here}}
1919

@@ -30,16 +30,16 @@ public enum TestConformanceEnum: BadProto {} // expected-error {{cannot use prot
3030
public struct TestExtensionStruct {}
3131
extension TestExtensionStruct: BadProto {} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
3232

33-
package struct TestConformancePackage: BadProto {} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
34-
package struct TestConformanceCompositionPackage: LocalProto & BadProto {} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
33+
package struct TestConformancePackage: BadProto {} // FIXME-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
34+
package struct TestConformanceCompositionPackage: LocalProto & BadProto {} // FIXME-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
3535

3636
@usableFromInline struct TestConformanceUFIPackage: BadProto {} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
3737

38-
package class TestConformanceClassPackage: BadProto {} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
39-
package enum TestConformanceEnumPackage: BADLibrary.BadProto {} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
38+
package class TestConformanceClassPackage: BadProto {} // FIXME-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
39+
package enum TestConformanceEnumPackage: BADLibrary.BadProto {} // FIXME-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
4040

4141
package struct TestExtensionStructPackage {}
42-
extension TestExtensionStructPackage: BadProto {} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
42+
extension TestExtensionStructPackage: BadProto {} // FIXME-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
4343

4444
/// Other inheritance types are covered by the classic access-level check.
4545

test/Sema/package-import-conforming-types.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// RUN: %target-typecheck-verify-swift -I %t \
1414
// RUN: -swift-version 5 -package-name pkg
1515

16-
package import BADLibrary // expected-note 9 {{protocol 'BadProto' imported as 'package' from 'BADLibrary' here}}
16+
package import BADLibrary // expected-note 8 {{protocol 'BadProto' imported as 'package' from 'BADLibrary' here}}
1717
// expected-note @-1 {{struct 'IntLike' imported as 'package' from 'BADLibrary' here}}
1818
// expected-note @-2 {{class 'BadClass' imported as 'package' from 'BADLibrary' here}}
1919

@@ -39,7 +39,7 @@ package class TestConformanceClassPackage: BadProto {}
3939
package enum TestConformanceEnumPackage: BADLibrary.BadProto {}
4040

4141
package struct TestExtensionStructPackage {}
42-
extension TestExtensionStructPackage: BadProto {} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
42+
extension TestExtensionStructPackage: BadProto {} // FIXME-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
4343

4444
/// Other inheritance types are covered by the classic access-level check.
4545

0 commit comments

Comments
 (0)