[INFO] cloning repository https://github.com/gianlu33/rust-mbedtls [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gianlu33/rust-mbedtls" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgianlu33%2Frust-mbedtls", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgianlu33%2Frust-mbedtls'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cef4e6995ab8dd31560136076e6320920c669955 [INFO] checking gianlu33/rust-mbedtls against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgianlu33%2Frust-mbedtls" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/gianlu33/rust-mbedtls on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/gianlu33/rust-mbedtls [INFO] finished tweaking git repo https://github.com/gianlu33/rust-mbedtls [INFO] tweaked toml for git repo https://github.com/gianlu33/rust-mbedtls written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/gianlu33/rust-mbedtls already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded which v3.0.0 [INFO] [stderr] Downloaded bindgen v0.58.0 [INFO] [stderr] Downloaded rs-libc v0.2.2 [INFO] [stderr] Downloaded serde_cbor v0.6.1 [INFO] [stderr] Downloaded yasna v0.2.2 [INFO] [stderr] Downloaded core_io v0.1.20210325 [INFO] [stderr] Downloaded rc2 v0.3.0 [INFO] [stderr] Downloaded num-bigint v0.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 29290382d884dd3f60ac831fca9c9c0b05452a1663e456dfb89fd5d19243ad71 [INFO] running `Command { std: "docker" "start" "-a" "29290382d884dd3f60ac831fca9c9c0b05452a1663e456dfb89fd5d19243ad71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29290382d884dd3f60ac831fca9c9c0b05452a1663e456dfb89fd5d19243ad71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29290382d884dd3f60ac831fca9c9c0b05452a1663e456dfb89fd5d19243ad71", kill_on_drop: false }` [INFO] [stdout] 29290382d884dd3f60ac831fca9c9c0b05452a1663e456dfb89fd5d19243ad71 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dbf6aefa893e6dd3ded78f79dd66bf0a5cadb4d7760ecef2ad456138b238f738 [INFO] running `Command { std: "docker" "start" "-a" "dbf6aefa893e6dd3ded78f79dd66bf0a5cadb4d7760ecef2ad456138b238f738", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling bitflags v1.2.0 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling clang-sys v1.1.1 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling syn v1.0.64 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling bindgen v0.58.0 [INFO] [stderr] Compiling pkg-config v0.3.16 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling which v3.0.0 [INFO] [stderr] Compiling shlex v1.0.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling cmake v0.1.42 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling env_logger v0.8.3 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking tinyvec v1.1.0 [INFO] [stderr] Compiling num-bigint v0.2.4 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Compiling mbedtls v0.8.2 (/opt/rustwide/workdir/mbedtls) [INFO] [stderr] Checking bit-vec v0.5.1 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking yasna v0.2.2 [INFO] [stderr] Checking typeable v0.1.2 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Checking traitobject v0.1.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Checking hyper v0.10.16 [INFO] [stderr] Checking serde_bytes v0.10.5 [INFO] [stderr] Checking serde_cbor v0.6.1 [INFO] [stderr] Compiling serde_derive v1.0.70 [INFO] [stderr] Compiling mbedtls-sys-auto v2.26.1 (/opt/rustwide/workdir/mbedtls-sys) [INFO] [stdout] warning: the item `bindgen` is imported redundantly [INFO] [stdout] --> mbedtls-sys/build/bindgen.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use bindgen; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: mbedtls-sys/build/build.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | extern crate bindgen; [INFO] [stdout] | --------------------- the item `bindgen` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `cmake` is imported redundantly [INFO] [stdout] --> mbedtls-sys/build/cmake.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use cmake; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: mbedtls-sys/build/build.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | extern crate cmake; [INFO] [stdout] | ------------------- the item `cmake` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `PhantomData` is imported redundantly [INFO] [stdout] --> mbedtls/src/cipher/raw/serde.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::cipher::*; [INFO] [stdout] | ---------------- the item `PhantomData` is already imported here [INFO] [stdout] 12 | use core::fmt; [INFO] [stdout] 13 | use core::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> mbedtls/src/lib.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unused_imports)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `serde` is imported redundantly [INFO] [stdout] --> mbedtls/src/cipher/raw/serde.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use serde; [INFO] [stdout] | ^^^^^ the item `serde` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `PhantomData` is imported redundantly [INFO] [stdout] --> mbedtls/src/cipher/raw/serde.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::cipher::*; [INFO] [stdout] | ---------------- the item `PhantomData` is already imported here [INFO] [stdout] 12 | use core::fmt; [INFO] [stdout] 13 | use core::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> mbedtls/src/lib.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unused_imports)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: the item `serde` is imported redundantly [INFO] [stdout] --> mbedtls/src/cipher/raw/serde.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use serde; [INFO] [stdout] | ^^^^^ the item `serde` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> mbedtls/src/pk/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | Box::from_raw(p as *mut CustomPkContext); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[deny(unused_must_use)]` implied by `#[deny(warnings)]` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 116 | let _ = Box::from_raw(p as *mut CustomPkContext); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mbedtls` (lib) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: associated items `call_mut` and `data_ptr_mut` are never used [INFO] [stdout] --> mbedtls/src/wrapper_macros.rs:20:34 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe extern "C" fn call_mut(user_data: *mut ::mbedtls_sys::types::raw_types::c_void, $($arg:$ty),*) -> $ret where Self: Sized; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 21 | [INFO] [stdout] 22 | fn data_ptr_mut(&mut self) -> *mut ::mbedtls_sys::types::raw_types::c_void; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 364 | callback!(NativeTestMut,NativeTest() -> ()); [INFO] [stdout] | ------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | associated items in this trait [INFO] [stdout] | in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(dead_code)]` implied by `#[deny(warnings)]` [INFO] [stdout] = note: this error originates in the macro `callback` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: associated items `call` and `data_ptr` are never used [INFO] [stdout] --> mbedtls/src/wrapper_macros.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | unsafe extern "C" fn call(user_data: *mut ::mbedtls_sys::types::raw_types::c_void, $($arg:$ty),*) -> $ret where Self: Sized; [INFO] [stdout] | ^^^^ [INFO] [stdout] 37 | [INFO] [stdout] 38 | fn data_ptr(&self) -> *mut ::mbedtls_sys::types::raw_types::c_void; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 364 | callback!(NativeTestMut,NativeTest() -> ()); [INFO] [stdout] | ------------------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | associated items in this trait [INFO] [stdout] | in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `callback` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> mbedtls/src/pk/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | Box::from_raw(p as *mut CustomPkContext); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[deny(unused_must_use)]` implied by `#[deny(warnings)]` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 116 | let _ = Box::from_raw(p as *mut CustomPkContext); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mbedtls` (lib test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "dbf6aefa893e6dd3ded78f79dd66bf0a5cadb4d7760ecef2ad456138b238f738", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbf6aefa893e6dd3ded78f79dd66bf0a5cadb4d7760ecef2ad456138b238f738", kill_on_drop: false }` [INFO] [stdout] dbf6aefa893e6dd3ded78f79dd66bf0a5cadb4d7760ecef2ad456138b238f738