Skip to content

Commit b1e5a5d

Browse files
Merge pull request #72978 from nate-chandler/rdar126275392
[NoncopyablePartialConsumption] Promote to upcoming feature.
2 parents 9f2acb2 + 943cc3c commit b1e5a5d

File tree

35 files changed

+58
-60
lines changed

35 files changed

+58
-60
lines changed

include/swift/Basic/Features.def

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ UPCOMING_FEATURE(GlobalConcurrency, 412, 6)
191191
UPCOMING_FEATURE(InferSendableFromCaptures, 418, 6)
192192
UPCOMING_FEATURE(ImplicitOpenExistentials, 352, 6)
193193
UPCOMING_FEATURE(RegionBasedIsolation, 414, 6)
194+
UPCOMING_FEATURE(MoveOnlyPartialConsumption, 429, 6)
194195

195196
// Swift 7
196197
UPCOMING_FEATURE(ExistentialAny, 335, 7)
@@ -217,7 +218,6 @@ EXPERIMENTAL_FEATURE(NoImplicitCopy, true)
217218
EXPERIMENTAL_FEATURE(OldOwnershipOperatorSpellings, true)
218219
EXPERIMENTAL_FEATURE(MoveOnlyEnumDeinits, true)
219220
EXPERIMENTAL_FEATURE(MoveOnlyTuples, true)
220-
EXPERIMENTAL_FEATURE(MoveOnlyPartialConsumption, true)
221221
EXPERIMENTAL_FEATURE(MoveOnlyPartialReinitialization, true)
222222

223223
EXPERIMENTAL_FEATURE(OneWayClosureParameters, false)

lib/AST/FeatureSet.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,8 @@ static bool usesFeatureMoveOnlyEnumDeinits(Decl *decl) {
449449

450450
UNINTERESTING_FEATURE(MoveOnlyTuples)
451451

452-
static bool usesFeatureMoveOnlyPartialConsumption(Decl *decl) {
453-
// Partial consumption does not affect declarations directly.
454-
return false;
455-
}
452+
// Partial consumption does not affect declarations directly.
453+
UNINTERESTING_FEATURE(MoveOnlyPartialConsumption)
456454

457455
UNINTERESTING_FEATURE(MoveOnlyPartialReinitialization)
458456

test/Interpreter/move_expr_moveonly_partial_consumption.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-run-simple-swift(-parse-as-library -Xfrontend -sil-verify-all -enable-experimental-feature MoveOnlyPartialConsumption) | %FileCheck %s
2-
// RUN: %target-run-simple-swift(-parse-as-library -O -Xfrontend -sil-verify-all -enable-experimental-feature MoveOnlyPartialConsumption) | %FileCheck %s
1+
// RUN: %target-run-simple-swift(-parse-as-library -Xfrontend -sil-verify-all -enable-upcoming-feature MoveOnlyPartialConsumption) | %FileCheck %s
2+
// RUN: %target-run-simple-swift(-parse-as-library -O -Xfrontend -sil-verify-all -enable-upcoming-feature MoveOnlyPartialConsumption) | %FileCheck %s
33

44
// REQUIRES: executable_test
55

test/Interpreter/move_expr_moveonly_partial_consumption_addr.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-run-simple-swift(-parse-as-library -Xfrontend -sil-verify-all -enable-experimental-feature MoveOnlyPartialConsumption) | %FileCheck %s
2-
// RUN: %target-run-simple-swift(-parse-as-library -O -Xfrontend -sil-verify-all -enable-experimental-feature MoveOnlyPartialConsumption) | %FileCheck %s
1+
// RUN: %target-run-simple-swift(-parse-as-library -Xfrontend -sil-verify-all -enable-upcoming-feature MoveOnlyPartialConsumption) | %FileCheck %s
2+
// RUN: %target-run-simple-swift(-parse-as-library -O -Xfrontend -sil-verify-all -enable-upcoming-feature MoveOnlyPartialConsumption) | %FileCheck %s
33

44
// REQUIRES: executable_test
55

test/Interpreter/moveonly_address_maximize.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature MoveOnlyPartialConsumption) | %FileCheck %s
2-
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature MoveOnlyPartialConsumption) | %FileCheck %s
1+
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-upcoming-feature MoveOnlyPartialConsumption) | %FileCheck %s
2+
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-upcoming-feature MoveOnlyPartialConsumption) | %FileCheck %s
33

