[INFO] cloning repository https://github.com/shevlfs/rustcompiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shevlfs/rustcompiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshevlfs%2Frustcompiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshevlfs%2Frustcompiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6e91d1333554f59280f97f112d2c5b54cfba7e27 [INFO] building shevlfs/rustcompiler 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%2Fshevlfs%2Frustcompiler" "/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/shevlfs/rustcompiler 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/shevlfs/rustcompiler [INFO] finished tweaking git repo https://github.com/shevlfs/rustcompiler [INFO] tweaked toml for git repo https://github.com/shevlfs/rustcompiler written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/shevlfs/rustcompiler 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded text_io v0.1.12 [INFO] [stderr] Downloaded prev-iter v0.1.2 [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] 6e5dfcc3b80714e69e03c1a69aa0545136a0c7f1dd2fbd43ab9a7a0b036f82e5 [INFO] running `Command { std: "docker" "start" "-a" "6e5dfcc3b80714e69e03c1a69aa0545136a0c7f1dd2fbd43ab9a7a0b036f82e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6e5dfcc3b80714e69e03c1a69aa0545136a0c7f1dd2fbd43ab9a7a0b036f82e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e5dfcc3b80714e69e03c1a69aa0545136a0c7f1dd2fbd43ab9a7a0b036f82e5", kill_on_drop: false }` [INFO] [stdout] 6e5dfcc3b80714e69e03c1a69aa0545136a0c7f1dd2fbd43ab9a7a0b036f82e5 [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] ffa0ce89b7ef7e9b52d36cca1963f8165cddbf287a3feb6a7c7fe7ca28b848f9 [INFO] running `Command { std: "docker" "start" "-a" "ffa0ce89b7ef7e9b52d36cca1963f8165cddbf287a3feb6a7c7fe7ca28b848f9", kill_on_drop: false }` [INFO] [stderr] Compiling prev-iter v0.1.2 [INFO] [stderr] Compiling text_io v0.1.12 [INFO] [stderr] Compiling rustcompiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BufRead` and `self` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Peekable` [INFO] [stdout] --> src/token.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::iter::{Peekable, Iterator}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type parameter `iter` should have an upper camel case name [INFO] [stdout] --> src/token.rs:282:19 [INFO] [stdout] | [INFO] [stdout] 282 | fn parsebinop<'a, iter: Iterator>(left: &Expression, right: &mut prev_iter::PrevPeekable, cur: &Token, opscount: &m... [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `arg` is never read [INFO] [stdout] --> src/token.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | let mut arg = String::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fnm` is never read [INFO] [stdout] --> src/token.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let mut fnm = String::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fnmfound` is never read [INFO] [stdout] --> src/token.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 81 | fnmfound = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fnm` [INFO] [stdout] --> src/token.rs:86:33 [INFO] [stdout] | [INFO] [stdout] 86 | let mut fnm = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fnm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fnmfound` is never read [INFO] [stdout] --> src/token.rs:89:25 [INFO] [stdout] | [INFO] [stdout] 89 | fnmfound = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fnm` [INFO] [stdout] --> src/token.rs:110:33 [INFO] [stdout] | [INFO] [stdout] 110 | let mut fnm = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fnm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fnmfound` is never read [INFO] [stdout] --> src/token.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | fnmfound = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fnm` [INFO] [stdout] --> src/token.rs:138:33 [INFO] [stdout] | [INFO] [stdout] 138 | let mut fnm = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fnm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fnmfound` is never read [INFO] [stdout] --> src/token.rs:145:25 [INFO] [stdout] | [INFO] [stdout] 145 | fnmfound = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fnm` [INFO] [stdout] --> src/token.rs:166:33 [INFO] [stdout] | [INFO] [stdout] 166 | let mut fnm = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fnm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fnmfound` is never read [INFO] [stdout] --> src/token.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 173 | fnmfound = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fnm` [INFO] [stdout] --> src/token.rs:194:33 [INFO] [stdout] | [INFO] [stdout] 194 | let mut fnm = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fnm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/token.rs:86:29 [INFO] [stdout] | [INFO] [stdout] 86 | let mut fnm = String::new(); [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/token.rs:110:29 [INFO] [stdout] | [INFO] [stdout] 110 | let mut fnm = String::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/token.rs:138:29 [INFO] [stdout] | [INFO] [stdout] 138 | let mut fnm = String::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/token.rs:166:29 [INFO] [stdout] | [INFO] [stdout] 166 | let mut fnm = String::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/token.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | let mut fnm = String::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numscount` is assigned to, but never used [INFO] [stdout] --> src/token.rs:339:13 [INFO] [stdout] | [INFO] [stdout] 339 | let mut numscount = 7; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_numscount` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kword` [INFO] [stdout] --> src/token.rs:367:21 [INFO] [stdout] | [INFO] [stdout] 367 | let kword = token.clone(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_kword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `numscount` is never read [INFO] [stdout] --> src/token.rs:371:21 [INFO] [stdout] | [INFO] [stdout] 371 | numscount = 1; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/token.rs:270:12 [INFO] [stdout] | [INFO] [stdout] 270 | Stdout(Box), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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] 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] 270 | Stdout(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/token.rs:272:10 [INFO] [stdout] | [INFO] [stdout] 272 | Math(Box ,char, Box), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 272 | Math(() ,(), ()), [INFO] [stdout] | ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/token.rs:273:16 [INFO] [stdout] | [INFO] [stdout] 273 | Assignment(Box ,String), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 273 | Assignment(() ,()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/token.rs:274:10 [INFO] [stdout] | [INFO] [stdout] 274 | Eqls(Box, Box), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 274 | Eqls((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/token.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | Literal(String), [INFO] [stdout] | ------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are 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] 275 | Literal(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/token.rs:277:9 [INFO] [stdout] | [INFO] [stdout] 277 | Num(f64), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are 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] 277 | Num(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/token.rs:278:13 [INFO] [stdout] | [INFO] [stdout] 278 | VarName(String), [INFO] [stdout] | ------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are 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] 278 | VarName(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/token.rs:279:13 [INFO] [stdout] | [INFO] [stdout] 279 | Vartype(String), [INFO] [stdout] | ------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are 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] 279 | Vartype(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ParseError` is never constructed [INFO] [stdout] --> src/token.rs:276:5 [INFO] [stdout] | [INFO] [stdout] 269 | pub enum Expression{ [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 276 | ParseError(), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: using `.clone()` on a double reference, which returns `&Token` instead of cloning the inner type [INFO] [stdout] --> src/token.rs:283:44 [INFO] [stdout] | [INFO] [stdout] 283 | let prevel = right.prev_peek().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&Token` instead of cloning the inner type [INFO] [stdout] --> src/token.rs:284:38 [INFO] [stdout] | [INFO] [stdout] 284 | let nxtel = right.peek().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&Token` instead of cloning the inner type [INFO] [stdout] --> src/token.rs:361:71 [INFO] [stdout] | [INFO] [stdout] 361 | if let Token::Word(content) = iterator.peek().unwrap().clone(){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.57s [INFO] running `Command { std: "docker" "inspect" "ffa0ce89b7ef7e9b52d36cca1963f8165cddbf287a3feb6a7c7fe7ca28b848f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffa0ce89b7ef7e9b52d36cca1963f8165cddbf287a3feb6a7c7fe7ca28b848f9", kill_on_drop: false }` [INFO] [stdout] ffa0ce89b7ef7e9b52d36cca1963f8165cddbf287a3feb6a7c7fe7ca28b848f9 [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] 3103350c716f89a8976d80530c972edd453a93b7794d776e6b4067efa2ad4803 [INFO] running `Command { std: "docker" "start" "-a" "3103350c716f89a8976d80530c972edd453a93b7794d776e6b4067efa2ad4803", kill_on_drop: false }` [INFO] [stderr] Compiling rustcompiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `BufRead` and `self` [INFO] [stdout] --> src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Peekable` [INFO] [stdout] --> src/token.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::iter::{Peekable, Iterator}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type parameter `iter` should have an upper camel case name [INFO] [stdout] --> src/token.rs:282:19 [INFO] [stdout] | [INFO] [stdout] 282 | fn parsebinop<'a, iter: Iterator>(left: &Expression, right: &mut prev_iter::PrevPeekable, cur: &Token, opscount: &m... [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `arg` is never read [INFO] [stdout] --> src/token.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | let mut arg = String::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fnm` is never read [INFO] [stdout] --> src/token.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let mut fnm = String::new(); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fnmfound` is never read [INFO] [stdout] --> src/token.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 81 | fnmfound = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fnm` [INFO] [stdout] --> src/token.rs:86:33 [INFO] [stdout] | [INFO] [stdout] 86 | let mut fnm = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fnm` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fnmfound` is never read [INFO] [stdout] --> src/token.rs:89:25 [INFO] [stdout] | [INFO] [stdout] 89 | fnmfound = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fnm` [INFO] [stdout] --> src/token.rs:110:33 [INFO] [stdout] | [INFO] [stdout] 110 | let mut fnm = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fnm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fnmfound` is never read [INFO] [stdout] --> src/token.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 117 | fnmfound = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fnm` [INFO] [stdout] --> src/token.rs:138:33 [INFO] [stdout] | [INFO] [stdout] 138 | let mut fnm = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fnm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fnmfound` is never read [INFO] [stdout] --> src/token.rs:145:25 [INFO] [stdout] | [INFO] [stdout] 145 | fnmfound = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fnm` [INFO] [stdout] --> src/token.rs:166:33 [INFO] [stdout] | [INFO] [stdout] 166 | let mut fnm = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fnm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fnmfound` is never read [INFO] [stdout] --> src/token.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 173 | fnmfound = true; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fnm` [INFO] [stdout] --> src/token.rs:194:33 [INFO] [stdout] | [INFO] [stdout] 194 | let mut fnm = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fnm` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/token.rs:86:29 [INFO] [stdout] | [INFO] [stdout] 86 | let mut fnm = String::new(); [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/token.rs:110:29 [INFO] [stdout] | [INFO] [stdout] 110 | let mut fnm = String::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/token.rs:138:29 [INFO] [stdout] | [INFO] [stdout] 138 | let mut fnm = String::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/token.rs:166:29 [INFO] [stdout] | [INFO] [stdout] 166 | let mut fnm = String::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/token.rs:194:29 [INFO] [stdout] | [INFO] [stdout] 194 | let mut fnm = String::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numscount` is assigned to, but never used [INFO] [stdout] --> src/token.rs:339:13 [INFO] [stdout] | [INFO] [stdout] 339 | let mut numscount = 7; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_numscount` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kword` [INFO] [stdout] --> src/token.rs:367:21 [INFO] [stdout] | [INFO] [stdout] 367 | let kword = token.clone(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_kword` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `numscount` is never read [INFO] [stdout] --> src/token.rs:371:21 [INFO] [stdout] | [INFO] [stdout] 371 | numscount = 1; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/token.rs:270:12 [INFO] [stdout] | [INFO] [stdout] 270 | Stdout(Box), [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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] 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] 270 | Stdout(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/token.rs:272:10 [INFO] [stdout] | [INFO] [stdout] 272 | Math(Box ,char, Box), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 272 | Math(() ,(), ()), [INFO] [stdout] | ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/token.rs:273:16 [INFO] [stdout] | [INFO] [stdout] 273 | Assignment(Box ,String), [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 273 | Assignment(() ,()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/token.rs:274:10 [INFO] [stdout] | [INFO] [stdout] 274 | Eqls(Box, Box), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 274 | Eqls((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/token.rs:275:13 [INFO] [stdout] | [INFO] [stdout] 275 | Literal(String), [INFO] [stdout] | ------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are 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] 275 | Literal(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/token.rs:277:9 [INFO] [stdout] | [INFO] [stdout] 277 | Num(f64), [INFO] [stdout] | --- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are 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] 277 | Num(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/token.rs:278:13 [INFO] [stdout] | [INFO] [stdout] 278 | VarName(String), [INFO] [stdout] | ------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are 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] 278 | VarName(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/token.rs:279:13 [INFO] [stdout] | [INFO] [stdout] 279 | Vartype(String), [INFO] [stdout] | ------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has derived impls for the traits `Clone` and `Debug`, but these are 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] 279 | Vartype(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ParseError` is never constructed [INFO] [stdout] --> src/token.rs:276:5 [INFO] [stdout] | [INFO] [stdout] 269 | pub enum Expression{ [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 276 | ParseError(), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` 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: using `.clone()` on a double reference, which returns `&Token` instead of cloning the inner type [INFO] [stdout] --> src/token.rs:283:44 [INFO] [stdout] | [INFO] [stdout] 283 | let prevel = right.prev_peek().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&Token` instead of cloning the inner type [INFO] [stdout] --> src/token.rs:284:38 [INFO] [stdout] | [INFO] [stdout] 284 | let nxtel = right.peek().unwrap().clone(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&Token` instead of cloning the inner type [INFO] [stdout] --> src/token.rs:361:71 [INFO] [stdout] | [INFO] [stdout] 361 | if let Token::Word(content) = iterator.peek().unwrap().clone(){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `Command { std: "docker" "inspect" "3103350c716f89a8976d80530c972edd453a93b7794d776e6b4067efa2ad4803", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3103350c716f89a8976d80530c972edd453a93b7794d776e6b4067efa2ad4803", kill_on_drop: false }` [INFO] [stdout] 3103350c716f89a8976d80530c972edd453a93b7794d776e6b4067efa2ad4803