Skip to content

Commit 6e2ef0a

Browse files
authored
Specify lifetime for protocol requirement (swiftlang#1700)
1 parent 85862c1 commit 6e2ef0a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Sources/FoundationEssentials/URL/URLParser.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2023 - 2025 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2023 - 2026 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information
@@ -185,6 +185,8 @@ fileprivate struct URLBufferParseInfo {
185185
package protocol UIDNAHook {
186186
static func encode(_ host: some StringProtocol) -> String?
187187
static func decode(_ host: some StringProtocol) -> String?
188+
189+
@lifetime(output: copy output)
188190
static func nameToASCII(
189191
input: borrowing Span<UTF16.CodeUnit>,
190192
output: inout OutputSpan<Unicode.ASCII.CodeUnit>

0 commit comments

Comments
 (0)