4-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -Xfrontend -sil-verify-all -enable-experimental-feature MoveOnlyPartialConsumption) | %FileCheck %s
5-
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all -enable-experimental-feature MoveOnlyPartialConsumption) | %FileCheck %s
4+
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -Xfrontend -sil-verify-all -enable-upcoming-feature MoveOnlyPartialConsumption) | %FileCheck %s
5+
// RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics -O -Xfrontend -sil-verify-all -enable-upcoming-feature MoveOnlyPartialConsumption) | %FileCheck %s
66

77
// REQUIRES: executable_test
88

test/Interpreter/moveonly_partial_consume_value.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-experimental-feature MoveOnlyPartialConsumption) | %FileCheck %s
2-
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-experimental-feature MoveOnlyPartialConsumption) | %FileCheck %s
1+
// RUN: %target-run-simple-swift(-Xfrontend -sil-verify-all -enable-upcoming-feature MoveOnlyPartialConsumption) | %FileCheck %s
2+
// RUN: %target-run-simple-swift(-O -Xfrontend -sil-verify-all -enable-upcoming-feature MoveOnlyPartialConsumption) | %FileCheck %s
33

44
// REQUIRES: executable_test
55

test/SILGen/moveonly_consuming_switch.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: -emit-silgen \
33
// RUN: %s \
44
// RUN: -enable-experimental-feature BorrowingSwitch \
5-
// RUN: -enable-experimental-feature MoveOnlyPartialConsumption \
5+
// RUN: -enable-upcoming-feature MoveOnlyPartialConsumption \
66
// RUN: -enable-experimental-feature NoncopyableGenerics \
77
// RUN: | %FileCheck %s
88

test/SILGen/moveonly_library_evolution.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-emit-silgen -enable-experimental-feature MoveOnlyPartialConsumption -enable-experimental-feature NoImplicitCopy -enable-library-evolution %s | %FileCheck %s
2-
// RUN: %target-swift-emit-sil -O -sil-verify-all -enable-experimental-feature MoveOnlyPartialConsumption -enable-experimental-feature NoImplicitCopy -enable-library-evolution %s
1+
// RUN: %target-swift-emit-silgen -enable-upcoming-feature MoveOnlyPartialConsumption -enable-experimental-feature NoImplicitCopy -enable-library-evolution %s | %FileCheck %s
2+
// RUN: %target-swift-emit-sil -O -sil-verify-all -enable-upcoming-feature MoveOnlyPartialConsumption -enable-experimental-feature NoImplicitCopy -enable-library-evolution %s
33

44
////////////////////////
55
// MARK: Declarations //

test/SILGen/moveonly_optional_operations_2.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -emit-silgen -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature MoveOnlyPartialConsumption -parse-stdlib -module-name Swift %s | %FileCheck %s
1+
// RUN: %target-swift-frontend -emit-silgen -enable-experimental-feature NoncopyableGenerics -enable-upcoming-feature MoveOnlyPartialConsumption -parse-stdlib -module-name Swift %s | %FileCheck %s
22

33
@_marker protocol Copyable {}
44
@_marker protocol Escapable {}

test/SILOptimizer/moveonly_addresschecker.sil

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -module-name moveonly_addresschecker -sil-move-only-address-checker -enable-experimental-feature MoveOnlyClasses -enable-experimental-feature MoveOnlyPartialConsumption -enable-sil-verify-all %s | %FileCheck %s
1+
// RUN: %target-sil-opt -module-name moveonly_addresschecker -sil-move-only-address-checker -enable-experimental-feature MoveOnlyClasses -enable-upcoming-feature MoveOnlyPartialConsumption -enable-sil-verify-all %s | %FileCheck %s
22

33
sil_stage raw
44

test/SILOptimizer/moveonly_addresschecker.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-emit-sil -sil-verify-all -verify -enable-experimental-feature MoveOnlyPartialConsumption -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s -Xllvm -sil-print-final-ossa-module | %FileCheck %s
2-
// RUN: %target-swift-emit-sil -O -sil-verify-all -verify -enable-experimental-feature MoveOnlyPartialConsumption -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s
1+
// RUN: %target-swift-emit-sil -sil-verify-all -verify -enable-upcoming-feature MoveOnlyPartialConsumption -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s -Xllvm -sil-print-final-ossa-module | %FileCheck %s
2+
// RUN: %target-swift-emit-sil -O -sil-verify-all -verify -enable-upcoming-feature MoveOnlyPartialConsumption -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s
33

44
// This file contains tests that used to crash due to verifier errors. It must
55
// be separate from moveonly_addresschecker_diagnostics since when we fail on

