Skip to content

Commit

Permalink
remove debug_assert in padding_needed_for
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed Jun 2, 2018
1 parent 6c3ebcd commit 6ff67ee
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/libcore/alloc.rs
Expand Up @@ -204,9 +204,6 @@ impl Layout {
/// satisfy this constraint is to ensure `align <= self.align()`.
#[inline]
pub fn padding_needed_for(&self, align: usize) -> usize {
// **FIXME**: This function is only called with proper power-of-two
// alignments. Maybe we should turn this into a real assert!.
debug_assert!(align.is_power_of_two());
let len = self.size();

// Rounded up value is:
Expand Down

0 comments on commit 6ff67ee

Please sign in to comment.