[INFO] cloning repository https://github.com/Obito-git/toyjvm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Obito-git/toyjvm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FObito-git%2Ftoyjvm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FObito-git%2Ftoyjvm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cdb9b314b84d716c92cd793a79a9c9e5f1ab80a2 [INFO] testing Obito-git/toyjvm against master#160e7623e8cbbf1feab2b6e2a24733a98c7bde9c for pr-145628-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FObito-git%2Ftoyjvm" "/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/Obito-git/toyjvm [INFO] finished tweaking git repo https://github.com/Obito-git/toyjvm [INFO] tweaked toml for git repo https://github.com/Obito-git/toyjvm written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Obito-git/toyjvm on toolchain 160e7623e8cbbf1feab2b6e2a24733a98c7bde9c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Obito-git/toyjvm 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" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rstest v0.26.1 [INFO] [stderr] Downloaded bzip2 v0.6.0 [INFO] [stderr] Downloaded inout v0.1.4 [INFO] [stderr] Downloaded zstd v0.13.3 [INFO] [stderr] Downloaded liblzma v0.4.3 [INFO] [stderr] Downloaded num_enum v0.7.4 [INFO] [stderr] Downloaded derive_arbitrary v1.4.2 [INFO] [stderr] Downloaded dashmap v6.1.0 [INFO] [stderr] Downloaded rstest_macros v0.26.1 [INFO] [stderr] Downloaded zstd-safe v7.2.4 [INFO] [stderr] Downloaded arbitrary v1.4.2 [INFO] [stderr] Downloaded libbz2-rs-sys v0.2.2 [INFO] [stderr] Downloaded num_enum_derive v0.7.4 [INFO] [stderr] Downloaded insta v1.43.1 [INFO] [stderr] Downloaded aes v0.8.4 [INFO] [stderr] Downloaded liblzma-sys v0.4.4 [INFO] [stderr] Downloaded deflate64 v0.1.9 [INFO] [stderr] Downloaded relative-path v1.9.3 [INFO] [stderr] Downloaded ppmd-rust v1.2.1 [INFO] [stderr] Downloaded cipher v0.4.4 [INFO] [stderr] Downloaded zstd-sys v2.0.15+zstd.1.5.7 [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" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 62dec3bb5d5705780ebb92b2b95a6885ded8fd8d5219a58afb88c385e200f25b [INFO] running `Command { std: "docker" "start" "-a" "62dec3bb5d5705780ebb92b2b95a6885ded8fd8d5219a58afb88c385e200f25b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "62dec3bb5d5705780ebb92b2b95a6885ded8fd8d5219a58afb88c385e200f25b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62dec3bb5d5705780ebb92b2b95a6885ded8fd8d5219a58afb88c385e200f25b", kill_on_drop: false }` [INFO] [stdout] 62dec3bb5d5705780ebb92b2b95a6885ded8fd8d5219a58afb88c385e200f25b [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" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c10b02fe37764568c79b46209fa009b2cd82b7be1448ff318c80f9a1f9455360 [INFO] running `Command { std: "docker" "start" "-a" "c10b02fe37764568c79b46209fa009b2cd82b7be1448ff318c80f9a1f9455360", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling winnow v0.7.12 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling zlib-rs v0.5.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling bumpalo v3.19.0 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling libbz2-rs-sys v0.2.2 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling ppmd-rust v1.2.1 [INFO] [stderr] Compiling deflate64 v0.1.9 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling zopfli v0.8.2 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling constant_time_eq v0.3.1 [INFO] [stderr] Compiling bzip2 v0.6.0 [INFO] [stderr] Compiling pbkdf2 v0.12.2 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling cc v1.2.33 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling liblzma-sys v0.4.4 [INFO] [stderr] Compiling libz-rs-sys v0.5.1 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling liblzma v0.4.3 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling num_enum_derive v0.7.4 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling num_enum v0.7.4 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling zip v4.3.0 [INFO] [stderr] Compiling common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stderr] Compiling class_file v0.1.0 (/opt/rustwide/workdir/class_file) [INFO] [stdout] warning: unused imports: `CodeAttribute` and `MethodAttribute` [INFO] [stdout] --> class_file/src/attribute/field.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::attribute::method::{CodeAttribute, MethodAttribute}; [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: `common::descriptor::MethodDescriptor` [INFO] [stdout] --> class_file/src/attribute/field.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use common::descriptor::MethodDescriptor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling runtime v0.1.0 (/opt/rustwide/workdir/runtime) [INFO] [stdout] warning: unused import: `common::InstructionErr` [INFO] [stdout] --> runtime/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use common::InstructionErr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling classp v0.1.0 (/opt/rustwide/workdir/classp) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> runtime/src/method_area.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut instance = Self::new()?; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> runtime/src/rt/class/method.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | other => unimplemented!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entries` [INFO] [stdout] --> runtime/src/rt/constant_pool/mod.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn new(entries: Vec) -> Self { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entries` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_class` [INFO] [stdout] --> runtime/src/lib.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn parse_bin_class(main_class: Vec) -> Result, JvmError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_class` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HeapObject` is never used [INFO] [stdout] --> runtime/src/heap.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum HeapObject { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Heap` is never constructed [INFO] [stdout] --> runtime/src/heap.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Heap { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> runtime/src/heap.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Heap { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 25 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn push(&mut self, obj: HeapObject) -> HeapAddr { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn alloc_instance(&mut self, class_id: ClassId, field_count: usize) -> HeapAddr { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn alloc_string>(&mut self, s: S) -> HeapAddr { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn alloc_array_refs(&mut self, len: usize) -> HeapAddr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get(&self, h: HeapAddr) -> &HeapObject { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn get_mut(&mut self, h: HeapAddr) -> &mut HeapObject { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn write_instance_field(&mut self, h: HeapAddr, slot: usize, val: Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn read_instance_field(&self, h: HeapAddr, slot: usize) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn array_len(&self, h: HeapAddr) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn array_get(&self, h: HeapAddr, idx: usize) -> Value { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn array_set(&mut self, h: HeapAddr, idx: usize, val: Value) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_main` is never used [INFO] [stdout] --> runtime/src/method_area.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl MethodArea { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 14 | pub fn with_main(main: Rc) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MethodKey` is never constructed [INFO] [stdout] --> runtime/src/native_registry.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct MethodKey { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `NativeFn` is never used [INFO] [stdout] --> runtime/src/native_registry.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub type NativeFn = fn(args: &[Value]) -> Option; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NativeRegistry` is never constructed [INFO] [stdout] --> runtime/src/native_registry.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct NativeRegistry { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register`, and `get` are never used [INFO] [stdout] --> runtime/src/native_registry.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl NativeRegistry { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn register(&mut self, key: MethodKey, f: NativeFn) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get(&self, key: &MethodKey) -> Option<&NativeFn> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> runtime/src/rt/class/class.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Class { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 13 | this: Rc, [INFO] [stdout] 14 | access: ClassAccessFlag, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | minor_version: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | major_version: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 17 | super_class: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | fields: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | methods: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 20 | interfaces: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | attributes: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 22 | cp: Rc, [INFO] [stdout] | ^^ [INFO] [stdout] 23 | initialized: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Class` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_stack`, `max_locals`, `instructions`, `line_numbers`, `local_variables`, and `stack_map_table` are never read [INFO] [stdout] --> runtime/src/rt/class/method.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CodeContext { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 18 | max_stack: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | max_locals: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 20 | instructions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 21 | // TODO: Create a dedicated struct? (now struct from class_file) [INFO] [stdout] 22 | line_numbers: Option>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 23 | // TODO: Create a dedicated struct? (now struct from class_file) [INFO] [stdout] 24 | local_variables: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | stack_map_table: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CodeContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Frame` is never constructed [INFO] [stdout] --> runtime/src/stack/frame.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Frame { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StringPool` is never constructed [INFO] [stdout] --> runtime/src/string_pool.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct StringPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_or_new`, and `contains` are never used [INFO] [stdout] --> runtime/src/string_pool.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl StringPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn get_or_new(&mut self, heap: &mut Heap, text: &str) -> HeapAddr { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn contains(&self, s: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling vm v0.1.0 (/opt/rustwide/workdir/vm) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.01s [INFO] running `Command { std: "docker" "inspect" "c10b02fe37764568c79b46209fa009b2cd82b7be1448ff318c80f9a1f9455360", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c10b02fe37764568c79b46209fa009b2cd82b7be1448ff318c80f9a1f9455360", kill_on_drop: false }` [INFO] [stdout] c10b02fe37764568c79b46209fa009b2cd82b7be1448ff318c80f9a1f9455360 [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" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a4617738295effa1621c762fc46a3eaebb1c419e8523070e8465849648dc0e6 [INFO] running `Command { std: "docker" "start" "-a" "6a4617738295effa1621c762fc46a3eaebb1c419e8523070e8465849648dc0e6", kill_on_drop: false }` [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling relative-path v1.9.3 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling rstest_macros v0.26.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling num_enum_derive v0.7.4 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling zip v4.3.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling num_enum v0.7.4 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling rstest v0.26.1 [INFO] [stderr] Compiling common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stderr] Compiling insta v1.43.1 [INFO] [stderr] Compiling class_file v0.1.0 (/opt/rustwide/workdir/class_file) [INFO] [stdout] warning: unused imports: `CodeAttribute` and `MethodAttribute` [INFO] [stdout] --> class_file/src/attribute/field.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::attribute::method::{CodeAttribute, MethodAttribute}; [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: `common::descriptor::MethodDescriptor` [INFO] [stdout] --> class_file/src/attribute/field.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use common::descriptor::MethodDescriptor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling runtime v0.1.0 (/opt/rustwide/workdir/runtime) [INFO] [stdout] warning: unused import: `common::InstructionErr` [INFO] [stdout] --> runtime/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use common::InstructionErr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> runtime/src/method_area.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut instance = Self::new()?; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> runtime/src/rt/class/method.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | other => unimplemented!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entries` [INFO] [stdout] --> runtime/src/rt/constant_pool/mod.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn new(entries: Vec) -> Self { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entries` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_class` [INFO] [stdout] --> runtime/src/lib.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn parse_bin_class(main_class: Vec) -> Result, JvmError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_class` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HeapObject` is never used [INFO] [stdout] --> runtime/src/heap.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum HeapObject { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Heap` is never constructed [INFO] [stdout] --> runtime/src/heap.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Heap { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> runtime/src/heap.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Heap { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 25 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn push(&mut self, obj: HeapObject) -> HeapAddr { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn alloc_instance(&mut self, class_id: ClassId, field_count: usize) -> HeapAddr { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn alloc_string>(&mut self, s: S) -> HeapAddr { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn alloc_array_refs(&mut self, len: usize) -> HeapAddr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get(&self, h: HeapAddr) -> &HeapObject { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn get_mut(&mut self, h: HeapAddr) -> &mut HeapObject { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn write_instance_field(&mut self, h: HeapAddr, slot: usize, val: Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn read_instance_field(&self, h: HeapAddr, slot: usize) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn array_len(&self, h: HeapAddr) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn array_get(&self, h: HeapAddr, idx: usize) -> Value { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn array_set(&mut self, h: HeapAddr, idx: usize, val: Value) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_main` is never used [INFO] [stdout] --> runtime/src/method_area.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl MethodArea { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 14 | pub fn with_main(main: Rc) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MethodKey` is never constructed [INFO] [stdout] --> runtime/src/native_registry.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct MethodKey { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `NativeFn` is never used [INFO] [stdout] --> runtime/src/native_registry.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub type NativeFn = fn(args: &[Value]) -> Option; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NativeRegistry` is never constructed [INFO] [stdout] --> runtime/src/native_registry.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct NativeRegistry { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `register`, and `get` are never used [INFO] [stdout] --> runtime/src/native_registry.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl NativeRegistry { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn register(&mut self, key: MethodKey, f: NativeFn) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get(&self, key: &MethodKey) -> Option<&NativeFn> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> runtime/src/rt/class/class.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Class { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 13 | this: Rc, [INFO] [stdout] 14 | access: ClassAccessFlag, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | minor_version: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | major_version: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 17 | super_class: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | fields: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | methods: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 20 | interfaces: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | attributes: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 22 | cp: Rc, [INFO] [stdout] | ^^ [INFO] [stdout] 23 | initialized: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Class` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_stack`, `max_locals`, `instructions`, `line_numbers`, `local_variables`, and `stack_map_table` are never read [INFO] [stdout] --> runtime/src/rt/class/method.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CodeContext { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 18 | max_stack: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | max_locals: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 20 | instructions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 21 | // TODO: Create a dedicated struct? (now struct from class_file) [INFO] [stdout] 22 | line_numbers: Option>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 23 | // TODO: Create a dedicated struct? (now struct from class_file) [INFO] [stdout] 24 | local_variables: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | stack_map_table: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CodeContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Frame` is never constructed [INFO] [stdout] --> runtime/src/stack/frame.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Frame { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StringPool` is never constructed [INFO] [stdout] --> runtime/src/string_pool.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct StringPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_or_new`, and `contains` are never used [INFO] [stdout] --> runtime/src/string_pool.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl StringPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn get_or_new(&mut self, heap: &mut Heap, text: &str) -> HeapAddr { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn contains(&self, s: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling classp v0.1.0 (/opt/rustwide/workdir/classp) [INFO] [stdout] warning: unused import: `common::InstructionErr` [INFO] [stdout] --> runtime/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use common::InstructionErr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> runtime/src/method_area.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let mut instance = Self::new()?; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> runtime/src/rt/class/method.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | other => unimplemented!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entries` [INFO] [stdout] --> runtime/src/rt/constant_pool/mod.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn new(entries: Vec) -> Self { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entries` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `main_class` [INFO] [stdout] --> runtime/src/lib.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn parse_bin_class(main_class: Vec) -> Result, JvmError> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_main_class` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HeapObject` is never used [INFO] [stdout] --> runtime/src/heap.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum HeapObject { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Heap` is never constructed [INFO] [stdout] --> runtime/src/heap.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Heap { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> runtime/src/heap.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Heap { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 25 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn push(&mut self, obj: HeapObject) -> HeapAddr { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn alloc_instance(&mut self, class_id: ClassId, field_count: usize) -> HeapAddr { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn alloc_string>(&mut self, s: S) -> HeapAddr { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn alloc_array_refs(&mut self, len: usize) -> HeapAddr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get(&self, h: HeapAddr) -> &HeapObject { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn get_mut(&mut self, h: HeapAddr) -> &mut HeapObject { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn write_instance_field(&mut self, h: HeapAddr, slot: usize, val: Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn read_instance_field(&self, h: HeapAddr, slot: usize) -> Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn array_len(&self, h: HeapAddr) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn array_get(&self, h: HeapAddr, idx: usize) -> Value { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn array_set(&mut self, h: HeapAddr, idx: usize, val: Value) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_main` is never used [INFO] [stdout] --> runtime/src/method_area.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl MethodArea { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 14 | pub fn with_main(main: Rc) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> runtime/src/rt/class/class.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Class { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 13 | this: Rc, [INFO] [stdout] 14 | access: ClassAccessFlag, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | minor_version: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | major_version: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 17 | super_class: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 18 | fields: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 19 | methods: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 20 | interfaces: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | attributes: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 22 | cp: Rc, [INFO] [stdout] | ^^ [INFO] [stdout] 23 | initialized: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Class` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_stack`, `max_locals`, `instructions`, `line_numbers`, `local_variables`, and `stack_map_table` are never read [INFO] [stdout] --> runtime/src/rt/class/method.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CodeContext { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 18 | max_stack: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 19 | max_locals: u16, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 20 | instructions: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 21 | // TODO: Create a dedicated struct? (now struct from class_file) [INFO] [stdout] 22 | line_numbers: Option>, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 23 | // TODO: Create a dedicated struct? (now struct from class_file) [INFO] [stdout] 24 | local_variables: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | stack_map_table: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CodeContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Frame` is never constructed [INFO] [stdout] --> runtime/src/stack/frame.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Frame { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StringPool` is never constructed [INFO] [stdout] --> runtime/src/string_pool.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct StringPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_or_new`, and `contains` are never used [INFO] [stdout] --> runtime/src/string_pool.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl StringPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn get_or_new(&mut self, heap: &mut Heap, text: &str) -> HeapAddr { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn contains(&self, s: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling vm v0.1.0 (/opt/rustwide/workdir/vm) [INFO] [stdout] error: No file found [INFO] [stdout] --> class_file/src/lib.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | #[files("**/*.class")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: No file found [INFO] [stdout] --> class_file/src/lib.rs:268:9 [INFO] [stdout] | [INFO] [stdout] 268 | #[files("**/*.class")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CodeAttribute` and `MethodAttribute` [INFO] [stdout] --> class_file/src/attribute/field.rs:1:32 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::attribute::method::{CodeAttribute, MethodAttribute}; [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: `common::descriptor::MethodDescriptor` [INFO] [stdout] --> class_file/src/attribute/field.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use common::descriptor::MethodDescriptor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> class_file/src/lib.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `insta::with_settings` [INFO] [stdout] --> class_file/src/lib.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | use insta::with_settings; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> class_file/src/lib.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufRead` [INFO] [stdout] --> class_file/src/lib.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | use std::io::BufRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> class_file/src/lib.rs:223:27 [INFO] [stdout] | [INFO] [stdout] 223 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `class_file` (lib test) due to 2 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6a4617738295effa1621c762fc46a3eaebb1c419e8523070e8465849648dc0e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a4617738295effa1621c762fc46a3eaebb1c419e8523070e8465849648dc0e6", kill_on_drop: false }` [INFO] [stdout] 6a4617738295effa1621c762fc46a3eaebb1c419e8523070e8465849648dc0e6