test/SILOptimizer/moveonly_addresschecker_destructure_through_deinit_diagnostics.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-emit-sil -enable-experimental-feature MoveOnlyPartialConsumption -sil-verify-all -verify -enable-experimental-feature MoveOnlyClasses -enable-experimental-feature MoveOnlyTuples %s
2-
// RUN: %target-swift-emit-sil -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature MoveOnlyPartialConsumption -sil-verify-all -verify -enable-experimental-feature MoveOnlyClasses -enable-experimental-feature MoveOnlyTuples %s
1+
// RUN: %target-swift-emit-sil -enable-upcoming-feature MoveOnlyPartialConsumption -sil-verify-all -verify -enable-experimental-feature MoveOnlyClasses -enable-experimental-feature MoveOnlyTuples %s
2+
// RUN: %target-swift-emit-sil -enable-experimental-feature NoncopyableGenerics -enable-upcoming-feature MoveOnlyPartialConsumption -sil-verify-all -verify -enable-experimental-feature MoveOnlyClasses -enable-experimental-feature MoveOnlyTuples %s
33

44
// This test validates that we properly emit errors if we partially invalidate
55
// through a type with a deinit.

test/SILOptimizer/moveonly_addresschecker_diagnostics.sil

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %target-sil-opt -sil-move-only-address-checker -enable-experimental-feature MoveOnlyPartialConsumption -enable-experimental-feature MoveOnlyClasses -enable-sil-verify-all %s -verify
2-
// RUN: %target-sil-opt -sil-move-only-address-checker -enable-experimental-feature MoveOnlyPartialConsumption -enable-experimental-feature MoveOnlyClasses -enable-sil-verify-all -move-only-diagnostics-silently-emit-diagnostics %s | %FileCheck %s
1+
// RUN: %target-sil-opt -sil-move-only-address-checker -enable-upcoming-feature MoveOnlyPartialConsumption -enable-experimental-feature MoveOnlyClasses -enable-sil-verify-all %s -verify
2+
// RUN: %target-sil-opt -sil-move-only-address-checker -enable-upcoming-feature MoveOnlyPartialConsumption -enable-experimental-feature MoveOnlyClasses -enable-sil-verify-all -move-only-diagnostics-silently-emit-diagnostics %s | %FileCheck %s
33

4-
// RUN: %target-sil-opt -enable-experimental-feature NoncopyableGenerics -sil-move-only-address-checker -enable-experimental-feature MoveOnlyPartialConsumption -enable-experimental-feature MoveOnlyClasses -enable-sil-verify-all %s -verify
5-
// RUN: %target-sil-opt -enable-experimental-feature NoncopyableGenerics -sil-move-only-address-checker -enable-experimental-feature MoveOnlyPartialConsumption -enable-experimental-feature MoveOnlyClasses -enable-sil-verify-all -move-only-diagnostics-silently-emit-diagnostics %s | %FileCheck %s
4+
// RUN: %target-sil-opt -enable-experimental-feature NoncopyableGenerics -sil-move-only-address-checker -enable-upcoming-feature MoveOnlyPartialConsumption -enable-experimental-feature MoveOnlyClasses -enable-sil-verify-all %s -verify
5+
// RUN: %target-sil-opt -enable-experimental-feature NoncopyableGenerics -sil-move-only-address-checker -enable-upcoming-feature MoveOnlyPartialConsumption -enable-experimental-feature MoveOnlyClasses -enable-sil-verify-all -move-only-diagnostics-silently-emit-diagnostics %s | %FileCheck %s
66

77
// This file contains specific SIL test cases that we expect to emit
88
// diagnostics. These are cases where we want to make it easy to validate

test/SILOptimizer/moveonly_addresschecker_diagnostics.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-emit-sil -O -sil-verify-all -verify -enable-experimental-feature BorrowingSwitch -enable-experimental-feature MoveOnlyPartialConsumption -enable-experimental-feature MoveOnlyPartialReinitialization -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s
2-
// RUN: %target-swift-emit-sil -enable-experimental-feature BorrowingSwitch -enable-experimental-feature NoncopyableGenerics -O -sil-verify-all -verify -enable-experimental-feature MoveOnlyPartialConsumption -enable-experimental-feature MoveOnlyPartialReinitialization -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s
1+
// RUN: %target-swift-emit-sil -O -sil-verify-all -verify -enable-experimental-feature BorrowingSwitch -enable-upcoming-feature MoveOnlyPartialConsumption -enable-experimental-feature MoveOnlyPartialReinitialization -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s
2+
// RUN: %target-swift-emit-sil -enable-experimental-feature BorrowingSwitch -enable-experimental-feature NoncopyableGenerics -O -sil-verify-all -verify -enable-upcoming-feature MoveOnlyPartialConsumption -enable-experimental-feature MoveOnlyPartialReinitialization -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s
33

