Skip to content

Commit f064a7c

Browse files
committed
rem fn
1 parent 4812bd6 commit f064a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/alloc/isolated_alloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ mod tests {
367367
// Then write to the end of the current size, so if the allocs
368368
// overlap (or the zeroing is wrong) then `assert_zeroes` will panic.
369369
// Also check that the alignment we asked for was respected
370-
assert_eq!(ptr.addr().rem_euclid(layout.align()), 0);
370+
assert_eq!(ptr.addr().strict_rem(layout.align()), 0);
371371
// SAFETY: each `ptr` was allocated with its corresponding `layout`,
372372
// which is used to bound the access size
373373
unsafe {

0 commit comments

Comments
 (0)