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 f435972 commit 79c0897Copy full SHA for 79c0897
library/core/src/alloc/layout.rs
@@ -316,8 +316,7 @@ impl Layout {
316
// Size 1 Align MAX or Size isize::MAX Align 2 round up to `isize::MAX + 1`.)
317
unsafe {
318
let align_m1 = unchecked_sub(align.as_usize(), 1);
319
- let size_rounded_up = unchecked_add(self.size, align_m1) & !align_m1;
320
- size_rounded_up
+ unchecked_add(self.size, align_m1) & !align_m1
321
}
322
323
0 commit comments