[INFO] cloning repository https://github.com/Snowiiii/j2rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Snowiiii/j2rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSnowiiii%2Fj2rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSnowiiii%2Fj2rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 19a3934f666b2664912af022039e14a9aae22cce [INFO] checking Snowiiii/j2rust against 49a6044d37d694890450f52ceaceb66277a36b1e for pr-161154 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSnowiiii%2Fj2rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Snowiiii/j2rust [INFO] finished tweaking git repo https://github.com/Snowiiii/j2rust [INFO] tweaked toml for git repo https://github.com/Snowiiii/j2rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Snowiiii/j2rust on toolchain 49a6044d37d694890450f52ceaceb66277a36b1e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Snowiiii/j2rust 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" "+49a6044d37d694890450f52ceaceb66277a36b1e" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 6a76032f3e8239be715d1a8ed6a90ac23d562344526257c44cd3d18ef83948f4 [INFO] running `Command { std: "docker" "start" "6a76032f3e8239be715d1a8ed6a90ac23d562344526257c44cd3d18ef83948f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a76032f3e8239be715d1a8ed6a90ac23d562344526257c44cd3d18ef83948f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6a76032f3e8239be715d1a8ed6a90ac23d562344526257c44cd3d18ef83948f4" "/opt/rustwide/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a76032f3e8239be715d1a8ed6a90ac23d562344526257c44cd3d18ef83948f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6a76032f3e8239be715d1a8ed6a90ac23d562344526257c44cd3d18ef83948f4" "/opt/rustwide/cargo-home/bin/cargo" "+49a6044d37d694890450f52ceaceb66277a36b1e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking j2rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::token::DataType` [INFO] [stdout] --> src/ast/expr.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::token::DataType; [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: `MethodArgument` [INFO] [stdout] --> src/backend/rust.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ast::method::{MethodArgument, MethodNode}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `QUOTE_STRING` should have an upper camel case name [INFO] [stdout] --> src/token.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | QUOTE_STRING, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `QuoteString` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OPEN_BRACE` should have an upper camel case name [INFO] [stdout] --> src/token.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | OPEN_BRACE, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `OpenBrace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CLOSE_BRACE` should have an upper camel case name [INFO] [stdout] --> src/token.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | CLOSE_BRACE, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `CloseBrace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OPEN_BRACKET` should have an upper camel case name [INFO] [stdout] --> src/token.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | OPEN_BRACKET, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OpenBracket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CLOSE_BRACKET` should have an upper camel case name [INFO] [stdout] --> src/token.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | CLOSE_BRACKET, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CloseBracket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EQUAL_EQUAL` should have an upper camel case name [INFO] [stdout] --> src/token.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | EQUAL_EQUAL, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `EqualEqual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::DataType` [INFO] [stdout] --> src/ast/expr.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::token::DataType; [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: `MethodArgument` [INFO] [stdout] --> src/backend/rust.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::ast::method::{MethodArgument, MethodNode}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `QUOTE_STRING` should have an upper camel case name [INFO] [stdout] --> src/token.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | QUOTE_STRING, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `QuoteString` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OPEN_BRACE` should have an upper camel case name [INFO] [stdout] --> src/token.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | OPEN_BRACE, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `OpenBrace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CLOSE_BRACE` should have an upper camel case name [INFO] [stdout] --> src/token.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | CLOSE_BRACE, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `CloseBrace` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `OPEN_BRACKET` should have an upper camel case name [INFO] [stdout] --> src/token.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | OPEN_BRACKET, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OpenBracket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CLOSE_BRACKET` should have an upper camel case name [INFO] [stdout] --> src/token.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | CLOSE_BRACKET, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CloseBracket` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EQUAL_EQUAL` should have an upper camel case name [INFO] [stdout] --> src/token.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | EQUAL_EQUAL, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `EqualEqual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/mod.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 145 | let mut arguments = Vec::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: variable does not need to be mutable [INFO] [stdout] --> src/parser/mod.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 145 | let mut arguments = Vec::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: `method` [INFO] [stdout] --> src/semantics/mod.rs:22:25 [INFO] [stdout] | [INFO] [stdout] 22 | for method in &class_node.methods { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/semantics/mod.rs:22:25 [INFO] [stdout] | [INFO] [stdout] 22 | for method in &class_node.methods { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Array` is never constructed [INFO] [stdout] --> src/ast/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Type { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | Array(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_final` is never read [INFO] [stdout] --> src/ast/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Modifier { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub is_final: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Modifier` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `modifiers` are never read [INFO] [stdout] --> src/ast/class.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ClassNode { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub modifiers: Modifier, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Null` is never constructed [INFO] [stdout] --> src/ast/expr.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum Literal { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 28 | Null, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Literal` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Return` and `Block` are never constructed [INFO] [stdout] --> src/ast/stmt.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Stmt { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | Return(Option), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | Block(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` 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 `PrintStream` is never constructed [INFO] [stdout] --> src/java_std/io/printstream.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PrintStream; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `println` and `print` are never used [INFO] [stdout] --> src/java_std/io/printstream.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl PrintStream { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 7 | pub fn println(&self, x: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub fn print(&self, x: T) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PROPERTIES` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | static PROPERTIES: LazyLock>> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn exit(status: i32) -> ! { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `current_time_millis` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn current_time_millis() -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nano_time` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn nano_time() -> i64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_property` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn get_property(key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_property` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn set_property(key: String, value: String) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_env` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn get_env(name: &str) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `arraycopy` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn arraycopy( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gc` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn gc() { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Class` is never used [INFO] [stdout] --> src/prelude/mod.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Class { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_prelude_class` is never used [INFO] [stdout] --> src/prelude/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn get_prelude_class(input: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `String` is never constructed [INFO] [stdout] --> src/prelude/string.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct String; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `System` is never constructed [INFO] [stdout] --> src/prelude/system.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct System { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/prelude/system.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl System { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `symbol_table` is never read [INFO] [stdout] --> src/semantics/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct SemanticAnalyzer { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 7 | symbol_table: SymbolTable, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `type` are never read [INFO] [stdout] --> src/semantics/symbol_table.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Symbol { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub r#type: Type, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Symbol` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scopes` is never read [INFO] [stdout] --> src/semantics/symbol_table.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct SymbolTable { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 12 | scopes: Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push_scope`, `pop_scope`, `define`, and `resolve` are never used [INFO] [stdout] --> src/semantics/symbol_table.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl SymbolTable { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn push_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn pop_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn define(&mut self, name: String, r#type: Type) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn resolve(&self, name: &str) -> Option<&Symbol> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Array` is never constructed [INFO] [stdout] --> src/ast/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Type { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | Array(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_final` is never read [INFO] [stdout] --> src/ast/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Modifier { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub is_final: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Modifier` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `modifiers` are never read [INFO] [stdout] --> src/ast/class.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ClassNode { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 6 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub modifiers: Modifier, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Null` is never constructed [INFO] [stdout] --> src/ast/expr.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum Literal { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 28 | Null, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Literal` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Return` and `Block` are never constructed [INFO] [stdout] --> src/ast/stmt.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Stmt { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | Return(Option), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | Block(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stmt` 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 `PrintStream` is never constructed [INFO] [stdout] --> src/java_std/io/printstream.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PrintStream; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `println` and `print` are never used [INFO] [stdout] --> src/java_std/io/printstream.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl PrintStream { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 7 | pub fn println(&self, x: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub fn print(&self, x: T) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PROPERTIES` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | static PROPERTIES: LazyLock>> = LazyLock::new(|| { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `exit` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn exit(status: i32) -> ! { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `current_time_millis` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn current_time_millis() -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nano_time` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn nano_time() -> i64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_property` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn get_property(key: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_property` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn set_property(key: String, value: String) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_env` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn get_env(name: &str) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `arraycopy` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn arraycopy( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gc` is never used [INFO] [stdout] --> src/java_std/lang/system.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn gc() { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Class` is never used [INFO] [stdout] --> src/prelude/mod.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Class { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_prelude_class` is never used [INFO] [stdout] --> src/prelude/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn get_prelude_class(input: &str) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `String` is never constructed [INFO] [stdout] --> src/prelude/string.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct String; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `System` is never constructed [INFO] [stdout] --> src/prelude/system.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct System { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/prelude/system.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl System { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `symbol_table` is never read [INFO] [stdout] --> src/semantics/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct SemanticAnalyzer { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 7 | symbol_table: SymbolTable, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `type` are never read [INFO] [stdout] --> src/semantics/symbol_table.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Symbol { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 6 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | pub r#type: Type, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Symbol` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scopes` is never read [INFO] [stdout] --> src/semantics/symbol_table.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct SymbolTable { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 12 | scopes: Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `push_scope`, `pop_scope`, `define`, and `resolve` are never used [INFO] [stdout] --> src/semantics/symbol_table.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl SymbolTable { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn push_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn pop_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn define(&mut self, name: String, r#type: Type) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn resolve(&self, name: &str) -> Option<&Symbol> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "6a76032f3e8239be715d1a8ed6a90ac23d562344526257c44cd3d18ef83948f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a76032f3e8239be715d1a8ed6a90ac23d562344526257c44cd3d18ef83948f4", kill_on_drop: false }` [INFO] [stdout] 6a76032f3e8239be715d1a8ed6a90ac23d562344526257c44cd3d18ef83948f4