[INFO] cloning repository https://github.com/AugustinLF/advent-of-code-2018 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AugustinLF/advent-of-code-2018" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAugustinLF%2Fadvent-of-code-2018", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAugustinLF%2Fadvent-of-code-2018'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0e044149b10f60cca4656a7acf1acd2ccf9e88f1 [INFO] checking AugustinLF/advent-of-code-2018 against try#575650af7d7ca88602df28e39d27bf3e456c306e for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAugustinLF%2Fadvent-of-code-2018" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AugustinLF/advent-of-code-2018 on toolchain 575650af7d7ca88602df28e39d27bf3e456c306e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+575650af7d7ca88602df28e39d27bf3e456c306e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AugustinLF/advent-of-code-2018 [INFO] finished tweaking git repo https://github.com/AugustinLF/advent-of-code-2018 [INFO] tweaked toml for git repo https://github.com/AugustinLF/advent-of-code-2018 written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/AugustinLF/advent-of-code-2018 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+575650af7d7ca88602df28e39d27bf3e456c306e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+575650af7d7ca88602df28e39d27bf3e456c306e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 07cc29d9b6214ae061d55ad2fb111e4136d87b7f6124aa257af60fc7d1e8f40c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "07cc29d9b6214ae061d55ad2fb111e4136d87b7f6124aa257af60fc7d1e8f40c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "07cc29d9b6214ae061d55ad2fb111e4136d87b7f6124aa257af60fc7d1e8f40c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07cc29d9b6214ae061d55ad2fb111e4136d87b7f6124aa257af60fc7d1e8f40c", kill_on_drop: false }` [INFO] [stdout] 07cc29d9b6214ae061d55ad2fb111e4136d87b7f6124aa257af60fc7d1e8f40c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+575650af7d7ca88602df28e39d27bf3e456c306e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] deae3cb49911d3b2bd0cf951d8c40682d5d8f21f3ee3f87a571b975e3f0fef33 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "deae3cb49911d3b2bd0cf951d8c40682d5d8f21f3ee3f87a571b975e3f0fef33", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling libc v0.2.46 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Checking time v0.1.41 [INFO] [stderr] Checking chrono v0.4.6 [INFO] [stderr] Checking advent-of-code-2018 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function is never used: `generate_frequency` [INFO] [stdout] --> src/ex1.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn generate_frequency(initial_frequency: i32, mut input: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `from_string_to_frequencies` [INFO] [stdout] --> src/ex1.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn from_string_to_frequencies(content: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_exercise` [INFO] [stdout] --> src/ex1.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn solve_exercise(process: fn(i32, Vec) -> i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_repeated_frequency` [INFO] [stdout] --> src/ex1.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn find_repeated_frequency(base_frequency: i32, input: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_product_checksum` [INFO] [stdout] --> src/ex2.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn get_product_checksum(id: &str) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_checksum` [INFO] [stdout] --> src/ex2.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn calculate_checksum(ids: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `are_ids_similar` [INFO] [stdout] --> src/ex2.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn are_ids_similar<'a>(first: &'a str, second: &'a str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_ids` [INFO] [stdout] --> src/ex2.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn get_ids() -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_base_id` [INFO] [stdout] --> src/ex2.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn find_base_id(mut ids: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_exercise_1` [INFO] [stdout] --> src/ex2.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn solve_exercise_1() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_exercise_2` [INFO] [stdout] --> src/ex2.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn solve_exercise_2() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_claim` [INFO] [stdout] --> src/ex3.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn parse_claim<'a>(claim: &'a str) -> Claim<'a> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `set_covered_fabric` [INFO] [stdout] --> src/ex3.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn set_covered_fabric(claim: &Claim, fabric: &mut HashMap) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_covered_fabric_for_claims` [INFO] [stdout] --> src/ex3.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn get_covered_fabric_for_claims(claims: &mut Vec) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_fabric_for_claims` [INFO] [stdout] --> src/ex3.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn find_fabric_for_claims(mut claims: Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_claim_overlapped` [INFO] [stdout] --> src/ex3.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn is_claim_overlapped(claim: &Claim, fabric: &HashMap) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_claim_with_no_overlap` [INFO] [stdout] --> src/ex3.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn find_claim_with_no_overlap<'a>(mut claims: Vec>) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_exercise_2` [INFO] [stdout] --> src/ex3.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn solve_exercise_2() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `solve_exercise_1` [INFO] [stdout] --> src/ex3.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn solve_exercise_1() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NewGuard` [INFO] [stdout] --> src/ex4.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | NewGuard(u16), // id [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `WakesUp` [INFO] [stdout] --> src/ex4.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | WakesUp, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FallsAsleep` [INFO] [stdout] --> src/ex4.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | FallsAsleep, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_record` [INFO] [stdout] --> src/ex4.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn parse_record<'a>(input: &'a str) -> Record { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `GuardPresence` [INFO] [stdout] --> src/ex4.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | type GuardPresence = HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Presences` [INFO] [stdout] --> src/ex4.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | type Presences = HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rec_get_guards_presence` [INFO] [stdout] --> src/ex4.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn rec_get_guards_presence<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_presence_from_input` [INFO] [stdout] --> src/ex4.rs:94:4 [INFO] [stdout] | [INFO] [stdout] 94 | fn get_presence_from_input(input: &str) -> Presences { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_sleepiest_guard_minute` [INFO] [stdout] --> src/ex4.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn get_sleepiest_guard_minute(guard_presence: &GuardPresence) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_sleepiest_guards_minute` [INFO] [stdout] --> src/ex4.rs:116:4 [INFO] [stdout] | [INFO] [stdout] 116 | fn get_sleepiest_guards_minute(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_most_likely_alseep_minute` [INFO] [stdout] --> src/ex4.rs:151:4 [INFO] [stdout] | [INFO] [stdout] 151 | fn get_most_likely_alseep_minute(input: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exercise_4_1` [INFO] [stdout] --> src/ex4.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn exercise_4_1() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exercise_4_2` [INFO] [stdout] --> src/ex4.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | pub fn exercise_4_2() -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `react_polymer_from_string` [INFO] [stdout] --> src/ex5.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn react_polymer_from_string(polymer: &str) -> LinkedList { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `polymer_react_once` [INFO] [stdout] --> src/ex5.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn polymer_react_once(mut polymer: LinkedList) -> LinkedList { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `polymer_react` [INFO] [stdout] --> src/ex5.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn polymer_react(mut polymer: LinkedList) -> LinkedList { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exercise_5_1` [INFO] [stdout] --> src/ex5.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn exercise_5_1() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `remove_unit_and_react_polymer` [INFO] [stdout] --> src/ex5.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn remove_unit_and_react_polymer(polymer: &str, unit_to_remove: char) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `exercise_5_2` [INFO] [stdout] --> src/ex5.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn exercise_5_2() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.56s [INFO] running `Command { std: "docker" "inspect" "deae3cb49911d3b2bd0cf951d8c40682d5d8f21f3ee3f87a571b975e3f0fef33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "deae3cb49911d3b2bd0cf951d8c40682d5d8f21f3ee3f87a571b975e3f0fef33", kill_on_drop: false }` [INFO] [stdout] deae3cb49911d3b2bd0cf951d8c40682d5d8f21f3ee3f87a571b975e3f0fef33