44
//////////////////
55
// Declarations //

test/SILOptimizer/moveonly_addresschecker_diagnostics_partial_consume_ufi.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
// RUN: %s \
44
// RUN: -emit-sil -verify -verify-additional-prefix fragile- \
55
// RUN: -sil-verify-all \
6-
// RUN: -enable-experimental-feature MoveOnlyPartialConsumption \
6+
// RUN: -enable-upcoming-feature MoveOnlyPartialConsumption \
77
// RUN: -module-name Library
88
// RUN: %target-swift-frontend \
99
// RUN: %s \
1010
// RUN: -emit-sil -verify -verify-additional-prefix resilient- \
1111
// RUN: -sil-verify-all \
1212
// RUN: -enable-library-evolution \
13-
// RUN: -enable-experimental-feature MoveOnlyPartialConsumption \
13+
// RUN: -enable-upcoming-feature MoveOnlyPartialConsumption \
1414
// RUN: -module-name Library
1515

1616
public func take(_ u: consuming Ur) {}

test/SILOptimizer/moveonly_addresschecker_diagnostics_resilient.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %t/Library.swift \
66
// RUN: -emit-module \
77
// RUN: -enable-library-evolution \
8-
// RUN: -enable-experimental-feature MoveOnlyPartialConsumption \
8+
// RUN: -enable-upcoming-feature MoveOnlyPartialConsumption \
99
// RUN: -module-name Library \
1010
// RUN: -emit-module-path %t/Library.swiftmodule
1111

@@ -14,7 +14,7 @@
1414
// RUN: -emit-sil -verify \
1515
// RUN: -debug-diagnostic-names \
1616
// RUN: -sil-verify-all \
17-
// RUN: -enable-experimental-feature MoveOnlyPartialConsumption \
17+
// RUN: -enable-upcoming-feature MoveOnlyPartialConsumption \
1818
// RUN: -I %t
1919

2020

test/SILOptimizer/moveonly_addresschecker_diagnostics_without_partial_reinit.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-emit-sil -O -sil-verify-all -verify -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses -enable-experimental-feature MoveOnlyPartialConsumption %s
2-
// RUN: %target-swift-emit-sil -enable-experimental-feature NoncopyableGenerics -O -sil-verify-all -verify -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses -enable-experimental-feature MoveOnlyPartialConsumption %s
1+
// RUN: %target-swift-emit-sil -O -sil-verify-all -verify -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses -enable-upcoming-feature MoveOnlyPartialConsumption %s
2+
// RUN: %target-swift-emit-sil -enable-experimental-feature NoncopyableGenerics -O -sil-verify-all -verify -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses -enable-upcoming-feature MoveOnlyPartialConsumption %s
33

44
// Test diagnostics for partial-consumption without partial-reinitialization.
55

test/SILOptimizer/moveonly_addresschecker_maximize.sil

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-sil-opt -sil-move-only-address-checker -enable-experimental-feature MoveOnlyPartialConsumption -enable-sil-verify-all %s | %FileCheck %s
1+
// RUN: %target-sil-opt -sil-move-only-address-checker -enable-upcoming-feature MoveOnlyPartialConsumption -enable-sil-verify-all %s | %FileCheck %s
22
sil_stage raw
33

44
import Builtin

test/SILOptimizer/moveonly_addresschecker_unmaximized.sil

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: -sil-move-only-address-checker \
33
// RUN: %s \
44
// RUN: -module-name moveonly_addresschecker \
5-
// RUN: -enable-experimental-feature MoveOnlyPartialConsumption \
5+
// RUN: -enable-upcoming-feature MoveOnlyPartialConsumption \
66
// RUN: -enable-experimental-feature MoveOnlyClasses \
77
// RUN: -enable-sil-verify-all \
88
// RUN: -move-only-address-checker-disable-lifetime-extension=true \

test/SILOptimizer/moveonly_addressonly_subscript_diagnostics.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-emit-sil -enable-experimental-feature MoveOnlyPartialConsumption -sil-verify-all -verify %s
2-
// RUN: %target-swift-emit-sil -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature MoveOnlyPartialConsumption -sil-verify-all -verify %s
1+
// RUN: %target-swift-emit-sil -enable-upcoming-feature MoveOnlyPartialConsumption -sil-verify-all -verify %s
2+
// RUN: %target-swift-emit-sil -enable-experimental-feature NoncopyableGenerics -enable-upcoming-feature MoveOnlyPartialConsumption -sil-verify-all -verify %s
33

