[INFO] cloning repository https://github.com/OFUZORCHUKWUEMEKE/Design-Patterns-Rust-
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/OFUZORCHUKWUEMEKE/Design-Patterns-Rust-" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOFUZORCHUKWUEMEKE%2FDesign-Patterns-Rust-", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOFUZORCHUKWUEMEKE%2FDesign-Patterns-Rust-'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 50e5071bcfe4b24d63731750ee5a2101d5797b17
[INFO] checking OFUZORCHUKWUEMEKE/Design-Patterns-Rust- against 6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa for pr-159356
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOFUZORCHUKWUEMEKE%2FDesign-Patterns-Rust-" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/OFUZORCHUKWUEMEKE/Design-Patterns-Rust-
[INFO] finished tweaking git repo https://github.com/OFUZORCHUKWUEMEKE/Design-Patterns-Rust-
[INFO] tweaked toml for git repo https://github.com/OFUZORCHUKWUEMEKE/Design-Patterns-Rust- written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/OFUZORCHUKWUEMEKE/Design-Patterns-Rust- on toolchain 6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/OFUZORCHUKWUEMEKE/Design-Patterns-Rust- already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa" "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-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:c36f533e8924a726b63f9d01e781fa8c8c28c96d1d595403829afb31452ee0f5" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 48463f47d8007bc0e532aab7d37f826d29f64d1b852b8db41988c3607b47d4ff
[INFO] running `Command { std: "docker" "start" "48463f47d8007bc0e532aab7d37f826d29f64d1b852b8db41988c3607b47d4ff", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "48463f47d8007bc0e532aab7d37f826d29f64d1b852b8db41988c3607b47d4ff", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "48463f47d8007bc0e532aab7d37f826d29f64d1b852b8db41988c3607b47d4ff" "/opt/rustwide/cargo-home/bin/cargo" "+6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "48463f47d8007bc0e532aab7d37f826d29f64d1b852b8db41988c3607b47d4ff", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "48463f47d8007bc0e532aab7d37f826d29f64d1b852b8db41988c3607b47d4ff" "/opt/rustwide/cargo-home/bin/cargo" "+6e4b95ed0735c3bbfb308e6f158f479b4d14f1aa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking rust-patterns v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::fmt::Display`
[INFO] [stdout]  --> src/cars/manual.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fmt::Display;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Car`
[INFO] [stdout]  --> src/main.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | use cars::{Car, Manual};
[INFO] [stdout]   |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::Display`
[INFO] [stdout]  --> src/cars/manual.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fmt::Display;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Car`
[INFO] [stdout]  --> src/main.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | use cars::{Car, Manual};
[INFO] [stdout]   |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `seats`, `engine`, `transmission`, `gps_navigator`, and `fuel` are never read
[INFO] [stdout]  --> src/cars/car.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub struct Car {
[INFO] [stdout]   |            --- fields in this struct
[INFO] [stdout] 4 |     car_type: CarType,
[INFO] [stdout] 5 |     seats: u16,
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 6 |     engine: Engine,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 7 |     transmission: Transmission,
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 8 |     gps_navigator: Option<GpsNavigator>,
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 9 |     fuel: f64,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `fuel`, `set_fuel`, `seats`, `engine`, `transmission`, and `gps_navigator` are never used
[INFO] [stdout]   --> src/cars/car.rs:35:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl Car {
[INFO] [stdout]    | -------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn fuel(&self) -> f64 {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn set_fuel(&mut self, fuel: f64) {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub fn seats(&self) -> u16 {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn engine(&self) -> &Engine {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub fn transmission(&self) -> &Transmission {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 55 |     pub fn gps_navigator(&self) -> &Option<GpsNavigator> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `seats`, `engine`, `transmission`, `gps_navigator`, and `fuel` are never read
[INFO] [stdout]  --> src/cars/car.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub struct Car {
[INFO] [stdout]   |            --- fields in this struct
[INFO] [stdout] 4 |     car_type: CarType,
[INFO] [stdout] 5 |     seats: u16,
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 6 |     engine: Engine,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 7 |     transmission: Transmission,
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 8 |     gps_navigator: Option<GpsNavigator>,
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 9 |     fuel: f64,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Suv` is never constructed
[INFO] [stdout]  --> src/components.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub enum CarType {
[INFO] [stdout]   |          ------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 5 |     Suv,
[INFO] [stdout]   |     ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `CarType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `SingleSpeed` and `Manaul` are never constructed
[INFO] [stdout]   --> src/components.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub enum Transmission {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] 10 |     SingleSpeed,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 11 |     Manaul,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Transmission` 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 `started` is never read
[INFO] [stdout]   --> src/components.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct Engine {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 19 |     started: bool,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `on`, `off`, `started`, and `go` are never used
[INFO] [stdout]   --> src/components.rs:31:12
[INFO] [stdout]    |
[INFO] [stdout] 22 | impl Engine {
[INFO] [stdout]    | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 31 |     pub fn on(&mut self) {
[INFO] [stdout]    |            ^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn off(&mut self) {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn started(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub fn go(&mut self, mileage: f64) {
[INFO] [stdout]    |            ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `fuel`, `set_fuel`, `seats`, `engine`, `transmission`, and `gps_navigator` are never used
[INFO] [stdout]   --> src/cars/car.rs:35:12
[INFO] [stdout]    |
[INFO] [stdout] 12 | impl Car {
[INFO] [stdout]    | -------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn fuel(&self) -> f64 {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn set_fuel(&mut self, fuel: f64) {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub fn seats(&self) -> u16 {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn engine(&self) -> &Engine {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub fn transmission(&self) -> &Transmission {
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 55 |     pub fn gps_navigator(&self) -> &Option<GpsNavigator> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `route` is never read
[INFO] [stdout]   --> src/components.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 60 | pub struct GpsNavigator {
[INFO] [stdout]    |            ------------ field in this struct
[INFO] [stdout] 61 |     route: String,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Suv` is never constructed
[INFO] [stdout]  --> src/components.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub enum CarType {
[INFO] [stdout]   |          ------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 5 |     Suv,
[INFO] [stdout]   |     ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `CarType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `SingleSpeed` and `Manaul` are never constructed
[INFO] [stdout]   --> src/components.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub enum Transmission {
[INFO] [stdout]    |          ------------ variants in this enum
[INFO] [stdout] 10 |     SingleSpeed,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 11 |     Manaul,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Transmission` 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 `started` is never read
[INFO] [stdout]   --> src/components.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct Engine {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 19 |     started: bool,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `on`, `off`, `started`, and `go` are never used
[INFO] [stdout]   --> src/components.rs:31:12
[INFO] [stdout]    |
[INFO] [stdout] 22 | impl Engine {
[INFO] [stdout]    | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 31 |     pub fn on(&mut self) {
[INFO] [stdout]    |            ^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn off(&mut self) {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn started(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub fn go(&mut self, mileage: f64) {
[INFO] [stdout]    |            ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `route` is never read
[INFO] [stdout]   --> src/components.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 60 | pub struct GpsNavigator {
[INFO] [stdout]    |            ------------ field in this struct
[INFO] [stdout] 61 |     route: String,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `route` is never used
[INFO] [stdout]   --> src/components.rs:75:12
[INFO] [stdout]    |
[INFO] [stdout] 64 | impl GpsNavigator {
[INFO] [stdout]    | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 75 |     pub fn route(&self) -> &String {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `construct_suv` is never used
[INFO] [stdout]   --> src/director.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl Director{
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn construct_suv(builder:&mut impl Builder){
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `route` is never used
[INFO] [stdout]   --> src/components.rs:75:12
[INFO] [stdout]    |
[INFO] [stdout] 64 | impl GpsNavigator {
[INFO] [stdout]    | ----------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 75 |     pub fn route(&self) -> &String {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `construct_suv` is never used
[INFO] [stdout]   --> src/director.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout]  8 | impl Director{
[INFO] [stdout]    | ------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn construct_suv(builder:&mut impl Builder){
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s
[INFO] running `Command { std: "docker" "inspect" "48463f47d8007bc0e532aab7d37f826d29f64d1b852b8db41988c3607b47d4ff", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "48463f47d8007bc0e532aab7d37f826d29f64d1b852b8db41988c3607b47d4ff", kill_on_drop: false }`
[INFO] [stdout] 48463f47d8007bc0e532aab7d37f826d29f64d1b852b8db41988c3607b47d4ff
