[INFO] fetching crate duchess 0.3.1... [INFO] testing duchess-0.3.1 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate duchess 0.3.1 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate duchess 0.3.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate duchess 0.3.1 [INFO] tweaked toml for crates.io crate duchess 0.3.1 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate duchess 0.3.1 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate duchess 0.3.1 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7010c3bc59066b6f9984b9e0822e5ef99eff3861d125f7fd9c31603f5467292a [INFO] running `Command { std: "docker" "start" "-a" "7010c3bc59066b6f9984b9e0822e5ef99eff3861d125f7fd9c31603f5467292a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7010c3bc59066b6f9984b9e0822e5ef99eff3861d125f7fd9c31603f5467292a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7010c3bc59066b6f9984b9e0822e5ef99eff3861d125f7fd9c31603f5467292a", kill_on_drop: false }` [INFO] [stdout] 7010c3bc59066b6f9984b9e0822e5ef99eff3861d125f7fd9c31603f5467292a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a65d9442be8f74eae8d8e70b7517238d08316f5f8435fe1acaa9b2429c8e7cc8 [INFO] running `Command { std: "docker" "start" "-a" "a65d9442be8f74eae8d8e70b7517238d08316f5f8435fe1acaa9b2429c8e7cc8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling hashbrown v0.14.4 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling ena v0.14.2 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling anyhow v1.0.91 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling fastrand v2.0.1 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling is-terminal v0.4.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling rust-format v0.3.4 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling syn v2.0.82 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling litrs v0.4.1 [INFO] [stderr] Compiling indexmap v2.2.5 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling java-locator v0.1.5 [INFO] [stderr] Compiling libloading v0.8.3 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling jni-sys v0.3.0 [INFO] [stderr] Compiling cesu8 v1.1.0 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling derive-where v1.2.7 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling lalrpop-util v0.19.12 [INFO] [stderr] Compiling str_inflector v0.12.0 [INFO] [stderr] Compiling lalrpop v0.19.12 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling duchess-reflect v0.3.1 [INFO] [stderr] Compiling duchess-macro v0.3.1 [INFO] [stderr] Compiling duchess v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] error: failed to execute `"javap" "-p" "java.lang.Class"`: No such file or directory (os error 2) [INFO] [stdout] --> src/java.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | / public final class java.lang.Class { [INFO] [stdout] 72 | | public java.lang.String toString(); [INFO] [stdout] 73 | | public java.lang.String toGenericString(); [INFO] [stdout] 74 | | public native boolean isInstance(java.lang.Object); [INFO] [stdout] ... | [INFO] [stdout] 86 | | public java.lang.Class arrayType(); [INFO] [stdout] 87 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `auto::java` [INFO] [stdout] --> src/java.rs:399:15 [INFO] [stdout] | [INFO] [stdout] 399 | pub use auto::java::*; [INFO] [stdout] | ^^^^ could not find `java` in `auto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::java::lang` [INFO] [stdout] --> src/array.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | java::{self, lang::Class}, [INFO] [stdout] | ^^^^ could not find `lang` in `java` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::java::lang` [INFO] [stdout] --> src/error.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::{java::lang::Throwable, Java, Jvm, JvmOp, Local}; [INFO] [stdout] | ^^^^ could not find `lang` in `java` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::java::lang` [INFO] [stdout] --> src/jvm.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | java::lang::{Class, Throwable}, [INFO] [stdout] | ^^^^ could not find `lang` in `java` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::java::lang` [INFO] [stdout] --> src/link.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{java::lang::Class, Jvm, Local}; [INFO] [stdout] | ^^^^ could not find `lang` in `java` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::java::lang` [INFO] [stdout] --> src/refs.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{cast::Upcast, java::lang::Throwable, Error, Java, JavaObject, Local}; [INFO] [stdout] | ^^^^ could not find `lang` in `java` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::java::lang` [INFO] [stdout] --> src/str.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | into_rust::IntoRust, java::lang::String as JavaString, jvm::JavaObjectExt, Error, Jvm, JvmOp, [INFO] [stdout] | ^^^^ could not find `lang` in `java` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::java::lang` [INFO] [stdout] --> src/try_catch.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{cast::Upcast, java::lang::Throwable, Jvm, JvmOp, Local}; [INFO] [stdout] | ^^^^ could not find `lang` in `java` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate as duchess` [INFO] [stdout] --> src/java.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use crate as duchess; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/array.rs:161:29 [INFO] [stdout] | [INFO] [stdout] 161 | array.as_raw().as_ptr(), [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] ... [INFO] [stdout] 215 | / primitive_array! { [INFO] [stdout] 216 | | [bool]: "boolean" jboolean NewBooleanArray GetBooleanArrayRegion SetBooleanArrayRegion, [INFO] [stdout] 217 | | [i8]: "byte" jbyte NewByteArray GetByteArrayRegion SetByteArrayRegion, [INFO] [stdout] 218 | | [u16]: "char" jchar NewCharArray GetCharArrayRegion SetCharArrayRegion, [INFO] [stdout] ... | [INFO] [stdout] 223 | | [f64]: "double" jdouble NewDoubleArray GetDoubleArrayRegion SetDoubleArrayRegion, [INFO] [stdout] 224 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `primitive_array` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/jvm.rs:250:32 [INFO] [stdout] | [INFO] [stdout] 250 | Ok(Some(p)) => p.into_raw().as_ptr(), [INFO] [stdout] | ^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/jvm.rs:375:31 [INFO] [stdout] | [INFO] [stdout] 375 | op(&mut jvm).map_err(|e| e.into_global(&mut jvm)) [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 375 | op(&mut jvm).map_err(|e: /* Type */| e.into_global(&mut jvm)) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/jvm.rs:420:46 [INFO] [stdout] | [INFO] [stdout] 420 | .register_native_methods(class.as_raw(), native_methods)?; [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/ref_.rs:139:48 [INFO] [stdout] | [INFO] [stdout] 139 | Ok(mut attached) => delete(attached.env()), [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `duchess` (lib) due to 14 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "a65d9442be8f74eae8d8e70b7517238d08316f5f8435fe1acaa9b2429c8e7cc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a65d9442be8f74eae8d8e70b7517238d08316f5f8435fe1acaa9b2429c8e7cc8", kill_on_drop: false }` [INFO] [stdout] a65d9442be8f74eae8d8e70b7517238d08316f5f8435fe1acaa9b2429c8e7cc8