Skip to content

Commit e20793d

Browse files
committed
feat: Void is now Send + Sync
1 parent a6e0612 commit e20793d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ impl error::Error for Void {
6969
}
7070
}
7171

72+
// SAFETY: safe because `Void` is uninhabitable
73+
unsafe impl Send for Void {}
74+
unsafe impl Sync for Void {}
75+
7276
/// A safe version of `intrinsincs::unreachable`.
7377
///
7478
/// If this typechecks, anything that causes this to run is unreachable code.

0 commit comments

Comments
 (0)