[INFO] cloning repository https://github.com/MountainSnowGifu/lox-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MountainSnowGifu/lox-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMountainSnowGifu%2Flox-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMountainSnowGifu%2Flox-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0dbdc60578fc41837405e38add70cbe2e1302637 [INFO] checking MountainSnowGifu/lox-rust/0dbdc60578fc41837405e38add70cbe2e1302637 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMountainSnowGifu%2Flox-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MountainSnowGifu/lox-rust on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MountainSnowGifu/lox-rust [INFO] finished tweaking git repo https://github.com/MountainSnowGifu/lox-rust [INFO] tweaked toml for git repo https://github.com/MountainSnowGifu/lox-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MountainSnowGifu/lox-rust 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5f67ebd78cb93f2818a50f8ececff462cc677c26fa401337bdb11699910ec6d0 [INFO] running `Command { std: "docker" "start" "-a" "5f67ebd78cb93f2818a50f8ececff462cc677c26fa401337bdb11699910ec6d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5f67ebd78cb93f2818a50f8ececff462cc677c26fa401337bdb11699910ec6d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f67ebd78cb93f2818a50f8ececff462cc677c26fa401337bdb11699910ec6d0", kill_on_drop: false }` [INFO] [stdout] 5f67ebd78cb93f2818a50f8ececff462cc677c26fa401337bdb11699910ec6d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0dceb5ada15e627110c925f313376061b288ddd9303eca554960c832f57cf513 [INFO] running `Command { std: "docker" "start" "-a" "0dceb5ada15e627110c925f313376061b288ddd9303eca554960c832f57cf513", kill_on_drop: false }` [INFO] [stderr] Checking rust_lox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast_printer.rs:57:34 [INFO] [stdout] | [INFO] [stdout] 57 | fn visit_variable(&mut self, name: &Token) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast_printer.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 61 | fn visit_assign(&mut self, name: &Token, value: &Expr) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ast_printer.rs:61:46 [INFO] [stdout] | [INFO] [stdout] 61 | fn visit_assign(&mut self, name: &Token, value: &Expr) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> src/ast_printer.rs:65:33 [INFO] [stdout] | [INFO] [stdout] 65 | fn visit_logical(&mut self, left: &Expr, operator: &Token, right: &Expr) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operator` [INFO] [stdout] --> src/ast_printer.rs:65:46 [INFO] [stdout] | [INFO] [stdout] 65 | fn visit_logical(&mut self, left: &Expr, operator: &Token, right: &Expr) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/ast_printer.rs:65:64 [INFO] [stdout] | [INFO] [stdout] 65 | fn visit_logical(&mut self, left: &Expr, operator: &Token, right: &Expr) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> src/ast_printer.rs:69:30 [INFO] [stdout] | [INFO] [stdout] 69 | fn visit_call(&mut self, callee: &Expr, paren: &Token, arguments: &[Expr]) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_callee` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/ast_printer.rs:69:45 [INFO] [stdout] | [INFO] [stdout] 69 | fn visit_call(&mut self, callee: &Expr, paren: &Token, arguments: &[Expr]) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_paren` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/ast_printer.rs:69:60 [INFO] [stdout] | [INFO] [stdout] 69 | fn visit_call(&mut self, callee: &Expr, paren: &Token, arguments: &[Expr]) -> String { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/ast_printer.rs:73:29 [INFO] [stdout] | [INFO] [stdout] 73 | fn visit_get(&mut self, object: &Expr, name: &Token) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast_printer.rs:73:44 [INFO] [stdout] | [INFO] [stdout] 73 | fn visit_get(&mut self, object: &Expr, name: &Token) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/ast_printer.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | fn visit_set(&mut self, object: &Expr, name: &Token, value: &Expr) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast_printer.rs:77:44 [INFO] [stdout] | [INFO] [stdout] 77 | fn visit_set(&mut self, object: &Expr, name: &Token, value: &Expr) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ast_printer.rs:77:58 [INFO] [stdout] | [INFO] [stdout] 77 | fn visit_set(&mut self, object: &Expr, name: &Token, value: &Expr) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/ast_printer.rs:81:30 [INFO] [stdout] | [INFO] [stdout] 81 | fn visit_this(&mut self, keyword: &Token) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/ast_printer.rs:85:31 [INFO] [stdout] | [INFO] [stdout] 85 | fn visit_super(&mut self, keyword: &Token, method: &Token) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/ast_printer.rs:85:48 [INFO] [stdout] | [INFO] [stdout] 85 | fn visit_super(&mut self, keyword: &Token, method: &Token) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast_printer.rs:102:34 [INFO] [stdout] | [INFO] [stdout] 102 | fn visit_var_stmt(&mut self, name: &Token, initializer: &Expr) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initializer` [INFO] [stdout] --> src/ast_printer.rs:102:48 [INFO] [stdout] | [INFO] [stdout] 102 | fn visit_var_stmt(&mut self, name: &Token, initializer: &Expr) -> String { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initializer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `statements` [INFO] [stdout] --> src/ast_printer.rs:106:36 [INFO] [stdout] | [INFO] [stdout] 106 | fn visit_block_stmt(&mut self, statements: &[Stmt]) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_statements` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `condition` [INFO] [stdout] --> src/ast_printer.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | condition: &Expr, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_condition` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `then_branch` [INFO] [stdout] --> src/ast_printer.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | then_branch: &Stmt, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_then_branch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `else_branch` [INFO] [stdout] --> src/ast_printer.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | else_branch: &Option>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_else_branch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `condition` [INFO] [stdout] --> src/ast_printer.rs:119:36 [INFO] [stdout] | [INFO] [stdout] 119 | fn visit_while_stmt(&mut self, condition: &Expr, body: &Stmt) -> String { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_condition` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/ast_printer.rs:119:54 [INFO] [stdout] | [INFO] [stdout] 119 | fn visit_while_stmt(&mut self, condition: &Expr, body: &Stmt) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast_printer.rs:123:39 [INFO] [stdout] | [INFO] [stdout] 123 | fn visit_function_stmt(&mut self, name: &Token, params: &[Token], body: &[Stmt]) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/ast_printer.rs:123:53 [INFO] [stdout] | [INFO] [stdout] 123 | fn visit_function_stmt(&mut self, name: &Token, params: &[Token], body: &[Stmt]) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/ast_printer.rs:123:71 [INFO] [stdout] | [INFO] [stdout] 123 | fn visit_function_stmt(&mut self, name: &Token, params: &[Token], body: &[Stmt]) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/ast_printer.rs:127:37 [INFO] [stdout] | [INFO] [stdout] 127 | fn visit_return_stmt(&mut self, keyword: &Token, value: &Expr) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ast_printer.rs:127:54 [INFO] [stdout] | [INFO] [stdout] 127 | fn visit_return_stmt(&mut self, keyword: &Token, value: &Expr) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast_printer.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | name: &Token, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_class` [INFO] [stdout] --> src/ast_printer.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | super_class: &Option, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_class` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `methods` [INFO] [stdout] --> src/ast_printer.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | methods: &[Stmt], [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_methods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interpreter.rs:432:13 [INFO] [stdout] | [INFO] [stdout] 432 | let result = self.evaluate(expression)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast_printer.rs:57:34 [INFO] [stdout] | [INFO] [stdout] 57 | fn visit_variable(&mut self, name: &Token) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast_printer.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 61 | fn visit_assign(&mut self, name: &Token, value: &Expr) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ast_printer.rs:61:46 [INFO] [stdout] | [INFO] [stdout] 61 | fn visit_assign(&mut self, name: &Token, value: &Expr) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> src/ast_printer.rs:65:33 [INFO] [stdout] | [INFO] [stdout] 65 | fn visit_logical(&mut self, left: &Expr, operator: &Token, right: &Expr) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operator` [INFO] [stdout] --> src/ast_printer.rs:65:46 [INFO] [stdout] | [INFO] [stdout] 65 | fn visit_logical(&mut self, left: &Expr, operator: &Token, right: &Expr) -> String { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/ast_printer.rs:65:64 [INFO] [stdout] | [INFO] [stdout] 65 | fn visit_logical(&mut self, left: &Expr, operator: &Token, right: &Expr) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> src/ast_printer.rs:69:30 [INFO] [stdout] | [INFO] [stdout] 69 | fn visit_call(&mut self, callee: &Expr, paren: &Token, arguments: &[Expr]) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_callee` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren` [INFO] [stdout] --> src/ast_printer.rs:69:45 [INFO] [stdout] | [INFO] [stdout] 69 | fn visit_call(&mut self, callee: &Expr, paren: &Token, arguments: &[Expr]) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_paren` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/ast_printer.rs:69:60 [INFO] [stdout] | [INFO] [stdout] 69 | fn visit_call(&mut self, callee: &Expr, paren: &Token, arguments: &[Expr]) -> String { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/ast_printer.rs:73:29 [INFO] [stdout] | [INFO] [stdout] 73 | fn visit_get(&mut self, object: &Expr, name: &Token) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast_printer.rs:73:44 [INFO] [stdout] | [INFO] [stdout] 73 | fn visit_get(&mut self, object: &Expr, name: &Token) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `object` [INFO] [stdout] --> src/ast_printer.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | fn visit_set(&mut self, object: &Expr, name: &Token, value: &Expr) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_object` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast_printer.rs:77:44 [INFO] [stdout] | [INFO] [stdout] 77 | fn visit_set(&mut self, object: &Expr, name: &Token, value: &Expr) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ast_printer.rs:77:58 [INFO] [stdout] | [INFO] [stdout] 77 | fn visit_set(&mut self, object: &Expr, name: &Token, value: &Expr) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/ast_printer.rs:81:30 [INFO] [stdout] | [INFO] [stdout] 81 | fn visit_this(&mut self, keyword: &Token) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/ast_printer.rs:85:31 [INFO] [stdout] | [INFO] [stdout] 85 | fn visit_super(&mut self, keyword: &Token, method: &Token) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/ast_printer.rs:85:48 [INFO] [stdout] | [INFO] [stdout] 85 | fn visit_super(&mut self, keyword: &Token, method: &Token) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast_printer.rs:102:34 [INFO] [stdout] | [INFO] [stdout] 102 | fn visit_var_stmt(&mut self, name: &Token, initializer: &Expr) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initializer` [INFO] [stdout] --> src/ast_printer.rs:102:48 [INFO] [stdout] | [INFO] [stdout] 102 | fn visit_var_stmt(&mut self, name: &Token, initializer: &Expr) -> String { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initializer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `statements` [INFO] [stdout] --> src/ast_printer.rs:106:36 [INFO] [stdout] | [INFO] [stdout] 106 | fn visit_block_stmt(&mut self, statements: &[Stmt]) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_statements` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `condition` [INFO] [stdout] --> src/ast_printer.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | condition: &Expr, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_condition` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `then_branch` [INFO] [stdout] --> src/ast_printer.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | then_branch: &Stmt, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_then_branch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `else_branch` [INFO] [stdout] --> src/ast_printer.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | else_branch: &Option>, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_else_branch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `condition` [INFO] [stdout] --> src/ast_printer.rs:119:36 [INFO] [stdout] | [INFO] [stdout] 119 | fn visit_while_stmt(&mut self, condition: &Expr, body: &Stmt) -> String { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_condition` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/ast_printer.rs:119:54 [INFO] [stdout] | [INFO] [stdout] 119 | fn visit_while_stmt(&mut self, condition: &Expr, body: &Stmt) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast_printer.rs:123:39 [INFO] [stdout] | [INFO] [stdout] 123 | fn visit_function_stmt(&mut self, name: &Token, params: &[Token], body: &[Stmt]) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `params` [INFO] [stdout] --> src/ast_printer.rs:123:53 [INFO] [stdout] | [INFO] [stdout] 123 | fn visit_function_stmt(&mut self, name: &Token, params: &[Token], body: &[Stmt]) -> String { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/ast_printer.rs:123:71 [INFO] [stdout] | [INFO] [stdout] 123 | fn visit_function_stmt(&mut self, name: &Token, params: &[Token], body: &[Stmt]) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keyword` [INFO] [stdout] --> src/ast_printer.rs:127:37 [INFO] [stdout] | [INFO] [stdout] 127 | fn visit_return_stmt(&mut self, keyword: &Token, value: &Expr) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keyword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/ast_printer.rs:127:54 [INFO] [stdout] | [INFO] [stdout] 127 | fn visit_return_stmt(&mut self, keyword: &Token, value: &Expr) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/ast_printer.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | name: &Token, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_class` [INFO] [stdout] --> src/ast_printer.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | super_class: &Option, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_class` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `methods` [INFO] [stdout] --> src/ast_printer.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | methods: &[Stmt], [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_methods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_prompt` is never used [INFO] [stdout] --> src/main.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn run_prompt() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print` and `print_statements` are never used [INFO] [stdout] --> src/ast_printer.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl AstPrinter { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 11 | pub fn print(&mut self, expr: Expr) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn print_statements(&mut self, statements: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_values` is never used [INFO] [stdout] --> src/environment.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Environment { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn print_values(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/error.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | ParseError(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 6 | ParseError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/error.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | RuntimeError(Token, String), [INFO] [stdout] | ------------ ^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 7 | RuntimeError((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/error.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | ResolveError(Token, String), [INFO] [stdout] | ------------ ^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 8 | ResolveError((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ParserError(String); [INFO] [stdout] | ----------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `ParserError` 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: unused variable: `result` [INFO] [stdout] --> src/interpreter.rs:432:13 [INFO] [stdout] | [INFO] [stdout] 432 | let result = self.evaluate(expression)?; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/parser.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | self.consume(TokenType::IDENTIFIER, "Expect superclass name."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 59 | let _ = self.consume(TokenType::IDENTIFIER, "Expect superclass name."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_prompt` is never used [INFO] [stdout] --> src/main.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn run_prompt() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print` and `print_statements` are never used [INFO] [stdout] --> src/ast_printer.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl AstPrinter { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 11 | pub fn print(&mut self, expr: Expr) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn print_statements(&mut self, statements: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_values` is never used [INFO] [stdout] --> src/environment.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Environment { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn print_values(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/error.rs:6:16 [INFO] [stdout] | [INFO] [stdout] 6 | ParseError(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 6 | ParseError(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/error.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | RuntimeError(Token, String), [INFO] [stdout] | ------------ ^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 7 | RuntimeError((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/error.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | ResolveError(Token, String), [INFO] [stdout] | ------------ ^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 8 | ResolveError((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/parser.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ParserError(String); [INFO] [stdout] | ----------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `ParserError` 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: unused `std::result::Result` that must be used [INFO] [stdout] --> src/parser.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | self.consume(TokenType::IDENTIFIER, "Expect superclass name."); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 59 | let _ = self.consume(TokenType::IDENTIFIER, "Expect superclass name."); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 42 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.39s [INFO] running `Command { std: "docker" "inspect" "0dceb5ada15e627110c925f313376061b288ddd9303eca554960c832f57cf513", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0dceb5ada15e627110c925f313376061b288ddd9303eca554960c832f57cf513", kill_on_drop: false }` [INFO] [stdout] 0dceb5ada15e627110c925f313376061b288ddd9303eca554960c832f57cf513