Skip to content

Commit 61b5337

Browse files
committed
Add unsafe to expected macro expansion of bundle macro tests
1 parent 3040894 commit 61b5337

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/FoundationMacrosTests/BundleMacroTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private struct BundleMacroTests {
3131
#elseif SWIFT_BUNDLE_LOOKUP_HELPER_AVAILABLE
3232
return Bundle(for: __BundleLookupHelper.self)
3333
#else
34-
return Bundle(_dsoHandle: #dsohandle) ?? .main
34+
return unsafe Bundle(_dsoHandle: #dsohandle) ?? .main
3535
#endif
3636
}()
3737
"""
@@ -53,7 +53,7 @@ private struct BundleMacroTests {
5353
#elseif SWIFT_BUNDLE_LOOKUP_HELPER_AVAILABLE
5454
return Bundle(for: __BundleLookupHelper.self)
5555
#else
56-
return Bundle(_dsoHandle: #dsohandle) ?? .main
56+
return unsafe Bundle(_dsoHandle: #dsohandle) ?? .main
5757
#endif
5858
}()
5959
"""

0 commit comments

Comments
 (0)