Skip to content

Commit 74a6804

Browse files
committed
update
1 parent dedf9f9 commit 74a6804

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk/patina/src/boot_services/c_ptr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ unsafe impl<'a, R: CRef<'a, Type = T>, T> CRef<'a> for ManuallyDrop<R> {}
231231
// SAFETY: Memory layout and mutability are respected for these types.
232232
unsafe impl<'a, R: CMutRef<'a, Type = T>, T> CMutRef<'a> for ManuallyDrop<R> {}
233233

234+
// SAFETY: NonNull<T> is a transparent wrapper around a non-null pointer that preserves
235+
// the memory layout and pointer semantics of T.
234236
unsafe impl<T> CPtr<'_> for NonNull<T> {
235237
type Type = T;
236238

0 commit comments

Comments
 (0)