Skip to content

Commit 3507271

Browse files
author
Max Moiseev
committed
[stdlib] Changing the deprecation message for StringInterpolationConvertible
Since the ExpressibleByStringInterpolation protocol is also deprecated now, it makes little sense to suggest using it instead of StringInterpolationConvertible. Instead, the message now recommends considering an init(_:String). See https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160808/026171.html for some more details.
1 parent 9d40a05 commit 3507271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/CompilerProtocols.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ public typealias ArrayLiteralConvertible
737737
@available(*, deprecated, renamed: "ExpressibleByDictionaryLiteral")
738738
public typealias DictionaryLiteralConvertible
739739
= ExpressibleByDictionaryLiteral
740-
@available(*, deprecated, renamed: "ExpressibleByStringInterpolation")
740+
@available(*, deprecated, message: "it will be replaced or redesigned in Swift 4.0. Instead of conforming to 'StringInterpolationConvertible', consider adding an 'init(_:String)'")
741741
public typealias StringInterpolationConvertible
742742
= ExpressibleByStringInterpolation
743743
@available(*, deprecated, renamed: "_ExpressibleByColorLiteral")

0 commit comments

Comments
 (0)