[INFO] cloning repository https://github.com/Gricha/AdventOfCode2021 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Gricha/AdventOfCode2021" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGricha%2FAdventOfCode2021", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGricha%2FAdventOfCode2021'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ffc033a54e7950275db73b2afd2a88182144c5d6 [INFO] checking Gricha/AdventOfCode2021 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGricha%2FAdventOfCode2021" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Gricha/AdventOfCode2021 [INFO] finished tweaking git repo https://github.com/Gricha/AdventOfCode2021 [INFO] tweaked toml for git repo https://github.com/Gricha/AdventOfCode2021 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Gricha/AdventOfCode2021 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Gricha/AdventOfCode2021 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8e3cebb2d63a9b5a1104a168bf0e3bed31a5c3f34a14efb56245159041f30708 [INFO] running `Command { std: "docker" "start" "-a" "8e3cebb2d63a9b5a1104a168bf0e3bed31a5c3f34a14efb56245159041f30708", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8e3cebb2d63a9b5a1104a168bf0e3bed31a5c3f34a14efb56245159041f30708", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e3cebb2d63a9b5a1104a168bf0e3bed31a5c3f34a14efb56245159041f30708", kill_on_drop: false }` [INFO] [stdout] 8e3cebb2d63a9b5a1104a168bf0e3bed31a5c3f34a14efb56245159041f30708 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 49335c555aad57166d8b036289fe2a4c4c4e8c67149ea6fb94de913bfcec4d29 [INFO] running `Command { std: "docker" "start" "-a" "49335c555aad57166d8b036289fe2a4c4c4e8c67149ea6fb94de913bfcec4d29", kill_on_drop: false }` [INFO] [stderr] Checking scan_fmt v0.2.6 [INFO] [stderr] Checking advent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/day11.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | .map(|x| (x as i32 - '0' as i32)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - .map(|x| (x as i32 - '0' as i32)) [INFO] [stdout] 10 + .map(|x| x as i32 - '0' as i32 ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/day11.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | .map(|x| (x as i32 - '0' as i32)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - .map(|x| (x as i32 - '0' as i32)) [INFO] [stdout] 10 + .map(|x| x as i32 - '0' as i32 ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/day18.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | / std::mem::replace( [INFO] [stdout] 70 | | number, [INFO] [stdout] 71 | | Number::Nested(Box::new(InnerNumber { [INFO] [stdout] 72 | | left: Box::new(Number::Literal(left)), [INFO] [stdout] 73 | | right: Box::new(Number::Literal(right)), [INFO] [stdout] 74 | | })), [INFO] [stdout] 75 | | ); [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 69 | let _ = std::mem::replace( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/day18.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | std::mem::replace(number, Number::Literal(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 109 | let _ = std::mem::replace(number, Number::Literal(0)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent` (bin "advent" test) due to 16 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/day18.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | / std::mem::replace( [INFO] [stdout] 70 | | number, [INFO] [stdout] 71 | | Number::Nested(Box::new(InnerNumber { [INFO] [stdout] 72 | | left: Box::new(Number::Literal(left)), [INFO] [stdout] 73 | | right: Box::new(Number::Literal(right)), [INFO] [stdout] 74 | | })), [INFO] [stdout] 75 | | ); [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 69 | let _ = std::mem::replace( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/day18.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | std::mem::replace(number, Number::Literal(0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 109 | let _ = std::mem::replace(number, Number::Literal(0)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 10 | | &x, [INFO] [stdout] 11 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 12 | | String, [INFO] [stdout] ... | [INFO] [stdout] 18 | | i32 [INFO] [stdout] 19 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/day22.rs:153:48 [INFO] [stdout] | [INFO] [stdout] 153 | let (op, x1, x2, y1, y2, z1, z2) = scan_fmt!( [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 154 | | &x, [INFO] [stdout] 155 | | "{} x={}..{},y={}..{},z={}..{}", [INFO] [stdout] 156 | | String, [INFO] [stdout] ... | [INFO] [stdout] 162 | | i32 [INFO] [stdout] 163 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::scan_fmt_help` which comes from the expansion of the macro `scan_fmt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent` (bin "advent") due to 16 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "49335c555aad57166d8b036289fe2a4c4c4e8c67149ea6fb94de913bfcec4d29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49335c555aad57166d8b036289fe2a4c4c4e8c67149ea6fb94de913bfcec4d29", kill_on_drop: false }` [INFO] [stdout] 49335c555aad57166d8b036289fe2a4c4c4e8c67149ea6fb94de913bfcec4d29