Compat back to 1.0.0
diff --git a/libc-test/tests/all.rs b/libc-test/tests/all.rs
index d397883..42a743c 100644
--- a/libc-test/tests/all.rs
+++ b/libc-test/tests/all.rs
@@ -33,6 +33,7 @@
}
}
+#[allow(deprecated)]
fn align<T: Any>() -> u64 {
// TODO: apparently these three types have less alignment in Rust on x86
// than they do in C this difference should.. probably be reconciled.
@@ -45,7 +46,7 @@
return 8
}
}
- mem::align_of::<T>() as u64
+ mem::min_align_of::<T>() as u64
}
macro_rules! offset_of {