Skip to content

Commit 4472178

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

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

stdlib/public/core/CommandLine.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,7 @@ public enum CommandLine {
6161
= (0..<Int(argc)).map { String(cString: _unsafeArgv[$0]!) }
6262
}
6363

64+
@available(*, unavailable)
65+
extension CommandLine : _BitwiseCopyable {}
66+
6467
#endif // SWIFT_STDLIB_HAS_COMMANDLINE

test/Sema/bitwise_copyable_2.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ func passInternalUsableStruct(_ s: InternalUsableStruct) { take(s) } // expected
3636
// expected-note@-8{{where_requirement_failure_one_subst}}
3737

3838
func passMemoryLayout<T>(_ m: MemoryLayout<T>) { take(m) } // expected-error{{conformance_availability_unavailable}}
39+
40+
func passCommandLine(_ m: CommandLine) { take(m) } // expected-error{{conformance_availability_unavailable}}

0 commit comments

Comments
 (0)