[INFO] cloning repository https://github.com/rjhdby/rust_calculator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rjhdby/rust_calculator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frjhdby%2Frust_calculator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frjhdby%2Frust_calculator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2bd962349fe42b4e3b50e193065841289111fa2b [INFO] testing rjhdby/rust_calculator/2bd962349fe42b4e3b50e193065841289111fa2b against master#9e136a30a965bf4e63f03095c57df7257bf96fd6 for pr-134530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frjhdby%2Frust_calculator" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rjhdby/rust_calculator on toolchain 9e136a30a965bf4e63f03095c57df7257bf96fd6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rjhdby/rust_calculator [INFO] finished tweaking git repo https://github.com/rjhdby/rust_calculator [INFO] tweaked toml for git repo https://github.com/rjhdby/rust_calculator written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/rjhdby/rust_calculator 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" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded strum v0.21.0 [INFO] [stderr] Downloaded strum_macros v0.21.1 [INFO] [stderr] Downloaded az v1.1.1 [INFO] [stderr] Downloaded rug v1.12.0 [INFO] [stderr] Downloaded gmp-mpfr-sys v1.4.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 78e1334f07041557e54ac53b33464ddecebfe26892fa0121f122499c3d81731d [INFO] running `Command { std: "docker" "start" "-a" "78e1334f07041557e54ac53b33464ddecebfe26892fa0121f122499c3d81731d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "78e1334f07041557e54ac53b33464ddecebfe26892fa0121f122499c3d81731d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78e1334f07041557e54ac53b33464ddecebfe26892fa0121f122499c3d81731d", kill_on_drop: false }` [INFO] [stdout] 78e1334f07041557e54ac53b33464ddecebfe26892fa0121f122499c3d81731d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7fcde25317f104fbae937e67cf733606723bf33f2945bc4f76585d08686f2a3b [INFO] running `Command { std: "docker" "start" "-a" "7fcde25317f104fbae937e67cf733606723bf33f2945bc4f76585d08686f2a3b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling gmp-mpfr-sys v1.4.5 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling az v1.1.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling rug v1.12.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling os_str_bytes v2.4.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling textwrap v0.12.1 [INFO] [stderr] Compiling strum v0.21.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Compiling strum_macros v0.21.1 [INFO] [stderr] Compiling clap v3.0.0-beta.2 [INFO] [stderr] Compiling expr_calc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `add` is never used [INFO] [stdout] --> src/ast.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 114 | impl ExprCalculator { [INFO] [stdout] | ------------------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn add( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_value` is never used [INFO] [stdout] --> src/ast.rs:368:12 [INFO] [stdout] | [INFO] [stdout] 356 | impl Token { [INFO] [stdout] | --------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 368 | pub fn get_value(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `F64Handler` is never constructed [INFO] [stdout] --> src/f64_calculator.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct F64Handler {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f64_calculator` is never used [INFO] [stdout] --> src/f64_calculator.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn f64_calculator() -> ExprCalculator { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 28s [INFO] running `Command { std: "docker" "inspect" "7fcde25317f104fbae937e67cf733606723bf33f2945bc4f76585d08686f2a3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7fcde25317f104fbae937e67cf733606723bf33f2945bc4f76585d08686f2a3b", kill_on_drop: false }` [INFO] [stdout] 7fcde25317f104fbae937e67cf733606723bf33f2945bc4f76585d08686f2a3b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 67a86bbe3eb56ce834e980275ab4edc30913817665a4b2718930fbe4a9e6491f [INFO] running `Command { std: "docker" "start" "-a" "67a86bbe3eb56ce834e980275ab4edc30913817665a4b2718930fbe4a9e6491f", kill_on_drop: false }` [INFO] [stderr] Compiling expr_calc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `add` is never used [INFO] [stdout] --> src/ast.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 114 | impl ExprCalculator { [INFO] [stdout] | ------------------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn add( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `F64Handler` is never constructed [INFO] [stdout] --> src/f64_calculator.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct F64Handler {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f64_calculator` is never used [INFO] [stdout] --> src/f64_calculator.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn f64_calculator() -> ExprCalculator { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.48s [INFO] running `Command { std: "docker" "inspect" "67a86bbe3eb56ce834e980275ab4edc30913817665a4b2718930fbe4a9e6491f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67a86bbe3eb56ce834e980275ab4edc30913817665a4b2718930fbe4a9e6491f", kill_on_drop: false }` [INFO] [stdout] 67a86bbe3eb56ce834e980275ab4edc30913817665a4b2718930fbe4a9e6491f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9e136a30a965bf4e63f03095c57df7257bf96fd6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ff86546442dfc1367ab40251db1a7223099ff97440ba02ff993563bea5665555 [INFO] running `Command { std: "docker" "start" "-a" "ff86546442dfc1367ab40251db1a7223099ff97440ba02ff993563bea5665555", kill_on_drop: false }` [INFO] [stderr] warning: method `add` is never used [INFO] [stderr] --> src/ast.rs:122:12 [INFO] [stderr] | [INFO] [stderr] 114 | impl ExprCalculator { [INFO] [stderr] | ------------------------------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 122 | pub fn add( [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `F64Handler` is never constructed [INFO] [stderr] --> src/f64_calculator.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | struct F64Handler {} [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `f64_calculator` is never used [INFO] [stderr] --> src/f64_calculator.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn f64_calculator() -> ExprCalculator { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `expr_calc` (bin "expr_calc" test) generated 3 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/expr_calc-962541c67013ad9d) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test tests::tests::it_calculate ... ok [INFO] [stdout] test tests::tests::it_fails_on_unknown_token ... ok [INFO] [stdout] test tests::tests::it_fails_on_wrong_parenthesis ... ok [INFO] [stdout] test tests::tests::it_fails_on_wrong_primitive ... ok [INFO] [stdout] test tests::tests::it_respect_order ... ok [INFO] [stdout] test tests::tests::it_respect_parenthesis ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "ff86546442dfc1367ab40251db1a7223099ff97440ba02ff993563bea5665555", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff86546442dfc1367ab40251db1a7223099ff97440ba02ff993563bea5665555", kill_on_drop: false }` [INFO] [stdout] ff86546442dfc1367ab40251db1a7223099ff97440ba02ff993563bea5665555