File tree Expand file tree Collapse file tree 6 files changed +14
-7
lines changed
test/SourceKit/DocSupport Expand file tree Collapse file tree 6 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ public func _getBridgedNonVerbatimObjectiveCType<T>(_: T.Type) -> Any.Type?
407
407
/// already have writeback-scoped lifetime.
408
408
@frozen
409
409
public struct AutoreleasingUnsafeMutablePointer< Pointee /* TODO : class */>
410
- : _Pointer {
410
+ : _Pointer, @ unchecked _BitwiseCopyable {
411
411
412
412
public let _rawValue : Builtin . RawPointer
413
413
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ public typealias CBool = Bool
142
142
/// Opaque pointers are used to represent C pointers to types that
143
143
/// cannot be represented in Swift, such as incomplete struct types.
144
144
@frozen
145
- public struct OpaquePointer {
145
+ public struct OpaquePointer : @ unchecked _BitwiseCopyable {
146
146
@usableFromInline
147
147
internal var _rawValue : Builtin . RawPointer
148
148
Original file line number Diff line number Diff line change 30
30
/// collection with an `${Self}` instance copies the instances out of the
31
31
/// referenced memory and into the new collection.
32
32
@frozen // unsafe-performance
33
- public struct Unsafe${ Mutable} BufferPointer< Element> {
33
+ public struct Unsafe${ Mutable} BufferPointer< Element>
34
+ : @unchecked _BitwiseCopyable {
34
35
35
36
@usableFromInline
36
37
let _position : Unsafe ${ Mutable} Pointer< Element>?
Original file line number Diff line number Diff line change 205
205
/// let numberPointer = UnsafePointer<Int>(&number)
206
206
/// // Accessing 'numberPointer' is undefined behavior.
207
207
@frozen // unsafe-performance
208
- public struct UnsafePointer < Pointee> : _Pointer {
208
+ public struct UnsafePointer < Pointee> : _Pointer , @ unchecked _BitwiseCopyable {
209
209
210
210
/// A type that represents the distance between two pointers.
211
211
public typealias Distance = Int
@@ -578,7 +578,8 @@ public struct UnsafePointer<Pointee>: _Pointer {
578
578
/// let numberPointer = UnsafeMutablePointer<Int>(&number)
579
579
/// // Accessing 'numberPointer' is undefined behavior.
580
580
@frozen // unsafe-performance
581
- public struct UnsafeMutablePointer < Pointee> : _Pointer {
581
+ public struct UnsafeMutablePointer < Pointee>
582
+ : _Pointer , @unchecked _BitwiseCopyable {
582
583
583
584
/// A type that represents the distance between two pointers.
584
585
public typealias Distance = Int
Original file line number Diff line number Diff line change 169
169
/// let numberPointer = UnsafeRawPointer(&number)
170
170
/// // Accessing 'numberPointer' is undefined behavior.
171
171
@frozen
172
- public struct UnsafeRawPointer : _Pointer {
172
+ public struct UnsafeRawPointer : _Pointer , @ unchecked _BitwiseCopyable {
173
173
174
174
public typealias Pointee = UInt8
175
175
@@ -727,7 +727,7 @@ extension UnsafeRawPointer {
727
727
/// let numberPointer = UnsafeMutableRawPointer(&number)
728
728
/// // Accessing 'numberPointer' is undefined behavior.
729
729
@frozen
730
- public struct UnsafeMutableRawPointer : _Pointer {
730
+ public struct UnsafeMutableRawPointer : _Pointer , @ unchecked _BitwiseCopyable {
731
731
732
732
public typealias Pointee = UInt8
733
733
Original file line number Diff line number Diff line change @@ -5654,6 +5654,11 @@ var FooSubUnnamedEnumeratorA1: Int { get }
5654
5654
key.kind: source.lang.swift.ref.protocol,
5655
5655
key.name: "_Pointer",
5656
5656
key.usr: "s:s8_PointerP"
5657
+ },
5658
+ {
5659
+ key.kind: source.lang.swift.ref.protocol,
5660
+ key.name: "_BitwiseCopyable",
5661
+ key.usr: "s:s16_BitwiseCopyableP"
5657
5662
}
5658
5663
]
5659
5664
},
You can’t perform that action at this time.
0 commit comments