[INFO] cloning repository https://github.com/angelofallars/advent-of-code-2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/angelofallars/advent-of-code-2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fangelofallars%2Fadvent-of-code-2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fangelofallars%2Fadvent-of-code-2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f82033526efa0b1f8d2e3e8709d49be39ca53b71 [INFO] checking angelofallars/advent-of-code-2023/f82033526efa0b1f8d2e3e8709d49be39ca53b71 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fangelofallars%2Fadvent-of-code-2023" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/angelofallars/advent-of-code-2023 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/angelofallars/advent-of-code-2023 [INFO] finished tweaking git repo https://github.com/angelofallars/advent-of-code-2023 [INFO] tweaked toml for git repo https://github.com/angelofallars/advent-of-code-2023 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/angelofallars/advent-of-code-2023 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b9418cdafdcf0cbfd2b431bb87c9817749d68f658c681b2607d03ec9309d038c [INFO] running `Command { std: "docker" "start" "-a" "b9418cdafdcf0cbfd2b431bb87c9817749d68f658c681b2607d03ec9309d038c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b9418cdafdcf0cbfd2b431bb87c9817749d68f658c681b2607d03ec9309d038c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9418cdafdcf0cbfd2b431bb87c9817749d68f658c681b2607d03ec9309d038c", kill_on_drop: false }` [INFO] [stdout] b9418cdafdcf0cbfd2b431bb87c9817749d68f658c681b2607d03ec9309d038c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4c8d63ae99501075ec3490e186730d7ff6403b4afc8422cf3a47af5613488e6 [INFO] running `Command { std: "docker" "start" "-a" "a4c8d63ae99501075ec3490e186730d7ff6403b4afc8422cf3a47af5613488e6", kill_on_drop: false }` [INFO] [stderr] Checking aoc-2023 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `backtrace::Backtrace` [INFO] [stdout] --> src/bin/day1.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{backtrace::Backtrace, fs, iter::once}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extend` is never used [INFO] [stdout] --> src/bin/../functools.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn extend< [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Index` [INFO] [stdout] --> src/bin/day3.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs, iter::once, ops::Index}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/day4.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 132 | pub struct Card { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 133 | pub id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Card` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::Hand` [INFO] [stdout] --> src/bin/day7.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::parser::Hand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parsetools::lextools as lt` [INFO] [stdout] --> src/bin/day7.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::parsetools::lextools as lt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Index` [INFO] [stdout] --> src/bin/day3.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs, iter::once, ops::Index}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parser::Hand` [INFO] [stdout] --> src/bin/day7.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::parser::Hand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::parsetools::lextools as lt` [INFO] [stdout] --> src/bin/day7.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::parsetools::lextools as lt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `backtrace::Backtrace` [INFO] [stdout] --> src/bin/day1.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{backtrace::Backtrace, fs, iter::once}; [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_numbers` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn parse_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_token` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn expect_token(expected_token: &T, token: &T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extend` is never used [INFO] [stdout] --> src/bin/.././functools.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn extend< [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skip_whitespace` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn skip_whitespace(input: &Vec, pos: Index) -> Index { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_number` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn read_number(input: &Vec, pos: Index) -> (Index, usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_identifier` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn read_identifier(input: &Vec, pos: Index) -> (Index, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_sequence` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn read_sequence( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_token` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn expect_token(expected_token: &T, token: &T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/day7.rs:214:66 [INFO] [stdout] | [INFO] [stdout] 214 | let mut hands: Vec<_> = hands.into_iter().map(|hand| hand.clone()).collect(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Hand` does not implement `Clone`, so calling `clone` on `&Hand` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 214 - let mut hands: Vec<_> = hands.into_iter().map(|hand| hand.clone()).collect(); [INFO] [stdout] 214 + let mut hands: Vec<_> = hands.into_iter().map(|hand| hand).collect(); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Hand`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 64 + #[derive(Clone)] [INFO] [stdout] 65 | pub struct Hand { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/day7.rs:426:66 [INFO] [stdout] | [INFO] [stdout] 426 | let mut hands: Vec<_> = hands.into_iter().map(|hand| hand.clone()).collect(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Hand` does not implement `Clone`, so calling `clone` on `&Hand` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 426 - let mut hands: Vec<_> = hands.into_iter().map(|hand| hand.clone()).collect(); [INFO] [stdout] 426 + let mut hands: Vec<_> = hands.into_iter().map(|hand| hand).collect(); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Hand`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 64 + #[derive(Clone)] [INFO] [stdout] 65 | pub struct Hand { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extend` is never used [INFO] [stdout] --> src/bin/.././functools.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn extend< [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_end` is never used [INFO] [stdout] --> src/bin/.././functools.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_end(input: &Vec, pos: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `append` is never used [INFO] [stdout] --> src/bin/.././functools.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn append + FromIterator, U>(i: T, elem: U) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_numbers` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn parse_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_token` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn expect_token(expected_token: &T, token: &T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_token_at` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn expect_token_at(input: &Vec, pos: Index, expected_token: T) -> Index { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extend` is never used [INFO] [stdout] --> src/bin/.././functools.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn extend< [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `category` is never read [INFO] [stdout] --> src/bin/day5.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct Initial { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 99 | pub category: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Initial` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `src_category` and `dest_category` are never read [INFO] [stdout] --> src/bin/day5.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct Map { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 112 | pub src_category: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 113 | pub dest_category: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Map` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_token` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn expect_token(expected_token: &T, token: &T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extend` is never used [INFO] [stdout] --> src/bin/.././functools.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn extend< [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_end` is never used [INFO] [stdout] --> src/bin/.././functools.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_end(input: &Vec, pos: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `append` is never used [INFO] [stdout] --> src/bin/.././functools.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn append + FromIterator, U>(i: T, elem: U) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extend` is never used [INFO] [stdout] --> src/bin/../functools.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn extend< [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/day4.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 132 | pub struct Card { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 133 | pub id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Card` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_numbers` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn parse_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_token` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn expect_token(expected_token: &T, token: &T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extend` is never used [INFO] [stdout] --> src/bin/.././functools.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn extend< [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `skip_whitespace` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn skip_whitespace(input: &Vec, pos: Index) -> Index { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_number` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn read_number(input: &Vec, pos: Index) -> (Index, usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_identifier` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn read_identifier(input: &Vec, pos: Index) -> (Index, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_sequence` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn read_sequence( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/day7.rs:214:66 [INFO] [stdout] | [INFO] [stdout] 214 | let mut hands: Vec<_> = hands.into_iter().map(|hand| hand.clone()).collect(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Hand` does not implement `Clone`, so calling `clone` on `&Hand` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 214 - let mut hands: Vec<_> = hands.into_iter().map(|hand| hand.clone()).collect(); [INFO] [stdout] 214 + let mut hands: Vec<_> = hands.into_iter().map(|hand| hand).collect(); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Hand`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 64 + #[derive(Clone)] [INFO] [stdout] 65 | pub struct Hand { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/bin/day7.rs:426:66 [INFO] [stdout] | [INFO] [stdout] 426 | let mut hands: Vec<_> = hands.into_iter().map(|hand| hand.clone()).collect(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `Hand` does not implement `Clone`, so calling `clone` on `&Hand` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 426 - let mut hands: Vec<_> = hands.into_iter().map(|hand| hand.clone()).collect(); [INFO] [stdout] 426 + let mut hands: Vec<_> = hands.into_iter().map(|hand| hand).collect(); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `Hand`, implement `Clone` for it [INFO] [stdout] | [INFO] [stdout] 64 + #[derive(Clone)] [INFO] [stdout] 65 | pub struct Hand { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_numbers` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn parse_numbers( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_token` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn expect_token(expected_token: &T, token: &T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `expect_token_at` is never used [INFO] [stdout] --> src/bin/../parsetools.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn expect_token_at(input: &Vec, pos: Index, expected_token: T) -> Index { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extend` is never used [INFO] [stdout] --> src/bin/.././functools.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn extend< [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `category` is never read [INFO] [stdout] --> src/bin/day5.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct Initial { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 99 | pub category: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Initial` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `src_category` and `dest_category` are never read [INFO] [stdout] --> src/bin/day5.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct Map { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 112 | pub src_category: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 113 | pub dest_category: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Map` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.62s [INFO] running `Command { std: "docker" "inspect" "a4c8d63ae99501075ec3490e186730d7ff6403b4afc8422cf3a47af5613488e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4c8d63ae99501075ec3490e186730d7ff6403b4afc8422cf3a47af5613488e6", kill_on_drop: false }` [INFO] [stdout] a4c8d63ae99501075ec3490e186730d7ff6403b4afc8422cf3a47af5613488e6