You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_ =String(cString:"string") // expected-warning {{'init(cString:)' is deprecated: Use a copy of the String argument}}
8
8
9
-
_ =String(validatingCString:"string") // expected-warning {{init(validatingCString:)' is deprecated: Use a copy of the String argument}}
9
+
_ =String(validatingUTF8:"string") // expected-warning {{init(validatingUTF8:)' is deprecated: Use a copy of the String argument}}
10
+
11
+
_ =String(validatingCString:"string") // expected-warning {{'init(validatingCString:)' is deprecated: Use a copy of the String argument}}
10
12
11
13
_ =String.decodeCString("string", as:Unicode.UTF8.self) // expected-warning {{'decodeCString(_:as:repairingInvalidCodeUnits:)' is deprecated: Use a copy of the String argument}}
0 commit comments