@@ -367,9 +367,10 @@ class InheritedProtocolCollector {
367
367
if (canPrintNormally)
368
368
IncludedProtocols.push_back (protoTy->getDecl ());
369
369
else
370
- ExtraProtocols.push_back ({protoTy->getDecl (),
370
+ ExtraProtocols.push_back (
371
+ ProtocolAndAvailability (protoTy->getDecl (),
371
372
getAvailabilityAttrs (D, availableAttrs),
372
- inherited.isUnchecked } );
373
+ inherited.isUnchecked ) );
373
374
}
374
375
// FIXME: This ignores layout constraints, but currently we don't support
375
376
// any of those besides 'AnyObject'.
@@ -386,9 +387,10 @@ class InheritedProtocolCollector {
386
387
for (auto *conf : localConformances) {
387
388
if (conf->getSourceKind () != ConformanceEntryKind::Synthesized)
388
389
continue ;
389
- ExtraProtocols.push_back ({conf->getProtocol (),
390
+ ExtraProtocols.push_back (
391
+ ProtocolAndAvailability (conf->getProtocol (),
390
392
getAvailabilityAttrs (D, availableAttrs),
391
- isUncheckedConformance (conf)} );
393
+ isUncheckedConformance (conf)) );
392
394
}
393
395
}
394
396
}
@@ -568,8 +570,8 @@ class InheritedProtocolCollector {
568
570
569
571
if (isPublicOrUsableFromInline (inherited) &&
570
572
conformanceDeclaredInModule (M, nominal, inherited)) {
571
- protocolsToPrint.push_back ({inherited, availability, isUnchecked});
572
-
573
+ protocolsToPrint.push_back (
574
+ ProtocolAndAvailability (inherited, availability, isUnchecked));
573
575
return TypeWalker::Action::SkipChildren;
574
576
}
575
577
0 commit comments