[INFO] cloning repository https://github.com/JustinKozlowski/AoC2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JustinKozlowski/AoC2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJustinKozlowski%2FAoC2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJustinKozlowski%2FAoC2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b1d4d45587e5c03d494ecc22bf48d6e86a7e7c09 [INFO] building JustinKozlowski/AoC2023 against try#9b5e8b16bd1c4acf4cf8e6880368314cf021a987+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJustinKozlowski%2FAoC2023" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JustinKozlowski/AoC2023 on toolchain 9b5e8b16bd1c4acf4cf8e6880368314cf021a987 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JustinKozlowski/AoC2023 [INFO] finished tweaking git repo https://github.com/JustinKozlowski/AoC2023 [INFO] tweaked toml for git repo https://github.com/JustinKozlowski/AoC2023 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/JustinKozlowski/AoC2023 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" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5c311a94f7c06fadbc49e16387fd2396c6e052eda3613e2029716ceb60895784 [INFO] running `Command { std: "docker" "start" "-a" "5c311a94f7c06fadbc49e16387fd2396c6e052eda3613e2029716ceb60895784", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5c311a94f7c06fadbc49e16387fd2396c6e052eda3613e2029716ceb60895784", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c311a94f7c06fadbc49e16387fd2396c6e052eda3613e2029716ceb60895784", kill_on_drop: false }` [INFO] [stdout] 5c311a94f7c06fadbc49e16387fd2396c6e052eda3613e2029716ceb60895784 [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 011c11b778153c40f41497a6bd5fac7c0eb3865f5cf560c70f4e494620c5d08a [INFO] running `Command { std: "docker" "start" "-a" "011c11b778153c40f41497a6bd5fac7c0eb3865f5cf560c70f4e494620c5d08a", kill_on_drop: false }` [INFO] [stderr] Compiling AoC v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/days/day3.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let length = line.chars().count(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/days/day3.rs:103:27 [INFO] [stdout] | [INFO] [stdout] 103 | (None, None, Some(x)) => return vec![index+1], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/days/day3.rs:104:21 [INFO] [stdout] | [INFO] [stdout] 104 | (None, Some(x), None) => return vec![index], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/days/day3.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | (None, Some(x), Some(y)) => return vec![index], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/days/day3.rs:105:30 [INFO] [stdout] | [INFO] [stdout] 105 | (None, Some(x), Some(y)) => return vec![index], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/days/day3.rs:106:15 [INFO] [stdout] | [INFO] [stdout] 106 | (Some(x), None, None) => return vec![index-1], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/days/day3.rs:107:15 [INFO] [stdout] | [INFO] [stdout] 107 | (Some(x), None, Some(y)) => return vec![index-1, index+1], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/days/day3.rs:107:30 [INFO] [stdout] | [INFO] [stdout] 107 | (Some(x), None, Some(y)) => return vec![index-1, index+1], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/days/day3.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 108 | (Some(x), Some(y), None) => return vec![index-1], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/days/day3.rs:108:24 [INFO] [stdout] | [INFO] [stdout] 108 | (Some(x), Some(y), None) => return vec![index-1], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/days/day3.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 109 | (Some(x), Some(y), Some(z)) => return vec![index-1], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/days/day3.rs:109:24 [INFO] [stdout] | [INFO] [stdout] 109 | (Some(x), Some(y), Some(z)) => return vec![index-1], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/days/day3.rs:109:33 [INFO] [stdout] | [INFO] [stdout] 109 | (Some(x), Some(y), Some(z)) => return vec![index-1], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `symbol` [INFO] [stdout] --> src/days/day3.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut symbol = false; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] thread 'rustc' panicked at compiler/rustc_mir_build/src/builder/scope.rs:1724:17: [INFO] [stdout] error: internal compiler error: compiler/rustc_mir_build/src/builder/scope.rs:1724:17: cannot unwind from goto -> bb60 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Box [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x748a6c581caa - ::fmt::h636462e57d5ef1e1 [INFO] [stderr] 1: 0x748a6cc13cbc - core::fmt::write::h067060808ac50eb9 [INFO] [stderr] 2: 0x748a6db28e11 - std::io::Write::write_fmt::h4674fa2ed7c0dfdd [INFO] [stderr] 3: 0x748a6c581b02 - std::sys::backtrace::BacktraceLock::print::h0c77148acfb0b5e9 [INFO] [stderr] 4: 0x748a6c583ffa - std::panicking::default_hook::{{closure}}::h30daa8e7c6ccb09d [INFO] [stderr] 5: 0x748a6c583e43 - std::panicking::default_hook::h25f21dc0f2064615 [INFO] [stderr] 6: 0x748a6b6eff28 - std[b36e883d67eb0403]::panicking::update_hook::>::{closure#0} [INFO] [stderr] 7: 0x748a6c5847b8 - std::panicking::rust_panic_with_hook::hc98438687e833605 [INFO] [stderr] 8: 0x748a6b72a341 - std[b36e883d67eb0403]::panicking::begin_panic::::{closure#0} [INFO] [stderr] 9: 0x748a6b71f526 - std[b36e883d67eb0403]::sys::backtrace::__rust_end_short_backtrace::::{closure#0}, !> [INFO] [stderr] 10: 0x748a6b71f50d - std[b36e883d67eb0403]::panicking::begin_panic:: [INFO] [stderr] 11: 0x748a6b7342a1 - ::emit_producing_guarantee [INFO] [stderr] 12: 0x748a6bc84fdc - ::span_bug:: [INFO] [stderr] 13: 0x748a6bd0a897 - rustc_middle[8ad6e8ce52578819]::util::bug::opt_span_bug_fmt::::{closure#0} [INFO] [stderr] 14: 0x748a6bcf006a - rustc_middle[8ad6e8ce52578819]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} [INFO] [stderr] 15: 0x748a6bcefefb - rustc_middle[8ad6e8ce52578819]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> [INFO] [stderr] 16: 0x748a6a134437 - rustc_middle[8ad6e8ce52578819]::util::bug::span_bug_fmt:: [INFO] [stderr] 17: 0x748a6d5d541b - ::build_unwind_tree [INFO] [stderr] 18: 0x748a6d5cd7cd - rustc_mir_build[73684a27b88b946a]::builder::mir_build [INFO] [stderr] 19: 0x748a6cc07714 - rustc_mir_transform[857cd804783fef4d]::mir_built [INFO] [stderr] 20: 0x748a6cc076d7 - rustc_query_impl[1e55094a59e290f4]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 21: 0x748a6ce953d1 - rustc_query_system[67781f9dc633c543]::query::plumbing::try_execute_query::, rustc_query_system[67781f9dc633c543]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[1e55094a59e290f4]::plumbing::QueryCtxt, false> [INFO] [stderr] 22: 0x748a6ce94f8d - rustc_query_impl[1e55094a59e290f4]::query_impl::mir_built::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 23: 0x748a69c67185 - rustc_mir_build[73684a27b88b946a]::check_unsafety::check_unsafety [INFO] [stderr] 24: 0x748a6d4e98a7 - rustc_query_impl[1e55094a59e290f4]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 25: 0x748a6d4e9b69 - rustc_query_system[67781f9dc633c543]::query::plumbing::try_execute_query::, rustc_query_system[67781f9dc633c543]::dep_graph::graph::DepNodeIndex>, false, false, false>, rustc_query_impl[1e55094a59e290f4]::plumbing::QueryCtxt, false> [INFO] [stderr] 26: 0x748a6d4e97d1 - rustc_query_impl[1e55094a59e290f4]::query_impl::check_unsafety::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 27: 0x748a6d09bd32 - rustc_interface[b59e7ee7606ca029]::passes::run_required_analyses [INFO] [stderr] 28: 0x748a6db2cc9e - rustc_interface[b59e7ee7606ca029]::passes::analysis [INFO] [stderr] 29: 0x748a6db2cc6f - rustc_query_impl[1e55094a59e290f4]::plumbing::__rust_begin_short_backtrace::> [INFO] [stderr] 30: 0x748a6db7b355 - rustc_query_system[67781f9dc633c543]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[1e55094a59e290f4]::plumbing::QueryCtxt, false> [INFO] [stderr] 31: 0x748a6db7b08e - rustc_query_impl[1e55094a59e290f4]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace [INFO] [stderr] 32: 0x748a6db701de - rustc_interface[b59e7ee7606ca029]::passes::create_and_enter_global_ctxt::, rustc_driver_impl[be5855d19ccc8b6c]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0} [INFO] [stderr] 33: 0x748a6dbdff51 - rustc_interface[b59e7ee7606ca029]::interface::run_compiler::<(), rustc_driver_impl[be5855d19ccc8b6c]::run_compiler::{closure#0}>::{closure#1} [INFO] [stderr] 34: 0x748a6daf5087 - std[b36e883d67eb0403]::sys::backtrace::__rust_begin_short_backtrace::::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()> [INFO] [stderr] 35: 0x748a6daf551c - <::spawn_unchecked_::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[303105738bd0c2ae]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stderr] 36: 0x748a6daf6aef - std::sys::pal::unix::thread::Thread::new::thread_start::ha554cc4ba6335b05 [INFO] [stderr] 37: 0x748a67e6bac3 - [INFO] [stderr] 38: 0x748a67efca04 - clone [INFO] [stderr] 39: 0x0 - [INFO] [stderr] [INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md [INFO] [stderr] [INFO] [stderr] note: please make sure that you have updated to the latest nightly [INFO] [stderr] [INFO] [stderr] warning: the ICE couldn't be written to `/opt/rustwide/workdir/rustc-ice-2024-12-31T20_56_06-9.txt`: Read-only file system (os error 30) [INFO] [stderr] [INFO] [stderr] note: rustc 1.85.0-nightly (9b5e8b16b 2024-12-19) running on x86_64-unknown-linux-gnu [INFO] [stderr] [INFO] [stderr] note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 [INFO] [stderr] [INFO] [stderr] note: some of the compiler flags provided by cargo are hidden [INFO] [stderr] [INFO] [stderr] query stack during panic: [INFO] [stderr] #0 [mir_built] building MIR for `days::day3::process_star` [INFO] [stderr] #1 [check_unsafety] unsafety-checking `days::day3::process_star` [INFO] [stderr] #2 [analysis] running analysis passes on this crate [INFO] [stderr] end of query stack [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/days/day3.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let mut number = 0; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day3.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | let mut number = 0; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `card` [INFO] [stdout] --> src/days/day4.rs:35:33 [INFO] [stdout] | [INFO] [stdout] 35 | fn parse_card_part2(s: &String, card: usize) -> usize { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_card` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `map` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/days/day5.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | map.insert(source_start + i, target_start + i); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 4 | fn load_map(mut map: HashMap, line: String) -> HashMap { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/days/day5.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | fn read_map(&map: &HashMap, key: usize) -> usize { [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | data moved here [INFO] [stdout] | move occurs because `map` has type `HashMap`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 15 - fn read_map(&map: &HashMap, key: usize) -> usize { [INFO] [stdout] 15 + fn read_map(map: &HashMap, key: usize) -> usize { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0507, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `AoC` (bin "AoC") due to 2 previous errors; 17 warnings emitted [INFO] running `Command { std: "docker" "inspect" "011c11b778153c40f41497a6bd5fac7c0eb3865f5cf560c70f4e494620c5d08a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "011c11b778153c40f41497a6bd5fac7c0eb3865f5cf560c70f4e494620c5d08a", kill_on_drop: false }` [INFO] [stdout] 011c11b778153c40f41497a6bd5fac7c0eb3865f5cf560c70f4e494620c5d08a