[INFO] cloning repository https://github.com/mahmoudsalmi/aoc2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mahmoudsalmi/aoc2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmahmoudsalmi%2Faoc2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmahmoudsalmi%2Faoc2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c95c334ddbb9185a08373e4b07e038643f1d7c78 [INFO] checking mahmoudsalmi/aoc2022 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%2Fmahmoudsalmi%2Faoc2022" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mahmoudsalmi/aoc2022 [INFO] finished tweaking git repo https://github.com/mahmoudsalmi/aoc2022 [INFO] tweaked toml for git repo https://github.com/mahmoudsalmi/aoc2022 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mahmoudsalmi/aoc2022 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/mahmoudsalmi/aoc2022 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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] b6b6f1de34d9d46abe5c851f14e163c017c52c28fdf0db68458346ebf3d4cb40 [INFO] running `Command { std: "docker" "start" "-a" "b6b6f1de34d9d46abe5c851f14e163c017c52c28fdf0db68458346ebf3d4cb40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b6b6f1de34d9d46abe5c851f14e163c017c52c28fdf0db68458346ebf3d4cb40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6b6f1de34d9d46abe5c851f14e163c017c52c28fdf0db68458346ebf3d4cb40", kill_on_drop: false }` [INFO] [stdout] b6b6f1de34d9d46abe5c851f14e163c017c52c28fdf0db68458346ebf3d4cb40 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 124cdc596be315e5e31421ff5653138a45472dac15cb5492f6bc9814990970c5 [INFO] running `Command { std: "docker" "start" "-a" "124cdc596be315e5e31421ff5653138a45472dac15cb5492f6bc9814990970c5", kill_on_drop: false }` [INFO] [stderr] Checking aoc2022 v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error: could not compile `aoc2022` (bin "day16") due to 4 previous errors; 3 warnings emitted [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day16.rs:69:53 [INFO] [stdout] | [INFO] [stdout] 69 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 70 | | let s = s [INFO] [stdout] 71 | | .replace("Valve ", "") [INFO] [stdout] 72 | | .replace(" has flow rate=", "|") [INFO] [stdout] ... | [INFO] [stdout] 90 | | }) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day16.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | / Ok(Self { [INFO] [stdout] 87 | | id: tokens[0].into(), [INFO] [stdout] 88 | | rate, [INFO] [stdout] 89 | | next, [INFO] [stdout] 90 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/day16.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | curr_node.clone().to_owned(), [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: using `.clone()` on a double reference, which returns `&String` instead of cloning the inner type [INFO] [stdout] --> src/bin/day16.rs:160:47 [INFO] [stdout] | [INFO] [stdout] 160 | !opened.contains(next_node.clone()) && rates.contains_key(next_node.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&String` instead of cloning the inner type [INFO] [stdout] --> src/bin/day16.rs:160:88 [INFO] [stdout] | [INFO] [stdout] 160 | !opened.contains(next_node.clone()) && rates.contains_key(next_node.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day16.rs:191:21 [INFO] [stdout] | [INFO] [stdout] 191 | .map(|line| line.parse::().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day16.rs:208:21 [INFO] [stdout] | [INFO] [stdout] 208 | .map(|line| line.parse::().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day12.rs:188:53 [INFO] [stdout] | [INFO] [stdout] 188 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 189 | | let lines: Vec<&str> = s.lines().collect(); [INFO] [stdout] 190 | | [INFO] [stdout] 191 | | let height = lines.len(); [INFO] [stdout] ... | [INFO] [stdout] 222 | | }) [INFO] [stdout] 223 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day12.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | / Ok(Grid { [INFO] [stdout] 217 | | width, [INFO] [stdout] 218 | | height, [INFO] [stdout] 219 | | grid, [INFO] [stdout] 220 | | start_cell, [INFO] [stdout] 221 | | end_cell, [INFO] [stdout] 222 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day12.rs:227:22 [INFO] [stdout] | [INFO] [stdout] 227 | let grid: Grid = data.parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day12.rs:234:22 [INFO] [stdout] | [INFO] [stdout] 234 | let grid: Grid = data.parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2022` (bin "day12") due to 4 previous errors [INFO] [stderr] error: could not compile `aoc2022` (bin "day15" test) due to 4 previous errors [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day15.rs:54:53 [INFO] [stdout] | [INFO] [stdout] 54 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 55 | | let line = s [INFO] [stdout] 56 | | .replace("Sensor at x=", "") [INFO] [stdout] 57 | | .replace(" y=", "") [INFO] [stdout] ... | [INFO] [stdout] 81 | | }) [INFO] [stdout] 82 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day15.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | / Ok(Self { [INFO] [stdout] 78 | | position, [INFO] [stdout] 79 | | first_beacon, [INFO] [stdout] 80 | | min_distance, [INFO] [stdout] 81 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day15.rs:158:21 [INFO] [stdout] | [INFO] [stdout] 158 | .map(|line| line.parse::().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day15.rs:173:21 [INFO] [stdout] | [INFO] [stdout] 173 | .map(|line| line.parse::().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day16_not_correct.rs:32:53 [INFO] [stdout] | [INFO] [stdout] 32 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 33 | | let s = s [INFO] [stdout] 34 | | .replace("Valve ", "") [INFO] [stdout] 35 | | .replace(" has flow rate=", "|") [INFO] [stdout] ... | [INFO] [stdout] 53 | | }) [INFO] [stdout] 54 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day16_not_correct.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | / Ok(Self { [INFO] [stdout] 50 | | id: tokens[0].into(), [INFO] [stdout] 51 | | rate, [INFO] [stdout] 52 | | next, [INFO] [stdout] 53 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day16_not_correct.rs:149:22 [INFO] [stdout] | [INFO] [stdout] 149 | .map(|s| s.parse::().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2022` (bin "day16_not_correct" test) due to 3 previous errors [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day15.rs:54:53 [INFO] [stdout] | [INFO] [stdout] 54 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 55 | | let line = s [INFO] [stdout] 56 | | .replace("Sensor at x=", "") [INFO] [stdout] 57 | | .replace(" y=", "") [INFO] [stdout] ... | [INFO] [stdout] 81 | | }) [INFO] [stdout] 82 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day15.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | / Ok(Self { [INFO] [stdout] 78 | | position, [INFO] [stdout] 79 | | first_beacon, [INFO] [stdout] 80 | | min_distance, [INFO] [stdout] 81 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day15.rs:158:21 [INFO] [stdout] | [INFO] [stdout] 158 | .map(|line| line.parse::().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day15.rs:173:21 [INFO] [stdout] | [INFO] [stdout] 173 | .map(|line| line.parse::().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2022` (bin "day15") due to 4 previous errors [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day14.rs:55:53 [INFO] [stdout] | [INFO] [stdout] 55 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 56 | | let parts: Vec<&str> = s.trim().split(",").collect(); [INFO] [stdout] 57 | | Ok(Point { [INFO] [stdout] 58 | | x: parts.get(0).unwrap().parse().unwrap(), [INFO] [stdout] 59 | | y: parts.get(1).unwrap().parse().unwrap(), [INFO] [stdout] 60 | | }) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day14.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | / Ok(Point { [INFO] [stdout] 58 | | x: parts.get(0).unwrap().parse().unwrap(), [INFO] [stdout] 59 | | y: parts.get(1).unwrap().parse().unwrap(), [INFO] [stdout] 60 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day14.rs:229:53 [INFO] [stdout] | [INFO] [stdout] 229 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 230 | | let edges = s [INFO] [stdout] 231 | | .trim() [INFO] [stdout] 232 | | .split(" -> ") [INFO] [stdout] ... | [INFO] [stdout] 245 | | }) [INFO] [stdout] 246 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day14.rs:233:22 [INFO] [stdout] | [INFO] [stdout] 233 | .map(|s| s.parse::().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day14.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | / Ok(Path { [INFO] [stdout] 240 | | vertical_lines, [INFO] [stdout] 241 | | horizontal_lines, [INFO] [stdout] 242 | | deepest_line, [INFO] [stdout] 243 | | sands: HashSet::new(), [INFO] [stdout] 244 | | with_floor: false, [INFO] [stdout] 245 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day14.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 253 | .map(|s| s.parse::().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day14.rs:266:18 [INFO] [stdout] | [INFO] [stdout] 266 | .map(|s| s.parse::().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2022` (bin "day14" test) due to 7 previous errors [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day11.rs:35:53 [INFO] [stdout] | [INFO] [stdout] 35 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 36 | | Ok(match s { [INFO] [stdout] 37 | | "+" => Add, [INFO] [stdout] 38 | | "*" => Multiply, [INFO] [stdout] 39 | | _ => unreachable!("Unknown OperationType : {}", s), [INFO] [stdout] 40 | | }) [INFO] [stdout] 41 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day11.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | / Ok(match s { [INFO] [stdout] 37 | | "+" => Add, [INFO] [stdout] 38 | | "*" => Multiply, [INFO] [stdout] 39 | | _ => unreachable!("Unknown OperationType : {}", s), [INFO] [stdout] 40 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day11.rs:96:53 [INFO] [stdout] | [INFO] [stdout] 96 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 97 | | let elements = s.split(" ").collect::>(); [INFO] [stdout] 98 | | Ok(Operation { [INFO] [stdout] 99 | | op: elements[1].parse().unwrap(), [INFO] [stdout] ... | [INFO] [stdout] 102 | | }) [INFO] [stdout] 103 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day11.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | / Ok(Operation { [INFO] [stdout] 99 | | op: elements[1].parse().unwrap(), [INFO] [stdout] 100 | | left: elements[0].parse().unwrap(), [INFO] [stdout] 101 | | right: elements[2].parse().unwrap(), [INFO] [stdout] 102 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day11.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | op: elements[1].parse().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day11.rs:155:25 [INFO] [stdout] | [INFO] [stdout] 155 | let operation = lines[2] [INFO] [stdout] | _________________________^ [INFO] [stdout] 156 | | .split("=") [INFO] [stdout] 157 | | .map(|part| part.trim()) [INFO] [stdout] 158 | | .skip(1) [INFO] [stdout] ... | [INFO] [stdout] 162 | | .unwrap() [INFO] [stdout] 163 | | .parse() [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2022` (bin "day11" test) due to 6 previous errors [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day16.rs:69:53 [INFO] [stdout] | [INFO] [stdout] 69 | fn from_str(s: &str) -> Result { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 70 | | let s = s [INFO] [stdout] 71 | | .replace("Valve ", "") [INFO] [stdout] 72 | | .replace(" has flow rate=", "|") [INFO] [stdout] ... | [INFO] [stdout] 90 | | }) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day16.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | / Ok(Self { [INFO] [stdout] 87 | | id: tokens[0].into(), [INFO] [stdout] 88 | | rate, [INFO] [stdout] 89 | | next, [INFO] [stdout] 90 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/day16.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | curr_node.clone().to_owned(), [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: using `.clone()` on a double reference, which returns `&String` instead of cloning the inner type [INFO] [stdout] --> src/bin/day16.rs:160:47 [INFO] [stdout] | [INFO] [stdout] 160 | !opened.contains(next_node.clone()) && rates.contains_key(next_node.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&String` instead of cloning the inner type [INFO] [stdout] --> src/bin/day16.rs:160:88 [INFO] [stdout] | [INFO] [stdout] 160 | !opened.contains(next_node.clone()) && rates.contains_key(next_node.clone()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day16.rs:191:21 [INFO] [stdout] | [INFO] [stdout] 191 | .map(|line| line.parse::().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/bin/day16.rs:208:21 [INFO] [stdout] | [INFO] [stdout] 208 | .map(|line| line.parse::().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2022` (bin "day16" test) due to 4 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "124cdc596be315e5e31421ff5653138a45472dac15cb5492f6bc9814990970c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "124cdc596be315e5e31421ff5653138a45472dac15cb5492f6bc9814990970c5", kill_on_drop: false }` [INFO] [stdout] 124cdc596be315e5e31421ff5653138a45472dac15cb5492f6bc9814990970c5