Skip to content

Commit 93aa8d5

Browse files
authored
Merge pull request #83968 from egorzhdan/egorzhdan/missing-unsafe
[cxx-interop] Fix warning about missing `unsafe`
2 parents b90494b + 4b0e886 commit 93aa8d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Cxx/std/String.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ extension String {
534534
unsafe String(decoding: $0, as: UTF32.self)
535535
}
536536
#endif
537-
withExtendedLifetime(cxxWStringView) {}
537+
unsafe withExtendedLifetime(cxxWStringView) {}
538538
}
539539
}
540540

0 commit comments

Comments
 (0)