@@ -1707,8 +1707,7 @@ static Type applyToFunctionType(
1707
1707
}
1708
1708
1709
1709
Type ClangImporter::Implementation::applyParamAttributes (
1710
- const clang::ParmVarDecl *param, Type type, bool &isUnsafeSendable,
1711
- bool &isUnsafeMainActor) {
1710
+ const clang::ParmVarDecl *param, Type type) {
1712
1711
if (!param->hasAttrs ())
1713
1712
return type;
1714
1713
@@ -1745,18 +1744,6 @@ Type ClangImporter::Implementation::applyParamAttributes(
1745
1744
1746
1745
continue ;
1747
1746
}
1748
-
1749
- // Map @_unsafeSendable.
1750
- if (swiftAttr->getAttribute () == " @_unsafeSendable" ) {
1751
- isUnsafeSendable = true ;
1752
- continue ;
1753
- }
1754
-
1755
- // Map @_unsafeMainActor.
1756
- if (swiftAttr->getAttribute () == " @_unsafeMainActor" ) {
1757
- isUnsafeMainActor = true ;
1758
- continue ;
1759
- }
1760
1747
}
1761
1748
1762
1749
return type;
@@ -1953,10 +1940,8 @@ ParameterList *ClangImporter::Implementation::importFunctionParameterList(
1953
1940
}
1954
1941
1955
1942
// Apply attributes to the type.
1956
- bool isUnsafeSendable = false ;
1957
- bool isUnsafeMainActor = false ;
1958
1943
swiftParamTy = applyParamAttributes (
1959
- param, swiftParamTy, isUnsafeSendable, isUnsafeMainActor );
1944
+ param, swiftParamTy);
1960
1945
1961
1946
// Figure out the name for this parameter.
1962
1947
Identifier bodyName = importFullName (param, CurrentVersion)
@@ -1978,8 +1963,6 @@ ParameterList *ClangImporter::Implementation::importFunctionParameterList(
1978
1963
: ParamSpecifier::Default);
1979
1964
paramInfo->setInterfaceType (swiftParamTy);
1980
1965
recordImplicitUnwrapForDecl (paramInfo, isParamTypeImplicitlyUnwrapped);
1981
- recordUnsafeConcurrencyForDecl (
1982
- paramInfo, isUnsafeSendable, isUnsafeMainActor);
1983
1966
parameters.push_back (paramInfo);
1984
1967
++index;
1985
1968
}
@@ -2544,10 +2527,7 @@ ImportedType ClangImporter::Implementation::importMethodParamsAndReturnType(
2544
2527
}
2545
2528
2546
2529
// Apply Clang attributes to the parameter type.
2547
- bool isUnsafeSendable = false ;
2548
- bool isUnsafeMainActor = false ;
2549
- swiftParamTy = applyParamAttributes (
2550
- param, swiftParamTy, isUnsafeSendable, isUnsafeMainActor);
2530
+ swiftParamTy = applyParamAttributes (param, swiftParamTy);
2551
2531
2552
2532
// Figure out the name for this parameter.
2553
2533
Identifier bodyName = importFullName (param, CurrentVersion)
@@ -2571,8 +2551,6 @@ ImportedType ClangImporter::Implementation::importMethodParamsAndReturnType(
2571
2551
paramInfo->setSpecifier (ParamSpecifier::Default);
2572
2552
paramInfo->setInterfaceType (swiftParamTy);
2573
2553
recordImplicitUnwrapForDecl (paramInfo, paramIsIUO);
2574
- recordUnsafeConcurrencyForDecl (
2575
- paramInfo, isUnsafeSendable, isUnsafeMainActor);
2576
2554
2577
2555
// Determine whether we have a default argument.
2578
2556
if (kind == SpecialMethodKind::Regular ||
0 commit comments