44

55
class CopyableKlass {}

test/SILOptimizer/moveonly_borrowing_switch_mode_with_partial_consume.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -emit-sil -verify -enable-experimental-feature BorrowingSwitch -enable-experimental-feature MoveOnlyPartialConsumption -parse-as-library %s
1+
// RUN: %target-swift-frontend -emit-sil -verify -enable-experimental-feature BorrowingSwitch -enable-upcoming-feature MoveOnlyPartialConsumption -parse-as-library %s
22

33
func foo() {
44
let node = Node()

test/SILOptimizer/moveonly_borrowing_switch_yield.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature BorrowingSwitch -enable-experimental-feature MoveOnlyPartialConsumption -parse-as-library -O -emit-sil -verify %s
1+
// RUN: %target-swift-frontend -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature BorrowingSwitch -enable-upcoming-feature MoveOnlyPartialConsumption -parse-as-library -O -emit-sil -verify %s
22

33
extension List {
44
var peek: Element {

test/SILOptimizer/moveonly_consuming_switch.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -emit-sil -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature BorrowingSwitch -enable-experimental-feature MoveOnlyPartialConsumption -verify %s
1+
// RUN: %target-swift-frontend -emit-sil -enable-experimental-feature NoncopyableGenerics -enable-experimental-feature BorrowingSwitch -enable-upcoming-feature MoveOnlyPartialConsumption -verify %s
22

33
// TODO: Remove this and just use the real `UnsafeMutablePointer` when
44
// noncopyable type support has been upstreamed.

test/SILOptimizer/moveonly_consuming_switch_2.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -emit-sil -enable-experimental-feature BorrowingSwitch -enable-experimental-feature MoveOnlyPartialConsumption -verify %s
1+
// RUN: %target-swift-frontend -emit-sil -enable-experimental-feature BorrowingSwitch -enable-upcoming-feature MoveOnlyPartialConsumption -verify %s
22

33
struct Box: ~Copyable {
44
let ptr: UnsafeMutablePointer<Int>

test/SILOptimizer/moveonly_generics_basic.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend %s -sil-verify-all -verify -emit-sil -enable-experimental-feature MoveOnlyPartialConsumption -enable-experimental-feature MoveOnlyPartialReinitialization -enable-experimental-feature NoncopyableGenerics
1+
// RUN: %target-swift-frontend %s -sil-verify-all -verify -emit-sil -enable-upcoming-feature MoveOnlyPartialConsumption -enable-experimental-feature MoveOnlyPartialReinitialization -enable-experimental-feature NoncopyableGenerics
22

33
// REQUIRES: asserts
44

test/SILOptimizer/moveonly_generics_complex.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %s \
44
// RUN: -enable-experimental-feature BuiltinModule \
55
// RUN: -enable-experimental-feature NoncopyableGenerics \
6-
// RUN: -enable-experimental-feature MoveOnlyPartialConsumption \
6+
// RUN: -enable-upcoming-feature MoveOnlyPartialConsumption \
77
// RUN: -sil-verify-all
88

99
// REQUIRES: asserts

test/SILOptimizer/moveonly_loadable_subscript_diagnostics.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-emit-sil -enable-experimental-feature MoveOnlyPartialConsumption -sil-verify-all -verify %s
1+
// RUN: %target-swift-emit-sil -enable-upcoming-feature MoveOnlyPartialConsumption -sil-verify-all -verify %s
22

33
class CopyableKlass {}
44

test/SILOptimizer/moveonly_objectchecker_diagnostics.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-emit-sil -enable-experimental-feature BorrowingSwitch -enable-experimental-feature MoveOnlyPartialConsumption -sil-verify-all -verify -enable-experimental-feature MoveOnlyClasses %s
1+
// RUN: %target-swift-emit-sil -enable-experimental-feature BorrowingSwitch -enable-upcoming-feature MoveOnlyPartialConsumption -sil-verify-all -verify -enable-experimental-feature MoveOnlyClasses %s
22

33
//////////////////
44
// Declarations //

test/SILOptimizer/moveonly_partial_consumption_deinit.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-swift-emit-sil \
22
// RUN: %s \
3-
// RUN: -enable-experimental-feature MoveOnlyPartialConsumption \
3+
// RUN: -enable-upcoming-feature MoveOnlyPartialConsumption \
44
// RUN: -enable-experimental-feature NoncopyableGenerics \
55
// RUN: -sil-verify-all \
66
// RUN: -verify

0 commit comments

Comments
 (0)