From 20067350ebdda9867a503b05ded7465d0901e445 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Sat, 13 Sep 2025 22:15:51 -0700 Subject: [PATCH] Mutable[Raw]Span.init() does not need @_unsafeNonescapableResult It isn't clear why @_unsafeNonescapableResult was applied to Mutable[Raw]Span.init(). It was either a mistake or temporary workaround for some compiler bug. --- stdlib/public/core/Span/MutableRawSpan.swift | 1 - stdlib/public/core/Span/MutableSpan.swift | 1 - 2 files changed, 2 deletions(-) diff --git a/stdlib/public/core/Span/MutableRawSpan.swift b/stdlib/public/core/Span/MutableRawSpan.swift index 60b9708126c85..9e52138367dd5 100644 --- a/stdlib/public/core/Span/MutableRawSpan.swift +++ b/stdlib/public/core/Span/MutableRawSpan.swift @@ -42,7 +42,6 @@ public struct MutableRawSpan: ~Copyable & ~Escapable { } @unsafe - @_unsafeNonescapableResult @_alwaysEmitIntoClient @lifetime(borrow pointer) internal init( diff --git a/stdlib/public/core/Span/MutableSpan.swift b/stdlib/public/core/Span/MutableSpan.swift index 15e0314d1c8c7..4b4d386f19b62 100644 --- a/stdlib/public/core/Span/MutableSpan.swift +++ b/stdlib/public/core/Span/MutableSpan.swift @@ -43,7 +43,6 @@ public struct MutableSpan } @unsafe - @_unsafeNonescapableResult @_alwaysEmitIntoClient @lifetime(borrow start) internal init(