Skip to content

Commit 58c8eab

Browse files
committed
[stdlib] Convert _Hashing, _HashingDetail to caseless enums
Empty structs can be instantiated, which doesn’t make sense for these namespacing declarations.
1 parent ae0027a commit 58c8eab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/Hashing.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import SwiftShims
2525

2626
@_fixed_layout // FIXME(sil-serialize-all)
2727
public // @testable
28-
struct _Hashing {
28+
enum _Hashing {
2929
// FIXME(ABI)#41 : make this an actual public API.
3030
@_inlineable // FIXME(sil-serialize-all)
3131
public // SPI
@@ -48,7 +48,7 @@ struct _Hashing {
4848

4949
@_fixed_layout // FIXME(sil-serialize-all)
5050
public // @testable
51-
struct _HashingDetail {
51+
enum _HashingDetail {
5252

5353
@_inlineable // FIXME(sil-serialize-all)
5454
public // @testable

0 commit comments

Comments
 (0)