We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 607076e commit 9749eb7Copy full SHA for 9749eb7
library/core/src/hash/sip.rs
@@ -111,7 +111,7 @@ macro_rules! load_int_le {
111
debug_assert!($i + mem::size_of::<$int_ty>() <= $buf.len());
112
let mut data = 0 as $int_ty;
113
ptr::copy_nonoverlapping(
114
- $buf.get_unchecked($i),
+ $buf.as_ptr().add($i),
115
&mut data as *mut _ as *mut u8,
116
mem::size_of::<$int_ty>(),
117
);
0 commit comments