Skip to content

Commit 621d4c1

Browse files
committed
[stdlib] Suppress Unicode : _BitwiseCopyable.
Mark it always unavailable per LWG feedback.
1 parent 4472178 commit 621d4c1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

stdlib/public/core/Unicode.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,3 +674,6 @@ public func transcode<Input, InputEncoding, OutputEncoding>(
674674
@frozen
675675
public enum Unicode {}
676676

677+
@available(*, unavailable)
678+
extension Unicode : _BitwiseCopyable {}
679+

test/Sema/bitwise_copyable_2.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ func passInternalUsableStruct(_ s: InternalUsableStruct) { take(s) } // expected
3838
func passMemoryLayout<T>(_ m: MemoryLayout<T>) { take(m) } // expected-error{{conformance_availability_unavailable}}
3939

4040
func passCommandLine(_ m: CommandLine) { take(m) } // expected-error{{conformance_availability_unavailable}}
41+
42+
func passUnicode(_ m: Unicode) { take(m) } // expected-error{{conformance_availability_unavailable}}

0 commit comments

Comments
 (0)