[INFO] fetching crate uni_jnihelpers 0.0.2... [INFO] testing uni_jnihelpers-0.0.2 against try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] extracting crate uni_jnihelpers 0.0.2 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate uni_jnihelpers 0.0.2 on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "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-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aef8e9428e67685311d651bcd60f5711f9f37131dd7451ba51bc5d49ac7b9929 [INFO] running `Command { std: "docker" "start" "-a" "aef8e9428e67685311d651bcd60f5711f9f37131dd7451ba51bc5d49ac7b9929", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aef8e9428e67685311d651bcd60f5711f9f37131dd7451ba51bc5d49ac7b9929", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aef8e9428e67685311d651bcd60f5711f9f37131dd7451ba51bc5d49ac7b9929", kill_on_drop: false }` [INFO] [stdout] aef8e9428e67685311d651bcd60f5711f9f37131dd7451ba51bc5d49ac7b9929 [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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 426b96d85282850a92e19f7d10be946c923c875e3d40079fd983a46e4cb4ab08 [INFO] running `Command { std: "docker" "start" "-a" "426b96d85282850a92e19f7d10be946c923c875e3d40079fd983a46e4cb4ab08", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.27 [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.95 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling smallvec v1.6.1 [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 instant v0.1.9 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling uni_tmp_jni v0.18.0 [INFO] [stderr] Compiling combine v4.5.2 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling thiserror v1.0.25 [INFO] [stderr] Compiling uni_jnihelpers v0.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 21.24s [INFO] running `Command { std: "docker" "inspect" "426b96d85282850a92e19f7d10be946c923c875e3d40079fd983a46e4cb4ab08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "426b96d85282850a92e19f7d10be946c923c875e3d40079fd983a46e4cb4ab08", kill_on_drop: false }` [INFO] [stdout] 426b96d85282850a92e19f7d10be946c923c875e3d40079fd983a46e4cb4ab08 [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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9477d22d630fbc7fe9048c6f6695f4639d65a2e66eddc7a39e87e38653b42d55 [INFO] running `Command { std: "docker" "start" "-a" "9477d22d630fbc7fe9048c6f6695f4639d65a2e66eddc7a39e87e38653b42d55", kill_on_drop: false }` [INFO] [stderr] Compiling uni_jnihelpers v0.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.58s [INFO] running `Command { std: "docker" "inspect" "9477d22d630fbc7fe9048c6f6695f4639d65a2e66eddc7a39e87e38653b42d55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9477d22d630fbc7fe9048c6f6695f4639d65a2e66eddc7a39e87e38653b42d55", kill_on_drop: false }` [INFO] [stdout] 9477d22d630fbc7fe9048c6f6695f4639d65a2e66eddc7a39e87e38653b42d55 [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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0544b0eeb9161e677a491a78dafe265c36d975117884bc46b47030a05a3f47d1 [INFO] running `Command { std: "docker" "start" "-a" "0544b0eeb9161e677a491a78dafe265c36d975117884bc46b47030a05a3f47d1", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/uni_jnihelpers-9fc41fb47f96a4cb) [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests uni_jnihelpers [INFO] [stdout] [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 - get_java_class (line 15) ... FAILED [INFO] [stdout] test src/macroses.rs - get_java_static_method (line 124) ... FAILED [INFO] [stdout] test src/macroses.rs - get_java_method (line 65) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/macroses.rs - 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 - 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 - 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 - get_java_class (line 15) [INFO] [stdout] src/macroses.rs - get_java_method (line 65) [INFO] [stdout] src/macroses.rs - 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.31s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "0544b0eeb9161e677a491a78dafe265c36d975117884bc46b47030a05a3f47d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0544b0eeb9161e677a491a78dafe265c36d975117884bc46b47030a05a3f47d1", kill_on_drop: false }` [INFO] [stdout] 0544b0eeb9161e677a491a78dafe265c36d975117884bc46b47030a05a3f47d1