From 36c61bdd3e870273c14f4c28377c1fb6b20ba80a Mon Sep 17 00:00:00 2001 From: Pavel Yaskevich Date: Wed, 15 Mar 2023 14:29:04 -0700 Subject: [PATCH] [Tests] NFC: Remove `ResultBuilderASTTransform` references from tests --- test/Constraints/result_builder_ast_transform.swift | 2 +- test/Sema/has_symbol.swift | 1 - .../case_with_overloaded_elements_in_optional_context.swift | 2 +- .../Sema/SwiftUI/inner_closure_with_opaque_value_result.swift | 2 +- validation-test/Sema/SwiftUI/issue-59716.swift | 2 +- validation-test/Sema/result_builder_buildBlock_resolution.swift | 2 +- 6 files changed, 5 insertions(+), 6 deletions(-) diff --git a/test/Constraints/result_builder_ast_transform.swift b/test/Constraints/result_builder_ast_transform.swift index e199d5183ad..a5277a1671e 100644 --- a/test/Constraints/result_builder_ast_transform.swift +++ b/test/Constraints/result_builder_ast_transform.swift @@ -1,5 +1,5 @@ // RUN: %empty-directory(%t) -// RUN: %target-build-swift -enable-experimental-feature ResultBuilderASTTransform -module-name main -I %t -L %t %s -o %t/main %target-rpath(%t) +// RUN: %target-build-swift -module-name main -I %t -L %t %s -o %t/main %target-rpath(%t) // RUN: %target-codesign %t/main // RUN: %target-run %t/main | %FileCheck %s diff --git a/test/Sema/has_symbol.swift b/test/Sema/has_symbol.swift index b6f114d4be4..39f55b42f99 100644 --- a/test/Sema/has_symbol.swift +++ b/test/Sema/has_symbol.swift @@ -1,7 +1,6 @@ // RUN: %empty-directory(%t) // RUN: %target-swift-frontend -emit-module -emit-module-path %t/has_symbol_helper.swiftmodule -parse-as-library %S/Inputs/has_symbol/has_symbol_helper.swift -enable-library-evolution // RUN: %target-typecheck-verify-swift -disable-availability-checking -I %t -// RUN: %target-typecheck-verify-swift -disable-availability-checking -I %t -enable-experimental-feature ResultBuilderASTTransform // UNSUPPORTED: OS=windows-msvc diff --git a/validation-test/Sema/SwiftUI/case_with_overloaded_elements_in_optional_context.swift b/validation-test/Sema/SwiftUI/case_with_overloaded_elements_in_optional_context.swift index cbb9d8cc7f8..4ffbddb1844 100644 --- a/validation-test/Sema/SwiftUI/case_with_overloaded_elements_in_optional_context.swift +++ b/validation-test/Sema/SwiftUI/case_with_overloaded_elements_in_optional_context.swift @@ -1,4 +1,4 @@ -// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -swift-version 5 -enable-experimental-feature ResultBuilderASTTransform - +// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -swift-version 5 - // REQUIRES: objc_interop // REQUIRES: OS=macosx diff --git a/validation-test/Sema/SwiftUI/inner_closure_with_opaque_value_result.swift b/validation-test/Sema/SwiftUI/inner_closure_with_opaque_value_result.swift index 68b4179510b..d57e21aafa7 100644 --- a/validation-test/Sema/SwiftUI/inner_closure_with_opaque_value_result.swift +++ b/validation-test/Sema/SwiftUI/inner_closure_with_opaque_value_result.swift @@ -1,4 +1,4 @@ -// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -enable-experimental-feature ResultBuilderASTTransform -swift-version 5 +// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -swift-version 5 // REQUIRES: objc_interop // REQUIRES: OS=macosx diff --git a/validation-test/Sema/SwiftUI/issue-59716.swift b/validation-test/Sema/SwiftUI/issue-59716.swift index a4234d6d852..de77b30b4ed 100644 --- a/validation-test/Sema/SwiftUI/issue-59716.swift +++ b/validation-test/Sema/SwiftUI/issue-59716.swift @@ -1,4 +1,4 @@ -// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -swift-version 5 -enable-experimental-feature ResultBuilderASTTransform +// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -swift-version 5 // REQUIRES: OS=macosx import SwiftUI diff --git a/validation-test/Sema/result_builder_buildBlock_resolution.swift b/validation-test/Sema/result_builder_buildBlock_resolution.swift index f224e6001f0..f276d6defed 100644 --- a/validation-test/Sema/result_builder_buildBlock_resolution.swift +++ b/validation-test/Sema/result_builder_buildBlock_resolution.swift @@ -1,5 +1,5 @@ // RUN: %target-typecheck-verify-swift -// RUN: %target-typecheck-verify-swift -I %t -enable-experimental-feature ResultBuilderASTTransform +// RUN: %target-typecheck-verify-swift -I %t // This test verifies that `buildBlock` is type-checked together with enclosing context, // which means that it's not captured into separate variable but rather used directly and