[INFO] cloning repository https://github.com/HeapHopper/i_like_trains [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HeapHopper/i_like_trains" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHeapHopper%2Fi_like_trains", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHeapHopper%2Fi_like_trains'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6f88e301e3c2f534d0b8b59b35dcd3383d79272d [INFO] checking HeapHopper/i_like_trains against master#00bfd6b2734d9c28a147bf237490995731781fdd for pr-117984 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHeapHopper%2Fi_like_trains" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HeapHopper/i_like_trains on toolchain 00bfd6b2734d9c28a147bf237490995731781fdd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+00bfd6b2734d9c28a147bf237490995731781fdd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HeapHopper/i_like_trains [INFO] finished tweaking git repo https://github.com/HeapHopper/i_like_trains [INFO] tweaked toml for git repo https://github.com/HeapHopper/i_like_trains written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/HeapHopper/i_like_trains 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" "+00bfd6b2734d9c28a147bf237490995731781fdd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking HeapHopper/i_like_trains against try#aa7c6ba69acce8b10a275eabfe6157ea72c8b599 for pr-117984 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHeapHopper%2Fi_like_trains" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HeapHopper/i_like_trains on toolchain aa7c6ba69acce8b10a275eabfe6157ea72c8b599 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+aa7c6ba69acce8b10a275eabfe6157ea72c8b599" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HeapHopper/i_like_trains [INFO] finished tweaking git repo https://github.com/HeapHopper/i_like_trains [INFO] tweaked toml for git repo https://github.com/HeapHopper/i_like_trains written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/HeapHopper/i_like_trains 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" "+aa7c6ba69acce8b10a275eabfe6157ea72c8b599" "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 HeapHopper/i_like_trains against try#aa7c6ba69acce8b10a275eabfe6157ea72c8b599 for pr-117984 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHeapHopper%2Fi_like_trains" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HeapHopper/i_like_trains on toolchain aa7c6ba69acce8b10a275eabfe6157ea72c8b599 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+aa7c6ba69acce8b10a275eabfe6157ea72c8b599" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/HeapHopper/i_like_trains [INFO] finished tweaking git repo https://github.com/HeapHopper/i_like_trains [INFO] tweaked toml for git repo https://github.com/HeapHopper/i_like_trains written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/HeapHopper/i_like_trains 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" "+aa7c6ba69acce8b10a275eabfe6157ea72c8b599" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+aa7c6ba69acce8b10a275eabfe6157ea72c8b599" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9a60c7b6975d663b819fab27b5e3bd4694e1cf8cc8f2cb777ca678a0f86a9804 [INFO] running `Command { std: "docker" "start" "-a" "9a60c7b6975d663b819fab27b5e3bd4694e1cf8cc8f2cb777ca678a0f86a9804", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9a60c7b6975d663b819fab27b5e3bd4694e1cf8cc8f2cb777ca678a0f86a9804", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a60c7b6975d663b819fab27b5e3bd4694e1cf8cc8f2cb777ca678a0f86a9804", kill_on_drop: false }` [INFO] [stdout] 9a60c7b6975d663b819fab27b5e3bd4694e1cf8cc8f2cb777ca678a0f86a9804 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+aa7c6ba69acce8b10a275eabfe6157ea72c8b599" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3993628589d4d323f5871c83c65ea545aaeb9dc0e33cc7c8bad96ee8455215e2 [INFO] running `Command { std: "docker" "start" "-a" "3993628589d4d323f5871c83c65ea545aaeb9dc0e33cc7c8bad96ee8455215e2", kill_on_drop: false }` [INFO] [stderr] Checking i_like_trains v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `train::Train` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use train::Train; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `train::Train` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use train::Train; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/train/carts.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 17 | Locomotive => String::from("Locomotive"), [INFO] [stdout] | ---------- matches any value [INFO] [stdout] 18 | Passenger => String::from("Passenger"), [INFO] [stdout] | ^^^^^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/train/carts.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 17 | Locomotive => String::from("Locomotive"), [INFO] [stdout] | ---------- matches any value [INFO] [stdout] 18 | Passenger => String::from("Passenger"), [INFO] [stdout] 19 | Freight => String::from("Frieght"), [INFO] [stdout] | ^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/train/carts.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 17 | Locomotive => String::from("Locomotive"), [INFO] [stdout] | ---------- matches any value [INFO] [stdout] ... [INFO] [stdout] 20 | Staff => String::from("Staff") [INFO] [stdout] | ^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Locomotive` [INFO] [stdout] --> src/train/carts.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Locomotive => String::from("Locomotive"), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Locomotive` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Passenger` [INFO] [stdout] --> src/train/carts.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | Passenger => String::from("Passenger"), [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Passenger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Freight` [INFO] [stdout] --> src/train/carts.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | Freight => String::from("Frieght"), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Freight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Staff` [INFO] [stdout] --> src/train/carts.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | Staff => String::from("Staff") [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Staff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/train/carts.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 17 | Locomotive => String::from("Locomotive"), [INFO] [stdout] | ---------- matches any value [INFO] [stdout] 18 | Passenger => String::from("Passenger"), [INFO] [stdout] | ^^^^^^^^^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/train/carts.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 17 | Locomotive => String::from("Locomotive"), [INFO] [stdout] | ---------- matches any value [INFO] [stdout] 18 | Passenger => String::from("Passenger"), [INFO] [stdout] 19 | Freight => String::from("Frieght"), [INFO] [stdout] | ^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/train/carts.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 17 | Locomotive => String::from("Locomotive"), [INFO] [stdout] | ---------- matches any value [INFO] [stdout] ... [INFO] [stdout] 20 | Staff => String::from("Staff") [INFO] [stdout] | ^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Locomotive` [INFO] [stdout] --> src/train/carts.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Locomotive => String::from("Locomotive"), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Locomotive` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Passenger` [INFO] [stdout] --> src/train/carts.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | Passenger => String::from("Passenger"), [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Passenger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Freight` [INFO] [stdout] --> src/train/carts.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | Freight => String::from("Frieght"), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Freight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Staff` [INFO] [stdout] --> src/train/carts.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | Staff => String::from("Staff") [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Staff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/train/carts.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 26 | Locomotive => 8000, [INFO] [stdout] | ---------- matches any value [INFO] [stdout] 27 | Passenger => 2000, [INFO] [stdout] | ^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/train/carts.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 26 | Locomotive => 8000, [INFO] [stdout] | ---------- matches any value [INFO] [stdout] 27 | Passenger => 2000, [INFO] [stdout] 28 | Freight => 4000, [INFO] [stdout] | ^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/train/carts.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 26 | Locomotive => 8000, [INFO] [stdout] | ---------- matches any value [INFO] [stdout] ... [INFO] [stdout] 29 | Staff => 1500 [INFO] [stdout] | ^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Locomotive` [INFO] [stdout] --> src/train/carts.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | Locomotive => 8000, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Locomotive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Passenger` [INFO] [stdout] --> src/train/carts.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | Passenger => 2000, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Passenger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Freight` [INFO] [stdout] --> src/train/carts.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | Freight => 4000, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Freight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Staff` [INFO] [stdout] --> src/train/carts.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | Staff => 1500 [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Staff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Train` is never constructed [INFO] [stdout] --> src/train.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Train { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Cart` is never used [INFO] [stdout] --> src/train/carts.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Cart { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_cart_name`, `get_base_cart_weight`, `get_total_cart_weight`, and `get_total_cart_weight_v2` are never used [INFO] [stdout] --> src/train/carts.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Cart { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 14 | [INFO] [stdout] 15 | fn get_cart_name(cart: &Cart) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn get_base_cart_weight(cart: &Cart) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn get_total_cart_weight(cart: &Cart) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn get_total_cart_weight_v2(cart: &Cart) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Locomotive` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Locomotive => String::from("Locomotive"), [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `locomotive` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Passenger` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | Passenger => String::from("Passenger"), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `passenger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Freight` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | Freight => String::from("Frieght"), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `freight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Staff` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | Staff => String::from("Staff") [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `staff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Locomotive` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | Locomotive => 8000, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `locomotive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Passenger` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | Passenger => 2000, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `passenger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Freight` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | Freight => 4000, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `freight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Staff` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | Staff => 1500 [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `staff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/train/carts.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 26 | Locomotive => 8000, [INFO] [stdout] | ---------- matches any value [INFO] [stdout] 27 | Passenger => 2000, [INFO] [stdout] | ^^^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/train/carts.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 26 | Locomotive => 8000, [INFO] [stdout] | ---------- matches any value [INFO] [stdout] 27 | Passenger => 2000, [INFO] [stdout] 28 | Freight => 4000, [INFO] [stdout] | ^^^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/train/carts.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 26 | Locomotive => 8000, [INFO] [stdout] | ---------- matches any value [INFO] [stdout] ... [INFO] [stdout] 29 | Staff => 1500 [INFO] [stdout] | ^^^^^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Locomotive` [INFO] [stdout] --> src/train/carts.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | Locomotive => 8000, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Locomotive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Passenger` [INFO] [stdout] --> src/train/carts.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | Passenger => 2000, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Passenger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Freight` [INFO] [stdout] --> src/train/carts.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | Freight => 4000, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Freight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Staff` [INFO] [stdout] --> src/train/carts.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | Staff => 1500 [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Staff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Train` is never constructed [INFO] [stdout] --> src/train.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Train { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Cart` is never used [INFO] [stdout] --> src/train/carts.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Cart { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_cart_name`, `get_base_cart_weight`, `get_total_cart_weight`, and `get_total_cart_weight_v2` are never used [INFO] [stdout] --> src/train/carts.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Cart { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 14 | [INFO] [stdout] 15 | fn get_cart_name(cart: &Cart) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn get_base_cart_weight(cart: &Cart) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | fn get_total_cart_weight(cart: &Cart) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn get_total_cart_weight_v2(cart: &Cart) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Locomotive` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | Locomotive => String::from("Locomotive"), [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `locomotive` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Passenger` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | Passenger => String::from("Passenger"), [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `passenger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Freight` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | Freight => String::from("Frieght"), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `freight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Staff` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | Staff => String::from("Staff") [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `staff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Locomotive` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | Locomotive => 8000, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `locomotive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Passenger` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | Passenger => 2000, [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `passenger` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Freight` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | Freight => 4000, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `freight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Staff` should have a snake case name [INFO] [stdout] --> src/train/carts.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | Staff => 1500 [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `staff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.05s [INFO] running `Command { std: "docker" "inspect" "3993628589d4d323f5871c83c65ea545aaeb9dc0e33cc7c8bad96ee8455215e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3993628589d4d323f5871c83c65ea545aaeb9dc0e33cc7c8bad96ee8455215e2", kill_on_drop: false }` [INFO] [stdout] 3993628589d4d323f5871c83c65ea545aaeb9dc0e33cc7c8bad96ee8455215e2