Skip to content

Commit 083fa7c

Browse files
committed
Auto merge of #1836 - alexcrichton:fix-nightly, r=alexcrichton
The lints for C apis were tweaked recently and 0-size structs aren't liked. These should be empty `enum`s anyway, however, to ensure they're never created.
2 parents b61b5ea + 60e66b3 commit 083fa7c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/cargo/util/sha256.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ pub use self::imp::Sha256;
33
// Someone upstream will link to OpenSSL, so we don't need to explicitly
44
// link to it ourselves. Hence we pick up Sha256 digests from OpenSSL
55
#[cfg(not(windows))]
6+
#[allow(bad_style)]
67
mod imp {
78
use libc;
89

9-
#[repr(C)] struct EVP_MD_CTX;
10-
#[repr(C)] struct EVP_MD;
11-
#[repr(C)] struct ENGINE;
10+
enum EVP_MD_CTX {}
11+
enum EVP_MD {}
12+
enum ENGINE {}
1213

1314
extern {
1415
fn EVP_DigestInit_ex(ctx: *mut EVP_MD_CTX,

0 commit comments

Comments
 (0)