Compat back to 1.0.0
diff --git a/.travis.yml b/.travis.yml
index 1526807..c760cf5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,7 +3,7 @@
services:
- docker
rust:
- - 1.2.0
+ - 1.0.0
- beta
- nightly
install:
diff --git a/libc-test/build.rs b/libc-test/build.rs
index a4c493f..ae8c21b 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -62,7 +62,7 @@
fn headers(&self) -> Vec<&'static str> {
let mut base = Vec::new();
- base.extend(&[
+ base.extend([
"errno.h",
"fcntl.h",
"limits.h",
@@ -74,7 +74,7 @@
"sys/types.h",
"time.h",
"wchar.h",
- ]);
+ ].iter().cloned());
if self.target.contains("apple-darwin") {
base.push("mach-o/dyld.h");
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 {