[INFO] cloning repository https://github.com/lbfagioli/learning-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lbfagioli/learning-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flbfagioli%2Flearning-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flbfagioli%2Flearning-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a8da0e0347c59ab5f6459dc29221e0f915724bd0 [INFO] checking lbfagioli/learning-rust against master#f7b43542838f0a4a6cfdb17fbeadf45002042a77 for pr-138499 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flbfagioli%2Flearning-rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lbfagioli/learning-rust on toolchain f7b43542838f0a4a6cfdb17fbeadf45002042a77 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f7b43542838f0a4a6cfdb17fbeadf45002042a77" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lbfagioli/learning-rust [INFO] finished tweaking git repo https://github.com/lbfagioli/learning-rust [INFO] tweaked toml for git repo https://github.com/lbfagioli/learning-rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/lbfagioli/learning-rust 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" "+f7b43542838f0a4a6cfdb17fbeadf45002042a77" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+f7b43542838f0a4a6cfdb17fbeadf45002042a77" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21f2c56eb2f2e8ce5a4e6789837cf13cd59ea3dc888288c499c70ea7291d5f30 [INFO] running `Command { std: "docker" "start" "-a" "21f2c56eb2f2e8ce5a4e6789837cf13cd59ea3dc888288c499c70ea7291d5f30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21f2c56eb2f2e8ce5a4e6789837cf13cd59ea3dc888288c499c70ea7291d5f30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21f2c56eb2f2e8ce5a4e6789837cf13cd59ea3dc888288c499c70ea7291d5f30", kill_on_drop: false }` [INFO] [stdout] 21f2c56eb2f2e8ce5a4e6789837cf13cd59ea3dc888288c499c70ea7291d5f30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+f7b43542838f0a4a6cfdb17fbeadf45002042a77" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 38fc09d152e3697334ef8f273143b2428a6ce2b058eb7f45d665db96964e447e [INFO] running `Command { std: "docker" "start" "-a" "38fc09d152e3697334ef8f273143b2428a6ce2b058eb7f45d665db96964e447e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling anyhow v1.0.96 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Checking tryrust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/day4/morning.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | while (x < 700000) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 386 - while (x < 700000) { [INFO] [stdout] 386 + while x < 700000 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/day4/morning.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | while (x < 700000) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 386 - while (x < 700000) { [INFO] [stdout] 386 + while x < 700000 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/day4/afternoon.rs:371:9 [INFO] [stdout] | [INFO] [stdout] 371 | Err(err) => println!("error reading file") [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `metadata` is never read [INFO] [stdout] --> src/day2/afternoon.rs:44:3 [INFO] [stdout] | [INFO] [stdout] 42 | struct Key { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 43 | id: u32, [INFO] [stdout] 44 | metadata: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, and `z` are never read [INFO] [stdout] --> src/day2/afternoon.rs:98:3 [INFO] [stdout] | [INFO] [stdout] 97 | struct Derived { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 98 | x: u32, [INFO] [stdout] | ^ [INFO] [stdout] 99 | y: String, [INFO] [stdout] | ^ [INFO] [stdout] 100 | z: Implemented, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Derived` has derived impls for the traits `Default` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day2/afternoon.rs:104:20 [INFO] [stdout] | [INFO] [stdout] 104 | struct Implemented(String); [INFO] [stdout] | ----------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Implemented` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Add` and `Mul` are never constructed [INFO] [stdout] --> src/day2/morning.rs:66:3 [INFO] [stdout] | [INFO] [stdout] 65 | enum Operation { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 66 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] 67 | Sub, [INFO] [stdout] 68 | Mul, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day2/morning.rs:241:22 [INFO] [stdout] | [INFO] [stdout] 241 | struct MetersSquared(i32); [INFO] [stdout] | ------------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `MetersSquared` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `strength` and `hit_points` are never read [INFO] [stdout] --> src/day2/morning.rs:259:3 [INFO] [stdout] | [INFO] [stdout] 257 | struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 258 | name: String, [INFO] [stdout] 259 | strength: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 260 | hit_points: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Player` has derived impls for the traits `Default`, `Clone`, and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day2/morning.rs:314:14 [INFO] [stdout] | [INFO] [stdout] 314 | struct Foofi(String); [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Foofi` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `lives` is never read [INFO] [stdout] --> src/day2/morning.rs:347:3 [INFO] [stdout] | [INFO] [stdout] 346 | struct Cat { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 347 | lives: i8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/day3/morning.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | struct Point(i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `Point` 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: variants `Java` and `Perl` are never constructed [INFO] [stdout] --> src/day3/morning.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | enum Language { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 24 | Rust, [INFO] [stdout] 25 | Java, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | Perl, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Language` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `version_expression` are never read [INFO] [stdout] --> src/day3/morning.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct Dependency { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 31 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | version_expression: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Dependency` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/day3/morning.rs:99:14 [INFO] [stdout] | [INFO] [stdout] 99 | Element(T, Box>), [INFO] [stdout] | ------- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 99 - Element(T, Box>), [INFO] [stdout] 99 + Element(T, ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `age` is never read [INFO] [stdout] --> src/day3/morning.rs:109:3 [INFO] [stdout] | [INFO] [stdout] 107 | struct Dog { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 108 | name: String, [INFO] [stdout] 109 | age: i8, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `lives` is never read [INFO] [stdout] --> src/day3/morning.rs:112:3 [INFO] [stdout] | [INFO] [stdout] 111 | struct Cat { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 112 | lives: i8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/day3/morning.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Subtree` is never constructed [INFO] [stdout] --> src/day3/morning.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | struct Subtree(Option>>); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinaryTree` is never constructed [INFO] [stdout] --> src/day3/morning.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | struct BinaryTree { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, `has`, and `len` are never used [INFO] [stdout] --> src/day3/morning.rs:148:6 [INFO] [stdout] | [INFO] [stdout] 147 | impl Subtree { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 148 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | fn insert(&mut self, value: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | fn has(&self, value: &T) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, `has`, and `len` are never used [INFO] [stdout] --> src/day3/morning.rs:200:6 [INFO] [stdout] | [INFO] [stdout] 199 | impl BinaryTree { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 200 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | fn insert(&mut self, value: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 208 | fn has(&self, value: &T) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `height`, `visit_count`, and `last_blood_pressure` are never read [INFO] [stdout] --> src/day3/afternoon.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | height: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | visit_count: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 21 | last_blood_pressure: Option<(u32, u32)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Measurements` is never constructed [INFO] [stdout] --> src/day3/afternoon.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Measurements { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HealthReport` is never constructed [INFO] [stdout] --> src/day3/afternoon.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct HealthReport<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visit_doctor` is never used [INFO] [stdout] --> src/day3/afternoon.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 36 | impl User { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn visit_doctor(&mut self, measurements: Measurements) -> HealthReport { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `slice` and `color` are never read [INFO] [stdout] --> src/day3/afternoon.rs:117:3 [INFO] [stdout] | [INFO] [stdout] 116 | struct Highlight<'document> { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 117 | slice: &'document str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 118 | color: HighlightColor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Highlight` 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 `offset_differences` is never used [INFO] [stdout] --> src/day4/morning.rs:103:4 [INFO] [stdout] | [INFO] [stdout] 103 | fn offset_differences(offset: usize, values: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> src/day4/morning.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | fn first_word(string: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `luhn` is never used [INFO] [stdout] --> src/day4/morning.rs:235:8 [INFO] [stdout] | [INFO] [stdout] 235 | pub fn luhn(cc_number: &str) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `private` is never used [INFO] [stdout] --> src/day4/morning.rs:162:8 [INFO] [stdout] | [INFO] [stdout] 162 | fn private() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Operation` is never used [INFO] [stdout] --> src/day4/afternoon.rs:102:6 [INFO] [stdout] | [INFO] [stdout] 102 | enum Operation { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expression` is never used [INFO] [stdout] --> src/day4/afternoon.rs:111:6 [INFO] [stdout] | [INFO] [stdout] 111 | enum Expression { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DivideByZeroError` is never constructed [INFO] [stdout] --> src/day4/afternoon.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | struct DivideByZeroError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval` is never used [INFO] [stdout] --> src/day4/afternoon.rs:124:4 [INFO] [stdout] | [INFO] [stdout] 124 | fn eval(e: Expression) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sk` is never read [INFO] [stdout] --> src/day4/afternoon.rs:215:3 [INFO] [stdout] | [INFO] [stdout] 213 | struct KeyPair { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 214 | pk: [u16; 4], // 2 * 4 bytes = 8 bytes [INFO] [stdout] 215 | sk: [u16; 4], [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IntoBytes` is never used [INFO] [stdout] --> src/day4/afternoon.rs:231:18 [INFO] [stdout] | [INFO] [stdout] 231 | pub unsafe trait IntoBytes { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/day4/afternoon.rs:304:3 [INFO] [stdout] | [INFO] [stdout] 303 | struct DirectoryIterator { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 304 | path: CString, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DirectoryIterator` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:21:3 [INFO] [stdout] | [INFO] [stdout] 21 | day4::afternoon::run(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = day4::afternoon::run(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/day4/afternoon.rs:371:9 [INFO] [stdout] | [INFO] [stdout] 371 | Err(err) => println!("error reading file") [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/day4/afternoon.rs:430:25 [INFO] [stdout] | [INFO] [stdout] 430 | println!("counter: {COUNTER}"); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `metadata` is never read [INFO] [stdout] --> src/day2/afternoon.rs:44:3 [INFO] [stdout] | [INFO] [stdout] 42 | struct Key { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 43 | id: u32, [INFO] [stdout] 44 | metadata: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `y`, and `z` are never read [INFO] [stdout] --> src/day2/afternoon.rs:98:3 [INFO] [stdout] | [INFO] [stdout] 97 | struct Derived { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 98 | x: u32, [INFO] [stdout] | ^ [INFO] [stdout] 99 | y: String, [INFO] [stdout] | ^ [INFO] [stdout] 100 | z: Implemented, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Derived` has derived impls for the traits `Default` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day2/afternoon.rs:104:20 [INFO] [stdout] | [INFO] [stdout] 104 | struct Implemented(String); [INFO] [stdout] | ----------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Implemented` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day2/morning.rs:241:22 [INFO] [stdout] | [INFO] [stdout] 241 | struct MetersSquared(i32); [INFO] [stdout] | ------------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `MetersSquared` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `strength` and `hit_points` are never read [INFO] [stdout] --> src/day2/morning.rs:259:3 [INFO] [stdout] | [INFO] [stdout] 257 | struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 258 | name: String, [INFO] [stdout] 259 | strength: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 260 | hit_points: u8, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Player` has derived impls for the traits `Default`, `Clone`, and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/day2/morning.rs:314:14 [INFO] [stdout] | [INFO] [stdout] 314 | struct Foofi(String); [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Foofi` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `lives` is never read [INFO] [stdout] --> src/day2/morning.rs:347:3 [INFO] [stdout] | [INFO] [stdout] 346 | struct Cat { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 347 | lives: i8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/day3/morning.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | struct Point(i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `Point` 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: variants `Java` and `Perl` are never constructed [INFO] [stdout] --> src/day3/morning.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | enum Language { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 24 | Rust, [INFO] [stdout] 25 | Java, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | Perl, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Language` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `version_expression` are never read [INFO] [stdout] --> src/day3/morning.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct Dependency { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 31 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 32 | version_expression: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Dependency` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/day3/morning.rs:99:14 [INFO] [stdout] | [INFO] [stdout] 99 | Element(T, Box>), [INFO] [stdout] | ------- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 99 - Element(T, Box>), [INFO] [stdout] 99 + Element(T, ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `age` is never read [INFO] [stdout] --> src/day3/morning.rs:109:3 [INFO] [stdout] | [INFO] [stdout] 107 | struct Dog { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 108 | name: String, [INFO] [stdout] 109 | age: i8, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `lives` is never read [INFO] [stdout] --> src/day3/morning.rs:112:3 [INFO] [stdout] | [INFO] [stdout] 111 | struct Cat { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 112 | lives: i8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `slice` and `color` are never read [INFO] [stdout] --> src/day3/afternoon.rs:117:3 [INFO] [stdout] | [INFO] [stdout] 116 | struct Highlight<'document> { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 117 | slice: &'document str, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 118 | color: HighlightColor, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Highlight` 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 `private` is never used [INFO] [stdout] --> src/day4/morning.rs:162:8 [INFO] [stdout] | [INFO] [stdout] 162 | fn private() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Add` and `Mul` are never constructed [INFO] [stdout] --> src/day4/afternoon.rs:103:3 [INFO] [stdout] | [INFO] [stdout] 102 | enum Operation { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 103 | Add, [INFO] [stdout] | ^^^ [INFO] [stdout] 104 | Sub, [INFO] [stdout] 105 | Mul, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sk` is never read [INFO] [stdout] --> src/day4/afternoon.rs:215:3 [INFO] [stdout] | [INFO] [stdout] 213 | struct KeyPair { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 214 | pk: [u16; 4], // 2 * 4 bytes = 8 bytes [INFO] [stdout] 215 | sk: [u16; 4], [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IntoBytes` is never used [INFO] [stdout] --> src/day4/afternoon.rs:231:18 [INFO] [stdout] | [INFO] [stdout] 231 | pub unsafe trait IntoBytes { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/day4/afternoon.rs:304:3 [INFO] [stdout] | [INFO] [stdout] 303 | struct DirectoryIterator { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 304 | path: CString, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DirectoryIterator` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:21:3 [INFO] [stdout] | [INFO] [stdout] 21 | day4::afternoon::run(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = day4::afternoon::run(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/day4/afternoon.rs:430:25 [INFO] [stdout] | [INFO] [stdout] 430 | println!("counter: {COUNTER}"); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.66s [INFO] running `Command { std: "docker" "inspect" "38fc09d152e3697334ef8f273143b2428a6ce2b058eb7f45d665db96964e447e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38fc09d152e3697334ef8f273143b2428a6ce2b058eb7f45d665db96964e447e", kill_on_drop: false }` [INFO] [stdout] 38fc09d152e3697334ef8f273143b2428a6ce2b058eb7f45d665db96964e447e