Skip to content

Commit a58f299

Browse files
committed
[BitwiseCopyable] Promote ConformanceSuppression.
The ability to suppress conformance to BitwiseCopyable was part of the accepted SE-428.
1 parent 4860418 commit a58f299

File tree

4 files changed

+1
-6
lines changed

4 files changed

+1
-6
lines changed

include/swift/Basic/Features.def

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ SUPPRESSIBLE_LANGUAGE_FEATURE(AssociatedTypeImplements, 0, "@_implements on asso
178178
LANGUAGE_FEATURE(MoveOnlyPartialConsumption, 429, "Partial consumption of noncopyable values")
179179
/// Enable bitwise-copyable feature.
180180
LANGUAGE_FEATURE(BitwiseCopyable, 426, "BitwiseCopyable protocol")
181+
SUPPRESSIBLE_LANGUAGE_FEATURE(ConformanceSuppression, 426, "Suppressible inferred conformances")
181182

182183
// Swift 6
183184
UPCOMING_FEATURE(ConciseMagicFile, 274, 6)
@@ -341,9 +342,6 @@ EXPERIMENTAL_FEATURE(StaticExclusiveOnly, true)
341342
/// Enable the @extractConstantsFromMembers attribute.
342343
EXPERIMENTAL_FEATURE(ExtractConstantsFromMembers, false)
343344

344-
/// Enable the suppression of inferred, non-invertible, protocols via ~.
345-
SUPPRESSIBLE_EXPERIMENTAL_FEATURE(ConformanceSuppression, true)
346-
347345
/// Enables the FixedArray data type.
348346
EXPERIMENTAL_FEATURE(FixedArrays, true)
349347

stdlib/public/core/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ list(APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "Macros")
316316
list(APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "FreestandingMacros")
317317
list(APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "Extern")
318318
list(APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "BorrowingSwitch")
319-
list(APPEND swift_stdlib_compile_flags "-enable-experimental-feature" "ConformanceSuppression")
320319

321320
if("${SWIFT_NATIVE_SWIFT_TOOLS_PATH}" STREQUAL "")
322321
set(swift_bin_dir "${CMAKE_BINARY_DIR}/bin")

test/SILGen/bitwise_copyable.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// RUN: %s \
33
// RUN: -emit-silgen \
44
// RUN: -disable-availability-checking \
5-
// RUN: -enable-experimental-feature ConformanceSuppression \
65
// RUN: -enable-builtin-module
76

87
// REQUIRES: asserts

test/Sema/bitwise_copyable_2.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: %target-typecheck-verify-swift \
22
// RUN: -enable-experimental-feature NonescapableTypes \
3-
// RUN: -enable-experimental-feature ConformanceSuppression \
43
// RUN: -enable-builtin-module \
54
// RUN: -debug-diagnostic-names
65

0 commit comments

Comments
 (0)