Skip to content

Commit a822b09

Browse files
committed
Implement FromZeros for AtomicPtr
Makes progress on #1009 gherrit-pr-id: I3d825b6c6b99277c96d9fd6a6761bdfad2000473
1 parent 4f87922 commit a822b09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/impls.rs

+1
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ mod atomics {
656656
// TODO(#170): Implement `FromBytes` and `IntoBytes` once we implement
657657
// those traits for `*mut T`.
658658
impl_for_transmute_from!(T => TryFromBytes for AtomicPtr<T> [UnsafeCell<*mut T>]);
659+
impl_for_transmute_from!(T => FromZeros for AtomicPtr<T> [UnsafeCell<*mut T>]);
659660

660661
safety_comment! {
661662
/// SAFETY:

0 commit comments

Comments
 (0)