[INFO] cloning repository https://github.com/teruuuuuu/TicketModelingRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/teruuuuuu/TicketModelingRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteruuuuuu%2FTicketModelingRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteruuuuuu%2FTicketModelingRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c66b87ea22b9461d438da1d505918bbe36388df0 [INFO] building teruuuuuu/TicketModelingRust against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteruuuuuu%2FTicketModelingRust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/teruuuuuu/TicketModelingRust on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/teruuuuuu/TicketModelingRust [INFO] finished tweaking git repo https://github.com/teruuuuuu/TicketModelingRust [INFO] tweaked toml for git repo https://github.com/teruuuuuu/TicketModelingRust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/teruuuuuu/TicketModelingRust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 53a52cd5cb9a6b05c2a81eff5866188e9bb9a06eef55256e891a9b4597e21af0 [INFO] running `Command { std: "docker" "start" "-a" "53a52cd5cb9a6b05c2a81eff5866188e9bb9a06eef55256e891a9b4597e21af0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "53a52cd5cb9a6b05c2a81eff5866188e9bb9a06eef55256e891a9b4597e21af0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53a52cd5cb9a6b05c2a81eff5866188e9bb9a06eef55256e891a9b4597e21af0", kill_on_drop: false }` [INFO] [stdout] 53a52cd5cb9a6b05c2a81eff5866188e9bb9a06eef55256e891a9b4597e21af0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06ec9954b941c041cc0bab55a559176306e877a7b706c08b26e374d477803201 [INFO] running `Command { std: "docker" "start" "-a" "06ec9954b941c041cc0bab55a559176306e877a7b706c08b26e374d477803201", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling chrono v0.4.11 [INFO] [stderr] Compiling ticket_modeling_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Date` and `Local` [INFO] [stdout] --> src/ticket/movie_day_specification.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Date, Datelike, Local}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LateSpecification` [INFO] [stdout] --> src/ticket/plans.rs:3:44 [INFO] [stdout] | [INFO] [stdout] 3 | use super::late_specification::{LateSpec8, LateSpecification}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Specification` [INFO] [stdout] --> src/ticket/plans.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use super::specification::{Spec, Specification}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Customer`, `DateFromStr`, `Gender`, `Identification`, `LocalDateTime`, and `LocalDate` [INFO] [stdout] --> src/ticket/plans.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use super::structs::{Customer, DateFromStr, Gender, Identification, LocalDate, LocalDateTime}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlanCondition` [INFO] [stdout] --> src/ticket/plans.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use super::structs::{Plan, PlanCondition, PlanName}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/ticket/plans.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/ticket/plans.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/ticket/plans.rs:112:10 [INFO] [stdout] | [INFO] [stdout] 112 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/ticket/plans.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/ticket/customer_specification.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | _ => false, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/ticket/customer_specification.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 17 | CustomerSpec::CinematicCitizen => is_cinema_citizen(customer), [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] 18 | CustomerSpec::CinemaCitizenSenior => is_cinema_citizen_senior(customer), [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 19 | CustomerSpec::Senior => is_senior(customer), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 20 | CustomerSpec::UniversityStudent => is_university_student(customer), [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 24 | _ => false, [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/ticket/structs.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | _ => "", [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/ticket/structs.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 36 | PlanName::CinemaCitizen => "シネマシティズン", [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 37 | PlanName::CinemaCitizenSenior => "シネマシティズン(60才以上)", [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 38 | PlanName::General => "一般", [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 39 | PlanName::Senior => "シニア(70才以上)", [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 43 | _ => "", [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ElementarySchoolStudent` is never constructed [INFO] [stdout] --> src/ticket/customer_specification.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum CustomerSpec { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | ElementarySchoolStudent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MovieDaySpec` is never used [INFO] [stdout] --> src/ticket/movie_day_specification.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const MovieDaySpec: MovieDaySpecification = MovieDaySpecification {}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LateSpec8` should have an upper case name [INFO] [stdout] --> src/ticket/late_specification.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const LateSpec8: LateSpecification = LateSpecification { start_hour: 20 }; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `LATE_SPEC8` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MovieDaySpec` should have an upper case name [INFO] [stdout] --> src/ticket/movie_day_specification.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const MovieDaySpec: MovieDaySpecification = MovieDaySpecification {}; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `MOVIE_DAY_SPEC` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `all_plans` should have an upper case name [INFO] [stdout] --> src/ticket/plans.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | pub static ref all_plans: Vec = { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `ALL_PLANS` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.31s [INFO] running `Command { std: "docker" "inspect" "06ec9954b941c041cc0bab55a559176306e877a7b706c08b26e374d477803201", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06ec9954b941c041cc0bab55a559176306e877a7b706c08b26e374d477803201", kill_on_drop: false }` [INFO] [stdout] 06ec9954b941c041cc0bab55a559176306e877a7b706c08b26e374d477803201 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4fe6bd37771694dfcd7095c56abe5bca4dc5c1c4a2edb465ce014bfd8429e81d [INFO] running `Command { std: "docker" "start" "-a" "4fe6bd37771694dfcd7095c56abe5bca4dc5c1c4a2edb465ce014bfd8429e81d", kill_on_drop: false }` [INFO] [stdout] warning: unused imports: `Date` and `Local` [INFO] [stdout] --> src/ticket/movie_day_specification.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Date, Datelike, Local}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LateSpecification` [INFO] [stdout] --> src/ticket/plans.rs:3:44 [INFO] [stdout] | [INFO] [stdout] 3 | use super::late_specification::{LateSpec8, LateSpecification}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Specification` [INFO] [stdout] --> src/ticket/plans.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use super::specification::{Spec, Specification}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ticket_modeling_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Customer`, `DateFromStr`, `Gender`, `Identification`, `LocalDateTime`, and `LocalDate` [INFO] [stdout] --> src/ticket/plans.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use super::structs::{Customer, DateFromStr, Gender, Identification, LocalDate, LocalDateTime}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlanCondition` [INFO] [stdout] --> src/ticket/plans.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use super::structs::{Plan, PlanCondition, PlanName}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/ticket/plans.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/ticket/plans.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/ticket/plans.rs:112:10 [INFO] [stdout] | [INFO] [stdout] 112 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/ticket/plans.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/ticket/customer_specification.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | _ => false, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/ticket/customer_specification.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 17 | CustomerSpec::CinematicCitizen => is_cinema_citizen(customer), [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] 18 | CustomerSpec::CinemaCitizenSenior => is_cinema_citizen_senior(customer), [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 19 | CustomerSpec::Senior => is_senior(customer), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 20 | CustomerSpec::UniversityStudent => is_university_student(customer), [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 24 | _ => false, [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/ticket/structs.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | _ => "", [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/ticket/structs.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 36 | PlanName::CinemaCitizen => "シネマシティズン", [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 37 | PlanName::CinemaCitizenSenior => "シネマシティズン(60才以上)", [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 38 | PlanName::General => "一般", [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 39 | PlanName::Senior => "シニア(70才以上)", [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 43 | _ => "", [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ElementarySchoolStudent` is never constructed [INFO] [stdout] --> src/ticket/customer_specification.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum CustomerSpec { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | ElementarySchoolStudent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MovieDaySpec` is never used [INFO] [stdout] --> src/ticket/movie_day_specification.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const MovieDaySpec: MovieDaySpecification = MovieDaySpecification {}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LateSpec8` should have an upper case name [INFO] [stdout] --> src/ticket/late_specification.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const LateSpec8: LateSpecification = LateSpecification { start_hour: 20 }; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `LATE_SPEC8` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MovieDaySpec` should have an upper case name [INFO] [stdout] --> src/ticket/movie_day_specification.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const MovieDaySpec: MovieDaySpecification = MovieDaySpecification {}; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `MOVIE_DAY_SPEC` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `all_plans` should have an upper case name [INFO] [stdout] --> src/ticket/plans.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | pub static ref all_plans: Vec = { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `ALL_PLANS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Date` and `Local` [INFO] [stdout] --> src/ticket/movie_day_specification.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Date, Datelike, Local}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LateSpecification` [INFO] [stdout] --> src/ticket/plans.rs:3:44 [INFO] [stdout] | [INFO] [stdout] 3 | use super::late_specification::{LateSpec8, LateSpecification}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Specification` [INFO] [stdout] --> src/ticket/plans.rs:5:34 [INFO] [stdout] | [INFO] [stdout] 5 | use super::specification::{Spec, Specification}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Customer`, `DateFromStr`, `Gender`, `Identification`, `LocalDateTime`, and `LocalDate` [INFO] [stdout] --> src/ticket/plans.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use super::structs::{Customer, DateFromStr, Gender, Identification, LocalDate, LocalDateTime}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlanCondition` [INFO] [stdout] --> src/ticket/plans.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use super::structs::{Plan, PlanCondition, PlanName}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/ticket/plans.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/ticket/plans.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 69 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/ticket/plans.rs:112:10 [INFO] [stdout] | [INFO] [stdout] 112 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/ticket/plans.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/ticket/customer_specification.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | _ => false, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/ticket/customer_specification.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 17 | CustomerSpec::CinematicCitizen => is_cinema_citizen(customer), [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] 18 | CustomerSpec::CinemaCitizenSenior => is_cinema_citizen_senior(customer), [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] 19 | CustomerSpec::Senior => is_senior(customer), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 20 | CustomerSpec::UniversityStudent => is_university_student(customer), [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 24 | _ => false, [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/ticket/structs.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | _ => "", [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/ticket/structs.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 36 | PlanName::CinemaCitizen => "シネマシティズン", [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 37 | PlanName::CinemaCitizenSenior => "シネマシティズン(60才以上)", [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 38 | PlanName::General => "一般", [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 39 | PlanName::Senior => "シニア(70才以上)", [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 43 | _ => "", [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ElementarySchoolStudent` is never constructed [INFO] [stdout] --> src/ticket/customer_specification.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum CustomerSpec { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | ElementarySchoolStudent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LateSpec8` should have an upper case name [INFO] [stdout] --> src/ticket/late_specification.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const LateSpec8: LateSpecification = LateSpecification { start_hour: 20 }; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `LATE_SPEC8` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MovieDaySpec` should have an upper case name [INFO] [stdout] --> src/ticket/movie_day_specification.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const MovieDaySpec: MovieDaySpecification = MovieDaySpecification {}; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `MOVIE_DAY_SPEC` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `all_plans` should have an upper case name [INFO] [stdout] --> src/ticket/plans.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | pub static ref all_plans: Vec = { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `ALL_PLANS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/ticket/specification.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 31 | fn test_specification() { [INFO] [stdout] | ----------------------- move the `impl` block outside of this function `test_specification` [INFO] [stdout] ... [INFO] [stdout] 34 | impl Specification<$t> for $t { [INFO] [stdout] | ^^^^^-------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Specification` is not local [INFO] [stdout] ... [INFO] [stdout] 41 | specification!(i32); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the macro `specification` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the macro `specification` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.44s [INFO] running `Command { std: "docker" "inspect" "4fe6bd37771694dfcd7095c56abe5bca4dc5c1c4a2edb465ce014bfd8429e81d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fe6bd37771694dfcd7095c56abe5bca4dc5c1c4a2edb465ce014bfd8429e81d", kill_on_drop: false }` [INFO] [stdout] 4fe6bd37771694dfcd7095c56abe5bca4dc5c1c4a2edb465ce014bfd8429e81d