[INFO] cloning repository https://github.com/bnguyensn/rust-exercises [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bnguyensn/rust-exercises" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbnguyensn%2Frust-exercises", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbnguyensn%2Frust-exercises'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f9d2e6112418f6625ea1cea3267cc40a84b4f439 [INFO] checking bnguyensn/rust-exercises against try#2b43d8e161cfe46fae25518efb124c3c1d0fa392 for pr-145604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbnguyensn%2Frust-exercises" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/bnguyensn/rust-exercises [INFO] finished tweaking git repo https://github.com/bnguyensn/rust-exercises [INFO] tweaked toml for git repo https://github.com/bnguyensn/rust-exercises written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bnguyensn/rust-exercises on toolchain 2b43d8e161cfe46fae25518efb124c3c1d0fa392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2b43d8e161cfe46fae25518efb124c3c1d0fa392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/bnguyensn/rust-exercises 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" "+2b43d8e161cfe46fae25518efb124c3c1d0fa392" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking bnguyensn/rust-exercises against try#2b43d8e161cfe46fae25518efb124c3c1d0fa392 for pr-145604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbnguyensn%2Frust-exercises" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/bnguyensn/rust-exercises [INFO] finished tweaking git repo https://github.com/bnguyensn/rust-exercises [INFO] tweaked toml for git repo https://github.com/bnguyensn/rust-exercises written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bnguyensn/rust-exercises on toolchain 2b43d8e161cfe46fae25518efb124c3c1d0fa392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2b43d8e161cfe46fae25518efb124c3c1d0fa392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/bnguyensn/rust-exercises 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" "+2b43d8e161cfe46fae25518efb124c3c1d0fa392" "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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+2b43d8e161cfe46fae25518efb124c3c1d0fa392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8a0c397a8572d6430a7d5dc6ba04192201d13c54c5997f2d51f3a6a43aceb960 [INFO] running `Command { std: "docker" "start" "-a" "8a0c397a8572d6430a7d5dc6ba04192201d13c54c5997f2d51f3a6a43aceb960", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8a0c397a8572d6430a7d5dc6ba04192201d13c54c5997f2d51f3a6a43aceb960", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a0c397a8572d6430a7d5dc6ba04192201d13c54c5997f2d51f3a6a43aceb960", kill_on_drop: false }` [INFO] [stdout] 8a0c397a8572d6430a7d5dc6ba04192201d13c54c5997f2d51f3a6a43aceb960 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+2b43d8e161cfe46fae25518efb124c3c1d0fa392" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9268b673667eae0c73383234edcb36686dc9b99444b99753bc567abb532119f [INFO] running `Command { std: "docker" "start" "-a" "e9268b673667eae0c73383234edcb36686dc9b99444b99753bc567abb532119f", kill_on_drop: false }` [INFO] [stderr] Checking rust-exercise-ticket-01 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::ex_12_outro::Order` [INFO] [stdout] --> src/mod_03/outro/ex_12_outro_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::ex_12_outro::Order; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | mod ex_12_outro_test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::ex_414_outro::SaturatingU16` [INFO] [stdout] --> src/mod_04/outro/ex_414_outro_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::ex_414_outro::SaturatingU16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | mod ex_414_outro_test; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/mod_05/ex_504_if_let.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::f64::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/mod_05/ex_505_nullability.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/mod_05/ex_507_unwrap.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | match (ticket) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - match (ticket) { [INFO] [stdout] 6 + match ticket { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/mod_05/ex_507_unwrap.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | if (err.contains("Description")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 9 - if (err.contains("Description")) { [INFO] [stdout] 9 + if err.contains("Description") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::ticket::Ticket` [INFO] [stdout] --> src/mod_03/ex_04_visibility.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | use super::ticket::Ticket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::PI` [INFO] [stdout] --> src/mod_05/ex_504_if_let.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::f64::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/mod_05/ex_505_nullability.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/mod_05/ex_507_unwrap.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | match (ticket) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 6 - match (ticket) { [INFO] [stdout] 6 + match ticket { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/mod_05/ex_507_unwrap.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | if (err.contains("Description")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 9 - if (err.contains("Description")) { [INFO] [stdout] 9 + if err.contains("Description") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wrapping` [INFO] [stdout] --> src/mod_04/ex_409_from.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let wrapping: WrappingU32 = 42.into(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wrapping` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wrapping` [INFO] [stdout] --> src/mod_04/ex_409_from.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let wrapping = WrappingU32::from(42); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wrapping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `overly_long_description` is never used [INFO] [stdout] --> src/common/lib.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn overly_long_description() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `overly_long_title` is never used [INFO] [stdout] --> src/common/lib.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn overly_long_title() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_title` is never used [INFO] [stdout] --> src/common/lib.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn valid_title() -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_description` is never used [INFO] [stdout] --> src/common/lib.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn valid_description() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Order` is never constructed [INFO] [stdout] --> src/mod_03/ex_01_struct.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Order { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_available` is never used [INFO] [stdout] --> src/mod_03/ex_01_struct.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Order { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 7 | fn is_available(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_03/ex_02_validation.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mod_03/ex_02_validation.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Ticket { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | fn new(title: String, description: String, status: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_03/ex_03_modules.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mod_03/ex_03_modules.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Ticket { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 19 | fn new(title: String, description: String, status: String) -> Ticket { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_todo_ticket` is never used [INFO] [stdout] --> src/mod_03/ex_03_modules.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn create_todo_ticket(title: String, description: String) -> Ticket { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_03/ex_04_visibility.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mod_03/ex_04_visibility.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Ticket { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 9 | fn new(title: String, description: String, status: String) -> Ticket { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_03/ex_05_encapsulation.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `title`, `description`, and `status` are never used [INFO] [stdout] --> src/mod_03/ex_05_encapsulation.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 8 | impl Ticket { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(title: String, description: String, status: String) -> Ticket { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn description(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn status(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_03/ex_06_ownership.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `title`, `description`, and `status` are never used [INFO] [stdout] --> src/mod_03/ex_06_ownership.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Ticket { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(title: String, description: String, status: String) -> Ticket { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn title(&self) -> &String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn description(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn status(&self) -> &String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_03/ex_07_setters.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/mod_03/ex_07_setters.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Ticket { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(title: String, description: String, status: String) -> Ticket { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn validate_title(title: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn validate_description(description: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn validate_status(status: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn title(&self) -> &String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn description(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn status(&self) -> &String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn set_title(&mut self, new_title: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn set_description(&mut self, new_description: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn set_status(&mut self, new_status: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_03/ex_09_heap.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_03/ex_10_references.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Order` is never constructed [INFO] [stdout] --> src/mod_03/outro/ex_12_outro.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Order { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/mod_03/outro/ex_12_outro.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Order { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 22 | pub fn new(product_name: String, quantity: usize, unit_price: usize) -> Order { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn validate_product_name(product_name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn validate_quantity(quantity: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | fn validate_unit_price(unit_price: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn total(&self) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn set_product_name(&mut self, new_product_name: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn set_quantity(&mut self, new_quantity: usize) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn set_unit_price(&mut self, new_unit_price: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn product_name(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn quantity(&self) -> &usize { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn unit_price(&self) -> &usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IsEven` is never used [INFO] [stdout] --> src/mod_04/ex_401_trait.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | trait IsEven { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_04/ex_403_operator_overloading.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_04/ex_404_derive.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min` is never used [INFO] [stdout] --> src/mod_04/ex_405_trait_bound.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn min(left: T, right: T) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_04/ex_406_str_slice.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `title`, `description`, and `status` are never used [INFO] [stdout] --> src/mod_04/ex_406_str_slice.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Ticket { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 10 | pub fn new(title: String, description: String, status: String) -> Ticket { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn description(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn status(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_04/ex_407_deref.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `title` and `description` are never used [INFO] [stdout] --> src/mod_04/ex_407_deref.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Ticket { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 14 | pub fn title(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn description(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WrappingU32` is never constructed [INFO] [stdout] --> src/mod_04/ex_409_from.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct WrappingU32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example` is never used [INFO] [stdout] --> src/mod_04/ex_409_from.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Power` is never used [INFO] [stdout] --> src/mod_04/ex_410_assoc.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | trait Power { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `summary` is never used [INFO] [stdout] --> src/mod_04/ex_411_clone.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn summary(ticket: Ticket) -> (Ticket, Summary) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_04/ex_411_clone.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `summary` is never used [INFO] [stdout] --> src/mod_04/ex_411_clone.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Ticket { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 16 | pub fn summary(self) -> Summary { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Summary` is never constructed [INFO] [stdout] --> src/mod_04/ex_411_clone.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Summary { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WrappingU32` is never constructed [INFO] [stdout] --> src/mod_04/ex_412_copy.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct WrappingU32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mod_04/ex_412_copy.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl WrappingU32 { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 12 | pub fn new(value: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DropBomb` is never constructed [INFO] [stdout] --> src/mod_04/ex_413_drop.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct DropBomb { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `defuse` are never used [INFO] [stdout] --> src/mod_04/ex_413_drop.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl DropBomb { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 10 | fn new() -> DropBomb { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn defuse(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SaturatingU16` is never constructed [INFO] [stdout] --> src/mod_04/outro/ex_414_outro.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct SaturatingU16 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_05/ex_501_enum.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Status` is never used [INFO] [stdout] --> src/mod_05/ex_501_enum.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `title`, `description`, and `status` are never used [INFO] [stdout] --> src/mod_05/ex_501_enum.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Ticket { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(title: String, description: String, status: Status) -> Ticket { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn title(&self) -> &String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn description(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn status(&self) -> &Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Shape` is never used [INFO] [stdout] --> src/mod_05/ex_502_match.rs:1:6 [INFO] [stdout] | [INFO] [stdout] 1 | enum Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `n_sides` is never used [INFO] [stdout] --> src/mod_05/ex_502_match.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Shape { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 10 | // TODO: Implement the `n_sides` method using a `match`. [INFO] [stdout] 11 | pub fn n_sides(&self) -> u8 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_05/ex_503_variants.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Status` is never used [INFO] [stdout] --> src/mod_05/ex_503_variants.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `assigned_to` are never used [INFO] [stdout] --> src/mod_05/ex_503_variants.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Ticket { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(title: String, description: String, status: Status) -> Ticket { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn assigned_to(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Shape` is never used [INFO] [stdout] --> src/mod_05/ex_504_if_let.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum Shape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `radius` is never used [INFO] [stdout] --> src/mod_05/ex_504_if_let.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Shape { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn radius(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_05/ex_505_nullability.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Status` is never used [INFO] [stdout] --> src/mod_05/ex_505_nullability.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `assigned_to` are never used [INFO] [stdout] --> src/mod_05/ex_505_nullability.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Ticket { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 20 | pub fn new(title: String, description: String, status: Status) -> Ticket { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn assigned_to(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_05/ex_506_fallibility.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Status` is never used [INFO] [stdout] --> src/mod_05/ex_506_fallibility.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mod_05/ex_506_fallibility.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Ticket { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 19 | pub fn new(title: String, description: String, status: Status) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `easy_ticket` is never used [INFO] [stdout] --> src/mod_05/ex_507_unwrap.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn easy_ticket(title: String, description: String, status: Status) -> Ticket { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_05/ex_507_unwrap.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Status` is never used [INFO] [stdout] --> src/mod_05/ex_507_unwrap.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mod_05/ex_507_unwrap.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Ticket { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 37 | pub fn new(title: String, description: String, status: Status) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TicketNewError` is never used [INFO] [stdout] --> src/mod_05/ex_508_error_enum.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum TicketNewError { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `easy_ticket` is never used [INFO] [stdout] --> src/mod_05/ex_508_error_enum.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn easy_ticket(title: String, description: String, status: Status) -> Ticket { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_05/ex_508_error_enum.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Status` is never used [INFO] [stdout] --> src/mod_05/ex_508_error_enum.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 32 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mod_05/ex_508_error_enum.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Ticket { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 39 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wrapping` [INFO] [stdout] --> src/mod_04/ex_409_from.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let wrapping: WrappingU32 = 42.into(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wrapping` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wrapping` [INFO] [stdout] --> src/mod_04/ex_409_from.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let wrapping = WrappingU32::from(42); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wrapping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bomb` [INFO] [stdout] --> src/mod_04/ex_413_drop.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let bomb = DropBomb::new(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bomb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `price` is never read [INFO] [stdout] --> src/mod_03/ex_01_struct.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct Order { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 2 | price: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `title`, `description`, and `status` are never read [INFO] [stdout] --> src/mod_03/ex_02_validation.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct Ticket { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 2 | title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_03/ex_03_modules.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mod_03/ex_03_modules.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Ticket { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 19 | fn new(title: String, description: String, status: String) -> Ticket { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_todo_ticket` is never used [INFO] [stdout] --> src/mod_03/ex_03_modules.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn create_todo_ticket(title: String, description: String) -> Ticket { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_03/ex_04_visibility.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mod_03/ex_04_visibility.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Ticket { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 9 | fn new(title: String, description: String, status: String) -> Ticket { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `should_not_be_possible` is never used [INFO] [stdout] --> src/mod_03/ex_04_visibility.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn should_not_be_possible() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encapsulation_cannot_be_violated` is never used [INFO] [stdout] --> src/mod_03/ex_04_visibility.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | fn encapsulation_cannot_be_violated() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `title`, `description`, and `status` are never read [INFO] [stdout] --> src/mod_03/ex_09_heap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Ticket { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 2 | title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `title`, `description`, and `status` are never read [INFO] [stdout] --> src/mod_03/ex_10_references.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Ticket { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 2 | title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 4 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `min` is never used [INFO] [stdout] --> src/mod_04/ex_405_trait_bound.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn min(left: T, right: T) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `status` is never read [INFO] [stdout] --> src/mod_04/ex_407_deref.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Ticket { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WrappingU32` is never constructed [INFO] [stdout] --> src/mod_04/ex_409_from.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct WrappingU32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example` is never used [INFO] [stdout] --> src/mod_04/ex_409_from.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn example() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `summary` is never used [INFO] [stdout] --> src/mod_04/ex_411_clone.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn summary(ticket: Ticket) -> (Ticket, Summary) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ticket` is never constructed [INFO] [stdout] --> src/mod_04/ex_411_clone.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Ticket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `summary` is never used [INFO] [stdout] --> src/mod_04/ex_411_clone.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Ticket { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 16 | pub fn summary(self) -> Summary { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Summary` is never constructed [INFO] [stdout] --> src/mod_04/ex_411_clone.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Summary { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `title`, `description`, and `status` are never used [INFO] [stdout] --> src/mod_05/ex_501_enum.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Ticket { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(title: String, description: String, status: Status) -> Ticket { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn title(&self) -> &String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn description(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn status(&self) -> &Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `border` is never read [INFO] [stdout] --> src/mod_05/ex_504_if_let.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | Square { border: f64 }, [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> src/mod_05/ex_504_if_let.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | Rectangle { width: f64, height: f64 }, [INFO] [stdout] | --------- ^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InProgress` and `Done` are never constructed [INFO] [stdout] --> src/mod_05/ex_506_fallibility.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | enum Status { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 13 | ToDo, [INFO] [stdout] 14 | InProgress { assigned_to: String }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | Done, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` 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 `InProgress` and `Done` are never constructed [INFO] [stdout] --> src/mod_05/ex_507_unwrap.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | enum Status { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 31 | ToDo, [INFO] [stdout] 32 | InProgress { assigned_to: String }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 33 | Done, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` 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: field `0` is never read [INFO] [stdout] --> src/mod_05/ex_508_error_enum.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | DescriptionError(String), [INFO] [stdout] | ---------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TicketNewError` 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] 7 - DescriptionError(String), [INFO] [stdout] 7 + DescriptionError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InProgress` and `Done` are never constructed [INFO] [stdout] --> src/mod_05/ex_508_error_enum.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 32 | enum Status { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 33 | ToDo, [INFO] [stdout] 34 | InProgress { assigned_to: String }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 35 | Done, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "e9268b673667eae0c73383234edcb36686dc9b99444b99753bc567abb532119f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9268b673667eae0c73383234edcb36686dc9b99444b99753bc567abb532119f", kill_on_drop: false }` [INFO] [stdout] e9268b673667eae0c73383234edcb36686dc9b99444b99753bc567abb532119f