Skip to content
Myr

Ptr read only needs a const ptr

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 6b25b2f · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/error.rs+1 added-1 removed
382 unmodified lines
383384impl Drop for Error {385 fn drop(&mut self) {386 unsafe {387 let inner = ptr::read(&mut self.inner);387 let inner = ptr::read(&self.inner);388 let erased = ManuallyDrop::into_inner(inner);389 (erased.vtable.object_drop)(erased);390 }391 }
178 unmodified lines