Skip to content

Commit 597c19f

Browse files
authored
Merge pull request #70885 from xedin/rephrase-preconcurrency-import-diagnostic
[Sema] NFC: Re-phrase `@preconcurrency import` warning from "is unuse…
2 parents 740906d + 2f9d405 commit 597c19f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2605,7 +2605,7 @@ WARNING(add_predates_concurrency_import,none,
26052605
"'Sendable'-related %select{warnings|errors}0 from module %1"
26062606
"%select{| as warnings}0", (bool, Identifier))
26072607
WARNING(remove_predates_concurrency_import,none,
2608-
"'@preconcurrency' attribute on module %0 is unused", (Identifier))
2608+
"'@preconcurrency' attribute on module %0 has no effect", (Identifier))
26092609
WARNING(remove_public_import,none,
26102610
"public import of %0 was not used in public declarations or inlinable code",
26112611
(const ModuleDecl *))

test/Concurrency/predates_concurrency_import.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@preconcurrency import NonStrictModule
1515
@_predatesConcurrency import StrictModule // expected-warning{{'@_predatesConcurrency' has been renamed to '@preconcurrency'}}
1616
@preconcurrency import OtherActors
17-
// expected-warning@-1{{'@preconcurrency' attribute on module 'OtherActors' is unused}}{{1-17=}}
17+
// expected-warning@-1{{'@preconcurrency' attribute on module 'OtherActors' has no effect}}{{1-17=}}
1818

1919
func acceptSendable<T: Sendable>(_: T) { }
2020

0 commit comments

Comments
 (0)