File tree Expand file tree Collapse file tree 2 files changed +4
-21
lines changed
stdlib/public/Distributed Expand file tree Collapse file tree 2 files changed +4
-21
lines changed Original file line number Diff line number Diff line change @@ -310,22 +310,7 @@ bool swift::checkDistributedActorSystemAdHocProtocolRequirements(
310
310
}
311
311
if (checkAdHocRequirementAccessControl (decl, Proto, recordArgumentDecl))
312
312
anyMissingAdHocRequirements = true ;
313
-
314
- // - recordErrorType
315
- auto recordErrorTypeDecl = C.getRecordErrorTypeOnDistributedInvocationEncoder (decl);
316
- if (!recordErrorTypeDecl) {
317
- auto identifier = C.Id_recordErrorType ;
318
- decl->diagnose (
319
- diag::distributed_actor_system_conformance_missing_adhoc_requirement,
320
- decl->getDescriptiveKind (), decl->getName (), identifier);
321
- decl->diagnose (diag::note_distributed_actor_system_conformance_missing_adhoc_requirement,
322
- decl->getName (), identifier,
323
- " mutating func recordErrorType<Err: Error>(_ errorType: Err.Type) throws\n " );
324
- anyMissingAdHocRequirements = true ;
325
- }
326
- if (checkAdHocRequirementAccessControl (decl, Proto, recordErrorTypeDecl))
327
- anyMissingAdHocRequirements = true ;
328
-
313
+
329
314
// - recordReturnType
330
315
auto recordReturnTypeDecl = C.getRecordReturnTypeOnDistributedInvocationEncoder (decl);
331
316
if (!recordReturnTypeDecl) {
Original file line number Diff line number Diff line change @@ -407,11 +407,9 @@ public protocol DistributedTargetInvocationEncoder {
407
407
// mutating func recordArgument<Argument: SerializationRequirement>(_ argument: Argument) throws
408
408
// TODO(distributed): offer recordArgument(label:type:)
409
409
410
- // /// Ad-hoc requirement
411
- // ///
412
- // /// Record the error type of the distributed method.
413
- // /// This method will not be invoked if the target is not throwing.
414
- // mutating func recordErrorType<E: Error>(_ type: E.Type) throws // TODO: make not adhoc
410
+ /// Record the error type of the distributed method.
411
+ /// This method will not be invoked if the target is not throwing.
412
+ mutating func recordErrorType< E: Error > ( _ type: E . Type ) throws
415
413
416
414
// /// Ad-hoc requirement
417
415
// ///
You can’t perform that action at this time.
0 commit comments