From: Steven Fackler Date: Sun, 20 Dec 2015 23:15:18 +0000 (-0700) Subject: Whitelist improper ctypes to support old rustc versions X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a95ea7a56ee3d348b29ba97daa09030f46d27f61;p=cargo.git Whitelist improper ctypes to support old rustc versions --- diff --git a/src/cargo/util/sha256.rs b/src/cargo/util/sha256.rs index 04e197421..3a6dc5055 100644 --- a/src/cargo/util/sha256.rs +++ b/src/cargo/util/sha256.rs @@ -3,7 +3,8 @@ pub use self::imp::Sha256; // Someone upstream will link to OpenSSL, so we don't need to explicitly // link to it ourselves. Hence we pick up Sha256 digests from OpenSSL #[cfg(not(windows))] -#[allow(bad_style)] +// allow improper ctypes because size_t falls under that in old compilers +#[allow(bad_style, improper_ctypes)] mod imp { use libc;