[INFO] cloning repository https://github.com/TonyBlock/rust_labs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TonyBlock/rust_labs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTonyBlock%2Frust_labs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTonyBlock%2Frust_labs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3216a2708f44a292b3ab0a02a1eb7deb992fa6ec [INFO] checking TonyBlock/rust_labs against try#84addd32a13fa2d3f62fe5d99031611147b7fb13 for pr-147565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTonyBlock%2Frust_labs" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/TonyBlock/rust_labs [INFO] finished tweaking git repo https://github.com/TonyBlock/rust_labs [INFO] tweaked toml for git repo https://github.com/TonyBlock/rust_labs written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/TonyBlock/rust_labs on toolchain 84addd32a13fa2d3f62fe5d99031611147b7fb13 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+84addd32a13fa2d3f62fe5d99031611147b7fb13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/TonyBlock/rust_labs 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" "+84addd32a13fa2d3f62fe5d99031611147b7fb13" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+84addd32a13fa2d3f62fe5d99031611147b7fb13" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1d862c8824ff3c77bb1a5d742fc0e4b39cf733355ce7dece242d58c11bde93cb [INFO] running `Command { std: "docker" "start" "-a" "1d862c8824ff3c77bb1a5d742fc0e4b39cf733355ce7dece242d58c11bde93cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1d862c8824ff3c77bb1a5d742fc0e4b39cf733355ce7dece242d58c11bde93cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d862c8824ff3c77bb1a5d742fc0e4b39cf733355ce7dece242d58c11bde93cb", kill_on_drop: false }` [INFO] [stdout] 1d862c8824ff3c77bb1a5d742fc0e4b39cf733355ce7dece242d58c11bde93cb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+84addd32a13fa2d3f62fe5d99031611147b7fb13" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5a2c9cf866f55725c34dd08fbaec85064d6843a428148940d1982cd34223020b [INFO] running `Command { std: "docker" "start" "-a" "5a2c9cf866f55725c34dd08fbaec85064d6843a428148940d1982cd34223020b", kill_on_drop: false }` [INFO] [stderr] Checking lab_4 v0.1.0 (/opt/rustwide/workdir/lab_4) [INFO] [stderr] Checking lab_7 v0.1.0 (/opt/rustwide/workdir/lab_7) [INFO] [stderr] Checking lab_12 v0.1.0 (/opt/rustwide/workdir/lab_12) [INFO] [stderr] Checking lab_14 v0.1.0 (/opt/rustwide/workdir/lab_14) [INFO] [stderr] Checking lab_8 v0.1.0 (/opt/rustwide/workdir/lab_8) [INFO] [stderr] Checking lab_6 v0.1.0 (/opt/rustwide/workdir/lab_6) [INFO] [stderr] Checking lab_5 v0.1.0 (/opt/rustwide/workdir/lab_5) [INFO] [stderr] Checking lab_15 v0.1.0 (/opt/rustwide/workdir/lab_15) [INFO] [stderr] Checking lab_2 v0.1.0 (/opt/rustwide/workdir/lab_2) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lab_14/src/main.rs:27:25 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn visit_doctor(&mut self, measurements: Measurements) -> HealthReport { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 27 | pub fn visit_doctor(&mut self, measurements: Measurements) -> HealthReport<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> lab_5/src/main.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | CarArrived(Floor), [INFO] [stdout] | ---------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [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] 4 - CarArrived(Floor), [INFO] [stdout] 4 + CarArrived(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> lab_5/src/main.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | CarDoorStateUpdated(CarDoorState), [INFO] [stdout] | ------------------- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` 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] 5 - CarDoorStateUpdated(CarDoorState), [INFO] [stdout] 5 + CarDoorStateUpdated(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Operation` is never used [INFO] [stdout] --> lab_6/src/main.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum Operation { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> lab_5/src/main.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | ButtonPressed(Button), [INFO] [stdout] | ------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` 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] 6 - ButtonPressed(Button), [INFO] [stdout] 6 + ButtonPressed(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> lab_5/src/main.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | LobbyCall(Floor, Direction), [INFO] [stdout] | --------- ^^^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Button` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 20 - LobbyCall(Floor, Direction), [INFO] [stdout] 20 + LobbyCall((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> lab_5/src/main.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | CarFloor(Floor) [INFO] [stdout] | -------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Button` 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] 21 - CarFloor(Floor) [INFO] [stdout] 21 + CarFloor(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expression` is never used [INFO] [stdout] --> lab_6/src/main.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | enum Expression { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Down` is never constructed [INFO] [stdout] --> lab_5/src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | enum Direction { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 27 | Up, [INFO] [stdout] 28 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` 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 `eval` is never used [INFO] [stdout] --> lab_6/src/main.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn eval(e: Expression) -> i64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking lab_18 v0.1.0 (/opt/rustwide/workdir/lab_18) [INFO] [stderr] Checking lab_3 v0.1.0 (/opt/rustwide/workdir/lab_3) [INFO] [stderr] Checking lab_17 v0.1.0 (/opt/rustwide/workdir/lab_17) [INFO] [stdout] warning: variants `Java` and `Perl` are never constructed [INFO] [stdout] --> lab_12/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum Language { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 3 | Rust, [INFO] [stdout] 4 | Java, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | 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] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `version_expression` are never read [INFO] [stdout] --> lab_12/src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Dependency { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 10 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | 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] [stderr] Checking lab_10 v0.1.0 (/opt/rustwide/workdir/lab_10) [INFO] [stderr] Checking lab_11 v0.1.0 (/opt/rustwide/workdir/lab_11) [INFO] [stderr] Checking lab_13 v0.1.0 (/opt/rustwide/workdir/lab_13) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lab_15/src/main.rs:100:22 [INFO] [stdout] | [INFO] [stdout] 100 | fn parse_field(data: &[u8]) -> (Field, &[u8]) { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ the same lifetime is elided here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | fn parse_field(data: &[u8]) -> (Field<'_>, &[u8]) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking lab_16 v0.1.0 (/opt/rustwide/workdir/lab_16) [INFO] [stdout] warning: fields `value`, `left`, and `right` are never read [INFO] [stdout] --> lab_13/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | value: T, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | left: Subtree, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | right: Subtree, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> lab_13/src/main.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | struct Subtree(Option>>); [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Subtree` 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 `root` is never read [INFO] [stdout] --> lab_13/src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct BinaryTree { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 20 | root: Subtree, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, `has`, and `len` are never used [INFO] [stdout] --> lab_13/src/main.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl BinaryTree { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 24 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn insert(&mut self, value: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn has(&self, value: &T) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | 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] --> lab_13/src/main.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl Subtree { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 42 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | fn insert(&mut self, value: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn has(&self, value: &T) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lab_15/src/main.rs:100:22 [INFO] [stdout] | [INFO] [stdout] 100 | fn parse_field(data: &[u8]) -> (Field, &[u8]) { [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^ the same lifetime is elided here [INFO] [stdout] | | | [INFO] [stdout] | | the same lifetime is hidden here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | fn parse_field(data: &[u8]) -> (Field<'_>, &[u8]) { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking lab_1 v0.1.0 (/opt/rustwide/workdir/lab_1) [INFO] [stderr] Checking POTS_Labs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `offset_differences` is never used [INFO] [stdout] --> lab_16/src/main.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn offset_differences(offset: usize, values: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Java` and `Perl` are never constructed [INFO] [stdout] --> lab_12/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum Language { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 3 | Rust, [INFO] [stdout] 4 | Java, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | 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] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `version_expression` are never read [INFO] [stdout] --> lab_12/src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Dependency { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 10 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | 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] [stderr] Checking lab_9 v0.1.0 (/opt/rustwide/workdir/lab_9) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> lab_14/src/main.rs:27:25 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn visit_doctor(&mut self, measurements: Measurements) -> HealthReport { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 27 | pub fn visit_doctor(&mut self, measurements: Measurements) -> HealthReport<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> lab_5/src/main.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | CarArrived(Floor), [INFO] [stdout] | ---------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [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] 4 - CarArrived(Floor), [INFO] [stdout] 4 + CarArrived(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> lab_5/src/main.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | CarDoorStateUpdated(CarDoorState), [INFO] [stdout] | ------------------- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` 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] 5 - CarDoorStateUpdated(CarDoorState), [INFO] [stdout] 5 + CarDoorStateUpdated(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> lab_5/src/main.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | ButtonPressed(Button), [INFO] [stdout] | ------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Event` 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] 6 - ButtonPressed(Button), [INFO] [stdout] 6 + ButtonPressed(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> lab_5/src/main.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | LobbyCall(Floor, Direction), [INFO] [stdout] | --------- ^^^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Button` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 20 - LobbyCall(Floor, Direction), [INFO] [stdout] 20 + LobbyCall((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> lab_5/src/main.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | CarFloor(Floor) [INFO] [stdout] | -------- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Button` 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] 21 - CarFloor(Floor) [INFO] [stdout] 21 + CarFloor(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Down` is never constructed [INFO] [stdout] --> lab_5/src/main.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | enum Direction { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 27 | Up, [INFO] [stdout] 28 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Div` is never constructed [INFO] [stdout] --> lab_6/src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 3 | enum Operation { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 7 | Div, [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] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.92s [INFO] running `Command { std: "docker" "inspect" "5a2c9cf866f55725c34dd08fbaec85064d6843a428148940d1982cd34223020b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a2c9cf866f55725c34dd08fbaec85064d6843a428148940d1982cd34223020b", kill_on_drop: false }` [INFO] [stdout] 5a2c9cf866f55725c34dd08fbaec85064d6843a428148940d1982cd34223020b