@@ -967,7 +967,7 @@ void LifetimeChecker::injectActorHops() {
967
967
968
968
AvailabilitySet inSet (outSet.size ());
969
969
auto const &predecessors = block.getPredecessorBlocks ();
970
- for (const auto & pred : predecessors)
970
+ for (auto * pred : predecessors)
971
971
inSet.mergeIn (getBlockInfo (pred).OutAvailability );
972
972
973
973
if (inSet.isAllYes ()) {
@@ -2027,12 +2027,14 @@ void LifetimeChecker::reportIllegalUseForActorInit(
2027
2027
2028
2028
case ActorInitKind::Plain:
2029
2029
diagnose (Module, Use.Inst ->getLoc (), diag::self_disallowed_actor_init,
2030
- false , ProblemDesc);
2030
+ false , ProblemDesc)
2031
+ .warnUntilSwiftVersion (6 );
2031
2032
break ;
2032
2033
2033
2034
case ActorInitKind::GlobalActorIsolated:
2034
2035
diagnose (Module, Use.Inst ->getLoc (), diag::self_disallowed_actor_init,
2035
- true , ProblemDesc);
2036
+ true , ProblemDesc)
2037
+ .warnUntilSwiftVersion (6 );
2036
2038
break ;
2037
2039
}
2038
2040
@@ -2070,11 +2072,13 @@ void LifetimeChecker::handleLoadUseFailureForActorInit(
2070
2072
llvm::report_fatal_error (" this actor init is never problematic!" );
2071
2073
2072
2074
case ActorInitKind::Plain:
2073
- diagnose (Module, Use.Inst ->getLoc (), diag::self_use_actor_init, false );
2075
+ diagnose (Module, Use.Inst ->getLoc (), diag::self_use_actor_init, false )
2076
+ .warnUntilSwiftVersion (6 );
2074
2077
break ;
2075
2078
2076
2079
case ActorInitKind::GlobalActorIsolated:
2077
- diagnose (Module, Use.Inst ->getLoc (), diag::self_use_actor_init, true );
2080
+ diagnose (Module, Use.Inst ->getLoc (), diag::self_use_actor_init, true )
2081
+ .warnUntilSwiftVersion (6 );
2078
2082
break ;
2079
2083
}
2080
2084
0 commit comments