[INFO] cloning repository https://github.com/luccasmmg/monkey-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/luccasmmg/monkey-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluccasmmg%2Fmonkey-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluccasmmg%2Fmonkey-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 08a0638d5a75400ac6ac32ba6d9b4445dec25026 [INFO] building luccasmmg/monkey-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%2Fluccasmmg%2Fmonkey-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/luccasmmg/monkey-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/luccasmmg/monkey-rust [INFO] finished tweaking git repo https://github.com/luccasmmg/monkey-rust [INFO] tweaked toml for git repo https://github.com/luccasmmg/monkey-rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/luccasmmg/monkey-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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] cb0c6ba3bfc3ea7b4f73493caa60b0cdb66336020dbe0bb9c922cb114d801f88 [INFO] running `Command { std: "docker" "start" "-a" "cb0c6ba3bfc3ea7b4f73493caa60b0cdb66336020dbe0bb9c922cb114d801f88", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cb0c6ba3bfc3ea7b4f73493caa60b0cdb66336020dbe0bb9c922cb114d801f88", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb0c6ba3bfc3ea7b4f73493caa60b0cdb66336020dbe0bb9c922cb114d801f88", kill_on_drop: false }` [INFO] [stdout] cb0c6ba3bfc3ea7b4f73493caa60b0cdb66336020dbe0bb9c922cb114d801f88 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 8e735e03e54473e0177a27ed49e6c503d533610404658737edf0285eafae997f [INFO] running `Command { std: "docker" "start" "-a" "8e735e03e54473e0177a27ed49e6c503d533610404658737edf0285eafae997f", kill_on_drop: false }` [INFO] [stderr] Compiling text_io v0.1.8 [INFO] [stderr] Compiling monkey-interpreter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Lexer` [INFO] [stdout] --> src/parser/parser.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::lexer::lexer::{Lexer, convert_to_tokens}; [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/ast.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::token::Token` [INFO] [stdout] --> src/ast/ast.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::token::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Illegal` is never constructed [INFO] [stdout] --> src/token/token.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Token { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 3 | Illegal, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, 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: associated function `new` is never used [INFO] [stdout] --> src/parser/parser.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Parser { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(input: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/parser/parser.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum Precedence { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 48 | Lowest, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 49 | Equals, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | LessGreater, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 51 | Sum, [INFO] [stdout] | ^^^ [INFO] [stdout] 52 | Product, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 53 | Prefix, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 54 | Call, [INFO] [stdout] | ^^^^ [INFO] [stdout] 55 | Index, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Program` is never constructed [INFO] [stdout] --> src/ast/ast.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Program { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Program { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `BoolLiteral` and `StringLiteral` are never constructed [INFO] [stdout] --> src/ast/ast.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum Literal { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 26 | IntLiteral(i64), [INFO] [stdout] 27 | BoolLiteral(bool), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 28 | StringLiteral(String), [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: variants `PrefixPlus`, `PrefixMinus`, and `Not` are never constructed [INFO] [stdout] --> src/ast/ast.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub enum Prefix { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 39 | PrefixPlus, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 40 | PrefixMinus, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 41 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Prefix` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.88s [INFO] running `Command { std: "docker" "inspect" "8e735e03e54473e0177a27ed49e6c503d533610404658737edf0285eafae997f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e735e03e54473e0177a27ed49e6c503d533610404658737edf0285eafae997f", kill_on_drop: false }` [INFO] [stdout] 8e735e03e54473e0177a27ed49e6c503d533610404658737edf0285eafae997f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 0e357fbda568a57596523437dedb4debdba82ab841e8187f5b37c5ff1070dd0a [INFO] running `Command { std: "docker" "start" "-a" "0e357fbda568a57596523437dedb4debdba82ab841e8187f5b37c5ff1070dd0a", kill_on_drop: false }` [INFO] [stderr] Compiling monkey-interpreter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Lexer` [INFO] [stdout] --> src/parser/parser.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::lexer::lexer::{Lexer, convert_to_tokens}; [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/ast.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::token::Token` [INFO] [stdout] --> src/ast/ast.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::token::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Illegal` is never constructed [INFO] [stdout] --> src/token/token.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Token { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 3 | Illegal, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, 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: multiple variants are never constructed [INFO] [stdout] --> src/parser/parser.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub enum Precedence { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 48 | Lowest, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 49 | Equals, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | LessGreater, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 51 | Sum, [INFO] [stdout] | ^^^ [INFO] [stdout] 52 | Product, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 53 | Prefix, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 54 | Call, [INFO] [stdout] | ^^^^ [INFO] [stdout] 55 | Index, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Program` is never constructed [INFO] [stdout] --> src/ast/ast.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct Program { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/ast.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Program { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `BoolLiteral` and `StringLiteral` are never constructed [INFO] [stdout] --> src/ast/ast.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum Literal { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 26 | IntLiteral(i64), [INFO] [stdout] 27 | BoolLiteral(bool), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 28 | StringLiteral(String), [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: variants `PrefixPlus`, `PrefixMinus`, and `Not` are never constructed [INFO] [stdout] --> src/ast/ast.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub enum Prefix { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 39 | PrefixPlus, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 40 | PrefixMinus, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 41 | Not, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Prefix` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.72s [INFO] running `Command { std: "docker" "inspect" "0e357fbda568a57596523437dedb4debdba82ab841e8187f5b37c5ff1070dd0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e357fbda568a57596523437dedb4debdba82ab841e8187f5b37c5ff1070dd0a", kill_on_drop: false }` [INFO] [stdout] 0e357fbda568a57596523437dedb4debdba82ab841e8187f5b37c5ff1070dd0a