[INFO] cloning repository https://github.com/shika-blyat/math_parser [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shika-blyat/math_parser" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshika-blyat%2Fmath_parser", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshika-blyat%2Fmath_parser'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b78f2904280e7d02f0227d2bd51ef5744295c9d8 [INFO] building shika-blyat/math_parser 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%2Fshika-blyat%2Fmath_parser" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shika-blyat/math_parser 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/shika-blyat/math_parser [INFO] finished tweaking git repo https://github.com/shika-blyat/math_parser [INFO] tweaked toml for git repo https://github.com/shika-blyat/math_parser written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/shika-blyat/math_parser 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-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ea8a648a951886a9d7cd2944a0e019eebc10bbbe7ae6d31f109d92ee29e42d1 [INFO] running `Command { std: "docker" "start" "-a" "8ea8a648a951886a9d7cd2944a0e019eebc10bbbe7ae6d31f109d92ee29e42d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ea8a648a951886a9d7cd2944a0e019eebc10bbbe7ae6d31f109d92ee29e42d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ea8a648a951886a9d7cd2944a0e019eebc10bbbe7ae6d31f109d92ee29e42d1", kill_on_drop: false }` [INFO] [stdout] 8ea8a648a951886a9d7cd2944a0e019eebc10bbbe7ae6d31f109d92ee29e42d1 [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 -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] 91cc8dba972ff0ce43d22bb85d28d6d0e6bd01e50c85c20abc802b6e90f19439 [INFO] running `Command { std: "docker" "start" "-a" "91cc8dba972ff0ce43d22bb85d28d6d0e6bd01e50c85c20abc802b6e90f19439", kill_on_drop: false }` [INFO] [stderr] Compiling cmd_parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/math.rs:250:21 [INFO] [stdout] | [INFO] [stdout] 250 | Number::F32(num) => match operand2 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/math.rs:251:25 [INFO] [stdout] | [INFO] [stdout] 251 | Number::F32(num) => Ok(Type::F32), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/math.rs:263:25 [INFO] [stdout] | [INFO] [stdout] 263 | Number::F32(num) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | eval_line(input.to_string(), &mut variables); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 117 | let _ = eval_line(input.to_string(), &mut variables); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/common.rs:95:36 [INFO] [stdout] | [INFO] [stdout] 95 | let chars_to_match = s_to_match.clone().chars(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.61s [INFO] running `Command { std: "docker" "inspect" "91cc8dba972ff0ce43d22bb85d28d6d0e6bd01e50c85c20abc802b6e90f19439", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91cc8dba972ff0ce43d22bb85d28d6d0e6bd01e50c85c20abc802b6e90f19439", kill_on_drop: false }` [INFO] [stdout] 91cc8dba972ff0ce43d22bb85d28d6d0e6bd01e50c85c20abc802b6e90f19439 [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 -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] b147cd95154b68187de119bf4d5b6aba2da03f99efaf802424ea9cef80612e18 [INFO] running `Command { std: "docker" "start" "-a" "b147cd95154b68187de119bf4d5b6aba2da03f99efaf802424ea9cef80612e18", kill_on_drop: false }` [INFO] [stderr] Compiling cmd_parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/math.rs:396:13 [INFO] [stdout] | [INFO] [stdout] 396 | Ok(("".to_string(), 1 + 2 * 3)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(String, f32), ParserError>`, found `Result<(String, {integer}), _>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(String, f32), ParserError>` [INFO] [stdout] found enum `Result<(String, {integer}), _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/math.rs:400:13 [INFO] [stdout] | [INFO] [stdout] 400 | Ok(("".to_string(), (1 + 2) * 3)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(String, f32), ParserError>`, found `Result<(String, {integer}), _>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(String, f32), ParserError>` [INFO] [stdout] found enum `Result<(String, {integer}), _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/math.rs:404:13 [INFO] [stdout] | [INFO] [stdout] 404 | Ok(("".to_string(), (12 + (2 - 3)) * (5 + (3 / 8)) + 3)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(String, f32), ParserError>`, found `Result<(String, {integer}), _>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(String, f32), ParserError>` [INFO] [stdout] found enum `Result<(String, {integer}), _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:131:13 [INFO] [stdout] | [INFO] [stdout] 131 | Ok(("".to_string(), 30)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(String, f32), ParserError>`, found `Result<(String, {integer}), _>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(String, f32), ParserError>` [INFO] [stdout] found enum `Result<(String, {integer}), _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:135:31 [INFO] [stdout] | [INFO] [stdout] 134 | to_compare.insert("a".to_string(), 30); [INFO] [stdout] | ---------- -- this argument has type `{integer}`... [INFO] [stdout] | | [INFO] [stdout] | ... which causes `to_compare` to have type `HashMap` [INFO] [stdout] 135 | assert_eq!(variables, to_compare); [INFO] [stdout] | ^^^^^^^^^^ expected `HashMap`, found `HashMap` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap<_, f32>` [INFO] [stdout] found struct `HashMap<_, {integer}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | Ok(("".to_string(), (30 + 2) * 3)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(String, f32), ParserError>`, found `Result<(String, {integer}), _>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(String, f32), ParserError>` [INFO] [stdout] found enum `Result<(String, {integer}), _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/math.rs:250:21 [INFO] [stdout] | [INFO] [stdout] 250 | Number::F32(num) => match operand2 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/math.rs:251:25 [INFO] [stdout] | [INFO] [stdout] 251 | Number::F32(num) => Ok(Type::F32), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/math.rs:263:25 [INFO] [stdout] | [INFO] [stdout] 263 | Number::F32(num) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cmd_parser` (bin "cmd_parser" test) due to 6 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b147cd95154b68187de119bf4d5b6aba2da03f99efaf802424ea9cef80612e18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b147cd95154b68187de119bf4d5b6aba2da03f99efaf802424ea9cef80612e18", kill_on_drop: false }` [INFO] [stdout] b147cd95154b68187de119bf4d5b6aba2da03f99efaf802424ea9cef80612e18