[INFO] cloning repository https://github.com/Jax-Hax/First-Compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Jax-Hax/First-Compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJax-Hax%2FFirst-Compiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJax-Hax%2FFirst-Compiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a71be2cd0e9fb7ed51e7d4a4138888c34062b988 [INFO] building Jax-Hax/First-Compiler 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%2FJax-Hax%2FFirst-Compiler" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Jax-Hax/First-Compiler 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/Jax-Hax/First-Compiler [INFO] finished tweaking git repo https://github.com/Jax-Hax/First-Compiler [INFO] tweaked toml for git repo https://github.com/Jax-Hax/First-Compiler written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Jax-Hax/First-Compiler 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-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 3c587423df50dde61b1a499b5dadec06e935599eea5e0a8f0aa30256702305b4 [INFO] running `Command { std: "docker" "start" "-a" "3c587423df50dde61b1a499b5dadec06e935599eea5e0a8f0aa30256702305b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3c587423df50dde61b1a499b5dadec06e935599eea5e0a8f0aa30256702305b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c587423df50dde61b1a499b5dadec06e935599eea5e0a8f0aa30256702305b4", kill_on_drop: false }` [INFO] [stdout] 3c587423df50dde61b1a499b5dadec06e935599eea5e0a8f0aa30256702305b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] abfbdc9f6590495ed9c812ca7181ee90443a5ff44615f6d2011d4bdd7098f98f [INFO] running `Command { std: "docker" "start" "-a" "abfbdc9f6590495ed9c812ca7181ee90443a5ff44615f6d2011d4bdd7098f98f", kill_on_drop: false }` [INFO] [stderr] Compiling First-Compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `tok_precedence` [INFO] [stdout] --> src/ast.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let tok_precedence = self.get_tok_precedence(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tok_precedence` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr_precendence` [INFO] [stdout] --> src/ast.rs:91:39 [INFO] [stdout] | [INFO] [stdout] 91 | fn parse_binary_op_rhs(&mut self, expr_precendence: i32, lhs: Node) -> Node { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expr_precendence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/ast.rs:91:62 [INFO] [stdout] | [INFO] [stdout] 91 | fn parse_binary_op_rhs(&mut self, expr_precendence: i32, lhs: Node) -> Node { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | Val(f32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 154 | Val(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `args` are never read [INFO] [stdout] --> src/ast.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 165 | FunctionCall { [INFO] [stdout] | ------------ fields in this variant [INFO] [stdout] 166 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 167 | args: Vec>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:173:14 [INFO] [stdout] | [INFO] [stdout] 173 | Variable(String), [INFO] [stdout] | -------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 173 | Variable(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Eof`, `UnaryExpr`, `BinaryExpr`, and `Function` are never constructed [INFO] [stdout] --> src/ast.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 153 | pub enum Node { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 154 | Val(f32), [INFO] [stdout] 155 | Eof, [INFO] [stdout] | ^^^ [INFO] [stdout] 156 | UnaryExpr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | BinaryExpr { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | Function { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `args` are never read [INFO] [stdout] --> src/ast.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 177 | pub struct FunctionParams { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 178 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 179 | pub args: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionParams` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | for node in nodes { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 20 | while let Some(node) = nodes { [INFO] [stdout] | ~~~~~~~~~~~~~~~ ~~~ [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 20 | if let Some(node) = nodes { [INFO] [stdout] | ~~~~~~~~~~~~ ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "abfbdc9f6590495ed9c812ca7181ee90443a5ff44615f6d2011d4bdd7098f98f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "abfbdc9f6590495ed9c812ca7181ee90443a5ff44615f6d2011d4bdd7098f98f", kill_on_drop: false }` [INFO] [stdout] abfbdc9f6590495ed9c812ca7181ee90443a5ff44615f6d2011d4bdd7098f98f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 08d2a9d3fa7928bd263fd9b044be1e68acad9a83519e4758e7b56fbb0ceff6bb [INFO] running `Command { std: "docker" "start" "-a" "08d2a9d3fa7928bd263fd9b044be1e68acad9a83519e4758e7b56fbb0ceff6bb", kill_on_drop: false }` [INFO] [stderr] Compiling First-Compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `tok_precedence` [INFO] [stdout] --> src/ast.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let tok_precedence = self.get_tok_precedence(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tok_precedence` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr_precendence` [INFO] [stdout] --> src/ast.rs:91:39 [INFO] [stdout] | [INFO] [stdout] 91 | fn parse_binary_op_rhs(&mut self, expr_precendence: i32, lhs: Node) -> Node { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expr_precendence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/ast.rs:91:62 [INFO] [stdout] | [INFO] [stdout] 91 | fn parse_binary_op_rhs(&mut self, expr_precendence: i32, lhs: Node) -> Node { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | Val(f32), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Node` 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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 154 | Val(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `args` are never read [INFO] [stdout] --> src/ast.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 165 | FunctionCall { [INFO] [stdout] | ------------ fields in this variant [INFO] [stdout] 166 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 167 | args: Vec>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:173:14 [INFO] [stdout] | [INFO] [stdout] 173 | Variable(String), [INFO] [stdout] | -------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 173 | Variable(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Eof`, `UnaryExpr`, `BinaryExpr`, and `Function` are never constructed [INFO] [stdout] --> src/ast.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 153 | pub enum Node { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 154 | Val(f32), [INFO] [stdout] 155 | Eof, [INFO] [stdout] | ^^^ [INFO] [stdout] 156 | UnaryExpr { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | BinaryExpr { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | Function { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `args` are never read [INFO] [stdout] --> src/ast.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 177 | pub struct FunctionParams { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 178 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 179 | pub args: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionParams` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/main.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | for node in nodes { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 20 | while let Some(node) = nodes { [INFO] [stdout] | ~~~~~~~~~~~~~~~ ~~~ [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 20 | if let Some(node) = nodes { [INFO] [stdout] | ~~~~~~~~~~~~ ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] running `Command { std: "docker" "inspect" "08d2a9d3fa7928bd263fd9b044be1e68acad9a83519e4758e7b56fbb0ceff6bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08d2a9d3fa7928bd263fd9b044be1e68acad9a83519e4758e7b56fbb0ceff6bb", kill_on_drop: false }` [INFO] [stdout] 08d2a9d3fa7928bd263fd9b044be1e68acad9a83519e4758e7b56fbb0ceff6bb