Skip to content

Commit f3fe8bd

Browse files
committed
Restore compatibility with rustc pre-1.38
1 parent 62673e2 commit f3fe8bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ pub(crate) struct ErrorImpl<E = ()> {
730730
// avoids converting `p` into a reference.
731731
unsafe fn vtable(p: NonNull<ErrorImpl>) -> &'static ErrorVTable {
732732
// NOTE: This assumes that `ErrorVTable` is the first field of ErrorImpl.
733-
*p.as_ptr().cast::<&'static ErrorVTable>()
733+
*(p.as_ptr() as *const &'static ErrorVTable)
734734
}
735735

736736
// repr C to ensure that ContextError<C, E> has the same layout as

0 commit comments

Comments
 (0)