[INFO] cloning repository https://github.com/re1n-e/Interpreter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/re1n-e/Interpreter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fre1n-e%2FInterpreter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fre1n-e%2FInterpreter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8c8ebf7660e0db2e24f7e1fb80c269597cc63d31 [INFO] checking re1n-e/Interpreter against try#0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef for pr-147859 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fre1n-e%2FInterpreter" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/re1n-e/Interpreter [INFO] finished tweaking git repo https://github.com/re1n-e/Interpreter [INFO] tweaked toml for git repo https://github.com/re1n-e/Interpreter written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/re1n-e/Interpreter on toolchain 0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/re1n-e/Interpreter 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" "+0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef" "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 syn v2.0.75 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e748a36d1cd0c8a558fe35d969f861f56c97f20ab4865be8d47d93cc9e293b4b [INFO] running `Command { std: "docker" "start" "-a" "e748a36d1cd0c8a558fe35d969f861f56c97f20ab4865be8d47d93cc9e293b4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e748a36d1cd0c8a558fe35d969f861f56c97f20ab4865be8d47d93cc9e293b4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e748a36d1cd0c8a558fe35d969f861f56c97f20ab4865be8d47d93cc9e293b4b", kill_on_drop: false }` [INFO] [stdout] e748a36d1cd0c8a558fe35d969f861f56c97f20ab4865be8d47d93cc9e293b4b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+0269aeccce4fd29ce9ad0ebd47a62e584d7e25ef" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d06127fb3539012260d03fb9b52f1aabd5e2179b6381744c1c41b4f35a2d4cf4 [INFO] running `Command { std: "docker" "start" "-a" "d06127fb3539012260d03fb9b52f1aabd5e2179b6381744c1c41b4f35a2d4cf4", kill_on_drop: false }` [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking thiserror v1.0.63 [INFO] [stderr] Checking codecrafters-interpreter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/evaluate.rs:124:31 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn resolve(&mut self, expr: &Expr, depth: usize) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/evaluate.rs:124:44 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn resolve(&mut self, expr: &Expr, depth: usize) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/evaluate.rs:124:31 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn resolve(&mut self, expr: &Expr, depth: usize) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/evaluate.rs:124:44 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn resolve(&mut self, expr: &Expr, depth: usize) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `statements` [INFO] [stdout] --> src/resolver.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | Stmt::Block(statements) => (), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_statements` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/resolver.rs:201:39 [INFO] [stdout] | [INFO] [stdout] 201 | fn resolve_single_stmt(&mut self, stmt: &Stmt) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/resolver.rs:203:39 [INFO] [stdout] | [INFO] [stdout] 203 | fn resolve_single_expr(&mut self, expr: &Expr) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `evaluate` and `scopes` are never read [INFO] [stdout] --> src/resolver.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Resolver { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 10 | evaluate: Rc>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | scopes: Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/resolver.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Resolver { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | fn visit_block_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn visit_expression_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn visit_function_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn visit_if_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn visit_print_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn visit_return_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn visit_var_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn visit_while_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn visit_assign_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn visit_binary_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn visit_call_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn visit_grouping_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn visit_literal_expr(&mut self, _expr: &Expr) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 154 | [INFO] [stdout] 155 | fn visit_logical_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn visit_unary_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn visit_variable_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | fn resolve(&mut self, stmts: &Vec) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | fn resolve_single_stmt(&mut self, stmt: &Stmt) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 202 | [INFO] [stdout] 203 | fn resolve_single_expr(&mut self, expr: &Expr) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 204 | [INFO] [stdout] 205 | fn resolve_function(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | fn begin_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | fn end_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | fn declare(&mut self, name: &Token) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | fn define(&mut self, name: &Token) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | fn resolve_local(&mut self, expr: &Expr, name: &Token) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `statements` [INFO] [stdout] --> src/resolver.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | Stmt::Block(statements) => (), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_statements` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/resolver.rs:201:39 [INFO] [stdout] | [INFO] [stdout] 201 | fn resolve_single_stmt(&mut self, stmt: &Stmt) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/resolver.rs:203:39 [INFO] [stdout] | [INFO] [stdout] 203 | fn resolve_single_expr(&mut self, expr: &Expr) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `evaluate` and `scopes` are never read [INFO] [stdout] --> src/resolver.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Resolver { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 10 | evaluate: Rc>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | scopes: Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/resolver.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Resolver { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | fn visit_block_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn visit_expression_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn visit_function_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn visit_if_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn visit_print_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn visit_return_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn visit_var_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn visit_while_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn visit_assign_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn visit_binary_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn visit_call_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn visit_grouping_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn visit_literal_expr(&mut self, _expr: &Expr) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 154 | [INFO] [stdout] 155 | fn visit_logical_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn visit_unary_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn visit_variable_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | fn resolve(&mut self, stmts: &Vec) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | fn resolve_single_stmt(&mut self, stmt: &Stmt) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 202 | [INFO] [stdout] 203 | fn resolve_single_expr(&mut self, expr: &Expr) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 204 | [INFO] [stdout] 205 | fn resolve_function(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | fn begin_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | fn end_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | fn declare(&mut self, name: &Token) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | fn define(&mut self, name: &Token) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | fn resolve_local(&mut self, expr: &Expr, name: &Token) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/evaluate.rs:124:31 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn resolve(&mut self, expr: &Expr, depth: usize) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/evaluate.rs:124:44 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn resolve(&mut self, expr: &Expr, depth: usize) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/evaluate.rs:124:31 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn resolve(&mut self, expr: &Expr, depth: usize) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth` [INFO] [stdout] --> src/evaluate.rs:124:44 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn resolve(&mut self, expr: &Expr, depth: usize) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_depth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `statements` [INFO] [stdout] --> src/resolver.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | Stmt::Block(statements) => (), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_statements` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/resolver.rs:201:39 [INFO] [stdout] | [INFO] [stdout] 201 | fn resolve_single_stmt(&mut self, stmt: &Stmt) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/resolver.rs:203:39 [INFO] [stdout] | [INFO] [stdout] 203 | fn resolve_single_expr(&mut self, expr: &Expr) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `evaluate` and `scopes` are never read [INFO] [stdout] --> src/resolver.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Resolver { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 10 | evaluate: Rc>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | scopes: Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/resolver.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Resolver { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | fn visit_block_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn visit_expression_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn visit_function_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn visit_if_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn visit_print_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn visit_return_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn visit_var_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn visit_while_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn visit_assign_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn visit_binary_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn visit_call_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn visit_grouping_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn visit_literal_expr(&mut self, _expr: &Expr) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 154 | [INFO] [stdout] 155 | fn visit_logical_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn visit_unary_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn visit_variable_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | fn resolve(&mut self, stmts: &Vec) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | fn resolve_single_stmt(&mut self, stmt: &Stmt) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 202 | [INFO] [stdout] 203 | fn resolve_single_expr(&mut self, expr: &Expr) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 204 | [INFO] [stdout] 205 | fn resolve_function(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | fn begin_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | fn end_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | fn declare(&mut self, name: &Token) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | fn define(&mut self, name: &Token) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | fn resolve_local(&mut self, expr: &Expr, name: &Token) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `statements` [INFO] [stdout] --> src/resolver.rs:25:25 [INFO] [stdout] | [INFO] [stdout] 25 | Stmt::Block(statements) => (), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_statements` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stmt` [INFO] [stdout] --> src/resolver.rs:201:39 [INFO] [stdout] | [INFO] [stdout] 201 | fn resolve_single_stmt(&mut self, stmt: &Stmt) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_stmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/resolver.rs:203:39 [INFO] [stdout] | [INFO] [stdout] 203 | fn resolve_single_expr(&mut self, expr: &Expr) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `evaluate` and `scopes` are never read [INFO] [stdout] --> src/resolver.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Resolver { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 10 | evaluate: Rc>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | scopes: Vec>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/resolver.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Resolver { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | fn visit_block_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn visit_expression_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn visit_function_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn visit_if_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn visit_print_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn visit_return_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn visit_var_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn visit_while_stmt(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn visit_assign_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn visit_binary_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn visit_call_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn visit_grouping_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn visit_literal_expr(&mut self, _expr: &Expr) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 154 | [INFO] [stdout] 155 | fn visit_logical_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn visit_unary_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn visit_variable_expr(&mut self, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | fn resolve(&mut self, stmts: &Vec) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | fn resolve_single_stmt(&mut self, stmt: &Stmt) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 202 | [INFO] [stdout] 203 | fn resolve_single_expr(&mut self, expr: &Expr) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 204 | [INFO] [stdout] 205 | fn resolve_function(&mut self, stmt: &Stmt) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | fn begin_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | fn end_scope(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 228 | fn declare(&mut self, name: &Token) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | fn define(&mut self, name: &Token) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | fn resolve_local(&mut self, expr: &Expr, name: &Token) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.16s [INFO] running `Command { std: "docker" "inspect" "d06127fb3539012260d03fb9b52f1aabd5e2179b6381744c1c41b4f35a2d4cf4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d06127fb3539012260d03fb9b52f1aabd5e2179b6381744c1c41b4f35a2d4cf4", kill_on_drop: false }` [INFO] [stdout] d06127fb3539012260d03fb9b52f1aabd5e2179b6381744c1c41b4f35a2d4cf4