[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] checking shika-blyat/math_parser against master#c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 for pr-141352 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshika-blyat%2Fmath_parser" "/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/shika-blyat/math_parser on toolchain c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "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-3-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" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2097a5f8b0cc88f83d8720990f57cf398c33d653b4b99d70378089e820b069d7 [INFO] running `Command { std: "docker" "start" "-a" "2097a5f8b0cc88f83d8720990f57cf398c33d653b4b99d70378089e820b069d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2097a5f8b0cc88f83d8720990f57cf398c33d653b4b99d70378089e820b069d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2097a5f8b0cc88f83d8720990f57cf398c33d653b4b99d70378089e820b069d7", kill_on_drop: false }` [INFO] [stdout] 2097a5f8b0cc88f83d8720990f57cf398c33d653b4b99d70378089e820b069d7 [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" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7fc9f44e26a0c871a48328ed345559515d1cee2a9cfe1654e414b987c423cb6b [INFO] running `Command { std: "docker" "start" "-a" "7fc9f44e26a0c871a48328ed345559515d1cee2a9cfe1654e414b987c423cb6b", kill_on_drop: false }` [INFO] [stderr] Checking 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] 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] [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" "7fc9f44e26a0c871a48328ed345559515d1cee2a9cfe1654e414b987c423cb6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7fc9f44e26a0c871a48328ed345559515d1cee2a9cfe1654e414b987c423cb6b", kill_on_drop: false }` [INFO] [stdout] 7fc9f44e26a0c871a48328ed345559515d1cee2a9cfe1654e414b987c423cb6b