[INFO] cloning repository https://github.com/TyomoGit/simple-calc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TyomoGit/simple-calc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyomoGit%2Fsimple-calc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyomoGit%2Fsimple-calc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ecdd1490098d98853a4e08890ae545f5ae94d8ea [INFO] checking TyomoGit/simple-calc/ecdd1490098d98853a4e08890ae545f5ae94d8ea against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyomoGit%2Fsimple-calc" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TyomoGit/simple-calc on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TyomoGit/simple-calc [INFO] finished tweaking git repo https://github.com/TyomoGit/simple-calc [INFO] tweaked toml for git repo https://github.com/TyomoGit/simple-calc written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/TyomoGit/simple-calc 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3adf024e94f15e5eeb4d3473b8112d46cacd4ef0a47c8dd5e7778acb6bb401e4 [INFO] running `Command { std: "docker" "start" "-a" "3adf024e94f15e5eeb4d3473b8112d46cacd4ef0a47c8dd5e7778acb6bb401e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3adf024e94f15e5eeb4d3473b8112d46cacd4ef0a47c8dd5e7778acb6bb401e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3adf024e94f15e5eeb4d3473b8112d46cacd4ef0a47c8dd5e7778acb6bb401e4", kill_on_drop: false }` [INFO] [stdout] 3adf024e94f15e5eeb4d3473b8112d46cacd4ef0a47c8dd5e7778acb6bb401e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb77d89f0c584d712b0fcc5bf02538403a5b3d641cbcd833116dbe847efddac5 [INFO] running `Command { std: "docker" "start" "-a" "eb77d89f0c584d712b0fcc5bf02538403a5b3d641cbcd833116dbe847efddac5", kill_on_drop: false }` [INFO] [stderr] Checking simple-calc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Write` and `self` [INFO] [stdout] --> src/main.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::{self, Write, Read}, env::args, fs::File}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write` and `self` [INFO] [stdout] --> src/main.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::{self, Write, Read}, env::args, fs::File}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | _ => Primitive::Number(0.0) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 105 | Primitive::Number(n) => Primitive::Number(*n), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 106 | Primitive::Boolean(b) => Primitive::Boolean(*b), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 107 | Primitive::String(s) => Primitive::String(s.clone()), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 108 | _ => Primitive::Number(0.0) [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | _ => Primitive::Number(0.0) [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 105 | Primitive::Number(n) => Primitive::Number(*n), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 106 | Primitive::Boolean(b) => Primitive::Boolean(*b), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 107 | Primitive::String(s) => Primitive::String(s.clone()), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 108 | _ => Primitive::Number(0.0) [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack` is never read [INFO] [stdout] --> src/interpreter.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | stack: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PostfixExpr` is never constructed [INFO] [stdout] --> src/parse.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum Expr { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 52 | PostfixExpr { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: variant `Postfix` is never constructed [INFO] [stdout] --> src/parse.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub enum Precedence { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 94 | Postfix, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Precedence` 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 `While`, `Break`, and `Continue` are never constructed [INFO] [stdout] --> src/token.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 114 | pub enum Reserved { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 134 | While, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Reserved` 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: method `is_peeking` is never used [INFO] [stdout] --> src/token.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 159 | impl Lexer { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn is_peeking(&self, c: &char) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Object` is never used [INFO] [stdout] --> src/types.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Object { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stack` is never read [INFO] [stdout] --> src/interpreter.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | stack: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PostfixExpr` is never constructed [INFO] [stdout] --> src/parse.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum Expr { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 52 | PostfixExpr { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` 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: variant `Postfix` is never constructed [INFO] [stdout] --> src/parse.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub enum Precedence { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 94 | Postfix, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Precedence` 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 `While`, `Break`, and `Continue` are never constructed [INFO] [stdout] --> src/token.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 114 | pub enum Reserved { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 134 | While, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | Continue, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Reserved` 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: method `is_peeking` is never used [INFO] [stdout] --> src/token.rs:331:12 [INFO] [stdout] | [INFO] [stdout] 159 | impl Lexer { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn is_peeking(&self, c: &char) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Object` is never used [INFO] [stdout] --> src/types.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Object { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] running `Command { std: "docker" "inspect" "eb77d89f0c584d712b0fcc5bf02538403a5b3d641cbcd833116dbe847efddac5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb77d89f0c584d712b0fcc5bf02538403a5b3d641cbcd833116dbe847efddac5", kill_on_drop: false }` [INFO] [stdout] eb77d89f0c584d712b0fcc5bf02538403a5b3d641cbcd833116dbe847efddac5