[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] building mcon/craftinginterpreters-rust against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmcon%2Fcraftinginterpreters-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/mcon/craftinginterpreters-rust on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-7-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 55e9ebd8d58c61188a0f9fc7ce772ba659da055bd2140575b88828bb63353a5d [INFO] running `Command { std: "docker" "start" "-a" "55e9ebd8d58c61188a0f9fc7ce772ba659da055bd2140575b88828bb63353a5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "55e9ebd8d58c61188a0f9fc7ce772ba659da055bd2140575b88828bb63353a5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55e9ebd8d58c61188a0f9fc7ce772ba659da055bd2140575b88828bb63353a5d", kill_on_drop: false }` [INFO] [stdout] 55e9ebd8d58c61188a0f9fc7ce772ba659da055bd2140575b88828bb63353a5d [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9b06a8fe70bed507efdb7ca102be5dca188a68fbd0641b2412e382f1d071f079 [INFO] running `Command { std: "docker" "start" "-a" "9b06a8fe70bed507efdb7ca102be5dca188a68fbd0641b2412e382f1d071f079", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling argparse v0.2.2 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling 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: 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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] ... | [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: `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: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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.95s [INFO] running `Command { std: "docker" "inspect" "9b06a8fe70bed507efdb7ca102be5dca188a68fbd0641b2412e382f1d071f079", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b06a8fe70bed507efdb7ca102be5dca188a68fbd0641b2412e382f1d071f079", kill_on_drop: false }` [INFO] [stdout] 9b06a8fe70bed507efdb7ca102be5dca188a68fbd0641b2412e382f1d071f079 [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1eb8e7659a8cd3ee7c69eb925545c92435e6fa2d571d998db7f17b0d809d4299 [INFO] running `Command { std: "docker" "start" "-a" "1eb8e7659a8cd3ee7c69eb925545c92435e6fa2d571d998db7f17b0d809d4299", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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] ... | [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: `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] [stderr] Compiling loxrust v0.1.0 (/opt/rustwide/workdir) [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: 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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] ... | [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: `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: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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.46s [INFO] running `Command { std: "docker" "inspect" "1eb8e7659a8cd3ee7c69eb925545c92435e6fa2d571d998db7f17b0d809d4299", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1eb8e7659a8cd3ee7c69eb925545c92435e6fa2d571d998db7f17b0d809d4299", kill_on_drop: false }` [INFO] [stdout] 1eb8e7659a8cd3ee7c69eb925545c92435e6fa2d571d998db7f17b0d809d4299