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 4812bd6 commit f064a7cCopy full SHA for f064a7c
src/alloc/isolated_alloc.rs
@@ -367,7 +367,7 @@ mod tests {
367
// Then write to the end of the current size, so if the allocs
368
// overlap (or the zeroing is wrong) then `assert_zeroes` will panic.
369
// Also check that the alignment we asked for was respected
370
- assert_eq!(ptr.addr().rem_euclid(layout.align()), 0);
+ assert_eq!(ptr.addr().strict_rem(layout.align()), 0);
371
// SAFETY: each `ptr` was allocated with its corresponding `layout`,
372
// which is used to bound the access size
373
unsafe {
0 commit comments