File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ extension MutableSpan where Element: ~Copyable {
8989
9090 @unsafe
9191 @_alwaysEmitIntoClient
92+ @_transparent
9293 @lifetime ( borrow start)
9394 public init (
9495 _unsafeStart start: UnsafeMutablePointer < Element > ,
@@ -295,10 +296,12 @@ extension MutableSpan where Element: ~Copyable {
295296 /// - Complexity: O(1)
296297 @_alwaysEmitIntoClient
297298 public subscript( _ position: Index ) -> Element {
299+ @_transparent
298300 unsafeAddress {
299301 _checkIndex ( position)
300302 return unsafe UnsafePointer ( _unsafeAddressOfElement ( unchecked: position) )
301303 }
304+ @_transparent
302305 @lifetime ( self : copy self )
303306 unsafeMutableAddress {
304307 _checkIndex ( position)
@@ -317,9 +320,11 @@ extension MutableSpan where Element: ~Copyable {
317320 @unsafe
318321 @_alwaysEmitIntoClient
319322 public subscript( unchecked position: Index ) -> Element {
323+ @_transparent
320324 unsafeAddress {
321325 unsafe UnsafePointer( _unsafeAddressOfElement ( unchecked: position) )
322326 }
327+ @_transparent
323328 @lifetime ( self : copy self )
324329 unsafeMutableAddress {
325330 unsafe _unsafeAddressOfElement( unchecked: position)
You can’t perform that action at this time.
0 commit comments