[INFO] cloning repository https://github.com/i-schuetz/rust_android_ios [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/i-schuetz/rust_android_ios" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fi-schuetz%2Frust_android_ios", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fi-schuetz%2Frust_android_ios'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] baed683b501b2cc9443cd2038a2a2be412f0cd39 [INFO] documenting i-schuetz/rust_android_ios against master#394e1b40d264aa6928811919c1124fa248e7d802 for pr-73566 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fi-schuetz%2Frust_android_ios" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/i-schuetz/rust_android_ios on toolchain 394e1b40d264aa6928811919c1124fa248e7d802 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+394e1b40d264aa6928811919c1124fa248e7d802" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-7/source/.cargo/config [INFO] started tweaking git repo https://github.com/i-schuetz/rust_android_ios [INFO] finished tweaking git repo https://github.com/i-schuetz/rust_android_ios [INFO] tweaked toml for git repo https://github.com/i-schuetz/rust_android_ios written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/i-schuetz/rust_android_ios already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+394e1b40d264aa6928811919c1124fa248e7d802" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "+394e1b40d264aa6928811919c1124fa248e7d802" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 23c713d915eb606be9e6b596099db7e95d0cdc534cf0026a7e459b0e0dd2ee0c [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" "23c713d915eb606be9e6b596099db7e95d0cdc534cf0026a7e459b0e0dd2ee0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "23c713d915eb606be9e6b596099db7e95d0cdc534cf0026a7e459b0e0dd2ee0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23c713d915eb606be9e6b596099db7e95d0cdc534cf0026a7e459b0e0dd2ee0c", kill_on_drop: false }` [INFO] [stdout] 23c713d915eb606be9e6b596099db7e95d0cdc534cf0026a7e459b0e0dd2ee0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "RUSTDOCFLAGS=--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" "+394e1b40d264aa6928811919c1124fa248e7d802" "doc" "--frozen" "--no-deps" "--document-private-items" "--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] a80ee0a04585641a6d8249489d3d932c3c5e42c55c577214cb27be82e7b859fc [INFO] running `Command { std: "docker" "start" "-a" "a80ee0a04585641a6d8249489d3d932c3c5e42c55c577214cb27be82e7b859fc", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.60 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling syn v0.15.42 [INFO] [stderr] Compiling cc v1.0.38 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling serde v1.0.98 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.5 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling glob v0.2.11 [INFO] [stderr] Compiling rustc-demangle v0.1.15 [INFO] [stderr] Compiling regex-syntax v0.6.11 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling unicode-segmentation v1.3.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling termcolor v1.0.5 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling bindgen v0.42.3 [INFO] [stderr] Compiling fixedbitset v0.1.9 [INFO] [stderr] Compiling ordermap v0.3.5 [INFO] [stderr] Compiling cbindgen v0.9.0 [INFO] [stderr] Compiling remove_dir_all v0.5.2 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling smallvec v0.6.10 [INFO] [stderr] Compiling strum v0.15.0 [INFO] [stderr] Compiling smol_str v0.1.12 [INFO] [stderr] Checking android_log-sys v0.1.2 [INFO] [stderr] Checking jni-sys v0.3.0 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling proc-macro2 v0.3.5 [INFO] [stderr] Compiling humantime v1.2.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling c2-chacha v0.2.2 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling clang-sys v0.26.4 [INFO] [stderr] Compiling petgraph v0.4.13 [INFO] [stderr] Checking log-panics v2.0.0 [INFO] [stderr] Compiling aho-corasick v0.7.6 [INFO] [stderr] Compiling quote v0.5.2 [INFO] [stderr] Compiling rustc-hash v1.0.1 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling cexpr v0.3.5 [INFO] [stderr] Compiling getrandom v0.1.8 [INFO] [stderr] Compiling atty v0.2.13 [INFO] [stderr] Compiling which v1.0.5 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling rand_core v0.5.0 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling rand v0.7.0 [INFO] [stderr] Compiling backtrace v0.3.34 [INFO] [stderr] Checking regex v1.2.1 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling which v2.0.1 [INFO] [stderr] Checking env_logger v0.6.2 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Checking android_logger v0.8.3 [INFO] [stderr] Compiling env_logger v0.5.13 [INFO] [stderr] Compiling serde_derive v1.0.98 [INFO] [stderr] Compiling rust_swig v0.4.0 [INFO] [stderr] Compiling strum_macros v0.15.0 [INFO] [stderr] Compiling serde_json v1.0.40 [INFO] [stderr] Compiling toml v0.5.1 [INFO] [stderr] Compiling rust_android_ios v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bindgen::RustTarget` [INFO] [stdout] --> build.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use bindgen::RustTarget; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> build.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | fn gen_for_ios(target: &str) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Documenting rust_android_ios v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: static variable `sender` should have an upper case name [INFO] [stdout] --> src/lib.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | static mut sender: Option> = None; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `SENDER` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `MyRustStruct`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 36 | pub extern fn new() -> MyRustStruct { [INFO] [stdout] | ^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [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: the type is defined here [INFO] [stdout] --> src/lib.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / pub struct MyRustStruct { [INFO] [stdout] 23 | | a: i32, [INFO] [stdout] 24 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:54:36 [INFO] [stdout] | [INFO] [stdout] 54 | pub extern fn greet(&self, to: &str) -> String { [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::string::String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:54:45 [INFO] [stdout] | [INFO] [stdout] 54 | pub extern fn greet(&self, to: &str) -> 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] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `str`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:59:42 [INFO] [stdout] | [INFO] [stdout] 59 | pub extern fn json(&self, parameter: &str) -> String { [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::string::String`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:59:51 [INFO] [stdout] | [INFO] [stdout] 59 | pub extern fn json(&self, parameter: &str) -> 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] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::boxed::Box`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:69:59 [INFO] [stdout] | [INFO] [stdout] 69 | pub extern fn function_with_callback(&self, callback: Box) { [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] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::boxed::Box`, which is not FFI-safe [INFO] [stdout] --> src/lib.rs:74:44 [INFO] [stdout] | [INFO] [stdout] 74 | pub extern fn observe(&self, callback: Box) { [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] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 38s [INFO] running `Command { std: "docker" "inspect" "a80ee0a04585641a6d8249489d3d932c3c5e42c55c577214cb27be82e7b859fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a80ee0a04585641a6d8249489d3d932c3c5e42c55c577214cb27be82e7b859fc", kill_on_drop: false }` [INFO] [stdout] a80ee0a04585641a6d8249489d3d932c3c5e42c55c577214cb27be82e7b859fc