[INFO] cloning repository https://github.com/superhu/rust_call_java [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/superhu/rust_call_java" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperhu%2Frust_call_java", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperhu%2Frust_call_java'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e27dc96ed0e100a3feb8365f6c0cc3128927f1a8 [INFO] testing superhu/rust_call_java against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuperhu%2Frust_call_java" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/superhu/rust_call_java [INFO] finished tweaking git repo https://github.com/superhu/rust_call_java [INFO] tweaked toml for git repo https://github.com/superhu/rust_call_java written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/superhu/rust_call_java on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/superhu/rust_call_java 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded java-locator v0.1.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 67eb0cee5a89496434ac61e905b97ba824c01dd0c99cbba1851da9aa820c943f [INFO] running `Command { std: "docker" "start" "-a" "67eb0cee5a89496434ac61e905b97ba824c01dd0c99cbba1851da9aa820c943f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "67eb0cee5a89496434ac61e905b97ba824c01dd0c99cbba1851da9aa820c943f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67eb0cee5a89496434ac61e905b97ba824c01dd0c99cbba1851da9aa820c943f", kill_on_drop: false }` [INFO] [stdout] 67eb0cee5a89496434ac61e905b97ba824c01dd0c99cbba1851da9aa820c943f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "RUSTDOCFLAGS=--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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c20bdd3a93f1ae4508692354f8cf95d02ebe0fcec552dc557b357e409f590de6 [INFO] running `Command { std: "docker" "start" "-a" "c20bdd3a93f1ae4508692354f8cf95d02ebe0fcec552dc557b357e409f590de6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling jni-sys v0.3.0 [INFO] [stderr] Compiling cesu8 v1.1.0 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling java-locator v0.1.9 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling jni v0.21.1 [INFO] [stderr] Compiling rust_call_java v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `JClass` and `JObject` [INFO] [stdout] --> src/main.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use jni::objects::{JClass, JString, JObject}; [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: `std::result` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::result; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `rust_call_java` [INFO] [stdout] --> src/main.rs:116:2 [INFO] [stdout] | [INFO] [stdout] 116 | } [INFO] [stdout] | ^ consider adding a `main` function to `src/main.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Result, _>` [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let result = match env.new_string(password_str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | Ok(obj) => Ok(obj), [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type, where the type for type parameter `E` is specified [INFO] [stdout] | [INFO] [stdout] 51 | let result: Result, E> = match env.new_string(password_str) { [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `jvm` [INFO] [stdout] --> src/main.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let jvm = JavaVM::new(args).unwrap(); // 新版本 [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_jvm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_call_java` (bin "rust_call_java") due to 2 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c20bdd3a93f1ae4508692354f8cf95d02ebe0fcec552dc557b357e409f590de6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c20bdd3a93f1ae4508692354f8cf95d02ebe0fcec552dc557b357e409f590de6", kill_on_drop: false }` [INFO] [stdout] c20bdd3a93f1ae4508692354f8cf95d02ebe0fcec552dc557b357e409f590de6