[INFO] cloning repository https://github.com/robinst/advent-of-code-2019 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/robinst/advent-of-code-2019" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobinst%2Fadvent-of-code-2019", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobinst%2Fadvent-of-code-2019'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cc0235764c11c8bf69bec1148f72418ce2ddf857 [INFO] building robinst/advent-of-code-2019 against master#9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19 for pr-117684 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobinst%2Fadvent-of-code-2019" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/robinst/advent-of-code-2019 on toolchain 9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/robinst/advent-of-code-2019 [INFO] finished tweaking git repo https://github.com/robinst/advent-of-code-2019 [INFO] tweaked toml for git repo https://github.com/robinst/advent-of-code-2019 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/robinst/advent-of-code-2019 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" "+9bd71afb90c2a6e0348cdd4a2b10a3bf39908f19" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] building robinst/advent-of-code-2019 against try#53e03135c36e913ff664ce8329041b7e3c2fd358 for pr-117684 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobinst%2Fadvent-of-code-2019" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/robinst/advent-of-code-2019 on toolchain 53e03135c36e913ff664ce8329041b7e3c2fd358 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/robinst/advent-of-code-2019 [INFO] finished tweaking git repo https://github.com/robinst/advent-of-code-2019 [INFO] tweaked toml for git repo https://github.com/robinst/advent-of-code-2019 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/robinst/advent-of-code-2019 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" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] building robinst/advent-of-code-2019 against try#53e03135c36e913ff664ce8329041b7e3c2fd358 for pr-117684 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frobinst%2Fadvent-of-code-2019" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/robinst/advent-of-code-2019 on toolchain 53e03135c36e913ff664ce8329041b7e3c2fd358 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/robinst/advent-of-code-2019 [INFO] finished tweaking git repo https://github.com/robinst/advent-of-code-2019 [INFO] tweaked toml for git repo https://github.com/robinst/advent-of-code-2019 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/robinst/advent-of-code-2019 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" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded intrusive-collections v0.8.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2f409d151412d8013d98438caf8bd9ef5dc11079dcde126f75c8b6a5ca17cd9b [INFO] running `Command { std: "docker" "start" "-a" "2f409d151412d8013d98438caf8bd9ef5dc11079dcde126f75c8b6a5ca17cd9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f409d151412d8013d98438caf8bd9ef5dc11079dcde126f75c8b6a5ca17cd9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f409d151412d8013d98438caf8bd9ef5dc11079dcde126f75c8b6a5ca17cd9b", kill_on_drop: false }` [INFO] [stdout] 2f409d151412d8013d98438caf8bd9ef5dc11079dcde126f75c8b6a5ca17cd9b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "-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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c491f0cbd82a6877eeda8023d1735a6d5cf1aa68768d7408c25374e45cfa4f4c [INFO] running `Command { std: "docker" "start" "-a" "c491f0cbd82a6877eeda8023d1735a6d5cf1aa68768d7408c25374e45cfa4f4c", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling strsim v0.9.3 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling num-traits v0.2.10 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-bigint v0.2.3 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling serde v1.0.103 [INFO] [stderr] Compiling cc v1.0.48 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling arc-swap v0.4.4 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling array-macro v1.0.4 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling chrono v0.4.10 [INFO] [stderr] Compiling crossbeam-channel v0.3.9 [INFO] [stderr] Compiling ncurses v5.99.0 [INFO] [stderr] Compiling owning_ref v0.4.0 [INFO] [stderr] Compiling signal-hook v0.1.12 [INFO] [stderr] Compiling term_size v0.3.1 [INFO] [stderr] Compiling xi-unicode v0.2.0 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling hashbrown v0.5.0 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling unicode-width v0.1.7 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling intrusive-collections v0.8.3 [INFO] [stderr] Compiling num v0.2.0 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling toml v0.5.5 [INFO] [stderr] Compiling enum-map-derive v0.4.3 [INFO] [stderr] Compiling enum-map v0.6.1 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling enumset_derive v0.4.3 [INFO] [stderr] Compiling enumset v0.4.4 [INFO] [stderr] Compiling cursive v0.13.0 [INFO] [stderr] Compiling advent-of-code-2019 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/bin/day16.rs:148:39 [INFO] [stdout] | [INFO] [stdout] 148 | let add: i32 = signal[(previous_end.max(start)..end.min(signal.len()))] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 148 - let add: i32 = signal[(previous_end.max(start)..end.min(signal.len()))] [INFO] [stdout] 148 + let add: i32 = signal[previous_end.max(start)..end.min(signal.len())] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_game` is never used [INFO] [stdout] --> src/bin/day13.rs:143:4 [INFO] [stdout] | [INFO] [stdout] 143 | fn play_game() -> (usize, i64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day12.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | for mut moon in &mut self.moons { [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: method `energy` is never used [INFO] [stdout] --> src/bin/day12.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Point { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 36 | fn energy(&self) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `energy` is never used [INFO] [stdout] --> src/bin/day12.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl Moon { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | fn energy(&self) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `total_energy` is never used [INFO] [stdout] --> src/bin/day12.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl System { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | fn total_energy(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `go_recursive` is never used [INFO] [stdout] --> src/bin/day15.rs:165:4 [INFO] [stdout] | [INFO] [stdout] 165 | fn go_recursive(code: &mut Intcode, steps: u64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/bin/day18.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_keys` is never used [INFO] [stdout] --> src/bin/day18.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn find_keys(map: &Map, start: &Point, treat_empty: &HashSet) -> Vec<(Point, usize)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set` is never used [INFO] [stdout] --> src/bin/day18.rs:279:8 [INFO] [stdout] | [INFO] [stdout] 272 | impl Map { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 279 | fn set(&mut self, p: &Point, t: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 11.69s [INFO] running `Command { std: "docker" "inspect" "c491f0cbd82a6877eeda8023d1735a6d5cf1aa68768d7408c25374e45cfa4f4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c491f0cbd82a6877eeda8023d1735a6d5cf1aa68768d7408c25374e45cfa4f4c", kill_on_drop: false }` [INFO] [stdout] c491f0cbd82a6877eeda8023d1735a6d5cf1aa68768d7408c25374e45cfa4f4c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "-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:0c7e0e8312ad82a1bed3696438480b7da990d348377d3754e1cd95b06a8a36c7" "/opt/rustwide/cargo-home/bin/cargo" "+53e03135c36e913ff664ce8329041b7e3c2fd358" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 779f5207b4b3e8b9db939884085b42cb05f73bf3e307b6fdab7aea676009d4b0 [INFO] running `Command { std: "docker" "start" "-a" "779f5207b4b3e8b9db939884085b42cb05f73bf3e307b6fdab7aea676009d4b0", kill_on_drop: false }` [INFO] [stderr] Compiling advent-of-code-2019 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/bin/day18.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day12.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | for mut moon in &mut self.moons { [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: `s` [INFO] [stdout] --> src/bin/day18.rs:334:13 [INFO] [stdout] | [INFO] [stdout] 334 | let s = include_str!("../../input/2019/day18.txt").trim(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_keys` is never used [INFO] [stdout] --> src/bin/day18.rs:156:4 [INFO] [stdout] | [INFO] [stdout] 156 | fn find_keys(map: &Map, start: &Point, treat_empty: &HashSet) -> Vec<(Point, usize)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set` is never used [INFO] [stdout] --> src/bin/day18.rs:279:8 [INFO] [stdout] | [INFO] [stdout] 272 | impl Map { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 279 | fn set(&mut self, p: &Point, t: T) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `code` [INFO] [stdout] --> src/bin/day17.rs:198:27 [INFO] [stdout] | [INFO] [stdout] 195 | let code = Intcode::parse(s); [INFO] [stdout] | ---- move occurs because `code` has type `advent_of_code_2019::Intcode`, which does not implement the `Copy` trait [INFO] [stdout] 196 | [INFO] [stdout] 197 | assert_eq!(solve1(code), 5620); [INFO] [stdout] | ---- value moved here [INFO] [stdout] 198 | assert_eq!(solve2(code), 768115); [INFO] [stdout] | ^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `solve1` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/bin/day17.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | fn solve1(code: Intcode) -> i64 { [INFO] [stdout] | ------ ^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 197 | assert_eq!(solve1(code.clone()), 5620); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2019` (bin "day17" test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/bin/day16.rs:148:39 [INFO] [stdout] | [INFO] [stdout] 148 | let add: i32 = signal[(previous_end.max(start)..end.min(signal.len()))] [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 148 - let add: i32 = signal[(previous_end.max(start)..end.min(signal.len()))] [INFO] [stdout] 148 + let add: i32 = signal[previous_end.max(start)..end.min(signal.len())] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `go_recursive` is never used [INFO] [stdout] --> src/bin/day15.rs:165:4 [INFO] [stdout] | [INFO] [stdout] 165 | fn go_recursive(code: &mut Intcode, steps: u64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "779f5207b4b3e8b9db939884085b42cb05f73bf3e307b6fdab7aea676009d4b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "779f5207b4b3e8b9db939884085b42cb05f73bf3e307b6fdab7aea676009d4b0", kill_on_drop: false }` [INFO] [stdout] 779f5207b4b3e8b9db939884085b42cb05f73bf3e307b6fdab7aea676009d4b0