[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#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshika-blyat%2Fmath_parser" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shika-blyat/math_parser on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", 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-4/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: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] df6cc75c21f53be41eb139d3a8ca072448864e0fe5ae078bddd4f41a8b492780 [INFO] running `Command { std: "docker" "start" "-a" "df6cc75c21f53be41eb139d3a8ca072448864e0fe5ae078bddd4f41a8b492780", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df6cc75c21f53be41eb139d3a8ca072448864e0fe5ae078bddd4f41a8b492780", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df6cc75c21f53be41eb139d3a8ca072448864e0fe5ae078bddd4f41a8b492780", kill_on_drop: false }` [INFO] [stdout] df6cc75c21f53be41eb139d3a8ca072448864e0fe5ae078bddd4f41a8b492780 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 5c93e8a69eaf41ab2201e924429077047e0a51c80cafd733b2a803ec754f0d2f [INFO] running `Command { std: "docker" "start" "-a" "5c93e8a69eaf41ab2201e924429077047e0a51c80cafd733b2a803ec754f0d2f", kill_on_drop: false }` [INFO] [stderr] Checking 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 `std::result::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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | / assert_eq!( [INFO] [stdout] 130 | | eval_line("let a = 15 * 2;".to_string(), &mut variables), [INFO] [stdout] 131 | | Ok(("".to_string(), 30)) [INFO] [stdout] 132 | | ); [INFO] [stdout] | |__________^ expected `f32`, found integer [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(String, f32), ParserError>` [INFO] [stdout] found enum `std::result::Result<(String, {integer}), _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | assert_eq!(variables, to_compare); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `f32`, found integer [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap<_, f32>` [INFO] [stdout] found struct `HashMap<_, {integer}>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 136 | / assert_eq!( [INFO] [stdout] 137 | | eval_line("(a + 2) * 3".to_string(), &mut variables), [INFO] [stdout] 138 | | Ok(("".to_string(), (30 + 2) * 3)) [INFO] [stdout] 139 | | ); [INFO] [stdout] | |__________^ expected `f32`, found integer [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(String, f32), ParserError>` [INFO] [stdout] found enum `std::result::Result<(String, {integer}), _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/math.rs:394:9 [INFO] [stdout] | [INFO] [stdout] 394 | / assert_eq!( [INFO] [stdout] 395 | | eval_expr("1 + 2 * 3".to_string(), &mut var), [INFO] [stdout] 396 | | Ok(("".to_string(), 1 + 2 * 3)) [INFO] [stdout] 397 | | ); [INFO] [stdout] | |__________^ expected `f32`, found integer [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(String, f32), ParserError>` [INFO] [stdout] found enum `std::result::Result<(String, {integer}), _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/math.rs:398:9 [INFO] [stdout] | [INFO] [stdout] 398 | / assert_eq!( [INFO] [stdout] 399 | | eval_expr("(1 + 2) * 3".to_string(), &mut var), [INFO] [stdout] 400 | | Ok(("".to_string(), (1 + 2) * 3)) [INFO] [stdout] 401 | | ); [INFO] [stdout] | |__________^ expected `f32`, found integer [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(String, f32), ParserError>` [INFO] [stdout] found enum `std::result::Result<(String, {integer}), _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/math.rs:402:9 [INFO] [stdout] | [INFO] [stdout] 402 | / assert_eq!( [INFO] [stdout] 403 | | eval_expr("(12 + (2 - 3)) * ( 5 +(3 / 8)) + 3".to_string(), &mut var), [INFO] [stdout] 404 | | Ok(("".to_string(), (12 + (2 - 3)) * (5 + (3 / 8)) + 3)) [INFO] [stdout] 405 | | ); [INFO] [stdout] | |__________^ expected `f32`, found integer [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result<(String, f32), ParserError>` [INFO] [stdout] found enum `std::result::Result<(String, {integer}), _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [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` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "5c93e8a69eaf41ab2201e924429077047e0a51c80cafd733b2a803ec754f0d2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c93e8a69eaf41ab2201e924429077047e0a51c80cafd733b2a803ec754f0d2f", kill_on_drop: false }` [INFO] [stdout] 5c93e8a69eaf41ab2201e924429077047e0a51c80cafd733b2a803ec754f0d2f