@@ -4246,10 +4246,6 @@ ParserStatus Parser::parseDeclAttribute(DeclAttributes &Attributes,
4246
4246
checkInvalidAttrName (" _functionBuilder" , " resultBuilder" ,
4247
4247
DeclAttrKind::ResultBuilder, diag::attr_renamed_warning);
4248
4248
4249
- // Historical name for @Sendable.
4250
- checkInvalidAttrName (" concurrent" , " Sendable" , DeclAttrKind::Sendable,
4251
- diag::attr_renamed_warning);
4252
-
4253
4249
// Historical name for 'nonisolated'.
4254
4250
if (!DK && Tok.getText () == " actorIndependent" ) {
4255
4251
diagnose (
@@ -4603,23 +4599,6 @@ ParserStatus Parser::parseTypeAttribute(TypeOrCustomAttr &result,
4603
4599
// Determine which attribute it is, and diagnose it if unknown.
4604
4600
auto optAttr = TypeAttribute::getAttrKindFromString (Tok.getText ());
4605
4601
4606
- auto checkInvalidAttrName =
4607
- [&](StringRef invalidName, StringRef correctName, TypeAttrKind kind,
4608
- std::optional<Diag<StringRef, StringRef>> diag = std::nullopt) {
4609
- if (!optAttr && Tok.getText () == invalidName) {
4610
- optAttr = kind;
4611
-
4612
- if (diag) {
4613
- diagnose (Tok, *diag, invalidName, correctName)
4614
- .fixItReplace (Tok.getLoc (), correctName);
4615
- }
4616
- }
4617
- };
4618
-
4619
- // Historical name for @Sendable.
4620
- checkInvalidAttrName (" concurrent" , " Sendable" , TypeAttrKind::Sendable,
4621
- diag::attr_renamed_warning);
4622
-
4623
4602
if (!optAttr) {
4624
4603
auto declAttrID = DeclAttribute::getAttrKindFromString (Tok.getText ());
4625
4604
if (declAttrID) {
0 commit comments