Skip to content

Commit 4e71e32

Browse files
committed
[region-isolation] Delete an unused old form diagnostic.
1 parent a75501e commit 4e71e32

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

include/swift/AST/DiagnosticsSIL.def

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -948,12 +948,6 @@ ERROR(regionbasedisolation_unknown_pattern, none,
948948
// Old Transfer Non Sendable Diagnostics
949949
//
950950

951-
ERROR(regionbasedisolation_transfer_yields_race_no_isolation, none,
952-
"sending value of non-Sendable type %0 with later accesses risks causing data races",
953-
(Type))
954-
ERROR(regionbasedisolation_transfer_yields_race_with_isolation, none,
955-
"sending value of non-Sendable type %0 with later accesses from %1 context to %2 context risks causing data races",
956-
(Type, ActorIsolation, ActorIsolation))
957951
ERROR(regionbasedisolation_isolated_capture_yields_race, none,
958952
"%1 closure captures value of non-Sendable type %0 from %2 context; later accesses to value could race",
959953
(Type, ActorIsolation, ActorIsolation))

lib/SILOptimizer/Mandatory/TransferNonSendable.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -713,16 +713,6 @@ class UseAfterTransferDiagnosticEmitter {
713713
emitRequireInstDiagnostics();
714714
}
715715

716-
void emitTypedRaceWithUnknownIsolationCrossing(SILLocation loc,
717-
Type inferredType) {
718-
diagnoseError(loc,
719-
diag::regionbasedisolation_transfer_yields_race_no_isolation,
720-
inferredType)
721-
.highlight(loc.getSourceRange())
722-
.limitBehaviorIf(getBehaviorLimit());
723-
emitRequireInstDiagnostics();
724-
}
725-
726716
void emitNamedIsolationCrossingDueToCapture(
727717
SILLocation loc, Identifier name,
728718
SILIsolationInfo namedValuesIsolationInfo,

0 commit comments

Comments
 (0)