Skip to content

Commit 6ff67ee

Browse files
committed
remove debug_assert in padding_needed_for
1 parent 6c3ebcd commit 6ff67ee

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/libcore/alloc.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,6 @@ impl Layout {
204204
/// satisfy this constraint is to ensure `align <= self.align()`.
205205
#[inline]
206206
pub fn padding_needed_for(&self, align: usize) -> usize {
207-
// **FIXME**: This function is only called with proper power-of-two
208-
// alignments. Maybe we should turn this into a real assert!.
209-
debug_assert!(align.is_power_of_two());
210207
let len = self.size();
211208

212209
// Rounded up value is:

0 commit comments

Comments
 (0)