[INFO] fetching crate jni-mangle 0.1.3... [INFO] testing jni-mangle-0.1.3 against 1.99.0-beta.1 for beta-1.99-5 [INFO] extracting crate jni-mangle 0.1.3 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate jni-mangle 0.1.3 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate jni-mangle 0.1.3 [INFO] tweaked toml for crates.io crate jni-mangle 0.1.3 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate jni-mangle 0.1.3 on toolchain 1.99.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate jni-mangle 0.1.3 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" "+1.99.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] d6f20cbc7e11586cf6c2eda1df4401dcf3eea8ea9b43d7ee5ef8fb6ac8c5e08f [INFO] running `Command { std: "docker" "start" "d6f20cbc7e11586cf6c2eda1df4401dcf3eea8ea9b43d7ee5ef8fb6ac8c5e08f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6f20cbc7e11586cf6c2eda1df4401dcf3eea8ea9b43d7ee5ef8fb6ac8c5e08f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d6f20cbc7e11586cf6c2eda1df4401dcf3eea8ea9b43d7ee5ef8fb6ac8c5e08f" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6f20cbc7e11586cf6c2eda1df4401dcf3eea8ea9b43d7ee5ef8fb6ac8c5e08f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d6f20cbc7e11586cf6c2eda1df4401dcf3eea8ea9b43d7ee5ef8fb6ac8c5e08f" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling jni-mangle v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `syn::Block` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use syn::Block; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.14s [INFO] running `Command { std: "docker" "inspect" "d6f20cbc7e11586cf6c2eda1df4401dcf3eea8ea9b43d7ee5ef8fb6ac8c5e08f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d6f20cbc7e11586cf6c2eda1df4401dcf3eea8ea9b43d7ee5ef8fb6ac8c5e08f" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling jni-mangle v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `syn::Block` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use syn::Block; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `syn::Block` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use syn::Block; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: functions generic over types or consts must be mangled [INFO] [stdout] --> examples/example.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 25 | #[mangle(package = "com.example", class = "Example")] [INFO] [stdout] | ----------------------------------------------------- help: remove this attribute [INFO] [stdout] 26 | / pub fn test_fn<'a, T>(var: &'a T) -> String [INFO] [stdout] 27 | | where [INFO] [stdout] 28 | | T: ToString, [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `String`, which is not FFI-safe [INFO] [stdout] --> examples/example.rs:26:38 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn test_fn<'a, T>(var: &'a T) -> String [INFO] [stdout] | ^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: functions generic over types or consts must be mangled [INFO] [stdout] --> examples/example.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | #[mangle(package = "com.example", class = "Example")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `mangle` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jni-mangle` (example "example") due to 2 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "d6f20cbc7e11586cf6c2eda1df4401dcf3eea8ea9b43d7ee5ef8fb6ac8c5e08f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6f20cbc7e11586cf6c2eda1df4401dcf3eea8ea9b43d7ee5ef8fb6ac8c5e08f", kill_on_drop: false }` [INFO] [stdout] d6f20cbc7e11586cf6c2eda1df4401dcf3eea8ea9b43d7ee5ef8fb6ac8c5e08f