[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] checking teruuuuuu/TicketModelingRust against try#f3d95de532264a1215023baa665c0028aecf74b1 for pr-148477 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteruuuuuu%2FTicketModelingRust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/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-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/teruuuuuu/TicketModelingRust on toolchain f3d95de532264a1215023baa665c0028aecf74b1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f3d95de532264a1215023baa665c0028aecf74b1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+f3d95de532264a1215023baa665c0028aecf74b1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+f3d95de532264a1215023baa665c0028aecf74b1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 216f283c198dcff9e4895267d22b2dd152a90a48c8e9d33a580a37079433ec04 [INFO] running `Command { std: "docker" "start" "-a" "216f283c198dcff9e4895267d22b2dd152a90a48c8e9d33a580a37079433ec04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "216f283c198dcff9e4895267d22b2dd152a90a48c8e9d33a580a37079433ec04", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "216f283c198dcff9e4895267d22b2dd152a90a48c8e9d33a580a37079433ec04", kill_on_drop: false }` [INFO] [stdout] 216f283c198dcff9e4895267d22b2dd152a90a48c8e9d33a580a37079433ec04 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+f3d95de532264a1215023baa665c0028aecf74b1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93b9a0113965a193c51e31d94f2ccc5512d9ac00add6d93380e9c3aa24bc70d0 [INFO] running `Command { std: "docker" "start" "-a" "93b9a0113965a193c51e31d94f2ccc5512d9ac00add6d93380e9c3aa24bc70d0", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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]` attribute cannot be used on use statements [INFO] [stdout] --> src/ticket/plans.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[macro_use]` can be applied to crates, extern crates, and modules [INFO] [stdout] = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` attribute cannot be used on use statements [INFO] [stdout] --> src/ticket/plans.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[macro_use]` can be applied to crates, extern crates, and modules [INFO] [stdout] = note: `#[warn(unused_attributes)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: struct `MovieDaySpecification` is never constructed [INFO] [stdout] --> src/ticket/movie_day_specification.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct 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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 6 - pub const LateSpec8: LateSpecification = LateSpecification { start_hour: 20 }; [INFO] [stdout] 6 + pub const LATE_SPEC8: LateSpecification = LateSpecification { start_hour: 20 }; [INFO] [stdout] | [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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 13 - pub static ref all_plans: Vec = { [INFO] [stdout] 13 + pub static ref ALL_PLANS: Vec = { [INFO] [stdout] | [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)]` (part of `#[warn(unused)]`) 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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 6 - pub const LateSpec8: LateSpecification = LateSpecification { start_hour: 20 }; [INFO] [stdout] 6 + pub const LATE_SPEC8: LateSpecification = LateSpecification { start_hour: 20 }; [INFO] [stdout] | [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] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 6 - pub const MovieDaySpec: MovieDaySpecification = MovieDaySpecification {}; [INFO] [stdout] 6 + pub const MOVIE_DAY_SPEC: MovieDaySpecification = MovieDaySpecification {}; [INFO] [stdout] | [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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 13 - pub static ref all_plans: Vec = { [INFO] [stdout] 13 + pub static ref ALL_PLANS: Vec = { [INFO] [stdout] | [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 `dev` profile [unoptimized + debuginfo] target(s) in 0.97s [INFO] running `Command { std: "docker" "inspect" "93b9a0113965a193c51e31d94f2ccc5512d9ac00add6d93380e9c3aa24bc70d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93b9a0113965a193c51e31d94f2ccc5512d9ac00add6d93380e9c3aa24bc70d0", kill_on_drop: false }` [INFO] [stdout] 93b9a0113965a193c51e31d94f2ccc5512d9ac00add6d93380e9c3aa24bc70d0