[INFO] cloning repository https://github.com/celialewis3/fun-with-enums [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/celialewis3/fun-with-enums" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcelialewis3%2Ffun-with-enums", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcelialewis3%2Ffun-with-enums'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4e8b1edf284c33627890f8989f6f3bd166edcb04 [INFO] building celialewis3/fun-with-enums 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%2Fcelialewis3%2Ffun-with-enums" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/celialewis3/fun-with-enums 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/celialewis3/fun-with-enums [INFO] finished tweaking git repo https://github.com/celialewis3/fun-with-enums [INFO] tweaked toml for git repo https://github.com/celialewis3/fun-with-enums written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/celialewis3/fun-with-enums 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-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b1c15ab91415c50ef4a3d55f01f3289a32b029a4367c41ae1b640723e17a0462 [INFO] running `Command { std: "docker" "start" "-a" "b1c15ab91415c50ef4a3d55f01f3289a32b029a4367c41ae1b640723e17a0462", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b1c15ab91415c50ef4a3d55f01f3289a32b029a4367c41ae1b640723e17a0462", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1c15ab91415c50ef4a3d55f01f3289a32b029a4367c41ae1b640723e17a0462", kill_on_drop: false }` [INFO] [stdout] b1c15ab91415c50ef4a3d55f01f3289a32b029a4367c41ae1b640723e17a0462 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f87c975c939e7744342f6f44010a87c72b9f02e48c4f9a899cfb86f6656ae5a0 [INFO] running `Command { std: "docker" "start" "-a" "f87c975c939e7744342f6f44010a87c72b9f02e48c4f9a899cfb86f6656ae5a0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling idk v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_patrons` [INFO] [stdout] --> src/bar.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn simulate_bar(num_patrons: u32) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_patrons` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bar.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | let mut double_order = GroupOrder::new(vec![sallys_order, xors_order]); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PC_1` [INFO] [stdout] --> src/generics.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let PC_1 = ComputerModels::C12400("Model C12, MK Ver. 400, 12/32"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_PC_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PC_2` [INFO] [stdout] --> src/generics.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let PC_2 = ComputerModels::C50035(52); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_PC_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | let room = talk::Room::new(10); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_bar` is never used [INFO] [stdout] --> src/bar.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn simulate_bar(num_patrons: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GroupOrder` is never constructed [INFO] [stdout] --> src/bar.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct GroupOrder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `print_total` are never used [INFO] [stdout] --> src/bar.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl GroupOrder { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 35 | [INFO] [stdout] 36 | fn new(orders: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn print_total(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Customer` is never constructed [INFO] [stdout] --> src/bar.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Customer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bar.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl Customer { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 57 | [INFO] [stdout] 58 | pub fn new(name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Drinks` is never used [INFO] [stdout] --> src/bar.rs:66:6 [INFO] [stdout] | [INFO] [stdout] 66 | enum Drinks { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `price` are never used [INFO] [stdout] --> src/bar.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 73 | impl Drinks { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 74 | [INFO] [stdout] 75 | fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | fn price(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DrinkOrder` is never constructed [INFO] [stdout] --> src/bar.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | struct DrinkOrder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `price`, and `print` are never used [INFO] [stdout] --> src/bar.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 100 | impl DrinkOrder { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 101 | [INFO] [stdout] 102 | fn new(customer: Customer, drink: Drinks) -> DrinkOrder { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | fn price(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | fn print(&self) -> () { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `interests`, and `relationships` are never read [INFO] [stdout] --> src/talk.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Person { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 5 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | interests: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | relationships: Vec [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` 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 `Stranger`, `Friendly`, and `Besties` are never constructed [INFO] [stdout] --> src/talk.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | enum RelationshipLevel { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 22 | Stranger, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 23 | Friendly, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | Besties [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RelationshipLevel` 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 `with` and `level` are never read [INFO] [stdout] --> src/talk.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | struct Relationship { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 29 | with: Person, [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | level: RelationshipLevel [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Relationship` 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: struct `Simulation` is never constructed [INFO] [stdout] --> src/talk.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Simulation { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `step` and `randomize` are never used [INFO] [stdout] --> src/talk.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl Simulation { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 60 | pub fn step(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn randomize(&self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `people` and `conversations` are never read [INFO] [stdout] --> src/talk.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct Room { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 70 | people: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 71 | conversations: Vec [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `talk` is never used [INFO] [stdout] --> src/talk.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 74 | impl Room { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn talk(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `people` and `topic` are never read [INFO] [stdout] --> src/talk.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 150 | pub struct Conversation { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 151 | people: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 152 | topic: Topics, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `greeting` is never used [INFO] [stdout] --> src/talk.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 155 | impl Person { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn greeting(&self) -> () { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `animal` and `name` are never read [INFO] [stdout] --> src/generics.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Animal { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 7 | animal: T, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Animal` 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 `Cat` is never constructed [INFO] [stdout] --> src/generics.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Animals { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 13 | Cat, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Animals` 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 `C73412` is never constructed [INFO] [stdout] --> src/generics.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum ComputerModels { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 44 | C73412(T), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ComputerModels` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PC_1` should have a snake case name [INFO] [stdout] --> src/generics.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let PC_1 = ComputerModels::C12400("Model C12, MK Ver. 400, 12/32"); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `pc_1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PC_2` should have a snake case name [INFO] [stdout] --> src/generics.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let PC_2 = ComputerModels::C50035(52); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `pc_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PC_3` should have a snake case name [INFO] [stdout] --> src/generics.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let PC_3 = ComputerModels::C50035(23422.01); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `pc_3` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.83s [INFO] running `Command { std: "docker" "inspect" "f87c975c939e7744342f6f44010a87c72b9f02e48c4f9a899cfb86f6656ae5a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f87c975c939e7744342f6f44010a87c72b9f02e48c4f9a899cfb86f6656ae5a0", kill_on_drop: false }` [INFO] [stdout] f87c975c939e7744342f6f44010a87c72b9f02e48c4f9a899cfb86f6656ae5a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5b8948ebc03d754916a5299192c32e0db37b9c5c1b537ed801ab5483813cacf5 [INFO] running `Command { std: "docker" "start" "-a" "5b8948ebc03d754916a5299192c32e0db37b9c5c1b537ed801ab5483813cacf5", kill_on_drop: false }` [INFO] [stderr] Compiling idk v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_patrons` [INFO] [stdout] --> src/bar.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn simulate_bar(num_patrons: u32) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_patrons` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bar.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | let mut double_order = GroupOrder::new(vec![sallys_order, xors_order]); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PC_1` [INFO] [stdout] --> src/generics.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let PC_1 = ComputerModels::C12400("Model C12, MK Ver. 400, 12/32"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_PC_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `PC_2` [INFO] [stdout] --> src/generics.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let PC_2 = ComputerModels::C50035(52); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_PC_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room` [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | let room = talk::Room::new(10); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_room` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulate_bar` is never used [INFO] [stdout] --> src/bar.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn simulate_bar(num_patrons: u32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GroupOrder` is never constructed [INFO] [stdout] --> src/bar.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct GroupOrder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `print_total` are never used [INFO] [stdout] --> src/bar.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl GroupOrder { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 35 | [INFO] [stdout] 36 | fn new(orders: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn print_total(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Customer` is never constructed [INFO] [stdout] --> src/bar.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Customer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bar.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl Customer { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 57 | [INFO] [stdout] 58 | pub fn new(name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Drinks` is never used [INFO] [stdout] --> src/bar.rs:66:6 [INFO] [stdout] | [INFO] [stdout] 66 | enum Drinks { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `price` are never used [INFO] [stdout] --> src/bar.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 73 | impl Drinks { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 74 | [INFO] [stdout] 75 | fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | fn price(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DrinkOrder` is never constructed [INFO] [stdout] --> src/bar.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | struct DrinkOrder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `price`, and `print` are never used [INFO] [stdout] --> src/bar.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 100 | impl DrinkOrder { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 101 | [INFO] [stdout] 102 | fn new(customer: Customer, drink: Drinks) -> DrinkOrder { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | fn price(&self) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | fn print(&self) -> () { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `interests`, and `relationships` are never read [INFO] [stdout] --> src/talk.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Person { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 5 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | interests: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | relationships: Vec [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Person` 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 `Stranger`, `Friendly`, and `Besties` are never constructed [INFO] [stdout] --> src/talk.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | enum RelationshipLevel { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 22 | Stranger, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 23 | Friendly, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 24 | Besties [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RelationshipLevel` 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 `with` and `level` are never read [INFO] [stdout] --> src/talk.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | struct Relationship { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 29 | with: Person, [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | level: RelationshipLevel [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Relationship` 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: struct `Simulation` is never constructed [INFO] [stdout] --> src/talk.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Simulation { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `step` and `randomize` are never used [INFO] [stdout] --> src/talk.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl Simulation { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 60 | pub fn step(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn randomize(&self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `people` and `conversations` are never read [INFO] [stdout] --> src/talk.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct Room { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 70 | people: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 71 | conversations: Vec [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `talk` is never used [INFO] [stdout] --> src/talk.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 74 | impl Room { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn talk(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `people` and `topic` are never read [INFO] [stdout] --> src/talk.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 150 | pub struct Conversation { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 151 | people: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 152 | topic: Topics, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `greeting` is never used [INFO] [stdout] --> src/talk.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 155 | impl Person { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 202 | pub fn greeting(&self) -> () { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `animal` and `name` are never read [INFO] [stdout] --> src/generics.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Animal { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 7 | animal: T, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 8 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Animal` 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 `Cat` is never constructed [INFO] [stdout] --> src/generics.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum Animals { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 13 | Cat, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Animals` 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 `C73412` is never constructed [INFO] [stdout] --> src/generics.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum ComputerModels { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 44 | C73412(T), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ComputerModels` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PC_1` should have a snake case name [INFO] [stdout] --> src/generics.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let PC_1 = ComputerModels::C12400("Model C12, MK Ver. 400, 12/32"); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `pc_1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PC_2` should have a snake case name [INFO] [stdout] --> src/generics.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let PC_2 = ComputerModels::C50035(52); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `pc_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PC_3` should have a snake case name [INFO] [stdout] --> src/generics.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let PC_3 = ComputerModels::C50035(23422.01); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `pc_3` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "5b8948ebc03d754916a5299192c32e0db37b9c5c1b537ed801ab5483813cacf5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b8948ebc03d754916a5299192c32e0db37b9c5c1b537ed801ab5483813cacf5", kill_on_drop: false }` [INFO] [stdout] 5b8948ebc03d754916a5299192c32e0db37b9c5c1b537ed801ab5483813cacf5