[INFO] cloning repository https://github.com/bramvdbogaerde/calculator-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bramvdbogaerde/calculator-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbramvdbogaerde%2Fcalculator-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbramvdbogaerde%2Fcalculator-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5be7bd7d2946fb1da15e5adfb767d39e5b1a7dcc [INFO] checking bramvdbogaerde/calculator-rs against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbramvdbogaerde%2Fcalculator-rs" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/bramvdbogaerde/calculator-rs [INFO] finished tweaking git repo https://github.com/bramvdbogaerde/calculator-rs [INFO] tweaked toml for git repo https://github.com/bramvdbogaerde/calculator-rs written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bramvdbogaerde/calculator-rs on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/bramvdbogaerde/calculator-rs 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" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded vob v2.0.4 [INFO] [stderr] Downloaded lrpar v0.5.1 [INFO] [stderr] Downloaded typename v0.1.2 [INFO] [stderr] Downloaded packedvec v1.2.2 [INFO] [stderr] Downloaded rmp v0.8.9 [INFO] [stderr] Downloaded try_from v0.3.2 [INFO] [stderr] Downloaded bincode v1.2.1 [INFO] [stderr] Downloaded lrlex v0.5.1 [INFO] [stderr] Downloaded indexmap v1.3.1 [INFO] [stderr] Downloaded cfgrammar v0.5.1 [INFO] [stderr] Downloaded lrtable v0.5.1 [INFO] [stderr] Downloaded filetime v0.2.8 [INFO] [stderr] Downloaded macro-attr v0.2.0 [INFO] [stderr] Downloaded chrono v0.4.10 [INFO] [stderr] Downloaded cactus v1.0.5 [INFO] [stderr] Downloaded sparsevec v0.1.3 [INFO] [stderr] Downloaded rmp-serde v0.14.0 [INFO] [stderr] Downloaded typename_derive v0.1.4 [INFO] [stderr] Downloaded vergen v2.1.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 458f9e37eca58b375f8da7f65b5958eb864a568e4c08e1deb7aaabaf9ff44c56 [INFO] running `Command { std: "docker" "start" "-a" "458f9e37eca58b375f8da7f65b5958eb864a568e4c08e1deb7aaabaf9ff44c56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "458f9e37eca58b375f8da7f65b5958eb864a568e4c08e1deb7aaabaf9ff44c56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "458f9e37eca58b375f8da7f65b5958eb864a568e4c08e1deb7aaabaf9ff44c56", kill_on_drop: false }` [INFO] [stdout] 458f9e37eca58b375f8da7f65b5958eb864a568e4c08e1deb7aaabaf9ff44c56 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fb235a25a33f5588e1badedcf667eae53dd7983bb85766d417421a54a1e80647 [INFO] running `Command { std: "docker" "start" "-a" "fb235a25a33f5588e1badedcf667eae53dd7983bb85766d417421a54a1e80647", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling syn v1.0.14 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling indexmap v1.3.1 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling backtrace-sys v0.1.32 [INFO] [stderr] Compiling rustc-demangle v0.1.16 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling memchr v2.3.0 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling vob v2.0.4 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling regex-syntax v0.6.14 [INFO] [stderr] Compiling unicode-width v0.1.7 [INFO] [stderr] Checking aho-corasick v0.7.7 [INFO] [stderr] Compiling try_from v0.3.2 [INFO] [stderr] Compiling macro-attr v0.2.0 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling error-chain v0.12.1 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling filetime v0.2.8 [INFO] [stderr] Compiling cactus v1.0.5 [INFO] [stderr] Checking rmp v0.8.9 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling newtype_derive v0.1.6 [INFO] [stderr] Compiling backtrace v0.3.43 [INFO] [stderr] Compiling chrono v0.4.10 [INFO] [stderr] Compiling regex v1.3.4 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling getset v0.0.9 [INFO] [stderr] Compiling typename_derive v0.1.4 [INFO] [stderr] Compiling typename v0.1.2 [INFO] [stderr] Compiling vergen v2.1.3 [INFO] [stderr] Compiling lrpar v0.5.1 [INFO] [stderr] Checking packedvec v1.2.2 [INFO] [stderr] Checking bincode v1.2.1 [INFO] [stderr] Checking rmp-serde v0.14.0 [INFO] [stderr] Checking cfgrammar v0.5.1 [INFO] [stderr] Checking sparsevec v0.1.3 [INFO] [stderr] Checking lrtable v0.5.1 [INFO] [stderr] Checking lrlex v0.5.1 [INFO] [stderr] Compiling calculator-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/eval.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | _ => unreachable!() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/eval.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 5 | &Expr::NumExp(u) => u, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 6 | &Expr::AddExp(ref e1, ref e2) => eval(e1)+eval(e2), [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 7 | &Expr::MulExp(ref e1, ref e2) => eval(e1)*eval(e2), [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 8 | &Expr::DivExp(ref e1, ref e2) => eval(e1)/eval(e2), [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 9 | &Expr::MinusExp(ref e1, ref e2) => eval(e1)-eval(e2), [INFO] [stdout] 10 | _ => unreachable!() [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | let (expr, err) = calc_y::parse(&lexer); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | io::stdout().flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 26 | let _ = io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/eval.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | _ => unreachable!() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/eval.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 5 | &Expr::NumExp(u) => u, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 6 | &Expr::AddExp(ref e1, ref e2) => eval(e1)+eval(e2), [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 7 | &Expr::MulExp(ref e1, ref e2) => eval(e1)*eval(e2), [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 8 | &Expr::DivExp(ref e1, ref e2) => eval(e1)/eval(e2), [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 9 | &Expr::MinusExp(ref e1, ref e2) => eval(e1)-eval(e2), [INFO] [stdout] 10 | _ => unreachable!() [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 18 | let (expr, err) = calc_y::parse(&lexer); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | io::stdout().flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 26 | let _ = io::stdout().flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.54s [INFO] running `Command { std: "docker" "inspect" "fb235a25a33f5588e1badedcf667eae53dd7983bb85766d417421a54a1e80647", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb235a25a33f5588e1badedcf667eae53dd7983bb85766d417421a54a1e80647", kill_on_drop: false }` [INFO] [stdout] fb235a25a33f5588e1badedcf667eae53dd7983bb85766d417421a54a1e80647