[INFO] crate asn1_der 0.7.1 is already in cache [INFO] testing asn1_der-0.7.1 against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] extracting crate asn1_der 0.7.1 into /workspace/builds/worker-8/source [INFO] validating manifest of crates.io crate asn1_der 0.7.1 on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate asn1_der 0.7.1 [INFO] finished tweaking crates.io crate asn1_der 0.7.1 [INFO] tweaked toml for crates.io crate asn1_der 0.7.1 written to /workspace/builds/worker-8/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e8cccbd2ccf5cd964bb89e4330789edee8860b4f57ba8671ac2f1c3581bf3bd5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e8cccbd2ccf5cd964bb89e4330789edee8860b4f57ba8671ac2f1c3581bf3bd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e8cccbd2ccf5cd964bb89e4330789edee8860b4f57ba8671ac2f1c3581bf3bd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8cccbd2ccf5cd964bb89e4330789edee8860b4f57ba8671ac2f1c3581bf3bd5", kill_on_drop: false }` [INFO] [stdout] e8cccbd2ccf5cd964bb89e4330789edee8860b4f57ba8671ac2f1c3581bf3bd5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 24771b17baf3d9cbada0aa773df3aca9d8c93d3abae2b661ac1a8147ddab2968 [INFO] running `Command { std: "docker" "start" "-a" "24771b17baf3d9cbada0aa773df3aca9d8c93d3abae2b661ac1a8147ddab2968", kill_on_drop: false }` [INFO] [stderr] Compiling asn1_der v0.7.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/error.rs:95:47 [INFO] [stdout] | [INFO] [stdout] 95 | extern "C" fn write(f: &mut Formatter, kind: &str, desc: &str) -> fmt::Result { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/error.rs:95:59 [INFO] [stdout] | [INFO] [stdout] 95 | extern "C" fn write(f: &mut Formatter, kind: &str, desc: &str) -> fmt::Result { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result<(), std::fmt::Error>`, which is not FFI-safe [INFO] [stdout] --> src/error.rs:95:68 [INFO] [stdout] | [INFO] [stdout] 95 | extern "C" fn write(f: &mut Formatter, kind: &str, desc: &str) -> fmt::Result { [INFO] [stdout] | ^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result<(), std::fmt::Error>`, which is not FFI-safe [INFO] [stdout] --> src/error.rs:153:36 [INFO] [stdout] | [INFO] [stdout] 153 | source: &Option) -> fmt::Result [INFO] [stdout] | ^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/typed/utf8_string.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | extern "C" fn is_utf8(slice: &[u8]) -> bool { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.78s [INFO] running `Command { std: "docker" "inspect" "24771b17baf3d9cbada0aa773df3aca9d8c93d3abae2b661ac1a8147ddab2968", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24771b17baf3d9cbada0aa773df3aca9d8c93d3abae2b661ac1a8147ddab2968", kill_on_drop: false }` [INFO] [stdout] 24771b17baf3d9cbada0aa773df3aca9d8c93d3abae2b661ac1a8147ddab2968 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ca4c739b553127e1687a48063339d073ac67218d8873d2712cb310d18f457c26 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ca4c739b553127e1687a48063339d073ac67218d8873d2712cb310d18f457c26", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/error.rs:95:47 [INFO] [stdout] | [INFO] [stdout] 95 | extern "C" fn write(f: &mut Formatter, kind: &str, desc: &str) -> fmt::Result { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/error.rs:95:59 [INFO] [stdout] | [INFO] [stdout] 95 | extern "C" fn write(f: &mut Formatter, kind: &str, desc: &str) -> fmt::Result { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling syn v1.0.35 [INFO] [stdout] warning: `extern` fn uses type `std::result::Result<(), std::fmt::Error>`, which is not FFI-safe [INFO] [stdout] --> src/error.rs:95:68 [INFO] [stdout] | [INFO] [stdout] 95 | extern "C" fn write(f: &mut Formatter, kind: &str, desc: &str) -> fmt::Result { [INFO] [stdout] | ^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stdout] warning: `extern` fn uses type `std::result::Result<(), std::fmt::Error>`, which is not FFI-safe [INFO] [stdout] --> src/error.rs:153:36 [INFO] [stdout] | [INFO] [stdout] 153 | source: &Option) -> fmt::Result [INFO] [stdout] | ^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stdout] warning: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/typed/utf8_string.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | extern "C" fn is_utf8(slice: &[u8]) -> bool { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling serde_json v1.0.56 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling asn1_der v0.7.1 (/opt/rustwide/workdir) [INFO] [stdout] error: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/error.rs:95:47 [INFO] [stdout] | [INFO] [stdout] 95 | extern "C" fn write(f: &mut Formatter, kind: &str, desc: &str) -> fmt::Result { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:121:26 [INFO] [stdout] | [INFO] [stdout] 121 | #![cfg_attr(test, forbid(warnings))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[forbid(improper_ctypes_definitions)]` implied by `#[forbid(warnings)]` [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/error.rs:95:59 [INFO] [stdout] | [INFO] [stdout] 95 | extern "C" fn write(f: &mut Formatter, kind: &str, desc: &str) -> fmt::Result { [INFO] [stdout] | ^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using `*const u8` and a length instead [INFO] [stdout] = note: string slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `extern` fn uses type `std::result::Result<(), std::fmt::Error>`, which is not FFI-safe [INFO] [stdout] --> src/error.rs:95:68 [INFO] [stdout] | [INFO] [stdout] 95 | extern "C" fn write(f: &mut Formatter, kind: &str, desc: &str) -> fmt::Result { [INFO] [stdout] | ^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `extern` fn uses type `std::result::Result<(), std::fmt::Error>`, which is not FFI-safe [INFO] [stdout] --> src/error.rs:153:36 [INFO] [stdout] | [INFO] [stdout] 153 | source: &Option) -> fmt::Result [INFO] [stdout] | ^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `extern` fn uses type `[u8]`, which is not FFI-safe [INFO] [stdout] --> src/typed/utf8_string.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | extern "C" fn is_utf8(slice: &[u8]) -> bool { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider using a raw pointer instead [INFO] [stdout] = note: slices have no C equivalent [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `asn1_der`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "ca4c739b553127e1687a48063339d073ac67218d8873d2712cb310d18f457c26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca4c739b553127e1687a48063339d073ac67218d8873d2712cb310d18f457c26", kill_on_drop: false }` [INFO] [stdout] ca4c739b553127e1687a48063339d073ac67218d8873d2712cb310d18f457c26