[INFO] cloning repository https://github.com/khaledtf19/lox-lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/khaledtf19/lox-lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhaledtf19%2Flox-lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhaledtf19%2Flox-lang'... [INFO] [stderr] fatal: write error: No space left on device [INFO] [stderr] fatal: fetch-pack: invalid index-pack output [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/khaledtf19/lox-lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/khaledtf19/lox-lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhaledtf19%2Flox-lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhaledtf19%2Flox-lang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d98a35915e65b6597d8c98f0c5c56bf1f1f1a864 [INFO] checking khaledtf19/lox-lang against master#8f21a5c92ea55c348c275a1bc4fedbdf181e0d64 for pr-143011 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhaledtf19%2Flox-lang" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/khaledtf19/lox-lang [INFO] finished tweaking git repo https://github.com/khaledtf19/lox-lang [INFO] tweaked toml for git repo https://github.com/khaledtf19/lox-lang written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/khaledtf19/lox-lang on toolchain 8f21a5c92ea55c348c275a1bc4fedbdf181e0d64 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8f21a5c92ea55c348c275a1bc4fedbdf181e0d64" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/khaledtf19/lox-lang 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" "+8f21a5c92ea55c348c275a1bc4fedbdf181e0d64" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded text_io v0.1.13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8f21a5c92ea55c348c275a1bc4fedbdf181e0d64" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a29d1ef37046c78298e5dfde9b6510b748d9eec726772b986adc64f11977ca36 [INFO] running `Command { std: "docker" "start" "-a" "a29d1ef37046c78298e5dfde9b6510b748d9eec726772b986adc64f11977ca36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a29d1ef37046c78298e5dfde9b6510b748d9eec726772b986adc64f11977ca36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a29d1ef37046c78298e5dfde9b6510b748d9eec726772b986adc64f11977ca36", kill_on_drop: false }` [INFO] [stdout] a29d1ef37046c78298e5dfde9b6510b748d9eec726772b986adc64f11977ca36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8f21a5c92ea55c348c275a1bc4fedbdf181e0d64" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c60cb42e392eb0c1f06d69d43ce1852b09aec625ce0bbab5c3cc54a350d8878c [INFO] running `Command { std: "docker" "start" "-a" "c60cb42e392eb0c1f06d69d43ce1852b09aec625ce0bbab5c3cc54a350d8878c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Checking text_io v0.1.13 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Checking lox-lang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lox.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut bytes = File::bytes(File::open(file_name)?); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/lox.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut bytes = File::bytes(File::open(file_name)?); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lox.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut bytes = File::bytes(File::open(file_name)?); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lox.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut bytes = File::bytes(File::open(file_name)?); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ast` is never constructed [INFO] [stdout] --> src/ast/ast.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Ast{ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message` is never read [INFO] [stdout] --> src/error.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct RunTimeError { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 28 | pub token: Token, [INFO] [stdout] 29 | pub message: String [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `had_error` and `had_runtime_error` are never read [INFO] [stdout] --> src/lox.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Lox { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 11 | pub had_error: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | pub had_runtime_error: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Lox` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `synchronize` is never used [INFO] [stdout] --> src/parser/parser.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | fn synchronize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_string` are never used [INFO] [stdout] --> src/token.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 129 | impl Token { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 130 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn to_string(self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ast` is never constructed [INFO] [stdout] --> src/ast/ast.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Ast{ [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message` is never read [INFO] [stdout] --> src/error.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct RunTimeError { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 28 | pub token: Token, [INFO] [stdout] 29 | pub message: String [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `had_error` and `had_runtime_error` are never read [INFO] [stdout] --> src/lox.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Lox { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 11 | pub had_error: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | pub had_runtime_error: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Lox` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `synchronize` is never used [INFO] [stdout] --> src/parser/parser.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Parser { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | fn synchronize(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_string` are never used [INFO] [stdout] --> src/token.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 129 | impl Token { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 130 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn to_string(self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | lox.run_prompt(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 33 | let _ = lox.run_prompt(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hadError` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub hadError: bool, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `had_error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visitLitearalExpr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn visitLitearalExpr(&self, expr: LiteralExpr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `visit_litearal_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visitGroupingExpr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn visitGroupingExpr(&self, expr: GroupingExpr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `visit_grouping_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visitUnaryExpr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn visitUnaryExpr(&self, expr: UnaryExpr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `visit_unary_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visitBinaryExpr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn visitBinaryExpr(&self, expr: BinaryExpr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `visit_binary_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isEqual` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | fn isEqual(&self, l: LiteralValue, r: LiteralValue) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numStr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | let numStr = num.to_string(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `num_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `runTimeErro` should have a snake case name [INFO] [stdout] --> src/lox.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn runTimeErro(err: RunTimeError) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `run_time_erro` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | lox.run_prompt(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 33 | let _ = lox.run_prompt(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hadError` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub hadError: bool, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `had_error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visitLitearalExpr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn visitLitearalExpr(&self, expr: LiteralExpr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `visit_litearal_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visitGroupingExpr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn visitGroupingExpr(&self, expr: GroupingExpr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `visit_grouping_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visitUnaryExpr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn visitUnaryExpr(&self, expr: UnaryExpr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `visit_unary_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visitBinaryExpr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn visitBinaryExpr(&self, expr: BinaryExpr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `visit_binary_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isEqual` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | fn isEqual(&self, l: LiteralValue, r: LiteralValue) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_equal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numStr` should have a snake case name [INFO] [stdout] --> src/interpreter.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | let numStr = num.to_string(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `num_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `runTimeErro` should have a snake case name [INFO] [stdout] --> src/lox.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn runTimeErro(err: RunTimeError) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `run_time_erro` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.64s [INFO] running `Command { std: "docker" "inspect" "c60cb42e392eb0c1f06d69d43ce1852b09aec625ce0bbab5c3cc54a350d8878c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c60cb42e392eb0c1f06d69d43ce1852b09aec625ce0bbab5c3cc54a350d8878c", kill_on_drop: false }` [INFO] [stdout] c60cb42e392eb0c1f06d69d43ce1852b09aec625ce0bbab5c3cc54a350d8878c