[INFO] cloning repository https://github.com/themasch/rust-jvm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/themasch/rust-jvm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthemasch%2Frust-jvm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthemasch%2Frust-jvm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2d7418c568670d8bcc52ef7e64cc0704f9c34eb1 [INFO] testing themasch/rust-jvm against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthemasch%2Frust-jvm" "/workspace/builds/worker-94/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-94/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/themasch/rust-jvm on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/themasch/rust-jvm [INFO] finished tweaking git repo https://github.com/themasch/rust-jvm [INFO] tweaked toml for git repo https://github.com/themasch/rust-jvm written to /workspace/builds/worker-94/source/Cargo.toml [INFO] crate git repo https://github.com/themasch/rust-jvm already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded nom v4.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-94/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-94/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0836b6b90509d7d0f2759582bfa8abf06c22fa4b1afad7e45a70cf537c373a73 [INFO] running `Command { std: "docker" "start" "-a" "0836b6b90509d7d0f2759582bfa8abf06c22fa4b1afad7e45a70cf537c373a73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0836b6b90509d7d0f2759582bfa8abf06c22fa4b1afad7e45a70cf537c373a73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0836b6b90509d7d0f2759582bfa8abf06c22fa4b1afad7e45a70cf537c373a73", kill_on_drop: false }` [INFO] [stdout] 0836b6b90509d7d0f2759582bfa8abf06c22fa4b1afad7e45a70cf537c373a73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-94/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-94/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e2f12b4f1946f304bfcf75e640aefcd11a7f31cc8832a277912537df5bbac3e [INFO] running `Command { std: "docker" "start" "-a" "0e2f12b4f1946f304bfcf75e640aefcd11a7f31cc8832a277912537df5bbac3e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.40 [INFO] [stderr] Compiling cc v1.0.18 [INFO] [stderr] Compiling rustc-demangle v0.1.9 [INFO] [stderr] Compiling cfg-if v0.1.4 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling backtrace-sys v0.1.23 [INFO] [stderr] Compiling nom v4.0.0 [INFO] [stderr] Compiling synstructure v0.6.1 [INFO] [stderr] Compiling failure_derive v0.1.1 [INFO] [stderr] Compiling backtrace v0.3.9 [INFO] [stderr] Compiling failure v0.1.1 [INFO] [stderr] Compiling rjvm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `nom::IResult` [INFO] [stdout] --> src/java/class_file/mod.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | use nom::IResult; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/java/class_file/mod.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/java/instructions.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | $name ( ( $($t),* ) ) [INFO] [stdout] | ^ ^ [INFO] [stdout] ... [INFO] [stdout] 69 | instruction!( [INFO] [stdout] | _- [INFO] [stdout] | |_| [INFO] [stdout] | | [INFO] [stdout] 70 | | 0x00 => (1): [ () ] => NOOP(), [INFO] [stdout] 71 | | 0x01 => (1): [ () ] => AConstNull(), [INFO] [stdout] 72 | | 0x02 => (1): [ () ] => IConstm1(), [INFO] [stdout] ... | [INFO] [stdout] 274 | | 0xff => (1): [ () ] => ImpDep2() [INFO] [stdout] 275 | | ); [INFO] [stdout] | | - [INFO] [stdout] | |_| [INFO] [stdout] | |_in this macro invocation [INFO] [stdout] | in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] = note: this warning originates in the macro `instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - $name ( ( $($t),* ) ) [INFO] [stdout] 18 + $name ( $($t),* ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `java::class_file::Attribute` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use java::class_file::Attribute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `java::class_file::CodeBlock` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use java::class_file::CodeBlock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/java/class_file/parser.rs:38:7 [INFO] [stdout] | [INFO] [stdout] 26 | / loop { [INFO] [stdout] 27 | | if input[0] == b')' { [INFO] [stdout] 28 | | return Ok((&input[1..], vec)); [INFO] [stdout] 29 | | } [INFO] [stdout] ... | [INFO] [stdout] 37 | | } [INFO] [stdout] 38 | | }.clone() [INFO] [stdout] | | - ^^^^^ unreachable call [INFO] [stdout] | |_____| [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rem` [INFO] [stdout] --> src/java/class_file/mod.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | Ok((rem, (args, ret))) => Ok(MethodDescriptor { arguments: args, return_type: ret }), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rem` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/java/runtime/mod.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | for i in 0..size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arg_type` [INFO] [stdout] --> src/java/runtime/mod.rs:347:89 [INFO] [stdout] | [INFO] [stdout] 347 | ... let mut args = method.get_signature().arguments.iter().map(|arg_type| { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arg_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/java/runtime/mod.rs:290:40 [INFO] [stdout] | [INFO] [stdout] 290 | Instruction::IInc((offset, value)) => match stack_frame.get_variable_mut(usize::from(*offset)) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `return_value` [INFO] [stdout] --> src/java/runtime/mod.rs:390:17 [INFO] [stdout] | [INFO] [stdout] 390 | let mut return_value: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_return_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/java/class_file/parser.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | length: be_u32 >> [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exception_table` [INFO] [stdout] --> src/java/class_file/parser.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | exception_table: length_count!( be_u16, exception_table ) >> [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exception_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/java/runtime/mod.rs:390:13 [INFO] [stdout] | [INFO] [stdout] 390 | let mut return_value: Option = None; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `access_flags` [INFO] [stdout] --> src/java/class_file/mod.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | access_flags: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Field` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name_index` [INFO] [stdout] --> src/java/class_file/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | name_index: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Field` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `descriptor_index` [INFO] [stdout] --> src/java/class_file/mod.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | descriptor_index: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Field` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `attributes` [INFO] [stdout] --> src/java/class_file/mod.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | attributes: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Field` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Public` [INFO] [stdout] --> src/java/class_file/mod.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | Public, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Private` [INFO] [stdout] --> src/java/class_file/mod.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | Private, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Protected` [INFO] [stdout] --> src/java/class_file/mod.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | Protected, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Static` [INFO] [stdout] --> src/java/class_file/mod.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | Static, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Final` [INFO] [stdout] --> src/java/class_file/mod.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | Final, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Synchronized` [INFO] [stdout] --> src/java/class_file/mod.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | Synchronized, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Native` [INFO] [stdout] --> src/java/class_file/mod.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | Native, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Abstract` [INFO] [stdout] --> src/java/class_file/mod.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | Abstract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Strict` [INFO] [stdout] --> src/java/class_file/mod.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | Strict, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_access` [INFO] [stdout] --> src/java/class_file/mod.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn get_access(&self) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `attributes` [INFO] [stdout] --> src/java/class_file/mod.rs:251:5 [INFO] [stdout] | [INFO] [stdout] 251 | attributes: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CodeBlock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:246:10 [INFO] [stdout] | [INFO] [stdout] 246 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_line_numbers` [INFO] [stdout] --> src/java/class_file/mod.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 260 | pub fn get_line_numbers(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `None` [INFO] [stdout] --> src/java/runtime/mod.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `StackValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/runtime/mod.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Null` [INFO] [stdout] --> src/java/runtime/mod.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | Null, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `StackValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/runtime/mod.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `GotoAbsolute` [INFO] [stdout] --> src/java/runtime/mod.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | GotoAbsolute(usize), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `classpath` [INFO] [stdout] --> src/java/runtime/mod.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | classpath: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `disassemble` [INFO] [stdout] --> src/java/class_file/dissasm.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn disassemble<'a>(method: &Method<'a>) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/java/runtime/mod.rs:423:21 [INFO] [stdout] | [INFO] [stdout] 423 | self.check_return_type(method.get_signature().return_type, &return_value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 10s [INFO] running `Command { std: "docker" "inspect" "0e2f12b4f1946f304bfcf75e640aefcd11a7f31cc8832a277912537df5bbac3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e2f12b4f1946f304bfcf75e640aefcd11a7f31cc8832a277912537df5bbac3e", kill_on_drop: false }` [INFO] [stdout] 0e2f12b4f1946f304bfcf75e640aefcd11a7f31cc8832a277912537df5bbac3e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-94/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-94/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3ed1245850318cc993c94029b171f2030900b59c2f3bd76d7471d5cc0348aebd [INFO] running `Command { std: "docker" "start" "-a" "3ed1245850318cc993c94029b171f2030900b59c2f3bd76d7471d5cc0348aebd", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling rjvm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `nom::*` [INFO] [stdout] --> src/java/class_file/parser.rs:326:9 [INFO] [stdout] | [INFO] [stdout] 326 | use nom::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::IResult` [INFO] [stdout] --> src/java/class_file/mod.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | use nom::IResult; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> src/java/class_file/mod.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/java/instructions.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | $name ( ( $($t),* ) ) [INFO] [stdout] | ^ ^ [INFO] [stdout] ... [INFO] [stdout] 69 | instruction!( [INFO] [stdout] | _- [INFO] [stdout] | |_| [INFO] [stdout] | | [INFO] [stdout] 70 | | 0x00 => (1): [ () ] => NOOP(), [INFO] [stdout] 71 | | 0x01 => (1): [ () ] => AConstNull(), [INFO] [stdout] 72 | | 0x02 => (1): [ () ] => IConstm1(), [INFO] [stdout] ... | [INFO] [stdout] 274 | | 0xff => (1): [ () ] => ImpDep2() [INFO] [stdout] 275 | | ); [INFO] [stdout] | | - [INFO] [stdout] | |_| [INFO] [stdout] | |_in this macro invocation [INFO] [stdout] | in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] = note: this warning originates in the macro `instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 18 - $name ( ( $($t),* ) ) [INFO] [stdout] 18 + $name ( $($t),* ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `java::class_file::ClassFile` [INFO] [stdout] --> src/java/runtime/mod.rs:456:9 [INFO] [stdout] | [INFO] [stdout] 456 | use java::class_file::ClassFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `java::class_file::Method` [INFO] [stdout] --> src/java/runtime/mod.rs:457:9 [INFO] [stdout] | [INFO] [stdout] 457 | use java::class_file::Method; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `java::class_file::Attribute` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use java::class_file::Attribute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `java::class_file::CodeBlock` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use java::class_file::CodeBlock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable call [INFO] [stdout] --> src/java/class_file/parser.rs:38:7 [INFO] [stdout] | [INFO] [stdout] 26 | / loop { [INFO] [stdout] 27 | | if input[0] == b')' { [INFO] [stdout] 28 | | return Ok((&input[1..], vec)); [INFO] [stdout] 29 | | } [INFO] [stdout] ... | [INFO] [stdout] 37 | | } [INFO] [stdout] 38 | | }.clone() [INFO] [stdout] | | - ^^^^^ unreachable call [INFO] [stdout] | |_____| [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rem` [INFO] [stdout] --> src/java/class_file/mod.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | Ok((rem, (args, ret))) => Ok(MethodDescriptor { arguments: args, return_type: ret }), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rem` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/java/runtime/mod.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | for i in 0..size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arg_type` [INFO] [stdout] --> src/java/runtime/mod.rs:347:89 [INFO] [stdout] | [INFO] [stdout] 347 | ... let mut args = method.get_signature().arguments.iter().map(|arg_type| { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arg_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/java/runtime/mod.rs:290:40 [INFO] [stdout] | [INFO] [stdout] 290 | Instruction::IInc((offset, value)) => match stack_frame.get_variable_mut(usize::from(*offset)) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `return_value` [INFO] [stdout] --> src/java/runtime/mod.rs:390:17 [INFO] [stdout] | [INFO] [stdout] 390 | let mut return_value: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_return_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/java/class_file/parser.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | length: be_u32 >> [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exception_table` [INFO] [stdout] --> src/java/class_file/parser.rs:181:21 [INFO] [stdout] | [INFO] [stdout] 181 | exception_table: length_count!( be_u16, exception_table ) >> [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exception_table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/java/class_file/parser.rs:342:13 [INFO] [stdout] | [INFO] [stdout] 342 | let input = b"()V"; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/java/runtime/mod.rs:390:13 [INFO] [stdout] | [INFO] [stdout] 390 | let mut return_value: Option = None; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `StackValue` in public interface (error E0446) [INFO] [stdout] --> src/java/runtime/mod.rs:199:5 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn exec_method_on_main(&mut self, method_name: &str) -> Result, RuntimeError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `access_flags` [INFO] [stdout] --> src/java/class_file/mod.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | access_flags: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Field` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name_index` [INFO] [stdout] --> src/java/class_file/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | name_index: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Field` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `descriptor_index` [INFO] [stdout] --> src/java/class_file/mod.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | descriptor_index: u16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Field` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `attributes` [INFO] [stdout] --> src/java/class_file/mod.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | attributes: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Field` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Public` [INFO] [stdout] --> src/java/class_file/mod.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | Public, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Private` [INFO] [stdout] --> src/java/class_file/mod.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | Private, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Protected` [INFO] [stdout] --> src/java/class_file/mod.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | Protected, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Static` [INFO] [stdout] --> src/java/class_file/mod.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | Static, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Final` [INFO] [stdout] --> src/java/class_file/mod.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | Final, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Synchronized` [INFO] [stdout] --> src/java/class_file/mod.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | Synchronized, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Native` [INFO] [stdout] --> src/java/class_file/mod.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | Native, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Abstract` [INFO] [stdout] --> src/java/class_file/mod.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | Abstract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Strict` [INFO] [stdout] --> src/java/class_file/mod.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | Strict, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_access` [INFO] [stdout] --> src/java/class_file/mod.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn get_access(&self) -> HashSet { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `attributes` [INFO] [stdout] --> src/java/class_file/mod.rs:251:5 [INFO] [stdout] | [INFO] [stdout] 251 | attributes: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `CodeBlock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/class_file/mod.rs:246:10 [INFO] [stdout] | [INFO] [stdout] 246 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_line_numbers` [INFO] [stdout] --> src/java/class_file/mod.rs:260:12 [INFO] [stdout] | [INFO] [stdout] 260 | pub fn get_line_numbers(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `None` [INFO] [stdout] --> src/java/runtime/mod.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `StackValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/runtime/mod.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Null` [INFO] [stdout] --> src/java/runtime/mod.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | Null, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `StackValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/java/runtime/mod.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | #[derive(Debug, Eq, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `GotoAbsolute` [INFO] [stdout] --> src/java/runtime/mod.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | GotoAbsolute(usize), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `classpath` [INFO] [stdout] --> src/java/runtime/mod.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | classpath: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `disassemble` [INFO] [stdout] --> src/java/class_file/dissasm.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn disassemble<'a>(method: &Method<'a>) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEMOCLASS` [INFO] [stdout] --> src/java/class_file/parser.rs:287:5 [INFO] [stdout] | [INFO] [stdout] 287 | const DEMOCLASS: &'static [u8] = include_bytes!("../../../sample/DemoClass.class"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/java/runtime/mod.rs:423:21 [INFO] [stdout] | [INFO] [stdout] 423 | self.check_return_type(method.get_signature().return_type, &return_value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 43 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 10.91s [INFO] running `Command { std: "docker" "inspect" "3ed1245850318cc993c94029b171f2030900b59c2f3bd76d7471d5cc0348aebd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ed1245850318cc993c94029b171f2030900b59c2f3bd76d7471d5cc0348aebd", kill_on_drop: false }` [INFO] [stdout] 3ed1245850318cc993c94029b171f2030900b59c2f3bd76d7471d5cc0348aebd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-94/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-94/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 12731707b480ec119f532944b49c8cd38d7cf88eeffe76cd92425cc6f2d840f6 [INFO] running `Command { std: "docker" "start" "-a" "12731707b480ec119f532944b49c8cd38d7cf88eeffe76cd92425cc6f2d840f6", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused import: `nom::*` [INFO] [stderr] --> src/java/class_file/parser.rs:326:9 [INFO] [stderr] | [INFO] [stderr] 326 | use nom::*; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `nom::IResult` [INFO] [stderr] --> src/java/class_file/mod.rs:112:5 [INFO] [stderr] | [INFO] [stderr] 112 | use nom::IResult; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::slice::Iter` [INFO] [stderr] --> src/java/class_file/mod.rs:113:5 [INFO] [stderr] | [INFO] [stderr] 113 | use std::slice::Iter; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/java/instructions.rs:18:25 [INFO] [stderr] | [INFO] [stderr] 18 | $name ( ( $($t),* ) ) [INFO] [stderr] | ^ ^ [INFO] [stderr] ... [INFO] [stderr] 69 | instruction!( [INFO] [stderr] | _- [INFO] [stderr] | |_| [INFO] [stderr] | | [INFO] [stderr] 70 | | 0x00 => (1): [ () ] => NOOP(), [INFO] [stderr] 71 | | 0x01 => (1): [ () ] => AConstNull(), [INFO] [stderr] 72 | | 0x02 => (1): [ () ] => IConstm1(), [INFO] [stderr] ... | [INFO] [stderr] 274 | | 0xff => (1): [ () ] => ImpDep2() [INFO] [stderr] 275 | | ); [INFO] [stderr] | | - [INFO] [stderr] | |_| [INFO] [stderr] | |_in this macro invocation [INFO] [stderr] | in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] = note: this warning originates in the macro `instruction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 18 - $name ( ( $($t),* ) ) [INFO] [stderr] 18 + $name ( $($t),* ) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `java::class_file::ClassFile` [INFO] [stderr] --> src/java/runtime/mod.rs:456:9 [INFO] [stderr] | [INFO] [stderr] 456 | use java::class_file::ClassFile; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `java::class_file::Method` [INFO] [stderr] --> src/java/runtime/mod.rs:457:9 [INFO] [stderr] | [INFO] [stderr] 457 | use java::class_file::Method; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:3:1 [INFO] [stderr] | [INFO] [stderr] 3 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `java::class_file::Attribute` [INFO] [stderr] --> src/main.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use java::class_file::Attribute; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `java::class_file::CodeBlock` [INFO] [stderr] --> src/main.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use java::class_file::CodeBlock; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable call [INFO] [stderr] --> src/java/class_file/parser.rs:38:7 [INFO] [stderr] | [INFO] [stderr] 26 | / loop { [INFO] [stderr] 27 | | if input[0] == b')' { [INFO] [stderr] 28 | | return Ok((&input[1..], vec)); [INFO] [stderr] 29 | | } [INFO] [stderr] ... | [INFO] [stderr] 37 | | } [INFO] [stderr] 38 | | }.clone() [INFO] [stderr] | | - ^^^^^ unreachable call [INFO] [stderr] | |_____| [INFO] [stderr] | any code following this expression is unreachable [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rem` [INFO] [stderr] --> src/java/class_file/mod.rs:121:17 [INFO] [stderr] | [INFO] [stderr] 121 | Ok((rem, (args, ret))) => Ok(MethodDescriptor { arguments: args, return_type: ret }), [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_rem` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/java/runtime/mod.rs:65:13 [INFO] [stderr] | [INFO] [stderr] 65 | for i in 0..size { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `arg_type` [INFO] [stderr] --> src/java/runtime/mod.rs:347:89 [INFO] [stderr] | [INFO] [stderr] 347 | ... let mut args = method.get_signature().arguments.iter().map(|arg_type| { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arg_type` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `value` [INFO] [stderr] --> src/java/runtime/mod.rs:290:40 [INFO] [stderr] | [INFO] [stderr] 290 | Instruction::IInc((offset, value)) => match stack_frame.get_variable_mut(usize::from(*offset)) { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `return_value` [INFO] [stderr] --> src/java/runtime/mod.rs:390:17 [INFO] [stderr] | [INFO] [stderr] 390 | let mut return_value: Option = None; [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_return_value` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `length` [INFO] [stderr] --> src/java/class_file/parser.rs:150:9 [INFO] [stderr] | [INFO] [stderr] 150 | length: be_u32 >> [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `exception_table` [INFO] [stderr] --> src/java/class_file/parser.rs:181:21 [INFO] [stderr] | [INFO] [stderr] 181 | exception_table: length_count!( be_u16, exception_table ) >> [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exception_table` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `input` [INFO] [stderr] --> src/java/class_file/parser.rs:342:13 [INFO] [stderr] | [INFO] [stderr] 342 | let input = b"()V"; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/java/runtime/mod.rs:390:13 [INFO] [stderr] | [INFO] [stderr] 390 | let mut return_value: Option = None; [INFO] [stderr] | ----^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: private type `StackValue` in public interface (error E0446) [INFO] [stderr] --> src/java/runtime/mod.rs:199:5 [INFO] [stderr] | [INFO] [stderr] 199 | pub fn exec_method_on_main(&mut self, method_name: &str) -> Result, RuntimeError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(private_in_public)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #34537 [INFO] [stderr] [INFO] [stderr] warning: field is never read: `access_flags` [INFO] [stderr] --> src/java/class_file/mod.rs:71:5 [INFO] [stderr] | [INFO] [stderr] 71 | access_flags: u16, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Field` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/class_file/mod.rs:69:10 [INFO] [stderr] | [INFO] [stderr] 69 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `name_index` [INFO] [stderr] --> src/java/class_file/mod.rs:72:5 [INFO] [stderr] | [INFO] [stderr] 72 | name_index: u16, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Field` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/class_file/mod.rs:69:10 [INFO] [stderr] | [INFO] [stderr] 69 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `descriptor_index` [INFO] [stderr] --> src/java/class_file/mod.rs:73:5 [INFO] [stderr] | [INFO] [stderr] 73 | descriptor_index: u16, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Field` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/class_file/mod.rs:69:10 [INFO] [stderr] | [INFO] [stderr] 69 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `attributes` [INFO] [stderr] --> src/java/class_file/mod.rs:74:5 [INFO] [stderr] | [INFO] [stderr] 74 | attributes: Vec>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Field` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/class_file/mod.rs:69:10 [INFO] [stderr] | [INFO] [stderr] 69 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Public` [INFO] [stderr] --> src/java/class_file/mod.rs:87:5 [INFO] [stderr] | [INFO] [stderr] 87 | Public, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/class_file/mod.rs:85:10 [INFO] [stderr] | [INFO] [stderr] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Private` [INFO] [stderr] --> src/java/class_file/mod.rs:88:5 [INFO] [stderr] | [INFO] [stderr] 88 | Private, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/class_file/mod.rs:85:10 [INFO] [stderr] | [INFO] [stderr] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Protected` [INFO] [stderr] --> src/java/class_file/mod.rs:89:5 [INFO] [stderr] | [INFO] [stderr] 89 | Protected, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/class_file/mod.rs:85:10 [INFO] [stderr] | [INFO] [stderr] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Static` [INFO] [stderr] --> src/java/class_file/mod.rs:90:5 [INFO] [stderr] | [INFO] [stderr] 90 | Static, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/class_file/mod.rs:85:10 [INFO] [stderr] | [INFO] [stderr] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Final` [INFO] [stderr] --> src/java/class_file/mod.rs:91:5 [INFO] [stderr] | [INFO] [stderr] 91 | Final, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/class_file/mod.rs:85:10 [INFO] [stderr] | [INFO] [stderr] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Synchronized` [INFO] [stderr] --> src/java/class_file/mod.rs:92:5 [INFO] [stderr] | [INFO] [stderr] 92 | Synchronized, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/class_file/mod.rs:85:10 [INFO] [stderr] | [INFO] [stderr] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Native` [INFO] [stderr] --> src/java/class_file/mod.rs:93:5 [INFO] [stderr] | [INFO] [stderr] 93 | Native, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/class_file/mod.rs:85:10 [INFO] [stderr] | [INFO] [stderr] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Abstract` [INFO] [stderr] --> src/java/class_file/mod.rs:94:5 [INFO] [stderr] | [INFO] [stderr] 94 | Abstract, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/class_file/mod.rs:85:10 [INFO] [stderr] | [INFO] [stderr] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Strict` [INFO] [stderr] --> src/java/class_file/mod.rs:95:5 [INFO] [stderr] | [INFO] [stderr] 95 | Strict, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `MethodAccess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/class_file/mod.rs:85:10 [INFO] [stderr] | [INFO] [stderr] 85 | #[derive(Debug, Eq, PartialEq, Hash)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_access` [INFO] [stderr] --> src/java/class_file/mod.rs:215:12 [INFO] [stderr] | [INFO] [stderr] 215 | pub fn get_access(&self) -> HashSet { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `attributes` [INFO] [stderr] --> src/java/class_file/mod.rs:251:5 [INFO] [stderr] | [INFO] [stderr] 251 | attributes: Vec>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `CodeBlock` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/class_file/mod.rs:246:10 [INFO] [stderr] | [INFO] [stderr] 246 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_line_numbers` [INFO] [stderr] --> src/java/class_file/mod.rs:260:12 [INFO] [stderr] | [INFO] [stderr] 260 | pub fn get_line_numbers(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `None` [INFO] [stderr] --> src/java/runtime/mod.rs:44:5 [INFO] [stderr] | [INFO] [stderr] 44 | None, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `StackValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/runtime/mod.rs:42:10 [INFO] [stderr] | [INFO] [stderr] 42 | #[derive(Debug, Eq, PartialEq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Null` [INFO] [stderr] --> src/java/runtime/mod.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | Null, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `StackValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/java/runtime/mod.rs:42:10 [INFO] [stderr] | [INFO] [stderr] 42 | #[derive(Debug, Eq, PartialEq)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `GotoAbsolute` [INFO] [stderr] --> src/java/runtime/mod.rs:118:5 [INFO] [stderr] | [INFO] [stderr] 118 | GotoAbsolute(usize), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `classpath` [INFO] [stderr] --> src/java/runtime/mod.rs:129:5 [INFO] [stderr] | [INFO] [stderr] 129 | classpath: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `disassemble` [INFO] [stderr] --> src/java/class_file/dissasm.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn disassemble<'a>(method: &Method<'a>) -> String { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `DEMOCLASS` [INFO] [stderr] --> src/java/class_file/parser.rs:287:5 [INFO] [stderr] | [INFO] [stderr] 287 | const DEMOCLASS: &'static [u8] = include_bytes!("../../../sample/DemoClass.class"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/java/runtime/mod.rs:423:21 [INFO] [stderr] | [INFO] [stderr] 423 | self.check_return_type(method.get_signature().return_type, &return_value); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `rjvm` (bin "rjvm" test) generated 43 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.15s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rjvm-6c8e6e1328923401) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test java::class_file::parser::test::it_gets_the_class_name_correct ... ok [INFO] [stdout] test java::class_file::parser::test::it_gets_the_version_correct ... ok [INFO] [stdout] test java::class_file::parser::test::it_reads_the_correct_number_of_constants ... ok [INFO] [stdout] test java::class_file::parser::test::test_param_list_int_int ... ok [INFO] [stdout] test java::class_file::parser::test::it_can_read_the_complete_class_file ... ok [INFO] [stdout] test java::class_file::parser::test::test_method_desc_void ... ok [INFO] [stdout] test java::runtime::test::test_basic_math ... ok [INFO] [stdout] test java::runtime::test::test_basic_math_with_loop ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "12731707b480ec119f532944b49c8cd38d7cf88eeffe76cd92425cc6f2d840f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12731707b480ec119f532944b49c8cd38d7cf88eeffe76cd92425cc6f2d840f6", kill_on_drop: false }` [INFO] [stdout] 12731707b480ec119f532944b49c8cd38d7cf88eeffe76cd92425cc6f2d840f6