[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 try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [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 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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-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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d9688b50ebe55a756076bd05d42b775f4e5d10e53600c6f0105a818e4216febd [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d9688b50ebe55a756076bd05d42b775f4e5d10e53600c6f0105a818e4216febd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d9688b50ebe55a756076bd05d42b775f4e5d10e53600c6f0105a818e4216febd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9688b50ebe55a756076bd05d42b775f4e5d10e53600c6f0105a818e4216febd", kill_on_drop: false }` [INFO] [stdout] d9688b50ebe55a756076bd05d42b775f4e5d10e53600c6f0105a818e4216febd [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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5383120e6735631235b981906708ffd1d406160782dab08fadce5aab126b1408 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5383120e6735631235b981906708ffd1d406160782dab08fadce5aab126b1408", 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 `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 `Result<(String, f32), ParserError>` [INFO] [stdout] found enum `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 `Result<(String, f32), ParserError>` [INFO] [stdout] found enum `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 `Result<(String, f32), ParserError>` [INFO] [stdout] found enum `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 `Result<(String, f32), ParserError>` [INFO] [stdout] found enum `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 `Result<(String, f32), ParserError>` [INFO] [stdout] found enum `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" "5383120e6735631235b981906708ffd1d406160782dab08fadce5aab126b1408", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5383120e6735631235b981906708ffd1d406160782dab08fadce5aab126b1408", kill_on_drop: false }` [INFO] [stdout] 5383120e6735631235b981906708ffd1d406160782dab08fadce5aab126b1408