[INFO] cloning repository https://github.com/mcon/craftinginterpreters-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mcon/craftinginterpreters-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmcon%2Fcraftinginterpreters-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmcon%2Fcraftinginterpreters-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7a3f64d224860b6c44a3f5f8eefa775e9b58de37 [INFO] checking mcon/craftinginterpreters-rust against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmcon%2Fcraftinginterpreters-rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mcon/craftinginterpreters-rust on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mcon/craftinginterpreters-rust [INFO] finished tweaking git repo https://github.com/mcon/craftinginterpreters-rust [INFO] tweaked toml for git repo https://github.com/mcon/craftinginterpreters-rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mcon/craftinginterpreters-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 06d3d727012a459ca2e37769296d713f69db2c02f8d5e882e9ee945a7eb9f6a4 [INFO] running `Command { std: "docker" "start" "-a" "06d3d727012a459ca2e37769296d713f69db2c02f8d5e882e9ee945a7eb9f6a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06d3d727012a459ca2e37769296d713f69db2c02f8d5e882e9ee945a7eb9f6a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06d3d727012a459ca2e37769296d713f69db2c02f8d5e882e9ee945a7eb9f6a4", kill_on_drop: false }` [INFO] [stdout] 06d3d727012a459ca2e37769296d713f69db2c02f8d5e882e9ee945a7eb9f6a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d337575910fef1602e02fb8ea90f1b605bac3ff2a09e54b09611d67efcc27848 [INFO] running `Command { std: "docker" "start" "-a" "d337575910fef1602e02fb8ea90f1b605bac3ff2a09e54b09611d67efcc27848", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking argparse v0.2.2 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking loxrust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Identifier` [INFO] [stdout] --> src/interpreter.rs:1:68 [INFO] [stdout] | [INFO] [stdout] 1 | use ast::{Exp, BinaryExp, GroupingExp, UnaryExp, LiteralExp, Stmt, Identifier}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::FromIterator` [INFO] [stdout] --> src/interpreter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::FromIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/interpreter.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::Identifier` [INFO] [stdout] --> src/environment.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ast::Identifier; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/environment.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/environment.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Identifier` [INFO] [stdout] --> src/interpreter.rs:1:68 [INFO] [stdout] | [INFO] [stdout] 1 | use ast::{Exp, BinaryExp, GroupingExp, UnaryExp, LiteralExp, Stmt, Identifier}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::FromIterator` [INFO] [stdout] --> src/interpreter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::FromIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/interpreter.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::Identifier` [INFO] [stdout] --> src/environment.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ast::Identifier; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/environment.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/environment.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:26:64 [INFO] [stdout] | [INFO] [stdout] 26 | fn instances_to_discriminants (items : &'static [A]) -> Box>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 26 | fn instances_to_discriminants (items : &'static [A]) -> Box>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:26:64 [INFO] [stdout] | [INFO] [stdout] 26 | fn instances_to_discriminants (items : &'static [A]) -> Box>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 26 | fn instances_to_discriminants (items : &'static [A]) -> Box>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:94:60 [INFO] [stdout] | [INFO] [stdout] 94 | fn consume_valid_tokens(&mut self, valid_tokens : &mut Iterator>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 94 | fn consume_valid_tokens(&mut self, valid_tokens : &mut dyn Iterator>) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:108:57 [INFO] [stdout] | [INFO] [stdout] 108 | fn execute_level(&mut self, valid_tokens : &mut Box>>, previous_exp : Exp, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 108 | fn execute_level(&mut self, valid_tokens : &mut Box>>, previous_exp : Exp, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:94:60 [INFO] [stdout] | [INFO] [stdout] 94 | fn consume_valid_tokens(&mut self, valid_tokens : &mut Iterator>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 94 | fn consume_valid_tokens(&mut self, valid_tokens : &mut dyn Iterator>) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:109:34 [INFO] [stdout] | [INFO] [stdout] 109 | current_exp_generator : &Fn(&mut Parser, &Token, Exp) -> Result) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 109 | current_exp_generator : &dyn Fn(&mut Parser, &Token, Exp) -> Result) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:108:57 [INFO] [stdout] | [INFO] [stdout] 108 | fn execute_level(&mut self, valid_tokens : &mut Box>>, previous_exp : Exp, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 108 | fn execute_level(&mut self, valid_tokens : &mut Box>>, previous_exp : Exp, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:109:34 [INFO] [stdout] | [INFO] [stdout] 109 | current_exp_generator : &Fn(&mut Parser, &Token, Exp) -> Result) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 109 | current_exp_generator : &dyn Fn(&mut Parser, &Token, Exp) -> Result) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:18:43 [INFO] [stdout] | [INFO] [stdout] 18 | fn matches(&self, valid_tokens : &mut Iterator>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 | fn matches(&self, valid_tokens : &mut dyn Iterator>) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/parser.rs:18:43 [INFO] [stdout] | [INFO] [stdout] 18 | fn matches(&self, valid_tokens : &mut Iterator>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 | fn matches(&self, valid_tokens : &mut dyn Iterator>) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/scanner.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 267 | / match string.parse::() { [INFO] [stdout] 268 | | Ok(result) => return Some(TokenType::Literal(Literal::NUMBER(result))), [INFO] [stdout] 269 | | Err(_) => { [INFO] [stdout] 270 | | self.errors.push(format!("Unable to parse number on line {}", self.line)); [INFO] [stdout] 271 | | return None [INFO] [stdout] 272 | | } [INFO] [stdout] 273 | | } [INFO] [stdout] | |_____________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] ... [INFO] [stdout] 276 | self.errors.push(format!("Unknown error parsing number on line {}", self.line)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/scanner.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 267 | / match string.parse::() { [INFO] [stdout] 268 | | Ok(result) => return Some(TokenType::Literal(Literal::NUMBER(result))), [INFO] [stdout] 269 | | Err(_) => { [INFO] [stdout] 270 | | self.errors.push(format!("Unable to parse number on line {}", self.line)); [INFO] [stdout] 271 | | return None [INFO] [stdout] 272 | | } [INFO] [stdout] 273 | | } [INFO] [stdout] | |_____________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] ... [INFO] [stdout] 276 | self.errors.push(format!("Unknown error parsing number on line {}", self.line)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `character` [INFO] [stdout] --> src/scanner.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | character @ '0'..='9' => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_character` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `character` [INFO] [stdout] --> src/scanner.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | character @ '0'..='9' => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_character` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interpreter.rs:40:28 [INFO] [stdout] | [INFO] [stdout] 40 | stmts_success.map(|x| ()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:106:51 [INFO] [stdout] | [INFO] [stdout] 106 | Token { token_type: TokenType::MINUS, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:106:59 [INFO] [stdout] | [INFO] [stdout] 106 | Token { token_type: TokenType::MINUS, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:110:51 [INFO] [stdout] | [INFO] [stdout] 110 | Token { token_type: TokenType::SLASH, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | Token { token_type: TokenType::SLASH, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:114:50 [INFO] [stdout] | [INFO] [stdout] 114 | Token { token_type: TokenType::STAR, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:114:58 [INFO] [stdout] | [INFO] [stdout] 114 | Token { token_type: TokenType::STAR, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:118:53 [INFO] [stdout] | [INFO] [stdout] 118 | Token { token_type: TokenType::GREATER, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:118:61 [INFO] [stdout] | [INFO] [stdout] 118 | Token { token_type: TokenType::GREATER, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:122:58 [INFO] [stdout] | [INFO] [stdout] 122 | Token { token_type: TokenType::GreaterEqual, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:122:66 [INFO] [stdout] | [INFO] [stdout] 122 | Token { token_type: TokenType::GreaterEqual, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:126:50 [INFO] [stdout] | [INFO] [stdout] 126 | Token { token_type: TokenType::LESS, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:126:58 [INFO] [stdout] | [INFO] [stdout] 126 | Token { token_type: TokenType::LESS, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:130:55 [INFO] [stdout] | [INFO] [stdout] 130 | Token { token_type: TokenType::LessEqual, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:130:63 [INFO] [stdout] | [INFO] [stdout] 130 | Token { token_type: TokenType::LessEqual, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:134:50 [INFO] [stdout] | [INFO] [stdout] 134 | Token { token_type: TokenType::PLUS, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:134:58 [INFO] [stdout] | [INFO] [stdout] 134 | Token { token_type: TokenType::PLUS, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:144:55 [INFO] [stdout] | [INFO] [stdout] 144 | Token { token_type: TokenType::BangEqual, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:144:63 [INFO] [stdout] | [INFO] [stdout] 144 | Token { token_type: TokenType::BangEqual, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:148:56 [INFO] [stdout] | [INFO] [stdout] 148 | Token { token_type: TokenType::EqualEqual, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:148:64 [INFO] [stdout] | [INFO] [stdout] 148 | Token { token_type: TokenType::EqualEqual, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:152:33 [INFO] [stdout] | [INFO] [stdout] 152 | Token { token_type, lexeme, line } => [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interpreter.rs:140:25 [INFO] [stdout] | [INFO] [stdout] 140 | x => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interpreter.rs:40:28 [INFO] [stdout] | [INFO] [stdout] 40 | stmts_success.map(|x| ()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interpreter.rs:99:21 [INFO] [stdout] | [INFO] [stdout] 99 | x => {Err("Non-number values not supported with operator -".to_string())}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l_other` [INFO] [stdout] --> src/interpreter.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | (Ok(l_other), Err(r_other)) => Err(r_other), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_l_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:106:51 [INFO] [stdout] | [INFO] [stdout] 106 | Token { token_type: TokenType::MINUS, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:106:59 [INFO] [stdout] | [INFO] [stdout] 106 | Token { token_type: TokenType::MINUS, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:110:51 [INFO] [stdout] | [INFO] [stdout] 110 | Token { token_type: TokenType::SLASH, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:110:59 [INFO] [stdout] | [INFO] [stdout] 110 | Token { token_type: TokenType::SLASH, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:114:50 [INFO] [stdout] | [INFO] [stdout] 114 | Token { token_type: TokenType::STAR, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:114:58 [INFO] [stdout] | [INFO] [stdout] 114 | Token { token_type: TokenType::STAR, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:118:53 [INFO] [stdout] | [INFO] [stdout] 118 | Token { token_type: TokenType::GREATER, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:118:61 [INFO] [stdout] | [INFO] [stdout] 118 | Token { token_type: TokenType::GREATER, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:122:58 [INFO] [stdout] | [INFO] [stdout] 122 | Token { token_type: TokenType::GreaterEqual, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:122:66 [INFO] [stdout] | [INFO] [stdout] 122 | Token { token_type: TokenType::GreaterEqual, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:126:50 [INFO] [stdout] | [INFO] [stdout] 126 | Token { token_type: TokenType::LESS, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:126:58 [INFO] [stdout] | [INFO] [stdout] 126 | Token { token_type: TokenType::LESS, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:130:55 [INFO] [stdout] | [INFO] [stdout] 130 | Token { token_type: TokenType::LessEqual, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:130:63 [INFO] [stdout] | [INFO] [stdout] 130 | Token { token_type: TokenType::LessEqual, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:134:50 [INFO] [stdout] | [INFO] [stdout] 134 | Token { token_type: TokenType::PLUS, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:134:58 [INFO] [stdout] | [INFO] [stdout] 134 | Token { token_type: TokenType::PLUS, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:144:55 [INFO] [stdout] | [INFO] [stdout] 144 | Token { token_type: TokenType::BangEqual, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:144:63 [INFO] [stdout] | [INFO] [stdout] 144 | Token { token_type: TokenType::BangEqual, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:148:56 [INFO] [stdout] | [INFO] [stdout] 148 | Token { token_type: TokenType::EqualEqual, lexeme, line } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> src/interpreter.rs:148:64 [INFO] [stdout] | [INFO] [stdout] 148 | Token { token_type: TokenType::EqualEqual, lexeme, line } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `line: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lexeme` [INFO] [stdout] --> src/interpreter.rs:152:33 [INFO] [stdout] | [INFO] [stdout] 152 | Token { token_type, lexeme, line } => [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `lexeme: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interpreter.rs:140:25 [INFO] [stdout] | [INFO] [stdout] 140 | x => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/interpreter.rs:99:21 [INFO] [stdout] | [INFO] [stdout] 99 | x => {Err("Non-number values not supported with operator -".to_string())}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `l_other` [INFO] [stdout] --> src/interpreter.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | (Ok(l_other), Err(r_other)) => Err(r_other), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_l_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/parser.rs:295:32 [INFO] [stdout] | [INFO] [stdout] 295 | Err(err) => panic!(err) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 295 | Err(err) => panic!("{}", err) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/parser.rs:332:32 [INFO] [stdout] | [INFO] [stdout] 332 | Err(err) => panic!(err) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 332 | Err(err) => panic!("{}", err) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 39 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.85s [INFO] running `Command { std: "docker" "inspect" "d337575910fef1602e02fb8ea90f1b605bac3ff2a09e54b09611d67efcc27848", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d337575910fef1602e02fb8ea90f1b605bac3ff2a09e54b09611d67efcc27848", kill_on_drop: false }` [INFO] [stdout] d337575910fef1602e02fb8ea90f1b605bac3ff2a09e54b09611d67efcc27848