[INFO] cloning repository https://github.com/prioritize/advent_of_code_2017 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/prioritize/advent_of_code_2017" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprioritize%2Fadvent_of_code_2017", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprioritize%2Fadvent_of_code_2017'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] def0f677968b2b298160277065eea933f0150b37 [INFO] checking prioritize/advent_of_code_2017 against try#f70ee28831acc074c109afab32d287057c3eca46 for pr-149389 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fprioritize%2Fadvent_of_code_2017" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/prioritize/advent_of_code_2017 [INFO] finished tweaking git repo https://github.com/prioritize/advent_of_code_2017 [INFO] tweaked toml for git repo https://github.com/prioritize/advent_of_code_2017 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/prioritize/advent_of_code_2017 on toolchain f70ee28831acc074c109afab32d287057c3eca46 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/prioritize/advent_of_code_2017 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" "+f70ee28831acc074c109afab32d287057c3eca46" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9c70f69c84699d5f6b342fc1421395b4fa66d25e5e68473f9ce47b79b886ca6d [INFO] running `Command { std: "docker" "start" "-a" "9c70f69c84699d5f6b342fc1421395b4fa66d25e5e68473f9ce47b79b886ca6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9c70f69c84699d5f6b342fc1421395b4fa66d25e5e68473f9ce47b79b886ca6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c70f69c84699d5f6b342fc1421395b4fa66d25e5e68473f9ce47b79b886ca6d", kill_on_drop: false }` [INFO] [stdout] 9c70f69c84699d5f6b342fc1421395b4fa66d25e5e68473f9ce47b79b886ca6d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 42bb6326603e13964b0df32567c5374cf16b99e1116faf24df37394a296ed9ff [INFO] running `Command { std: "docker" "start" "-a" "42bb6326603e13964b0df32567c5374cf16b99e1116faf24df37394a296ed9ff", kill_on_drop: false }` [INFO] [stderr] Checking advent_of_code_2017_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `!`, `+`, `::`, `;`, or `=`, found `temp` [INFO] [stdout] --> src/day_2.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | let mut temp: VecDeque temp.clone().into(); [INFO] [stdout] | - ^^^^ expected one of `!`, `+`, `::`, `;`, or `=` [INFO] [stdout] | | [INFO] [stdout] | while parsing the type for the binding [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `+`, `::`, `;`, or `=`, found `temp` [INFO] [stdout] --> src/day_2.rs:12:33 [INFO] [stdout] | [INFO] [stdout] 12 | let mut temp: VecDeque temp.clone().into(); [INFO] [stdout] | - ^^^^ expected one of `!`, `+`, `::`, `;`, or `=` [INFO] [stdout] | | [INFO] [stdout] | while parsing the type for the binding [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/day_1.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | true => (normal_length - total_length), [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] 49 - true => (normal_length - total_length), [INFO] [stdout] 49 + true => normal_length - total_length , [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::day_1::day_1_part_1` [INFO] [stdout] --> src/day_2.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | use crate::day_1::day_1_part_1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/day_1.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | true => (normal_length - total_length), [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] 49 - true => (normal_length - total_length), [INFO] [stdout] 49 + true => normal_length - total_length , [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `(u32, u32)` [INFO] [stdout] --> src/day_2.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | ).collect::>().iter().sum() [INFO] [stdout] | ------- ^^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<(u32, u32)>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/f70ee28831acc074c109afab32d287057c3eca46/library/alloc/src/vec/mod.rs:3716:0 [INFO] [stdout] = help: for that trait implementation, expected `u32`, found `(u32, u32)` [INFO] [stdout] note: the method call chain might not have had the expected associated types [INFO] [stdout] --> src/day_2.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 17 | let lines = parse_file_to_entries(fname); [INFO] [stdout] | ---------------------------- this expression has type `Vec>` [INFO] [stdout] 18 | lines.iter().map(|x| { [INFO] [stdout] | ___________------_^ [INFO] [stdout] | | | [INFO] [stdout] | | `Iterator::Item` is `&Vec` here [INFO] [stdout] 19 | | let mut temp = x.clone(); [INFO] [stdout] 20 | | let mut out: (u32, u32); [INFO] [stdout] 21 | | temp.sort(); [INFO] [stdout] ... | [INFO] [stdout] 37 | | ).collect::>().iter().sum() [INFO] [stdout] | |_____^ `Iterator::Item` changed to `(u32, u32)` here [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/f70ee28831acc074c109afab32d287057c3eca46/library/core/src/iter/traits/iterator.rs:2015:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `(u32, u32)` [INFO] [stdout] --> src/day_2.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | ).collect::>().iter().sum() [INFO] [stdout] | ------- ^^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<(u32, u32)>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/f70ee28831acc074c109afab32d287057c3eca46/library/alloc/src/vec/mod.rs:3716:0 [INFO] [stdout] = help: for that trait implementation, expected `u32`, found `(u32, u32)` [INFO] [stdout] note: the method call chain might not have had the expected associated types [INFO] [stdout] --> src/day_2.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 17 | let lines = parse_file_to_entries(fname); [INFO] [stdout] | ---------------------------- this expression has type `Vec>` [INFO] [stdout] 18 | lines.iter().map(|x| { [INFO] [stdout] | ___________------_^ [INFO] [stdout] | | | [INFO] [stdout] | | `Iterator::Item` is `&Vec` here [INFO] [stdout] 19 | | let mut temp = x.clone(); [INFO] [stdout] 20 | | let mut out: (u32, u32); [INFO] [stdout] 21 | | temp.sort(); [INFO] [stdout] ... | [INFO] [stdout] 37 | | ).collect::>().iter().sum() [INFO] [stdout] | |_____^ `Iterator::Item` changed to `(u32, u32)` here [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/f70ee28831acc074c109afab32d287057c3eca46/library/core/src/iter/traits/iterator.rs:2015:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fname` [INFO] [stdout] --> src/day_2.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn day_2_part_1(fname: &str) -> u32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_fname` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fname` [INFO] [stdout] --> src/day_2.rs:75:21 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn day_2_part_1(fname: &str) -> u32 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_fname` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_of_code_2017_rust` (bin "advent_of_code_2017_rust" test) due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `advent_of_code_2017_rust` (bin "advent_of_code_2017_rust") due to 2 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "42bb6326603e13964b0df32567c5374cf16b99e1116faf24df37394a296ed9ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42bb6326603e13964b0df32567c5374cf16b99e1116faf24df37394a296ed9ff", kill_on_drop: false }` [INFO] [stdout] 42bb6326603e13964b0df32567c5374cf16b99e1116faf24df37394a296ed9ff