@@ -4246,10 +4246,6 @@ ParserStatus Parser::parseDeclAttribute(DeclAttributes &Attributes,
42464246 checkInvalidAttrName (" _functionBuilder" , " resultBuilder" ,
42474247 DeclAttrKind::ResultBuilder, diag::attr_renamed_warning);
42484248
4249- // Historical name for @Sendable.
4250- checkInvalidAttrName (" concurrent" , " Sendable" , DeclAttrKind::Sendable,
4251- diag::attr_renamed_warning);
4252-
42534249 // Historical name for 'nonisolated'.
42544250 if (!DK && Tok.getText () == " actorIndependent" ) {
42554251 diagnose (
@@ -4603,23 +4599,6 @@ ParserStatus Parser::parseTypeAttribute(TypeOrCustomAttr &result,
46034599 // Determine which attribute it is, and diagnose it if unknown.
46044600 auto optAttr = TypeAttribute::getAttrKindFromString (Tok.getText ());
46054601
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-
46234602 if (!optAttr) {
46244603 auto declAttrID = DeclAttribute::getAttrKindFromString (Tok.getText ());
46254604 if (declAttrID) {
0 commit comments