[INFO] fetching crate uni_jnihelpers 0.0.2... [INFO] testing uni_jnihelpers-0.0.2 against try#722e1797249a965b6335aebd65d777f917e498f1 for pr-91031 [INFO] extracting crate uni_jnihelpers 0.0.2 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate uni_jnihelpers 0.0.2 on toolchain 722e1797249a965b6335aebd65d777f917e498f1 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate uni_jnihelpers 0.0.2 [INFO] finished tweaking crates.io crate uni_jnihelpers 0.0.2 [INFO] tweaked toml for crates.io crate uni_jnihelpers 0.0.2 written to /workspace/builds/worker-11/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fb0175bb80564fec43abfb3b04b5fc1be38a75220235c3e620896843027bccdb [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" "fb0175bb80564fec43abfb3b04b5fc1be38a75220235c3e620896843027bccdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb0175bb80564fec43abfb3b04b5fc1be38a75220235c3e620896843027bccdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb0175bb80564fec43abfb3b04b5fc1be38a75220235c3e620896843027bccdb", kill_on_drop: false }` [INFO] [stdout] fb0175bb80564fec43abfb3b04b5fc1be38a75220235c3e620896843027bccdb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 80c50e36f86be5c0770eac54dac5cc8615ca278851bec17c4ca59dafb9ff7818 [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" "80c50e36f86be5c0770eac54dac5cc8615ca278851bec17c4ca59dafb9ff7818", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling libc v0.2.107 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling cesu8 v1.1.0 [INFO] [stderr] Compiling jni-sys v0.3.0 [INFO] [stderr] Compiling combine v4.6.2 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling uni_tmp_jni v0.18.0 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling uni_jnihelpers v0.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 34.60s [INFO] running `Command { std: "docker" "inspect" "80c50e36f86be5c0770eac54dac5cc8615ca278851bec17c4ca59dafb9ff7818", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80c50e36f86be5c0770eac54dac5cc8615ca278851bec17c4ca59dafb9ff7818", kill_on_drop: false }` [INFO] [stdout] 80c50e36f86be5c0770eac54dac5cc8615ca278851bec17c4ca59dafb9ff7818 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d7cd0cf901bda7f03fb590ab67bfb62646ee72ece814db5da370753aa5a0bf3 [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" "1d7cd0cf901bda7f03fb590ab67bfb62646ee72ece814db5da370753aa5a0bf3", kill_on_drop: false }` [INFO] [stderr] Compiling uni_jnihelpers v0.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.03s [INFO] running `Command { std: "docker" "inspect" "1d7cd0cf901bda7f03fb590ab67bfb62646ee72ece814db5da370753aa5a0bf3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d7cd0cf901bda7f03fb590ab67bfb62646ee72ece814db5da370753aa5a0bf3", kill_on_drop: false }` [INFO] [stdout] 1d7cd0cf901bda7f03fb590ab67bfb62646ee72ece814db5da370753aa5a0bf3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+722e1797249a965b6335aebd65d777f917e498f1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] dbac1b189e3e3071bbcd9ba5d42954d0ef79f9a7ec3e78aeb55e8ad06a779066 [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" "dbac1b189e3e3071bbcd9ba5d42954d0ef79f9a7ec3e78aeb55e8ad06a779066", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stdout] running 0 tests [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/uni_jnihelpers-125c53ff2710229e) [INFO] [stdout] [INFO] [stderr] Doc-tests uni_jnihelpers [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/macroses.rs - macroses::get_java_class (line 15) ... FAILED [INFO] [stdout] test src/macroses.rs - macroses::get_java_static_method (line 124) ... FAILED [INFO] [stdout] test src/macroses.rs - macroses::get_java_method (line 65) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] [stdout] [INFO] [stdout] ---- src/macroses.rs - macroses::get_java_class (line 15) stdout ---- [INFO] [stdout] error: cannot find macro `get_java_class` in this scope [INFO] [stdout] --> src/macroses.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 5 | class = get_java_class!(jni_env, "my/class/full/Name"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] uni_jnihelpers::get_java_class [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `jni` [INFO] [stdout] --> src/macroses.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 4 | let class: Result, uni_jnihelpers::JniError>; [INFO] [stdout] | ^^^ use of undeclared crate or module `jni` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macroses.rs - macroses::get_java_static_method (line 124) stdout ---- [INFO] [stdout] error: cannot find macro `get_java_static_method` in this scope [INFO] [stdout] --> src/macroses.rs:125:35 [INFO] [stdout] | [INFO] [stdout] 3 | let method: jni::sys::jmethodID = get_java_static_method!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] uni_jnihelpers::get_java_static_method [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `jni` [INFO] [stdout] --> src/macroses.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 3 | let method: jni::sys::jmethodID = get_java_static_method!( [INFO] [stdout] | ^^^ use of undeclared crate or module `jni` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/macroses.rs:130:2 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_macroses_rs_124_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let method: jni::sys::jmethodID = get_java_static_method!( [INFO] [stdout] 4 | | jni_env, [INFO] [stdout] 5 | | class_ref, // jni::objects::JClass [INFO] [stdout] ... | [INFO] [stdout] 8 | | )?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 9 | | } _doctest_main_src_macroses_rs_124_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macroses.rs - macroses::get_java_method (line 65) stdout ---- [INFO] [stdout] error: cannot find macro `get_java_method` in this scope [INFO] [stdout] --> src/macroses.rs:66:35 [INFO] [stdout] | [INFO] [stdout] 3 | let method: jni::sys::jmethodID = get_java_method!( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] uni_jnihelpers::get_java_method [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `jni` [INFO] [stdout] --> src/macroses.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 3 | let method: jni::sys::jmethodID = get_java_method!( [INFO] [stdout] | ^^^ use of undeclared crate or module `jni` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/macroses.rs:71:2 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_macroses_rs_65_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let method: jni::sys::jmethodID = get_java_method!( [INFO] [stdout] 4 | | jni_env, [INFO] [stdout] 5 | | class_ref, // jni::objects::JClass [INFO] [stdout] ... | [INFO] [stdout] 8 | | )?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 9 | | } _doctest_main_src_macroses_rs_65_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/macroses.rs - macroses::get_java_class (line 15) [INFO] [stdout] src/macroses.rs - macroses::get_java_method (line 65) [INFO] [stdout] src/macroses.rs - macroses::get_java_static_method (line 124) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.87s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "dbac1b189e3e3071bbcd9ba5d42954d0ef79f9a7ec3e78aeb55e8ad06a779066", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbac1b189e3e3071bbcd9ba5d42954d0ef79f9a7ec3e78aeb55e8ad06a779066", kill_on_drop: false }` [INFO] [stdout] dbac1b189e3e3071bbcd9ba5d42954d0ef79f9a7ec3e78aeb55e8ad06a779066