[INFO] fetching crate asn1_der 0.7.1... [INFO] checking asn1_der-0.7.1 against master#5e3f1b148db5bfa27fee52464ae1f5d34c49d77b for pr-75502 [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 5e3f1b148db5bfa27fee52464ae1f5d34c49d77b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "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" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "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" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "metadata" "--no-deps" "--format-version=1", 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] 7d6a0e70963600c93086bd640f25c4e9dd8f2d1dfe3616d5dcd1105ef23b41d6 [INFO] running `Command { std: "docker" "start" "-a" "7d6a0e70963600c93086bd640f25c4e9dd8f2d1dfe3616d5dcd1105ef23b41d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d6a0e70963600c93086bd640f25c4e9dd8f2d1dfe3616d5dcd1105ef23b41d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d6a0e70963600c93086bd640f25c4e9dd8f2d1dfe3616d5dcd1105ef23b41d6", kill_on_drop: false }` [INFO] [stdout] 7d6a0e70963600c93086bd640f25c4e9dd8f2d1dfe3616d5dcd1105ef23b41d6 [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" "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" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "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] 860fb5b2d5368e267688d44f47d7e22afc846a44a8bf91ce31bb2b84ab1dbde7 [INFO] running `Command { std: "docker" "start" "-a" "860fb5b2d5368e267688d44f47d7e22afc846a44a8bf91ce31bb2b84ab1dbde7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.39 [INFO] [stderr] Compiling serde_derive v1.0.115 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde v1.0.115 [INFO] [stderr] Compiling serde_json v1.0.57 [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] [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" "860fb5b2d5368e267688d44f47d7e22afc846a44a8bf91ce31bb2b84ab1dbde7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "860fb5b2d5368e267688d44f47d7e22afc846a44a8bf91ce31bb2b84ab1dbde7", kill_on_drop: false }` [INFO] [stdout] 860fb5b2d5368e267688d44f47d7e22afc846a44a8bf91ce31bb2b84ab1dbde7