Skip to content

Commit 05534f1

Browse files
committed
[Sema] Reword the warning on @_spi import of a public module
1 parent aa86538 commit 05534f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,8 +1785,8 @@ ERROR(spi_attribute_on_frozen_stored_properties,none,
17851785
"stored property %0 cannot be declared '@_spi' in a '@frozen' struct",
17861786
(DeclName))
17871787
WARNING(spi_attribute_on_import_of_public_module,none,
1788-
"importation of %0 has an ineffective '@_spi' attribute; "
1789-
"it was built from the public interface at %1",
1788+
"'@_spi' import of %0 will not include any SPI symbols; "
1789+
"%0 was built from the public interface at %1",
17901790
(DeclName, StringRef))
17911791

17921792
// Opaque return types

test/SPI/warn_on_ineffective_spi_import.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
// RUN: rm %t/SPIHelper.private.swiftinterface
1717
// RUN: %target-typecheck-verify-swift -I %t
1818

19-
@_spi(SPIHelper) import SPIHelper // expected-warning {{importation of 'SPIHelper' has an ineffective '@_spi' attribute; it was built from the public interface at}}
19+
@_spi(SPIHelper) import SPIHelper // expected-warning {{'@_spi' import of 'SPIHelper' will not include any SPI symbols; 'SPIHelper' was built from the public interface at}}

0 commit comments

Comments
 (0)