Skip to content

Commit 32df57e

Browse files
committed
[rbi] Remove support for sending result for impl-function-type in the old mangler.
(cherry picked from commit 0ea22f8)
1 parent bf53e17 commit 32df57e

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

docs/ABI/Mangling.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,9 @@ mangled in to disambiguate.
872872
#if SWIFT_RUNTIME_VERSION >= 5.5
873873
SENDABLE ::= 'h' // @Sendable
874874
ASYNC ::= 'H' // @async
875+
#endif
876+
877+
#if SWIFT_RUNTIME_VERSION >= 6.0
875878
SENDING-RESULT ::= 'T' // sending result
876879
#endif
877880

lib/Demangling/OldDemangler.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,9 +2252,6 @@ class OldDemangler {
22522252
if (Mangled.nextIf('H'))
22532253
addImplFunctionAttribute(type, "@async");
22542254

2255-
if (Mangled.nextIf('T'))
2256-
addImplFunctionAttribute(type, "sending-result");
2257-
22582255
// Enter a new generic context if this type is generic.
22592256
// FIXME: replace with std::optional, when we have it.
22602257
bool isPseudogeneric = false;

lib/Demangling/Remangler.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2113,7 +2113,6 @@ ManglingError Remangler::mangleImplFunctionType(Node *node, unsigned depth) {
21132113
char FuncAttr = llvm::StringSwitch<char>(Child->getText())
21142114
.Case("@Sendable", 'h')
21152115
.Case("@async", 'H')
2116-
.Case("sending-result", 'T')
21172116
.Default(0);
21182117
if (!FuncAttr) {
21192118
return MANGLING_ERROR(ManglingError::InvalidImplFunctionAttribute,

0 commit comments

Comments
 (0)