[INFO] cloning repository https://github.com/Ach113/oxa [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ach113/oxa" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAch113%2Foxa", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAch113%2Foxa'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 59b5f1637db5e8d4f1fcdb8c0a68209fa7539154 [INFO] checking Ach113/oxa against master#c5fbcd35a8217a17f6b63a22217ace06cf8f5f02 for pr-86194 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAch113%2Foxa" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Ach113/oxa on toolchain c5fbcd35a8217a17f6b63a22217ace06cf8f5f02 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c5fbcd35a8217a17f6b63a22217ace06cf8f5f02" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Ach113/oxa [INFO] finished tweaking git repo https://github.com/Ach113/oxa [INFO] tweaked toml for git repo https://github.com/Ach113/oxa written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/Ach113/oxa already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c5fbcd35a8217a17f6b63a22217ace06cf8f5f02" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+c5fbcd35a8217a17f6b63a22217ace06cf8f5f02" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 824106c94022920a308c5e51ff20cae057a339070dee8377f479f5330b3435ad [INFO] running `Command { std: "docker" "start" "-a" "824106c94022920a308c5e51ff20cae057a339070dee8377f479f5330b3435ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "824106c94022920a308c5e51ff20cae057a339070dee8377f479f5330b3435ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "824106c94022920a308c5e51ff20cae057a339070dee8377f479f5330b3435ad", kill_on_drop: false }` [INFO] [stdout] 824106c94022920a308c5e51ff20cae057a339070dee8377f479f5330b3435ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+c5fbcd35a8217a17f6b63a22217ace06cf8f5f02" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f2b0122f592398b61bbdaf21dee38bcdeb0b0f7c1a8b1ce36ebdfd7e93d2c95 [INFO] running `Command { std: "docker" "start" "-a" "1f2b0122f592398b61bbdaf21dee38bcdeb0b0f7c1a8b1ce36ebdfd7e93d2c95", kill_on_drop: false }` [INFO] [stderr] Checking oxa v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/scanner.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | while (!self.is_eof() && (self.cell().is_alphabetic() || self.cell().is_digit(10) || self.cell() == '_')) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/scanner.rs:72:15 [INFO] [stdout] | [INFO] [stdout] 72 | while (!self.is_eof() && (self.cell().is_digit(10) || self.cell() == '.')) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/scanner.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 94 | while (!self.next('"') && !self.is_eof()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/scanner.rs:136:15 [INFO] [stdout] | [INFO] [stdout] 136 | match (c) { [INFO] [stdout] | ^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/scanner.rs:183:20 [INFO] [stdout] | [INFO] [stdout] 183 | if (self.next('/')) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/scanner.rs:187:27 [INFO] [stdout] | [INFO] [stdout] 187 | } else if (self.next('*')) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::interpreter::interpret` [INFO] [stdout] --> src/AST.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::interpreter::interpret; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/AST.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/parser.rs:144:15 [INFO] [stdout] | [INFO] [stdout] 144 | while (!self.at_end() && !self.check_type(&TokenType::RIGHT_BRACE)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/parser.rs:339:19 [INFO] [stdout] | [INFO] [stdout] 339 | match (self.peek().t) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/environment.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | match (&mut self.enclosing) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokens::Literal` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tokens::Literal; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 47 | / loop { [INFO] [stdout] 48 | | print!(">> "); [INFO] [stdout] 49 | | std::io::stdout().flush()?; // necessary due to line-buffering of stdout [INFO] [stdout] 50 | | let mut instruction = String::new(); [INFO] [stdout] ... | [INFO] [stdout] 54 | | } [INFO] [stdout] 55 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 56 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/scanner.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | while (!self.is_eof() && (self.cell().is_alphabetic() || self.cell().is_digit(10) || self.cell() == '_')) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/scanner.rs:72:15 [INFO] [stdout] | [INFO] [stdout] 72 | while (!self.is_eof() && (self.cell().is_digit(10) || self.cell() == '.')) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/scanner.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 94 | while (!self.next('"') && !self.is_eof()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/scanner.rs:136:15 [INFO] [stdout] | [INFO] [stdout] 136 | match (c) { [INFO] [stdout] | ^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/scanner.rs:183:20 [INFO] [stdout] | [INFO] [stdout] 183 | if (self.next('/')) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/scanner.rs:187:27 [INFO] [stdout] | [INFO] [stdout] 187 | } else if (self.next('*')) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::interpreter::interpret` [INFO] [stdout] --> src/AST.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::interpreter::interpret; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/AST.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/parser.rs:144:15 [INFO] [stdout] | [INFO] [stdout] 144 | while (!self.at_end() && !self.check_type(&TokenType::RIGHT_BRACE)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/parser.rs:339:19 [INFO] [stdout] | [INFO] [stdout] 339 | match (self.peek().t) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/environment.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | match (&mut self.enclosing) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokens::Literal` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tokens::Literal; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/scanner.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/AST.rs:83:25 [INFO] [stdout] | [INFO] [stdout] 83 | Err(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/AST.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 93 | Err(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/AST.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | Err(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/AST.rs:167:20 [INFO] [stdout] | [INFO] [stdout] 167 | fn eval(&self, env: &mut Environment) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/AST.rs:338:20 [INFO] [stdout] | [INFO] [stdout] 338 | fn eval(&self, env: &mut Environment) -> Result<(), ()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parser.rs:133:25 [INFO] [stdout] | [INFO] [stdout] 133 | Err(e) => Err(()), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/parser.rs:153:16 [INFO] [stdout] | [INFO] [stdout] 153 | Ok(x) => Ok(statements), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parser.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | Err(e) => Err(()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `error_count` is assigned to, but never used [INFO] [stdout] --> src/interpreter.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut error_count = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_error_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 47 | / loop { [INFO] [stdout] 48 | | print!(">> "); [INFO] [stdout] 49 | | std::io::stdout().flush()?; // necessary due to line-buffering of stdout [INFO] [stdout] 50 | | let mut instruction = String::new(); [INFO] [stdout] ... | [INFO] [stdout] 54 | | } [INFO] [stdout] 55 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 56 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `EOF` [INFO] [stdout] --> src/tokens.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | EOF [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `statements` [INFO] [stdout] --> src/AST.rs:328:5 [INFO] [stdout] | [INFO] [stdout] 328 | statements: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains_key` [INFO] [stdout] --> src/environment.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn contains_key(&self, key: &Token) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `AST` should have a snake case name [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | mod AST; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ast` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | run(code); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | std::io::stdin().read_line(&mut instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | run(instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | runfile(&args[1]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | repl(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `equalities` should have an upper case name [INFO] [stdout] --> src/parser.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const equalities: [TokenType; 2] = [TokenType::BANG_EQUAL, TokenType::EQUAL_EQUAL]; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `EQUALITIES` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `comparisons` should have an upper case name [INFO] [stdout] --> src/parser.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const comparisons: [TokenType; 4] = [TokenType::GREATER, TokenType::GREATER_EQUAL, TokenType::LESS, TokenType::LESS_EQUAL]; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `COMPARISONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `terms` should have an upper case name [INFO] [stdout] --> src/parser.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const terms: [TokenType; 2] = [TokenType::PLUS, TokenType::MINUS]; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `TERMS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `factors` should have an upper case name [INFO] [stdout] --> src/parser.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const factors: [TokenType; 2] = [TokenType::STAR, TokenType::SLASH]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `FACTORS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `unaries` should have an upper case name [INFO] [stdout] --> src/parser.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const unaries: [TokenType; 2] = [TokenType::BANG, TokenType::MINUS]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `UNARIES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/scanner.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/AST.rs:83:25 [INFO] [stdout] | [INFO] [stdout] 83 | Err(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/AST.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 93 | Err(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/AST.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | Err(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/AST.rs:167:20 [INFO] [stdout] | [INFO] [stdout] 167 | fn eval(&self, env: &mut Environment) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env` [INFO] [stdout] --> src/AST.rs:338:20 [INFO] [stdout] | [INFO] [stdout] 338 | fn eval(&self, env: &mut Environment) -> Result<(), ()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_env` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parser.rs:133:25 [INFO] [stdout] | [INFO] [stdout] 133 | Err(e) => Err(()), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/parser.rs:153:16 [INFO] [stdout] | [INFO] [stdout] 153 | Ok(x) => Ok(statements), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/parser.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | Err(e) => Err(()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `error_count` is assigned to, but never used [INFO] [stdout] --> src/interpreter.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut error_count = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_error_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `EOF` [INFO] [stdout] --> src/tokens.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | EOF [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `statements` [INFO] [stdout] --> src/AST.rs:328:5 [INFO] [stdout] | [INFO] [stdout] 328 | statements: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contains_key` [INFO] [stdout] --> src/environment.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn contains_key(&self, key: &Token) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `AST` should have a snake case name [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | mod AST; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ast` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | run(code); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | std::io::stdin().read_line(&mut instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | run(instruction); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | runfile(&args[1]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | repl(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `equalities` should have an upper case name [INFO] [stdout] --> src/parser.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const equalities: [TokenType; 2] = [TokenType::BANG_EQUAL, TokenType::EQUAL_EQUAL]; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `EQUALITIES` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `comparisons` should have an upper case name [INFO] [stdout] --> src/parser.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const comparisons: [TokenType; 4] = [TokenType::GREATER, TokenType::GREATER_EQUAL, TokenType::LESS, TokenType::LESS_EQUAL]; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `COMPARISONS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `terms` should have an upper case name [INFO] [stdout] --> src/parser.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const terms: [TokenType; 2] = [TokenType::PLUS, TokenType::MINUS]; [INFO] [stdout] | ^^^^^ help: convert the identifier to upper case: `TERMS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `factors` should have an upper case name [INFO] [stdout] --> src/parser.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const factors: [TokenType; 2] = [TokenType::STAR, TokenType::SLASH]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `FACTORS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `unaries` should have an upper case name [INFO] [stdout] --> src/parser.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const unaries: [TokenType; 2] = [TokenType::BANG, TokenType::MINUS]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `UNARIES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.46s [INFO] running `Command { std: "docker" "inspect" "1f2b0122f592398b61bbdaf21dee38bcdeb0b0f7c1a8b1ce36ebdfd7e93d2c95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f2b0122f592398b61bbdaf21dee38bcdeb0b0f7c1a8b1ce36ebdfd7e93d2c95", kill_on_drop: false }` [INFO] [stdout] 1f2b0122f592398b61bbdaf21dee38bcdeb0b0f7c1a8b1ce36ebdfd7e93d2c95