[INFO] crate asn1_der 0.7.1 is already in cache [INFO] checking asn1_der-0.7.1 against try#85cc1486e1f000dce4bb8e1b3cfab2b654b102a8 for pr-73323 [INFO] extracting crate asn1_der 0.7.1 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate asn1_der 0.7.1 on toolchain 85cc1486e1f000dce4bb8e1b3cfab2b654b102a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+85cc1486e1f000dce4bb8e1b3cfab2b654b102a8" "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-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+85cc1486e1f000dce4bb8e1b3cfab2b654b102a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+85cc1486e1f000dce4bb8e1b3cfab2b654b102a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+85cc1486e1f000dce4bb8e1b3cfab2b654b102a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 486f0456b8cff58c8cbaf3bd1ac52795c777bf8c26e2f3949008498f9544af57 [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" "486f0456b8cff58c8cbaf3bd1ac52795c777bf8c26e2f3949008498f9544af57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "486f0456b8cff58c8cbaf3bd1ac52795c777bf8c26e2f3949008498f9544af57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "486f0456b8cff58c8cbaf3bd1ac52795c777bf8c26e2f3949008498f9544af57", kill_on_drop: false }` [INFO] [stdout] 486f0456b8cff58c8cbaf3bd1ac52795c777bf8c26e2f3949008498f9544af57 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+85cc1486e1f000dce4bb8e1b3cfab2b654b102a8" "check" "--frozen" "--all" "--all-targets" "--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] 8cea2fc9838c084a3fb5edc4ac5ebfbf95a8692122e4659682e6d6b55af7f21d [INFO] running `Command { std: "docker" "start" "-a" "8cea2fc9838c084a3fb5edc4ac5ebfbf95a8692122e4659682e6d6b55af7f21d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.34 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.56 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking 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] Compiling quote v1.0.7 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Checking serde v1.0.114 [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" "8cea2fc9838c084a3fb5edc4ac5ebfbf95a8692122e4659682e6d6b55af7f21d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8cea2fc9838c084a3fb5edc4ac5ebfbf95a8692122e4659682e6d6b55af7f21d", kill_on_drop: false }` [INFO] [stdout] 8cea2fc9838c084a3fb5edc4ac5ebfbf95a8692122e4659682e6d6b55af7f21d