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 6c3ebcd commit 6ff67eeCopy full SHA for 6ff67ee
src/libcore/alloc.rs
@@ -204,9 +204,6 @@ impl Layout {
204
/// satisfy this constraint is to ensure `align <= self.align()`.
205
#[inline]
206
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());
210
let len = self.size();
211
212
// Rounded up value is:
0 commit comments