[INFO] cloning repository https://github.com/pocket7878/jr-pricing-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pocket7878/jr-pricing-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpocket7878%2Fjr-pricing-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpocket7878%2Fjr-pricing-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 21cc0e647197ac0114dda56fd93514718b907aa3 [INFO] testing pocket7878/jr-pricing-rust against try#7af779037716ae4125ceabb429791b4cf5dd0a43 for pr-136932 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpocket7878%2Fjr-pricing-rust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pocket7878/jr-pricing-rust on toolchain 7af779037716ae4125ceabb429791b4cf5dd0a43 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pocket7878/jr-pricing-rust [INFO] finished tweaking git repo https://github.com/pocket7878/jr-pricing-rust [INFO] tweaked toml for git repo https://github.com/pocket7878/jr-pricing-rust written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/pocket7878/jr-pricing-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" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eb0821302409af55d16980ea306100d6142f03df77126472a162b3e642719de7 [INFO] running `Command { std: "docker" "start" "-a" "eb0821302409af55d16980ea306100d6142f03df77126472a162b3e642719de7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eb0821302409af55d16980ea306100d6142f03df77126472a162b3e642719de7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb0821302409af55d16980ea306100d6142f03df77126472a162b3e642719de7", kill_on_drop: false }` [INFO] [stdout] eb0821302409af55d16980ea306100d6142f03df77126472a162b3e642719de7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c401f6a801d8982cff455243f8f1a7616b3872382c5c2b91a982e259fd19e04 [INFO] running `Command { std: "docker" "start" "-a" "4c401f6a801d8982cff455243f8f1a7616b3872382c5c2b91a982e259fd19e04", kill_on_drop: false }` [INFO] [stderr] Compiling anyhow v1.0.66 [INFO] [stderr] Compiling jr-pricing-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::amount::Amount` [INFO] [stdout] --> src/super_express_surcharge.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::amount::Amount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/price_table.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | let mut table = HashMap::new(); [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: enum `Season` is never used [INFO] [stdout] --> src/season.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Season { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add`, and `value` are never used [INFO] [stdout] --> src/amount.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl Amount { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(amount: i32) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add(&self, other: &Amount) -> Amount { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn value(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BasicFare` is never constructed [INFO] [stdout] --> src/basic_fare.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BasicFare { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `amount` are never used [INFO] [stdout] --> src/basic_fare.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | impl BasicFare { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn amount(&self, departure: Departure, destination: Destination) -> Amount { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Tokyo` is never constructed [INFO] [stdout] --> src/place.rs:3:2 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Departure { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 3 | Tokyo, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ShinOsaka` and `Himeji` are never constructed [INFO] [stdout] --> src/place.rs:8:2 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Destination { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 8 | ShinOsaka, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | Himeji, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceTable` is never constructed [INFO] [stdout] --> src/price_table.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PriceTable { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_amount`, and `amount` are never used [INFO] [stdout] --> src/price_table.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | impl PriceTable { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn set_amount(&mut self, departure: place::Departure, destination: place::Destination, amount: amount::Amount) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn amount(&self, departure: place::Departure, destination: place::Destination) -> amount::Amount { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HikariReservedSeatSurcharge` is never constructed [INFO] [stdout] --> src/super_express_surcharge/hikari.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct HikariReservedSeatSurcharge { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `amount` are never used [INFO] [stdout] --> src/super_express_surcharge/hikari.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | impl HikariReservedSeatSurcharge { [INFO] [stdout] | -------------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn amount(&self, departure: Departure, destination: Destination) -> Amount { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NozomiAdditionalCharge` is never constructed [INFO] [stdout] --> src/super_express_surcharge/nozomi.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct NozomiAdditionalCharge { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `amount` are never used [INFO] [stdout] --> src/super_express_surcharge/nozomi.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | impl NozomiAdditionalCharge { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn amount(&self, departure: Departure, destination: Destination) -> Amount { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TrainType` is never used [INFO] [stdout] --> src/train_type.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum TrainType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SeatType` is never used [INFO] [stdout] --> src/seat_type.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum SeatType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RiderType` is never used [INFO] [stdout] --> src/rider_type.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum RiderType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RiderTypeDiscount` is never constructed [INFO] [stdout] --> src/discount/rider_type_discount.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct RiderTypeDiscount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `apply` are never used [INFO] [stdout] --> src/discount/rider_type_discount.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | impl RiderTypeDiscount { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new(rider_type: RiderType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn apply(&self, amount: Amount) -> Amount { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DistanceTable` is never constructed [INFO] [stdout] --> src/distance_table.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct DistanceTable { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `distance` are never used [INFO] [stdout] --> src/distance_table.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | impl DistanceTable { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn distance(&self, departure: Departure, destination: Destination) -> WorkingKiloMeter { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/working_kilo_meter.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl WorkingKiloMeter { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(kilo_meter: i32) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.31s [INFO] running `Command { std: "docker" "inspect" "4c401f6a801d8982cff455243f8f1a7616b3872382c5c2b91a982e259fd19e04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c401f6a801d8982cff455243f8f1a7616b3872382c5c2b91a982e259fd19e04", kill_on_drop: false }` [INFO] [stdout] 4c401f6a801d8982cff455243f8f1a7616b3872382c5c2b91a982e259fd19e04 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+7af779037716ae4125ceabb429791b4cf5dd0a43" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c040a62c628bd729a49ac6e458aee88ebd09c71d4aa80d55f8067e7994b537c [INFO] running `Command { std: "docker" "start" "-a" "1c040a62c628bd729a49ac6e458aee88ebd09c71d4aa80d55f8067e7994b537c", kill_on_drop: false }` [INFO] [stderr] Compiling jr-pricing-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::amount::Amount` [INFO] [stdout] --> src/super_express_surcharge.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::amount::Amount; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/price_table.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | let mut table = HashMap::new(); [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: enum `Season` is never used [INFO] [stdout] --> src/season.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum Season { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add` is never used [INFO] [stdout] --> src/amount.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl Amount { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add(&self, other: &Amount) -> Amount { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BasicFare` is never constructed [INFO] [stdout] --> src/basic_fare.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BasicFare { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `amount` are never used [INFO] [stdout] --> src/basic_fare.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | impl BasicFare { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn amount(&self, departure: Departure, destination: Destination) -> Amount { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Tokyo` is never constructed [INFO] [stdout] --> src/place.rs:3:2 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Departure { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 3 | Tokyo, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ShinOsaka` and `Himeji` are never constructed [INFO] [stdout] --> src/place.rs:8:2 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Destination { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 8 | ShinOsaka, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | Himeji, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PriceTable` is never constructed [INFO] [stdout] --> src/price_table.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PriceTable { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_amount`, and `amount` are never used [INFO] [stdout] --> src/price_table.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | impl PriceTable { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn set_amount(&mut self, departure: place::Departure, destination: place::Destination, amount: amount::Amount) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn amount(&self, departure: place::Departure, destination: place::Destination) -> amount::Amount { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HikariReservedSeatSurcharge` is never constructed [INFO] [stdout] --> src/super_express_surcharge/hikari.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct HikariReservedSeatSurcharge { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `amount` are never used [INFO] [stdout] --> src/super_express_surcharge/hikari.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | impl HikariReservedSeatSurcharge { [INFO] [stdout] | -------------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn amount(&self, departure: Departure, destination: Destination) -> Amount { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NozomiAdditionalCharge` is never constructed [INFO] [stdout] --> src/super_express_surcharge/nozomi.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct NozomiAdditionalCharge { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `amount` are never used [INFO] [stdout] --> src/super_express_surcharge/nozomi.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | impl NozomiAdditionalCharge { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn amount(&self, departure: Departure, destination: Destination) -> Amount { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TrainType` is never used [INFO] [stdout] --> src/train_type.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum TrainType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SeatType` is never used [INFO] [stdout] --> src/seat_type.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub enum SeatType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DistanceTable` is never constructed [INFO] [stdout] --> src/distance_table.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct DistanceTable { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `distance` are never used [INFO] [stdout] --> src/distance_table.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | impl DistanceTable { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn distance(&self, departure: Departure, destination: Destination) -> WorkingKiloMeter { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/working_kilo_meter.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | impl WorkingKiloMeter { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(kilo_meter: i32) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustcYYLTH6/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libtest-*,libgetopts-*,libunicode_width-*,librustc_std_workspace_std-*}.rlib" "/opt/rustwide/target/debug/deps/{libanyhow-b58b983d87380e3a.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/jr_pricing_rust-ba7f1bbbf21ce527" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. [INFO] [stdout] collect2: fatal error: ld terminated with signal 7 [Bus error], core dumped [INFO] [stdout] compilation terminated. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jr-pricing-rust` (bin "jr-pricing-rust" test) due to 1 previous error; 19 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1c040a62c628bd729a49ac6e458aee88ebd09c71d4aa80d55f8067e7994b537c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c040a62c628bd729a49ac6e458aee88ebd09c71d4aa80d55f8067e7994b537c", kill_on_drop: false }` [INFO] [stdout] 1c040a62c628bd729a49ac6e458aee88ebd09c71d4aa80d55f8067e7994b537c