[INFO] cloning repository https://github.com/jostly/advent-of-code-2020
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jostly/advent-of-code-2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjostly%2Fadvent-of-code-2020", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjostly%2Fadvent-of-code-2020'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b9c24a3f1addc94a48d7f346ee2e8c4b7cf9e752
[INFO] building jostly/advent-of-code-2020 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%2Fjostly%2Fadvent-of-code-2020" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/jostly/advent-of-code-2020 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/jostly/advent-of-code-2020
[INFO] finished tweaking git repo https://github.com/jostly/advent-of-code-2020
[INFO] tweaked toml for git repo https://github.com/jostly/advent-of-code-2020 written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/jostly/advent-of-code-2020 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 68e3090926c1f22ef3fff55ffb3dcfa4a901628baa3365d9ee095423916ea5d6
[INFO] running `Command { std: "docker" "start" "-a" "68e3090926c1f22ef3fff55ffb3dcfa4a901628baa3365d9ee095423916ea5d6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "68e3090926c1f22ef3fff55ffb3dcfa4a901628baa3365d9ee095423916ea5d6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "68e3090926c1f22ef3fff55ffb3dcfa4a901628baa3365d9ee095423916ea5d6", kill_on_drop: false }`
[INFO] [stdout] 68e3090926c1f22ef3fff55ffb3dcfa4a901628baa3365d9ee095423916ea5d6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 360eb8305aee0c0576097aa462c183e69696cebcbc2850f09349a51b713d2843
[INFO] running `Command { std: "docker" "start" "-a" "360eb8305aee0c0576097aa462c183e69696cebcbc2850f09349a51b713d2843", kill_on_drop: false }`
[INFO] [stderr] Compiling memchr v2.3.4
[INFO] [stderr] Compiling lazy_static v1.4.0
[INFO] [stderr] Compiling regex-syntax v0.6.21
[INFO] [stderr] Compiling thread_local v1.0.1
[INFO] [stderr] Compiling aho-corasick v0.7.15
[INFO] [stderr] Compiling regex v1.4.2
[INFO] [stderr] Compiling year-2020 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: function `read_lines` is never used
[INFO] [stdout] --> src/util/mod.rs:8:8
[INFO] [stdout] |
[INFO] [stdout] 8 | pub fn read_lines
(filename: P) -> io::Result>>
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `read_records` is never used
[INFO] [stdout] --> src/util/mod.rs:14:8
[INFO] [stdout] |
[INFO] [stdout] 14 | pub fn read_records>(filename: P) -> io::Result>> {
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `read_file` is never used
[INFO] [stdout] --> src/util/mod.rs:36:8
[INFO] [stdout] |
[INFO] [stdout] 36 | pub fn read_file(filename: P) -> Result, T::Err>
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `hash_set` is never used
[INFO] [stdout] --> src/util/mod.rs:45:8
[INFO] [stdout] |
[INFO] [stdout] 45 | pub fn hash_set(v: Vec) -> HashSet {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `find_pair` is never used
[INFO] [stdout] --> src/day01/mod.rs:2:8
[INFO] [stdout] |
[INFO] [stdout] 2 | pub fn find_pair(target: i64, head: i64, tail: &[i64]) -> Option<(i64, i64)> {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `find_2020_in_2` is never used
[INFO] [stdout] --> src/day01/mod.rs:13:8
[INFO] [stdout] |
[INFO] [stdout] 13 | pub fn find_2020_in_2(numbers: &[i64]) -> Option<(i64, i64)> {
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `find_2020_in_3` is never used
[INFO] [stdout] --> src/day01/mod.rs:17:8
[INFO] [stdout] |
[INFO] [stdout] 17 | pub fn find_2020_in_3(numbers: &[i64]) -> Option<(i64, i64, i64)> {
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated items `new` and `is_valid` are never used
[INFO] [stdout] --> src/day02/mod.rs:11:8
[INFO] [stdout] |
[INFO] [stdout] 10 | impl PasswordAndPolicy {
[INFO] [stdout] | ---------------------- associated items in this implementation
[INFO] [stdout] 11 | fn new(input: &str) -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 24 | fn is_valid(&self) -> bool {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `Map` is never constructed
[INFO] [stdout] --> src/day03/mod.rs:5:8
[INFO] [stdout] |
[INFO] [stdout] 5 | struct Map {
[INFO] [stdout] | ^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated items `new`, `goal_at`, `tree_at`, and `count_trees` are never used
[INFO] [stdout] --> src/day03/mod.rs:10:8
[INFO] [stdout] |
[INFO] [stdout] 9 | impl Map {
[INFO] [stdout] | -------- associated items in this implementation
[INFO] [stdout] 10 | fn new(filename: &str) -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 15 | fn goal_at(&self, row: usize) -> bool {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 19 | fn tree_at(&self, row: usize, column: usize) -> bool {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 23 | fn count_trees(&self, delta_row: usize, delta_column: usize) -> usize {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: fields `trees` and `width` are never read
[INFO] [stdout] --> src/day03/mod.rs:39:5
[INFO] [stdout] |
[INFO] [stdout] 38 | struct Line {
[INFO] [stdout] | ---- fields in this struct
[INFO] [stdout] 39 | trees: HashSet,
[INFO] [stdout] | ^^^^^
[INFO] [stdout] 40 | width: usize,
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `tree_at` is never used
[INFO] [stdout] --> src/day03/mod.rs:44:8
[INFO] [stdout] |
[INFO] [stdout] 43 | impl Line {
[INFO] [stdout] | --------- method in this implementation
[INFO] [stdout] 44 | fn tree_at(&self, i: usize) -> bool {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `Passport` is never constructed
[INFO] [stdout] --> src/day04/mod.rs:134:8
[INFO] [stdout] |
[INFO] [stdout] 134 | struct Passport {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `is_valid` is never used
[INFO] [stdout] --> src/day04/mod.rs:139:8
[INFO] [stdout] |
[INFO] [stdout] 138 | impl Passport {
[INFO] [stdout] | ------------- method in this implementation
[INFO] [stdout] 139 | fn is_valid(&self) -> bool {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `parse_passports` is never used
[INFO] [stdout] --> src/day04/mod.rs:152:4
[INFO] [stdout] |
[INFO] [stdout] 152 | fn parse_passports(lines: Vec) -> Vec {
[INFO] [stdout] | ^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `count_answers_in_records` is never used
[INFO] [stdout] --> src/day06/mod.rs:1:4
[INFO] [stdout] |
[INFO] [stdout] 1 | fn count_answers_in_records(records: Vec>, initial: u32, join_func: F) -> u32
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `count_answers` is never used
[INFO] [stdout] --> src/day06/mod.rs:12:4
[INFO] [stdout] |
[INFO] [stdout] 12 | fn count_answers(answers: &[T], initial: u32, join_func: &F) -> u32
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `answer_to_bitfield` is never used
[INFO] [stdout] --> src/day06/mod.rs:21:4
[INFO] [stdout] |
[INFO] [stdout] 21 | fn answer_to_bitfield(s: &str) -> u32 {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout] --> src/day07/mod.rs:36:13
[INFO] [stdout] |
[INFO] [stdout] 36 | struct Line(Bag, BagManifest);
[INFO] [stdout] | ---- ^^^ ^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | fields in this struct
[INFO] [stdout] |
[INFO] [stdout] = help: consider removing these fields
[INFO] [stdout] = note: `Line` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `Processor` is never constructed
[INFO] [stdout] --> src/day08/mod.rs:27:8
[INFO] [stdout] |
[INFO] [stdout] 27 | struct Processor {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated items `from_file`, `is_terminated`, `execute`, `handle_operation`, `swap_at`, and `change_to_terminate` are never used
[INFO] [stdout] --> src/day08/mod.rs:34:8
[INFO] [stdout] |
[INFO] [stdout] 33 | impl Processor {
[INFO] [stdout] | -------------- associated items in this implementation
[INFO] [stdout] 34 | fn from_file(filename: &str) -> Self {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 | fn is_terminated(&self) -> bool {
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 | fn execute(&mut self) {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 59 | fn handle_operation(&mut self) {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 71 | fn swap_at(&mut self, index: usize) -> bool {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 84 | fn change_to_terminate(self) -> (Self, usize) {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `Validator` is never constructed
[INFO] [stdout] --> src/day09/mod.rs:3:8
[INFO] [stdout] |
[INFO] [stdout] 3 | struct Validator {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated items `new` and `check` are never used
[INFO] [stdout] --> src/day09/mod.rs:8:8
[INFO] [stdout] |
[INFO] [stdout] 7 | impl Validator {
[INFO] [stdout] | -------------- associated items in this implementation
[INFO] [stdout] 8 | fn new(preamble: usize) -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 12 | fn check(&self, numbers: &[i64]) -> Option {
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `find_contiguous_set_in_list` is never used
[INFO] [stdout] --> src/day09/mod.rs:32:8
[INFO] [stdout] |
[INFO] [stdout] 32 | pub fn find_contiguous_set_in_list(list: &[i64], target: i64) -> Option<&[i64]> {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `differences` is never used
[INFO] [stdout] --> src/day10/mod.rs:4:8
[INFO] [stdout] |
[INFO] [stdout] 4 | pub fn differences(input: &[i32]) -> Vec {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `count_entries` is never used
[INFO] [stdout] --> src/day10/mod.rs:13:8
[INFO] [stdout] |
[INFO] [stdout] 13 | pub fn count_entries(input: &[T]) -> HashMap
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `jolts` is never used
[INFO] [stdout] --> src/day10/mod.rs:24:4
[INFO] [stdout] |
[INFO] [stdout] 24 | fn jolts(mut input: Vec) -> (usize, usize) {
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `count_consecutive_ones` is never used
[INFO] [stdout] --> src/day10/mod.rs:32:4
[INFO] [stdout] |
[INFO] [stdout] 32 | fn count_consecutive_ones(diffs: &[i32]) -> Vec {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `combinations` is never used
[INFO] [stdout] --> src/day10/mod.rs:50:4
[INFO] [stdout] |
[INFO] [stdout] 50 | fn combinations(consec: usize) -> usize {
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: constant `FLOOR` is never used
[INFO] [stdout] --> src/day11/mod.rs:6:7
[INFO] [stdout] |
[INFO] [stdout] 6 | const FLOOR: u8 = '.' as u8;
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: constant `EMPTY_SEAT` is never used
[INFO] [stdout] --> src/day11/mod.rs:7:7
[INFO] [stdout] |
[INFO] [stdout] 7 | const EMPTY_SEAT: u8 = 'L' as u8;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: constant `TAKEN_SEAT` is never used
[INFO] [stdout] --> src/day11/mod.rs:8:7
[INFO] [stdout] |
[INFO] [stdout] 8 | const TAKEN_SEAT: u8 = '#' as u8;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: enum `SeatAlgorithm` is never used
[INFO] [stdout] --> src/day11/mod.rs:11:6
[INFO] [stdout] |
[INFO] [stdout] 11 | enum SeatAlgorithm {
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `WaitingArea` is never constructed
[INFO] [stdout] --> src/day11/mod.rs:16:8
[INFO] [stdout] |
[INFO] [stdout] 16 | struct WaitingArea {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout] --> src/day11/mod.rs:24:8
[INFO] [stdout] |
[INFO] [stdout] 23 | impl WaitingArea {
[INFO] [stdout] | ---------------- associated items in this implementation
[INFO] [stdout] 24 | fn new(data: &[String]) -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 | fn from_file(filename: &str) -> Self {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 48 | fn with_seat_algorithm(mut self, seat_algorithm: SeatAlgorithm) -> Self {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 53 | fn pos(&self, row: i32, column: i32) -> u8 {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 60 | fn surrounding_taken_seats(&self, row: i32, column: i32) -> u8 {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 96 | fn count_taken_seats(&self) -> Vec {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 106 | fn iterate(&mut self) -> bool {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 130 | fn count_occupied_seats(&self) -> usize {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `Ferry` is never constructed
[INFO] [stdout] --> src/day12/mod.rs:6:8
[INFO] [stdout] |
[INFO] [stdout] 6 | struct Ferry {
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: enum `Direction` is never used
[INFO] [stdout] --> src/day12/mod.rs:13:6
[INFO] [stdout] |
[INFO] [stdout] 13 | enum Direction {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: method `turn_steps` is never used
[INFO] [stdout] --> src/day12/mod.rs:21:8
[INFO] [stdout] |
[INFO] [stdout] 20 | impl Direction {
[INFO] [stdout] | -------------- method in this implementation
[INFO] [stdout] 21 | fn turn_steps(&self, mut steps: i32) -> Direction {
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout] --> src/day12/mod.rs:46:8
[INFO] [stdout] |
[INFO] [stdout] 45 | impl Ferry {
[INFO] [stdout] | ---------- associated items in this implementation
[INFO] [stdout] 46 | fn new() -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 54 | fn go(&mut self, instruction: &str) {
[INFO] [stdout] | ^^
[INFO] [stdout] ...
[INFO] [stdout] 84 | fn apply_turn(&mut self, turns: i32) {
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 88 | fn apply_movement(&mut self, direction: Direction, distance: i32) {
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 105 | fn nav(&mut self, instruction: &str) {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 135 | fn turn_waypoint(&mut self, mut turns: i32) {
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 146 | fn move_waypoint(&mut self, direction: Direction, distance: i32) {
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 163 | fn move_to_waypoint(&mut self, times: i32) {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 170 | fn manhattan_distance(&self) -> i32 {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `find_next_bus` is never used
[INFO] [stdout] --> src/day13/mod.rs:1:4
[INFO] [stdout] |
[INFO] [stdout] 1 | fn find_next_bus(timestamp: u128, buses: &[u128]) -> (u128, u128) {
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `parse_it` is never used
[INFO] [stdout] --> src/day13/mod.rs:17:8
[INFO] [stdout] |
[INFO] [stdout] 17 | pub fn parse_it(s: &str) -> Vec<(u128, u128)> {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `solve_it` is never used
[INFO] [stdout] --> src/day13/mod.rs:25:8
[INFO] [stdout] |
[INFO] [stdout] 25 | pub fn solve_it(parameters: &[(u128, u128)]) -> u128 {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `solve` is never used
[INFO] [stdout] --> src/day13/mod.rs:39:4
[INFO] [stdout] |
[INFO] [stdout] 39 | fn solve(s: &str) -> u128 {
[INFO] [stdout] | ^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `Mask` is never constructed
[INFO] [stdout] --> src/day14/mod.rs:4:8
[INFO] [stdout] |
[INFO] [stdout] 4 | struct Mask {
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated items `new`, `apply`, `apply_mem`, and `add_mutations` are never used
[INFO] [stdout] --> src/day14/mod.rs:11:8
[INFO] [stdout] |
[INFO] [stdout] 10 | impl Mask {
[INFO] [stdout] | --------- associated items in this implementation
[INFO] [stdout] 11 | fn new(mask: &str) -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 41 | fn apply(&self, value: u64) -> u64 {
[INFO] [stdout] | ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 45 | fn apply_mem(&self, mut address: u64) -> Vec {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 60 | fn add_mutations(out: &mut HashSet, base: u64, floatings: &[u64]) {
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `Processor` is never constructed
[INFO] [stdout] --> src/day14/mod.rs:70:8
[INFO] [stdout] |
[INFO] [stdout] 70 | struct Processor {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated items `new` and `execute` are never used
[INFO] [stdout] --> src/day14/mod.rs:76:8
[INFO] [stdout] |
[INFO] [stdout] 75 | impl Processor {
[INFO] [stdout] | -------------- associated items in this implementation
[INFO] [stdout] 76 | fn new() -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 83 | fn execute>(&mut self, src: Vec) -> u64 {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: struct `ProcessorV2` is never constructed
[INFO] [stdout] --> src/day14/mod.rs:105:8
[INFO] [stdout] |
[INFO] [stdout] 105 | struct ProcessorV2 {
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated items `new` and `execute` are never used
[INFO] [stdout] --> src/day14/mod.rs:111:8
[INFO] [stdout] |
[INFO] [stdout] 110 | impl ProcessorV2 {
[INFO] [stdout] | ---------------- associated items in this implementation
[INFO] [stdout] 111 | fn new() -> Self {
[INFO] [stdout] | ^^^
[INFO] [stdout] ...
[INFO] [stdout] 118 | fn execute>(&mut self, src: Vec) -> u64 {
[INFO] [stdout] | ^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.75s
[INFO] running `Command { std: "docker" "inspect" "360eb8305aee0c0576097aa462c183e69696cebcbc2850f09349a51b713d2843", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "360eb8305aee0c0576097aa462c183e69696cebcbc2850f09349a51b713d2843", kill_on_drop: false }`
[INFO] [stdout] 360eb8305aee0c0576097aa462c183e69696cebcbc2850f09349a51b713d2843
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 1d5e77ab1270f0763b7f60548ddcc9a57e9bd65a6cc8a5e2984c14a8665964ee
[INFO] running `Command { std: "docker" "start" "-a" "1d5e77ab1270f0763b7f60548ddcc9a57e9bd65a6cc8a5e2984c14a8665964ee", kill_on_drop: false }`
[INFO] [stderr] Compiling year-2020 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.25s
[INFO] running `Command { std: "docker" "inspect" "1d5e77ab1270f0763b7f60548ddcc9a57e9bd65a6cc8a5e2984c14a8665964ee", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1d5e77ab1270f0763b7f60548ddcc9a57e9bd65a6cc8a5e2984c14a8665964ee", kill_on_drop: false }`
[INFO] [stdout] 1d5e77ab1270f0763b7f60548ddcc9a57e9bd65a6cc8a5e2984c14a8665964ee