diff options
| author | gnzlbg <gonzalobg88@gmail.com> | 2018-06-02 16:03:33 +0200 |
|---|---|---|
| committer | gnzlbg <gonzalobg88@gmail.com> | 2018-06-02 16:03:33 +0200 |
| commit | 6ff67ee0d7b4f9f962809a82d9078f353e200818 (patch) | |
| tree | e0d6f0e5ef57f18442f859c3195aefa85b971161 | |
| parent | 6c3ebcd223af3ebd4d45cd4a648b8b25ef6d3ba3 (diff) | |
remove debug_assert in padding_needed_for
| -rw-r--r-- | src/libcore/alloc.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libcore/alloc.rs b/src/libcore/alloc.rs index 064c7514112..cddd142045a 100644 --- a/src/libcore/alloc.rs +++ b/src/libcore/alloc.rs @@ -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: |
