File tree 2 files changed +3
-8
lines changed
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -8950,11 +8950,8 @@ void ClangImporter::Implementation::swiftify(FuncDecl *MappedDecl) {
8950
8950
attachMacro = true;
8951
8951
}
8952
8952
bool returnHasLifetimeInfo = false;
8953
- bool lifetimeDependenceOn =
8954
- SwiftContext.LangOpts.hasFeature(Feature::LifetimeDependence);
8955
8953
if (SwiftDeclConverter::getImplicitObjectParamAnnotation<
8956
- clang::LifetimeBoundAttr>(ClangDecl) &&
8957
- lifetimeDependenceOn) {
8954
+ clang::LifetimeBoundAttr>(ClangDecl)) {
8958
8955
printer.printLifetimeboundReturn(SwiftifyInfoPrinter::SELF_PARAM_INDEX,
8959
8956
true);
8960
8957
returnHasLifetimeInfo = true;
@@ -8976,8 +8973,7 @@ void ClangImporter::Implementation::swiftify(FuncDecl *MappedDecl) {
8976
8973
printer.printNonEscaping(index);
8977
8974
paramHasLifetimeInfo = true;
8978
8975
}
8979
- if (clangParam->hasAttr<clang::LifetimeBoundAttr>() &&
8980
- lifetimeDependenceOn) {
8976
+ if (clangParam->hasAttr<clang::LifetimeBoundAttr>()) {
8981
8977
printer.printLifetimeboundReturn(
8982
8978
index, !paramHasBoundsInfo &&
8983
8979
swiftParam->getInterfaceType()->isEscapable());
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
- // RUN: %target-swift-ide-test -plugin-path %swift-plugin-dir -I %S/Inputs -enable-experimental-feature LifetimeDependence -enable-experimental-feature SafeInteropWrappers -print-module -module-to-print=StdSpan -source-filename=x -enable-experimental-cxx-interop -Xcc -std=c++20 -module-cache-path %t > %t/interface.swift
2
+ // RUN: %target-swift-ide-test -plugin-path %swift-plugin-dir -I %S/Inputs -enable-experimental-feature SafeInteropWrappers -print-module -module-to-print=StdSpan -source-filename=x -enable-experimental-cxx-interop -Xcc -std=c++20 -module-cache-path %t > %t/interface.swift
3
3
// RUN: %FileCheck %s < %t/interface.swift
4
4
5
5
// REQUIRES: swift_feature_SafeInteropWrappers
6
- // REQUIRES: swift_feature_LifetimeDependence
7
6
8
7
// FIXME swift-ci linux tests do not support std::span
9
8
// UNSUPPORTED: OS=linux-gnu
You can’t perform that action at this time.
0 commit comments