[INFO] cloning repository https://github.com/mostafahagras/codecrafters-interpreter-rust-incomplete [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mostafahagras/codecrafters-interpreter-rust-incomplete" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmostafahagras%2Fcodecrafters-interpreter-rust-incomplete", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmostafahagras%2Fcodecrafters-interpreter-rust-incomplete'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6964d1f5b4ba75e1aa7e9caddc4fa747fa25c17f [INFO] checking mostafahagras/codecrafters-interpreter-rust-incomplete against master#1f81f906893d166d05fb4839f169983f2b564cc7 for pr-135167 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmostafahagras%2Fcodecrafters-interpreter-rust-incomplete" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mostafahagras/codecrafters-interpreter-rust-incomplete on toolchain 1f81f906893d166d05fb4839f169983f2b564cc7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f81f906893d166d05fb4839f169983f2b564cc7" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mostafahagras/codecrafters-interpreter-rust-incomplete [INFO] finished tweaking git repo https://github.com/mostafahagras/codecrafters-interpreter-rust-incomplete [INFO] tweaked toml for git repo https://github.com/mostafahagras/codecrafters-interpreter-rust-incomplete written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mostafahagras/codecrafters-interpreter-rust-incomplete 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" "+1f81f906893d166d05fb4839f169983f2b564cc7" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+1f81f906893d166d05fb4839f169983f2b564cc7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8bc3737c57bc3044aefa9d6b4aff783a083023a039368dea5c8281327c281a7a [INFO] running `Command { std: "docker" "start" "-a" "8bc3737c57bc3044aefa9d6b4aff783a083023a039368dea5c8281327c281a7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8bc3737c57bc3044aefa9d6b4aff783a083023a039368dea5c8281327c281a7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bc3737c57bc3044aefa9d6b4aff783a083023a039368dea5c8281327c281a7a", kill_on_drop: false }` [INFO] [stdout] 8bc3737c57bc3044aefa9d6b4aff783a083023a039368dea5c8281327c281a7a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+1f81f906893d166d05fb4839f169983f2b564cc7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f7536caec9759c4bc5e0a936a0f7ec48450bd31dea855caab989b3eb87170973 [INFO] running `Command { std: "docker" "start" "-a" "f7536caec9759c4bc5e0a936a0f7ec48450bd31dea855caab989b3eb87170973", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking codecrafters-interpreter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/run/interpreter.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, process::exit}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parse::Expr` [INFO] [stdout] --> src/run/interpreter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parse::Expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/run/interpreter.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, process::exit}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parse::Expr` [INFO] [stdout] --> src/run/interpreter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::parse::Expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parse/operator.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | _ => Err("error".into()), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/parse/operator.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 104 | (Expr::Number(n), Expr::Number(m)) => match self { [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 122 | (Expr::String(left), Expr::String(right)) => match self { [INFO] [stdout] | ----------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 135 | (lhs, rhs) => match self { [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 140 | _ => Err("error".into()), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/parse/operator.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | _ => Err("error".into()), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/parse/operator.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 104 | (Expr::Number(n), Expr::Number(m)) => match self { [INFO] [stdout] | ---------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 122 | (Expr::String(left), Expr::String(right)) => match self { [INFO] [stdout] | ----------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 135 | (lhs, rhs) => match self { [INFO] [stdout] | ---------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 140 | _ => Err("error".into()), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ConstDecl` is never constructed [INFO] [stdout] --> src/parse/expr.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Expr { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 15 | ConstDecl(String, Box), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LogicalAnd`, `LogicalOr`, `BitwiseAnd`, `BitwiseOr`, and `BitwiseXor` are never constructed [INFO] [stdout] --> src/parse/operator.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum BinaryOperator { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | LogicalAnd, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | LogicalOr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | [INFO] [stdout] 13 | BitwiseAnd, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | BitwiseOr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 15 | BitwiseXor, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryOperator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Positive` and `BitwiseNot` are never constructed [INFO] [stdout] --> src/parse/operator.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum UnaryOperator { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 27 | Negative, [INFO] [stdout] 28 | Positive, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | BitwiseNot, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnaryOperator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `functions` is never read [INFO] [stdout] --> src/run/scope.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Scope { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | functions: HashMap, Vec)>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Scope` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `declare_fn` and `call_fn` are never used [INFO] [stdout] --> src/run/scope.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Scope { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn declare_fn( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn call_fn(&mut self, name: String, args: HashMap) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/tokenize/tokenizer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Tokenizer<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 4 | filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ConstDecl` is never constructed [INFO] [stdout] --> src/parse/expr.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Expr { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 15 | ConstDecl(String, Box), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LogicalAnd`, `LogicalOr`, `BitwiseAnd`, `BitwiseOr`, and `BitwiseXor` are never constructed [INFO] [stdout] --> src/parse/operator.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum BinaryOperator { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | LogicalAnd, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 11 | LogicalOr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | [INFO] [stdout] 13 | BitwiseAnd, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | BitwiseOr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 15 | BitwiseXor, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryOperator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Positive` and `BitwiseNot` are never constructed [INFO] [stdout] --> src/parse/operator.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum UnaryOperator { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 27 | Negative, [INFO] [stdout] 28 | Positive, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | BitwiseNot, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnaryOperator` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `functions` is never read [INFO] [stdout] --> src/run/scope.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Scope { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | functions: HashMap, Vec)>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Scope` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `declare_fn` and `call_fn` are never used [INFO] [stdout] --> src/run/scope.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Scope { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn declare_fn( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn call_fn(&mut self, name: String, args: HashMap) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/tokenize/tokenizer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Tokenizer<'a> { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 4 | filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.62s [INFO] running `Command { std: "docker" "inspect" "f7536caec9759c4bc5e0a936a0f7ec48450bd31dea855caab989b3eb87170973", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7536caec9759c4bc5e0a936a0f7ec48450bd31dea855caab989b3eb87170973", kill_on_drop: false }` [INFO] [stdout] f7536caec9759c4bc5e0a936a0f7ec48450bd31dea855caab989b3eb87170973