[INFO] cloning repository https://github.com/cshaffer/advent_2017 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cshaffer/advent_2017" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcshaffer%2Fadvent_2017", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcshaffer%2Fadvent_2017'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 96ccf7be81dc5a12d7600d765701091585a7f090 [INFO] building cshaffer/advent_2017 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcshaffer%2Fadvent_2017" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cshaffer/advent_2017 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cshaffer/advent_2017 [INFO] finished tweaking git repo https://github.com/cshaffer/advent_2017 [INFO] tweaked toml for git repo https://github.com/cshaffer/advent_2017 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/cshaffer/advent_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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b7afd633418a2efc374d698dca68223a0bcd6c65864dd8f7dea4a07758e702e7 [INFO] running `Command { std: "docker" "start" "-a" "b7afd633418a2efc374d698dca68223a0bcd6c65864dd8f7dea4a07758e702e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b7afd633418a2efc374d698dca68223a0bcd6c65864dd8f7dea4a07758e702e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7afd633418a2efc374d698dca68223a0bcd6c65864dd8f7dea4a07758e702e7", kill_on_drop: false }` [INFO] [stdout] b7afd633418a2efc374d698dca68223a0bcd6c65864dd8f7dea4a07758e702e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f744efdfb63494864f3e66863c876e092e7f2487cdf048a99bcaa199591e4e0a [INFO] running `Command { std: "docker" "start" "-a" "f744efdfb63494864f3e66863c876e092e7f2487cdf048a99bcaa199591e4e0a", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling libc v0.2.34 [INFO] [stderr] Compiling lazy_static v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.4.1 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling thread_local v0.3.5 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling aho-corasick v0.6.4 [INFO] [stderr] Compiling regex v0.2.3 [INFO] [stderr] Compiling advent_2017 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/registers.rs:3:42 [INFO] [stdout] | [INFO] [stdout] 3 | fn parse_comparison(operator: String) -> (fn(&i32, &i32) -> bool) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 3 - fn parse_comparison(operator: String) -> (fn(&i32, &i32) -> bool) { [INFO] [stdout] 3 + fn parse_comparison(operator: String) -> fn(&i32, &i32) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/registers.rs:19:40 [INFO] [stdout] | [INFO] [stdout] 19 | fn parse_operator(operator: String) -> (fn(i32, i32) -> i32) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - fn parse_operator(operator: String) -> (fn(i32, i32) -> i32) { [INFO] [stdout] 19 + fn parse_operator(operator: String) -> fn(i32, i32) -> i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inverse_captcha_main` is never used [INFO] [stdout] --> src/main.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn inverse_captcha_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `checksum_main` is never used [INFO] [stdout] --> src/main.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn checksum_main() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spiral_memory_main` is never used [INFO] [stdout] --> src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn spiral_memory_main(input: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `passphrase_main` is never used [INFO] [stdout] --> src/main.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn passphrase_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `realloc_main` is never used [INFO] [stdout] --> src/main.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn realloc_main() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tower_main` is never used [INFO] [stdout] --> src/main.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn tower_main() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `registers_main` is never used [INFO] [stdout] --> src/main.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn registers_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stream_main` is never used [INFO] [stdout] --> src/main.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn stream_main() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knot_main` is never used [INFO] [stdout] --> src/main.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn knot_main() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `checksum` is never used [INFO] [stdout] --> src/checksum.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn checksum(numbers: Vec>, pair_finder: fn(Vec) -> (u32, u32), pair_transformation: fn(u32, u32) -> u32) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divisible` is never used [INFO] [stdout] --> src/checksum.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn divisible(first: u32, second: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divisible_values` is never used [INFO] [stdout] --> src/checksum.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn divisible_values(row: Vec) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extreme_values` is never used [INFO] [stdout] --> src/checksum.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn extreme_values(row: Vec) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quotient` is never used [INFO] [stdout] --> src/checksum.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn quotient(first: u32, second: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `difference` is never used [INFO] [stdout] --> src/checksum.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn difference(first: u32, second: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_one_line` is never used [INFO] [stdout] --> src/io.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn read_one_line() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_int_arrays_from_file` is never used [INFO] [stdout] --> src/io.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn read_int_arrays_from_file(path: String) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_string_arrays_from_file` is never used [INFO] [stdout] --> src/io.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn read_string_arrays_from_file(path: String) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_string_lines_from_file` is never used [INFO] [stdout] --> src/io.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn read_string_lines_from_file(path: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_int_array_from_file` is never used [INFO] [stdout] --> src/io.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn read_int_array_from_file(path: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inverse_captcha` is never used [INFO] [stdout] --> src/inverse_captcha.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn inverse_captcha(digits: String) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_of_matching_offset_digits` is never used [INFO] [stdout] --> src/inverse_captcha.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn sum_of_matching_offset_digits(v: &Vec, offset_function: fn(&Vec) -> usize) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_string_of_digits` is never used [INFO] [stdout] --> src/inverse_captcha.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn parse_string_of_digits(input: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `just_one` is never used [INFO] [stdout] --> src/inverse_captcha.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn just_one(_: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `length_over_two` is never used [INFO] [stdout] --> src/inverse_captcha.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn length_over_two(vector: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_count` is never used [INFO] [stdout] --> src/passphrase.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn valid_count(phrases: Vec>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_word` is never used [INFO] [stdout] --> src/passphrase.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn sort_word(word: &String) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_passphrase` is never used [INFO] [stdout] --> src/passphrase.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn valid_passphrase(phrase: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `construct_tower` is never used [INFO] [stdout] --> src/tower.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn construct_tower(input: Vec) -> (HashMap, HashMap, HashMap>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_weight` is never used [INFO] [stdout] --> src/tower.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn parse_weight(text: String) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_weight_at_node` is never used [INFO] [stdout] --> src/tower.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn find_weight_at_node(tower: HashMap>, weights: HashMap, node: String) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_node_weights` is never used [INFO] [stdout] --> src/tower.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn print_node_weights(tower: HashMap>, weights: HashMap, root: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_root_of_tower` is never used [INFO] [stdout] --> src/tower.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn find_root_of_tower(tower: HashMap) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `realloc` is never used [INFO] [stdout] --> src/realloc.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn realloc(memory: Vec) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `redistribute` is never used [INFO] [stdout] --> src/realloc.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn redistribute(memory: Vec, blocks: u32, next_index: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_index_of_max_value` is never used [INFO] [stdout] --> src/realloc.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn find_index_of_max_value(memory: Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `manhattan_distance` is never used [INFO] [stdout] --> src/spiral_memory.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn manhattan_distance(destination: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `travel_spiral` is never used [INFO] [stdout] --> src/spiral_memory.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn travel_spiral(destination: u32) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spiral_sum` is never used [INFO] [stdout] --> src/spiral_memory.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn spiral_sum(input: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_comparison` is never used [INFO] [stdout] --> src/registers.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn parse_comparison(operator: String) -> (fn(&i32, &i32) -> bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_operator` is never used [INFO] [stdout] --> src/registers.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn parse_operator(operator: String) -> (fn(i32, i32) -> i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_instructions` is never used [INFO] [stdout] --> src/registers.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn run_instructions(input: Vec) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_largest_value` is never used [INFO] [stdout] --> src/registers.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn find_largest_value(registers: HashMap) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_garbage` is never used [INFO] [stdout] --> src/stream.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn count_garbage(stream: String) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/knot.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn hash(lengths_string: String) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_sublist` is never used [INFO] [stdout] --> src/knot.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn reverse_sublist(list: Vec, index: usize, size: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.54s [INFO] running `Command { std: "docker" "inspect" "f744efdfb63494864f3e66863c876e092e7f2487cdf048a99bcaa199591e4e0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f744efdfb63494864f3e66863c876e092e7f2487cdf048a99bcaa199591e4e0a", kill_on_drop: false }` [INFO] [stdout] f744efdfb63494864f3e66863c876e092e7f2487cdf048a99bcaa199591e4e0a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39828379a34955090c2450896d4d0e46c903fa15e0793f9ca6a57d0b9d6a4d59 [INFO] running `Command { std: "docker" "start" "-a" "39828379a34955090c2450896d4d0e46c903fa15e0793f9ca6a57d0b9d6a4d59", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling advent_2017 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/registers.rs:3:42 [INFO] [stdout] | [INFO] [stdout] 3 | fn parse_comparison(operator: String) -> (fn(&i32, &i32) -> bool) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 3 - fn parse_comparison(operator: String) -> (fn(&i32, &i32) -> bool) { [INFO] [stdout] 3 + fn parse_comparison(operator: String) -> fn(&i32, &i32) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/registers.rs:19:40 [INFO] [stdout] | [INFO] [stdout] 19 | fn parse_operator(operator: String) -> (fn(i32, i32) -> i32) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 19 - fn parse_operator(operator: String) -> (fn(i32, i32) -> i32) { [INFO] [stdout] 19 + fn parse_operator(operator: String) -> fn(i32, i32) -> i32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inverse_captcha_main` is never used [INFO] [stdout] --> src/main.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn inverse_captcha_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `checksum_main` is never used [INFO] [stdout] --> src/main.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn checksum_main() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spiral_memory_main` is never used [INFO] [stdout] --> src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn spiral_memory_main(input: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `passphrase_main` is never used [INFO] [stdout] --> src/main.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn passphrase_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `realloc_main` is never used [INFO] [stdout] --> src/main.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn realloc_main() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tower_main` is never used [INFO] [stdout] --> src/main.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn tower_main() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `registers_main` is never used [INFO] [stdout] --> src/main.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn registers_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stream_main` is never used [INFO] [stdout] --> src/main.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn stream_main() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `knot_main` is never used [INFO] [stdout] --> src/main.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn knot_main() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `checksum` is never used [INFO] [stdout] --> src/checksum.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn checksum(numbers: Vec>, pair_finder: fn(Vec) -> (u32, u32), pair_transformation: fn(u32, u32) -> u32) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divisible` is never used [INFO] [stdout] --> src/checksum.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn divisible(first: u32, second: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `divisible_values` is never used [INFO] [stdout] --> src/checksum.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn divisible_values(row: Vec) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extreme_values` is never used [INFO] [stdout] --> src/checksum.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn extreme_values(row: Vec) -> (u32, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `quotient` is never used [INFO] [stdout] --> src/checksum.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn quotient(first: u32, second: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `difference` is never used [INFO] [stdout] --> src/checksum.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn difference(first: u32, second: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_one_line` is never used [INFO] [stdout] --> src/io.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn read_one_line() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_int_arrays_from_file` is never used [INFO] [stdout] --> src/io.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn read_int_arrays_from_file(path: String) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_string_arrays_from_file` is never used [INFO] [stdout] --> src/io.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn read_string_arrays_from_file(path: String) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_string_lines_from_file` is never used [INFO] [stdout] --> src/io.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn read_string_lines_from_file(path: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_int_array_from_file` is never used [INFO] [stdout] --> src/io.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn read_int_array_from_file(path: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inverse_captcha` is never used [INFO] [stdout] --> src/inverse_captcha.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn inverse_captcha(digits: String) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_of_matching_offset_digits` is never used [INFO] [stdout] --> src/inverse_captcha.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn sum_of_matching_offset_digits(v: &Vec, offset_function: fn(&Vec) -> usize) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_string_of_digits` is never used [INFO] [stdout] --> src/inverse_captcha.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn parse_string_of_digits(input: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `just_one` is never used [INFO] [stdout] --> src/inverse_captcha.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn just_one(_: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `length_over_two` is never used [INFO] [stdout] --> src/inverse_captcha.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn length_over_two(vector: &Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_count` is never used [INFO] [stdout] --> src/passphrase.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn valid_count(phrases: Vec>) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_word` is never used [INFO] [stdout] --> src/passphrase.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn sort_word(word: &String) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_passphrase` is never used [INFO] [stdout] --> src/passphrase.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn valid_passphrase(phrase: &Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `construct_tower` is never used [INFO] [stdout] --> src/tower.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn construct_tower(input: Vec) -> (HashMap, HashMap, HashMap>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_weight` is never used [INFO] [stdout] --> src/tower.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn parse_weight(text: String) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_weight_at_node` is never used [INFO] [stdout] --> src/tower.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn find_weight_at_node(tower: HashMap>, weights: HashMap, node: String) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_node_weights` is never used [INFO] [stdout] --> src/tower.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn print_node_weights(tower: HashMap>, weights: HashMap, root: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_root_of_tower` is never used [INFO] [stdout] --> src/tower.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn find_root_of_tower(tower: HashMap) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `realloc` is never used [INFO] [stdout] --> src/realloc.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn realloc(memory: Vec) -> u32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `redistribute` is never used [INFO] [stdout] --> src/realloc.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn redistribute(memory: Vec, blocks: u32, next_index: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_index_of_max_value` is never used [INFO] [stdout] --> src/realloc.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn find_index_of_max_value(memory: Vec) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `manhattan_distance` is never used [INFO] [stdout] --> src/spiral_memory.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn manhattan_distance(destination: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `travel_spiral` is never used [INFO] [stdout] --> src/spiral_memory.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn travel_spiral(destination: u32) -> (i32, i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spiral_sum` is never used [INFO] [stdout] --> src/spiral_memory.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn spiral_sum(input: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_comparison` is never used [INFO] [stdout] --> src/registers.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn parse_comparison(operator: String) -> (fn(&i32, &i32) -> bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_operator` is never used [INFO] [stdout] --> src/registers.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn parse_operator(operator: String) -> (fn(i32, i32) -> i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_instructions` is never used [INFO] [stdout] --> src/registers.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn run_instructions(input: Vec) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_largest_value` is never used [INFO] [stdout] --> src/registers.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn find_largest_value(registers: HashMap) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_garbage` is never used [INFO] [stdout] --> src/stream.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn count_garbage(stream: String) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/knot.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn hash(lengths_string: String) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse_sublist` is never used [INFO] [stdout] --> src/knot.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn reverse_sublist(list: Vec, index: usize, size: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "39828379a34955090c2450896d4d0e46c903fa15e0793f9ca6a57d0b9d6a4d59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39828379a34955090c2450896d4d0e46c903fa15e0793f9ca6a57d0b9d6a4d59", kill_on_drop: false }` [INFO] [stdout] 39828379a34955090c2450896d4d0e46c903fa15e0793f9ca6a57d0b9d6a4d59