[INFO] cloning repository https://github.com/ironbody/lox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ironbody/lox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fironbody%2Flox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fironbody%2Flox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 99a21c8c94bcffa5f6be0a738d8efcbb696f4b88 [INFO] checking ironbody/lox against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fironbody%2Flox" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ironbody/lox [INFO] finished tweaking git repo https://github.com/ironbody/lox [INFO] tweaked toml for git repo https://github.com/ironbody/lox written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ironbody/lox on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ironbody/lox 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 950cb0b0c6b0e140f45b329008c8c484814905acb291f6dc956bae9bf6c80859 [INFO] running `Command { std: "docker" "start" "-a" "950cb0b0c6b0e140f45b329008c8c484814905acb291f6dc956bae9bf6c80859", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "950cb0b0c6b0e140f45b329008c8c484814905acb291f6dc956bae9bf6c80859", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "950cb0b0c6b0e140f45b329008c8c484814905acb291f6dc956bae9bf6c80859", kill_on_drop: false }` [INFO] [stdout] 950cb0b0c6b0e140f45b329008c8c484814905acb291f6dc956bae9bf6c80859 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ee268d00fd033ca1213d81db38a46e1876cf8ac66603d5833b3b93285a0fcb79 [INFO] running `Command { std: "docker" "start" "-a" "ee268d00fd033ca1213d81db38a46e1876cf8ac66603d5833b3b93285a0fcb79", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Checking thiserror v1.0.56 [INFO] [stderr] Checking lox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::fmt` [INFO] [stdout] --> src/expr.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::fmt; [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: `token::TokenType` [INFO] [stdout] --> src/interpreter.rs:1:62 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{expr::{Expr, ExpressionVisitor}, object::Object, token::TokenType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs` and `io` [INFO] [stdout] --> src/main.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{env, fs, io, process::exit}; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenType` [INFO] [stdout] --> src/main.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | use token::{Token, TokenType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scanner::Scanner` [INFO] [stdout] --> src/main.rs:18:31 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::{literal::Literal, scanner::Scanner}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::fmt` [INFO] [stdout] --> src/expr.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use core::fmt; [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: `token::TokenType` [INFO] [stdout] --> src/interpreter.rs:1:62 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{expr::{Expr, ExpressionVisitor}, object::Object, token::TokenType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs` and `io` [INFO] [stdout] --> src/main.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use std::{env, fs, io, process::exit}; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenType` [INFO] [stdout] --> src/main.rs:16:20 [INFO] [stdout] | [INFO] [stdout] 16 | use token::{Token, TokenType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `scanner::Scanner` [INFO] [stdout] --> src/main.rs:18:31 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::{literal::Literal, scanner::Scanner}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left` [INFO] [stdout] --> src/interpreter.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | fn visit_binary(&self, left: &crate::expr::Expr, operand: &crate::token::Token, right: &crate::expr::Expr) -> Result src/interpreter.rs:16:54 [INFO] [stdout] | [INFO] [stdout] 16 | fn visit_binary(&self, left: &crate::expr::Expr, operand: &crate::token::Token, right: &crate::expr::Expr) -> Result src/interpreter.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | fn visit_binary(&self, left: &crate::expr::Expr, operand: &crate::token::Token, right: &crate::expr::Expr) -> Result src/interpreter.rs:16:85 [INFO] [stdout] | [INFO] [stdout] 16 | ...perand: &crate::token::Token, right: &crate::expr::Expr) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operand` [INFO] [stdout] --> src/interpreter.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 20 | fn visit_unary(&self, operand: &crate::token::Token, expr: &crate::expr::Expr) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operand` [INFO] [stdout] --> src/interpreter.rs:16:54 [INFO] [stdout] | [INFO] [stdout] 16 | fn visit_binary(&self, left: &crate::expr::Expr, operand: &crate::token::Token, right: &crate::expr::Expr) -> Result src/interpreter.rs:20:58 [INFO] [stdout] | [INFO] [stdout] 20 | fn visit_unary(&self, operand: &crate::token::Token, expr: &crate::expr::Expr) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right` [INFO] [stdout] --> src/interpreter.rs:16:85 [INFO] [stdout] | [INFO] [stdout] 16 | ...perand: &crate::token::Token, right: &crate::expr::Expr) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_right` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ast_printer` is never used [INFO] [stdout] --> src/main.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn test_ast_printer() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `operand` [INFO] [stdout] --> src/interpreter.rs:20:27 [INFO] [stdout] | [INFO] [stdout] 20 | fn visit_unary(&self, operand: &crate::token::Token, expr: &crate::expr::Expr) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operand` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/interpreter.rs:20:58 [INFO] [stdout] | [INFO] [stdout] 20 | fn visit_unary(&self, operand: &crate::token::Token, expr: &crate::expr::Expr) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lox.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | Scanner(Vec), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 11 - Scanner(Vec), [INFO] [stdout] 11 + Scanner(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lox.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | Parser(ParserError), [INFO] [stdout] | ------ ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 12 - Parser(ParserError), [INFO] [stdout] 12 + Parser(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `error`, `report`, and `error_token` are never used [INFO] [stdout] --> src/lox.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl Lox { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | fn error(&mut self, line: usize, message: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn report(&mut self, line: usize, location: &str, message: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn error_token(&mut self, token: &Token, message: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `message` and `token` are never read [INFO] [stdout] --> src/parser.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | Custom { message: String, token: Token }, [INFO] [stdout] | ------ ^^^^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `synchronize` is never used [INFO] [stdout] --> src/parser.rs:204:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 204 | fn synchronize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Object` is never used [INFO] [stdout] --> src/object.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Object{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InterpreterError` is never used [INFO] [stdout] --> src/interpreter.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum InterpreterError{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Interpreter` is never constructed [INFO] [stdout] --> src/interpreter.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Interpreter; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `evaluate` is never used [INFO] [stdout] --> src/interpreter.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Interpreter { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 10 | fn evaluate(&self, expr: &Expr) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ast_printer` is never used [INFO] [stdout] --> src/main.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn test_ast_printer() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lox.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | Scanner(Vec), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 11 - Scanner(Vec), [INFO] [stdout] 11 + Scanner(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lox.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | Parser(ParserError), [INFO] [stdout] | ------ ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [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] 12 - Parser(ParserError), [INFO] [stdout] 12 + Parser(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `error`, `report`, and `error_token` are never used [INFO] [stdout] --> src/lox.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl Lox { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | fn error(&mut self, line: usize, message: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | fn report(&mut self, line: usize, location: &str, message: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn error_token(&mut self, token: &Token, message: &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `message` and `token` are never read [INFO] [stdout] --> src/parser.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | Custom { message: String, token: Token }, [INFO] [stdout] | ------ ^^^^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `synchronize` is never used [INFO] [stdout] --> src/parser.rs:204:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 204 | fn synchronize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Object` is never used [INFO] [stdout] --> src/object.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Object{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InterpreterError` is never used [INFO] [stdout] --> src/interpreter.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum InterpreterError{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Interpreter` is never constructed [INFO] [stdout] --> src/interpreter.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Interpreter; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `evaluate` is never used [INFO] [stdout] --> src/interpreter.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl Interpreter { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 10 | fn evaluate(&self, expr: &Expr) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lox.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | self.run(&content); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 26 | let _ = self.run(&content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lox.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | self.run(&line); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | let _ = self.run(&line); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:10:73 [INFO] [stdout] | [INFO] [stdout] 10 | fn evaluate(&self, expr: &Expr) -> Result { [INFO] [stdout] | _________________________________________________________________________^ [INFO] [stdout] 11 | | expr.accept(self) [INFO] [stdout] 12 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | expr.accept(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:16:148 [INFO] [stdout] | [INFO] [stdout] 16 | fn visit_binary(&self, left: &crate::expr::Expr, operand: &crate::token::Token, right: &crate::expr::Expr) -> Result { [INFO] [stdout] | ____________________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 17 | | todo!() [INFO] [stdout] 18 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:20:120 [INFO] [stdout] | [INFO] [stdout] 20 | fn visit_unary(&self, operand: &crate::token::Token, expr: &crate::expr::Expr) -> Result { [INFO] [stdout] | ________________________________________________________________________________________________________________________^ [INFO] [stdout] 21 | | todo!() [INFO] [stdout] ... | [INFO] [stdout] 27 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:29:100 [INFO] [stdout] | [INFO] [stdout] 29 | fn visit_literal(&self, literal: &crate::literal::Literal) -> Result { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 30 | | Ok(Object::Literal(literal.clone())) [INFO] [stdout] 31 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | Ok(Object::Literal(literal.clone())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:33:92 [INFO] [stdout] | [INFO] [stdout] 33 | fn visit_grouping(&self, expr: &crate::expr::Expr) -> Result { [INFO] [stdout] | ____________________________________________________________________________________________^ [INFO] [stdout] 34 | | self.evaluate(expr) [INFO] [stdout] 35 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | self.evaluate(expr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lox.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | self.run(&content); [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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 26 | let _ = self.run(&content); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lox.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | self.run(&line); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | let _ = self.run(&line); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:10:73 [INFO] [stdout] | [INFO] [stdout] 10 | fn evaluate(&self, expr: &Expr) -> Result { [INFO] [stdout] | _________________________________________________________________________^ [INFO] [stdout] 11 | | expr.accept(self) [INFO] [stdout] 12 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | expr.accept(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:16:148 [INFO] [stdout] | [INFO] [stdout] 16 | fn visit_binary(&self, left: &crate::expr::Expr, operand: &crate::token::Token, right: &crate::expr::Expr) -> Result { [INFO] [stdout] | ____________________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 17 | | todo!() [INFO] [stdout] 18 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:20:120 [INFO] [stdout] | [INFO] [stdout] 20 | fn visit_unary(&self, operand: &crate::token::Token, expr: &crate::expr::Expr) -> Result { [INFO] [stdout] | ________________________________________________________________________________________________________________________^ [INFO] [stdout] 21 | | todo!() [INFO] [stdout] ... | [INFO] [stdout] 27 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:29:100 [INFO] [stdout] | [INFO] [stdout] 29 | fn visit_literal(&self, literal: &crate::literal::Literal) -> Result { [INFO] [stdout] | ____________________________________________________________________________________________________^ [INFO] [stdout] 30 | | Ok(Object::Literal(literal.clone())) [INFO] [stdout] 31 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | Ok(Object::Literal(literal.clone())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:33:92 [INFO] [stdout] | [INFO] [stdout] 33 | fn visit_grouping(&self, expr: &crate::expr::Expr) -> Result { [INFO] [stdout] | ____________________________________________________________________________________________^ [INFO] [stdout] 34 | | self.evaluate(expr) [INFO] [stdout] 35 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/interpreter.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | self.evaluate(expr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lox` (bin "lox") due to 8 previous errors; 22 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `lox` (bin "lox" test) due to 8 previous errors; 22 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ee268d00fd033ca1213d81db38a46e1876cf8ac66603d5833b3b93285a0fcb79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee268d00fd033ca1213d81db38a46e1876cf8ac66603d5833b3b93285a0fcb79", kill_on_drop: false }` [INFO] [stdout] ee268d00fd033ca1213d81db38a46e1876cf8ac66603d5833b3b93285a0fcb79