Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2025-07-08 00:16:43 -07:00
41 changed files with 399 additions and 168 deletions

View File

@@ -3548,6 +3548,13 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
case DeclAttrKind::Lifetime: {
return;
}
case DeclAttrKind::Nonexhaustive: {
auto *theAttr = cast<NonexhaustiveAttr>(DA);
auto abbrCode = S.DeclTypeAbbrCodes[NonexhaustiveDeclAttrLayout::Code];
NonexhaustiveDeclAttrLayout::emitRecord(S.Out, S.ScratchRecord, abbrCode,
(unsigned)theAttr->getMode());
return;
}
}
}