[INFO] fetching crate uni_jnihelpers 0.0.2... [INFO] testing uni_jnihelpers-0.0.2 against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] extracting crate uni_jnihelpers 0.0.2 into /workspace/builds/worker-12/source [INFO] validating manifest of crates.io crate uni_jnihelpers 0.0.2 on toolchain a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "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-12/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 56b12b6dc81ebc90e53b26067e139c490de254abed2b394f6353d6c060641142 [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" "56b12b6dc81ebc90e53b26067e139c490de254abed2b394f6353d6c060641142", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "56b12b6dc81ebc90e53b26067e139c490de254abed2b394f6353d6c060641142", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56b12b6dc81ebc90e53b26067e139c490de254abed2b394f6353d6c060641142", kill_on_drop: false }` [INFO] [stdout] 56b12b6dc81ebc90e53b26067e139c490de254abed2b394f6353d6c060641142 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--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] 66817c51008c49fe56082fe4431d0d0a1cb851a6b15ff0d231b804912d59c046 [INFO] running `Command { std: "docker" "start" "-a" "66817c51008c49fe56082fe4431d0d0a1cb851a6b15ff0d231b804912d59c046", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.107 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling jni-sys v0.3.0 [INFO] [stderr] Compiling instant v0.1.12 [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 combine v4.6.2 [INFO] [stderr] Compiling quote v1.0.10 [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 37.51s [INFO] running `Command { std: "docker" "inspect" "66817c51008c49fe56082fe4431d0d0a1cb851a6b15ff0d231b804912d59c046", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66817c51008c49fe56082fe4431d0d0a1cb851a6b15ff0d231b804912d59c046", kill_on_drop: false }` [INFO] [stdout] 66817c51008c49fe56082fe4431d0d0a1cb851a6b15ff0d231b804912d59c046 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9dd4bde2a7129e900b24d0576ca917ada763f0f2d5ab19f902dc561cf6821110 [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" "9dd4bde2a7129e900b24d0576ca917ada763f0f2d5ab19f902dc561cf6821110", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling uni_jnihelpers v0.0.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.82s [INFO] running `Command { std: "docker" "inspect" "9dd4bde2a7129e900b24d0576ca917ada763f0f2d5ab19f902dc561cf6821110", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9dd4bde2a7129e900b24d0576ca917ada763f0f2d5ab19f902dc561cf6821110", kill_on_drop: false }` [INFO] [stdout] 9dd4bde2a7129e900b24d0576ca917ada763f0f2d5ab19f902dc561cf6821110 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d93d38c41fbfbfa0780e200abe334033868efe835d0ad791869c4d478a289603 [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" "d93d38c41fbfbfa0780e200abe334033868efe835d0ad791869c4d478a289603", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/uni_jnihelpers-125c53ff2710229e) [INFO] [stdout] [INFO] [stderr] Doc-tests uni_jnihelpers [INFO] [stdout] running 0 tests [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 - 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] [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.86s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "d93d38c41fbfbfa0780e200abe334033868efe835d0ad791869c4d478a289603", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d93d38c41fbfbfa0780e200abe334033868efe835d0ad791869c4d478a289603", kill_on_drop: false }` [INFO] [stdout] d93d38c41fbfbfa0780e200abe334033868efe835d0ad791869c4d478a289603