[INFO] cloning repository https://github.com/samueleresca/craftinginterpreters-in-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/samueleresca/craftinginterpreters-in-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamueleresca%2Fcraftinginterpreters-in-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamueleresca%2Fcraftinginterpreters-in-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fc0e0d9d13070984128421d60a87b19b809732b6 [INFO] checking samueleresca/craftinginterpreters-in-rust against master#74c3f5a146860c94ff4d179fc3bfa34f879adf41 for pr-120248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamueleresca%2Fcraftinginterpreters-in-rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/samueleresca/craftinginterpreters-in-rust on toolchain 74c3f5a146860c94ff4d179fc3bfa34f879adf41 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+74c3f5a146860c94ff4d179fc3bfa34f879adf41" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/samueleresca/craftinginterpreters-in-rust [INFO] finished tweaking git repo https://github.com/samueleresca/craftinginterpreters-in-rust [INFO] tweaked toml for git repo https://github.com/samueleresca/craftinginterpreters-in-rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/samueleresca/craftinginterpreters-in-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" "+74c3f5a146860c94ff4d179fc3bfa34f879adf41" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking samueleresca/craftinginterpreters-in-rust against try#13cae6066db2d5e6c9bb508caceec8d34ca49980 for pr-120248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamueleresca%2Fcraftinginterpreters-in-rust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/samueleresca/craftinginterpreters-in-rust on toolchain 13cae6066db2d5e6c9bb508caceec8d34ca49980 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+13cae6066db2d5e6c9bb508caceec8d34ca49980" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/samueleresca/craftinginterpreters-in-rust [INFO] finished tweaking git repo https://github.com/samueleresca/craftinginterpreters-in-rust [INFO] tweaked toml for git repo https://github.com/samueleresca/craftinginterpreters-in-rust written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/samueleresca/craftinginterpreters-in-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" "+13cae6066db2d5e6c9bb508caceec8d34ca49980" "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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+13cae6066db2d5e6c9bb508caceec8d34ca49980" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f648b7f51f977ec0d02405a48ccb6ead092746b2d570c79f885340ee5f879bda [INFO] running `Command { std: "docker" "start" "-a" "f648b7f51f977ec0d02405a48ccb6ead092746b2d570c79f885340ee5f879bda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f648b7f51f977ec0d02405a48ccb6ead092746b2d570c79f885340ee5f879bda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f648b7f51f977ec0d02405a48ccb6ead092746b2d570c79f885340ee5f879bda", kill_on_drop: false }` [INFO] [stdout] f648b7f51f977ec0d02405a48ccb6ead092746b2d570c79f885340ee5f879bda [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+13cae6066db2d5e6c9bb508caceec8d34ca49980" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d30cb8743d4aceb14ebc5c583cebb584c6c61632137ad5bd6979e2d571e2ea96 [INFO] running `Command { std: "docker" "start" "-a" "d30cb8743d4aceb14ebc5c583cebb584c6c61632137ad5bd6979e2d571e2ea96", kill_on_drop: false }` [INFO] [stderr] Checking lox-in-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/errors.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 11 | impl CompileError { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 12 | pub(crate) fn new(line: usize, location: String, message: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `error` is never used [INFO] [stdout] --> src/errors.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) trait WithError { [INFO] [stdout] | --------- associated function in this trait [INFO] [stdout] 22 | fn error(error: CompileError) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Literal` is never used [INFO] [stdout] --> src/expr.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Literal { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Literal` 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: enum `Expr` is never used [INFO] [stdout] --> src/expr.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) enum Expr{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | / generate_expr![ [INFO] [stdout] 30 | | Binary => (Expr, Token, Expr), [INFO] [stdout] 31 | | Grouping => (Expr, Expr), [INFO] [stdout] 32 | | Unary => (Token, Expr) [INFO] [stdout] 33 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `generate_expr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tokens`, `source`, `start`, `current`, `line`, and `keywords` are never read [INFO] [stdout] --> src/scanner.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct Scanner { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 13 | tokens: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | source: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | start: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | current: usize, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | line: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | keywords: HashMap, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Scanner` 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: multiple associated items are never used [INFO] [stdout] --> src/scanner.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Scanner { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 24 | pub fn new(source: String) -> Scanner { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn scan_tokens(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | fn is_at_end(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn scan_token(&mut self) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | fn add_token(&mut self, r#type: token::TokenType) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | fn add_token_literal(&mut self, r#type: token::TokenType, literal: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | fn advance(&mut self) -> char { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 195 | fn parse_string(&mut self) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | fn parse_number(&mut self) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | fn parse_identifier(&mut self) -> Result<(), CompileError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | fn match_token(&mut self, expected: char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | fn is_digit(c: Option) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | fn is_alpha(c: Option) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 307 | fn is_alphanumeric(c: Option) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 311 | fn peek(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | fn peek_next(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/token.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 5 | // Single-character token. [INFO] [stdout] 6 | LeftParen, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | RightParen, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | LeftBrace, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | RightBrace, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | Comma, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | Dot, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | Plus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | Semicolon, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 15 | Slash, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | Star, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | // One or two character tokens. [INFO] [stdout] 18 | Bang, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | BangEqual, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | Equal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 21 | EqualEqual, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 22 | Greater, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | GreaterEqual, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 24 | Less, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | LessEqual, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 26 | // Literals. [INFO] [stdout] 27 | Identifier, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 28 | StringValue, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | Number, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 30 | // Keywords. [INFO] [stdout] 31 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 32 | Class, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 33 | Else, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | False, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 35 | Fun, [INFO] [stdout] | ^^^ [INFO] [stdout] 36 | For, [INFO] [stdout] | ^^^ [INFO] [stdout] 37 | If, [INFO] [stdout] | ^^ [INFO] [stdout] 38 | Nil, [INFO] [stdout] | ^^^ [INFO] [stdout] 39 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] 40 | Print, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 41 | Return, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | Super, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 43 | This, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | True, [INFO] [stdout] | ^^^^ [INFO] [stdout] 45 | Var, [INFO] [stdout] | ^^^ [INFO] [stdout] 46 | While, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 47 | [INFO] [stdout] 48 | Eof, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` 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 `Identifier`, `Str`, and `Number` are never constructed [INFO] [stdout] --> src/token.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub enum Literal { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 53 | Identifier(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 54 | Str(String), [INFO] [stdout] | ^^^ [INFO] [stdout] 55 | Number(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Literal` 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 `line` is never read [INFO] [stdout] --> src/token.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub(crate) struct Token { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 63 | pub line: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` 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: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Literal` is never used [INFO] [stdout] --> src/expr.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Literal { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Literal` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expr` is never used [INFO] [stdout] --> src/expr.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) enum Expr{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | / generate_expr![ [INFO] [stdout] 30 | | Binary => (Expr, Token, Expr), [INFO] [stdout] 31 | | Grouping => (Expr, Expr), [INFO] [stdout] 32 | | Unary => (Token, Expr) [INFO] [stdout] 33 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `generate_expr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `line` is never read [INFO] [stdout] --> src/token.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub(crate) struct Token { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 63 | pub line: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` 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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.09s [INFO] running `Command { std: "docker" "inspect" "d30cb8743d4aceb14ebc5c583cebb584c6c61632137ad5bd6979e2d571e2ea96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d30cb8743d4aceb14ebc5c583cebb584c6c61632137ad5bd6979e2d571e2ea96", kill_on_drop: false }` [INFO] [stdout] d30cb8743d4aceb14ebc5c583cebb584c6c61632137ad5bd6979e2d571e2ea96