[INFO] fetching crate tinystate 0.1.1... [INFO] checking tinystate-0.1.1 against try#38c2997544af84fe301d600d6896397738163002 for pr-154205-1 [INFO] extracting crate tinystate 0.1.1 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate tinystate 0.1.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate tinystate 0.1.1 [INFO] tweaked toml for crates.io crate tinystate 0.1.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate tinystate 0.1.1 on toolchain 38c2997544af84fe301d600d6896397738163002 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+38c2997544af84fe301d600d6896397738163002" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate tinystate 0.1.1 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" "+38c2997544af84fe301d600d6896397738163002" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+38c2997544af84fe301d600d6896397738163002" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 32fd77da50e7137ad6fe16b5b996118c1da572cce30b76f76176331d02c16152 [INFO] running `Command { std: "docker" "start" "-a" "32fd77da50e7137ad6fe16b5b996118c1da572cce30b76f76176331d02c16152", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "32fd77da50e7137ad6fe16b5b996118c1da572cce30b76f76176331d02c16152", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32fd77da50e7137ad6fe16b5b996118c1da572cce30b76f76176331d02c16152", kill_on_drop: false }` [INFO] [stdout] 32fd77da50e7137ad6fe16b5b996118c1da572cce30b76f76176331d02c16152 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+38c2997544af84fe301d600d6896397738163002" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f3aa5990b2e242d3059d26013ff2c3383ac21a48157d6fec515105f023926ee6 [INFO] running `Command { std: "docker" "start" "-a" "f3aa5990b2e242d3059d26013ff2c3383ac21a48157d6fec515105f023926ee6", kill_on_drop: false }` [INFO] [stderr] Checking tinystate v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] [FMTARGS] {"crate":"tinystate","loc":"src/err.rs:60:26","p":2,"ph":2,"wa":0,"pa":0,"a":2,"pos":0,"named":0,"cap":2,"ucap":2,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":2,"a_opt":2,"sz_no_dedup":32,"sz_old":32,"sz_opt":32} [INFO] [stderr] [FMTARGS] {"crate":"tinystate","loc":"src/err.rs:63:26","p":2,"ph":2,"wa":0,"pa":0,"a":2,"pos":0,"named":0,"cap":2,"ucap":2,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":2,"a_opt":2,"sz_no_dedup":32,"sz_old":32,"sz_opt":32} [INFO] [stderr] [FMTARGS] {"crate":"tinystate","loc":"src/err.rs:66:26","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stderr] [FMTARGS] {"crate":"tinystate","loc":"src/err.rs:70:16","p":3,"ph":2,"wa":0,"pa":0,"a":2,"pos":0,"named":0,"cap":2,"ucap":2,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":2,"a_opt":2,"sz_no_dedup":32,"sz_old":32,"sz_opt":32} [INFO] [stdout] error: cannot find derive macro `States` in this scope [INFO] [stdout] --> src/lib.rs:838:32 [INFO] [stdout] | [INFO] [stdout] 838 | #[derive(Debug, PartialEq, States)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `States` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:836:9 [INFO] [stdout] | [INFO] [stdout] 836 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Events` in this scope [INFO] [stdout] --> src/lib.rs:845:32 [INFO] [stdout] | [INFO] [stdout] 845 | #[derive(Debug, PartialEq, Events)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Events` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:836:9 [INFO] [stdout] | [INFO] [stdout] 836 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `States` in this scope [INFO] [stdout] --> src/lib.rs:884:32 [INFO] [stdout] | [INFO] [stdout] 884 | #[derive(Debug, PartialEq, States)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `States` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:836:9 [INFO] [stdout] | [INFO] [stdout] 836 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Events` in this scope [INFO] [stdout] --> src/lib.rs:891:32 [INFO] [stdout] | [INFO] [stdout] 891 | #[derive(Debug, PartialEq, Events)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Events` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:836:9 [INFO] [stdout] | [INFO] [stdout] 836 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"tinystate","loc":"src/err.rs:60:26","p":2,"ph":2,"wa":0,"pa":0,"a":2,"pos":0,"named":0,"cap":2,"ucap":2,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":2,"a_opt":2,"sz_no_dedup":32,"sz_old":32,"sz_opt":32} [INFO] [stderr] [FMTARGS] {"crate":"tinystate","loc":"src/err.rs:63:26","p":2,"ph":2,"wa":0,"pa":0,"a":2,"pos":0,"named":0,"cap":2,"ucap":2,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":2,"a_opt":2,"sz_no_dedup":32,"sz_old":32,"sz_opt":32} [INFO] [stderr] [FMTARGS] {"crate":"tinystate","loc":"src/err.rs:66:26","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stderr] [FMTARGS] {"crate":"tinystate","loc":"src/err.rs:70:16","p":3,"ph":2,"wa":0,"pa":0,"a":2,"pos":0,"named":0,"cap":2,"ucap":2,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":2,"a_opt":2,"sz_no_dedup":32,"sz_old":32,"sz_opt":32} [INFO] [stdout] error[E0277]: the trait bound `TrafficLightState: States` is not satisfied [INFO] [stdout] --> src/lib.rs:852:22 [INFO] [stdout] | [INFO] [stdout] 852 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `States` is not implemented for `TrafficLightState` [INFO] [stdout] --> src/lib.rs:839:5 [INFO] [stdout] | [INFO] [stdout] 839 | enum TrafficLightState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:35 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TrafficLightEvent: Events` is not satisfied [INFO] [stdout] --> src/lib.rs:852:22 [INFO] [stdout] | [INFO] [stdout] 852 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Events` is not implemented for `TrafficLightEvent` [INFO] [stdout] --> src/lib.rs:846:5 [INFO] [stdout] | [INFO] [stdout] 846 | enum TrafficLightEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:46 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `StateMachineBuilder`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:852:89 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | -------------------------------------------------------------------------------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 839 | enum TrafficLightState { [INFO] [stdout] | ---------------------- doesn't satisfy `TrafficLightState: States` [INFO] [stdout] ... [INFO] [stdout] 846 | enum TrafficLightEvent { [INFO] [stdout] | ---------------------- doesn't satisfy `TrafficLightEvent: Events` [INFO] [stdout] ... [INFO] [stdout] 852 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^ function or associated item cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `TrafficLightEvent: Events` [INFO] [stdout] `TrafficLightState: States` [INFO] [stdout] --> src/lib.rs:523:9 [INFO] [stdout] | [INFO] [stdout] 523 | impl StateMachineBuilder { [INFO] [stdout] | ^^^^^^ ^^^^^^ --------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the traits `Events` and `States` must be implemented [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DoorState: States` is not satisfied [INFO] [stdout] --> src/lib.rs:901:22 [INFO] [stdout] | [INFO] [stdout] 901 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `States` is not implemented for `DoorState` [INFO] [stdout] --> src/lib.rs:885:5 [INFO] [stdout] | [INFO] [stdout] 885 | enum DoorState { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:35 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DoorEvent: Events` is not satisfied [INFO] [stdout] --> src/lib.rs:901:22 [INFO] [stdout] | [INFO] [stdout] 901 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Events` is not implemented for `DoorEvent` [INFO] [stdout] --> src/lib.rs:892:5 [INFO] [stdout] | [INFO] [stdout] 892 | enum DoorEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:46 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `StateMachineBuilder`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:901:73 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | -------------------------------------------------------------------------------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 885 | enum DoorState { [INFO] [stdout] | -------------- doesn't satisfy `DoorState: States` [INFO] [stdout] ... [INFO] [stdout] 892 | enum DoorEvent { [INFO] [stdout] | -------------- doesn't satisfy `DoorEvent: Events` [INFO] [stdout] ... [INFO] [stdout] 901 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^ function or associated item cannot be called on `StateMachineBuilder` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `DoorEvent: Events` [INFO] [stdout] `DoorState: States` [INFO] [stdout] --> src/lib.rs:523:9 [INFO] [stdout] | [INFO] [stdout] 523 | impl StateMachineBuilder { [INFO] [stdout] | ^^^^^^ ^^^^^^ --------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the traits `Events` and `States` must be implemented [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TrafficLightState: States` is not satisfied [INFO] [stdout] --> src/lib.rs:944:18 [INFO] [stdout] | [INFO] [stdout] 944 | let sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `States` is not implemented for `TrafficLightState` [INFO] [stdout] --> src/lib.rs:839:5 [INFO] [stdout] | [INFO] [stdout] 839 | enum TrafficLightState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:35 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `States` in this scope [INFO] [stdout] --> examples/door.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, PartialEq, States)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `States` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> examples/door.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tinystate::States; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TrafficLightEvent: Events` is not satisfied [INFO] [stdout] --> src/lib.rs:944:18 [INFO] [stdout] | [INFO] [stdout] 944 | let sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Events` is not implemented for `TrafficLightEvent` [INFO] [stdout] --> src/lib.rs:846:5 [INFO] [stdout] | [INFO] [stdout] 846 | enum TrafficLightEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:46 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `States` in this scope [INFO] [stdout] --> examples/vending_machine.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, PartialEq, States)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `States` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> examples/vending_machine.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tinystate::States; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `States` in this scope [INFO] [stdout] --> examples/traffic_light.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, PartialEq, States)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `States` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> examples/traffic_light.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tinystate::States; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `StateMachineBuilder`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:944:85 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | -------------------------------------------------------------------------------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 839 | enum TrafficLightState { [INFO] [stdout] | ---------------------- doesn't satisfy `TrafficLightState: States` [INFO] [stdout] ... [INFO] [stdout] 846 | enum TrafficLightEvent { [INFO] [stdout] | ---------------------- doesn't satisfy `TrafficLightEvent: Events` [INFO] [stdout] ... [INFO] [stdout] 944 | let sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^ function or associated item cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `TrafficLightEvent: Events` [INFO] [stdout] `TrafficLightState: States` [INFO] [stdout] --> src/lib.rs:523:9 [INFO] [stdout] | [INFO] [stdout] 523 | impl StateMachineBuilder { [INFO] [stdout] | ^^^^^^ ^^^^^^ --------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the traits `Events` and `States` must be implemented [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Events` in this scope [INFO] [stdout] --> examples/door.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug, PartialEq, Events)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Events` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> examples/door.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tinystate::Events; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DoorState: States` is not satisfied [INFO] [stdout] --> src/lib.rs:970:18 [INFO] [stdout] | [INFO] [stdout] 970 | let sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `States` is not implemented for `DoorState` [INFO] [stdout] --> src/lib.rs:885:5 [INFO] [stdout] | [INFO] [stdout] 885 | enum DoorState { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:35 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Events` in this scope [INFO] [stdout] --> examples/traffic_light.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Debug, Events)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Events` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> examples/traffic_light.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tinystate::Events; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DoorEvent: Events` is not satisfied [INFO] [stdout] --> src/lib.rs:970:18 [INFO] [stdout] | [INFO] [stdout] 970 | let sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Events` is not implemented for `DoorEvent` [INFO] [stdout] --> src/lib.rs:892:5 [INFO] [stdout] | [INFO] [stdout] 892 | enum DoorEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:46 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Events` in this scope [INFO] [stdout] --> examples/vending_machine.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, Events)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Events` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> examples/vending_machine.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tinystate::Events; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"door","loc":"examples/door.rs:38:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"door","loc":"examples/door.rs:41:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"door","loc":"examples/door.rs:44:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"door","loc":"examples/door.rs:47:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"door","loc":"examples/door.rs:50:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"door","loc":"examples/door.rs:53:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"door","loc":"examples/door.rs:56:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"traffic_light","loc":"examples/traffic_light.rs:27:17","p":3,"ph":2,"wa":0,"pa":0,"a":2,"pos":2,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":2,"a_opt":2,"sz_no_dedup":32,"sz_old":32,"sz_opt":32} [INFO] [stderr] [FMTARGS] {"crate":"traffic_light","loc":"examples/traffic_light.rs:31:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"vending_machine","loc":"examples/vending_machine.rs:115:13","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stderr] [FMTARGS] {"crate":"vending_machine","loc":"examples/vending_machine.rs:116:13","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `StateMachineBuilder`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:970:69 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | -------------------------------------------------------------------------------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 885 | enum DoorState { [INFO] [stdout] | -------------- doesn't satisfy `DoorState: States` [INFO] [stdout] ... [INFO] [stdout] 892 | enum DoorEvent { [INFO] [stdout] | -------------- doesn't satisfy `DoorEvent: Events` [INFO] [stdout] ... [INFO] [stdout] 970 | let sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^ function or associated item cannot be called on `StateMachineBuilder` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `DoorEvent: Events` [INFO] [stdout] `DoorState: States` [INFO] [stdout] --> src/lib.rs:523:9 [INFO] [stdout] | [INFO] [stdout] 523 | impl StateMachineBuilder { [INFO] [stdout] | ^^^^^^ ^^^^^^ --------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the traits `Events` and `States` must be implemented [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [FMTARGS] {"crate":"vending_machine","loc":"examples/vending_machine.rs:118:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"vending_machine","loc":"examples/vending_machine.rs:121:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"vending_machine","loc":"examples/vending_machine.rs:124:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"vending_machine","loc":"examples/vending_machine.rs:127:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"vending_machine","loc":"examples/vending_machine.rs:130:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"vending_machine","loc":"examples/vending_machine.rs:133:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"vending_machine","loc":"examples/vending_machine.rs:136:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"vending_machine","loc":"examples/vending_machine.rs:138:13","p":1,"ph":0,"wa":0,"pa":0,"a":0,"pos":0,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":0,"a_opt":0,"sz_no_dedup":0,"sz_old":0,"sz_opt":0} [INFO] [stderr] [FMTARGS] {"crate":"vending_machine","loc":"examples/vending_machine.rs:140:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stderr] [FMTARGS] {"crate":"vending_machine","loc":"examples/vending_machine.rs:143:13","p":2,"ph":1,"wa":0,"pa":0,"a":1,"pos":1,"named":0,"cap":0,"ucap":0,"dup":0,"const":0,"constparam":0,"other_dup":0,"d2":0,"d3":0,"d4p":0,"deduped":0,"remaining":0,"a_old":1,"a_opt":1,"sz_no_dedup":16,"sz_old":16,"sz_opt":16} [INFO] [stdout] error[E0277]: the trait bound `DoorState: States` is not satisfied [INFO] [stdout] --> src/lib.rs:996:22 [INFO] [stdout] | [INFO] [stdout] 996 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `States` is not implemented for `DoorState` [INFO] [stdout] --> src/lib.rs:885:5 [INFO] [stdout] | [INFO] [stdout] 885 | enum DoorState { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:35 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DoorEvent: Events` is not satisfied [INFO] [stdout] --> src/lib.rs:996:22 [INFO] [stdout] | [INFO] [stdout] 996 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Events` is not implemented for `DoorEvent` [INFO] [stdout] --> src/lib.rs:892:5 [INFO] [stdout] | [INFO] [stdout] 892 | enum DoorEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:46 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `StateMachineBuilder`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:996:73 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | -------------------------------------------------------------------------------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 885 | enum DoorState { [INFO] [stdout] | -------------- doesn't satisfy `DoorState: States` [INFO] [stdout] ... [INFO] [stdout] 892 | enum DoorEvent { [INFO] [stdout] | -------------- doesn't satisfy `DoorEvent: Events` [INFO] [stdout] ... [INFO] [stdout] 996 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^ function or associated item cannot be called on `StateMachineBuilder` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `DoorEvent: Events` [INFO] [stdout] `DoorState: States` [INFO] [stdout] --> src/lib.rs:523:9 [INFO] [stdout] | [INFO] [stdout] 523 | impl StateMachineBuilder { [INFO] [stdout] | ^^^^^^ ^^^^^^ --------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the traits `Events` and `States` must be implemented [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DoorState: States` is not satisfied [INFO] [stdout] --> src/lib.rs:1026:22 [INFO] [stdout] | [INFO] [stdout] 1026 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `States` is not implemented for `DoorState` [INFO] [stdout] --> src/lib.rs:885:5 [INFO] [stdout] | [INFO] [stdout] 885 | enum DoorState { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:35 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DoorEvent: Events` is not satisfied [INFO] [stdout] --> src/lib.rs:1026:22 [INFO] [stdout] | [INFO] [stdout] 1026 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Events` is not implemented for `DoorEvent` [INFO] [stdout] --> src/lib.rs:892:5 [INFO] [stdout] | [INFO] [stdout] 892 | enum DoorEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:46 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `StateMachineBuilder`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:1026:73 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | -------------------------------------------------------------------------------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 885 | enum DoorState { [INFO] [stdout] | -------------- doesn't satisfy `DoorState: States` [INFO] [stdout] ... [INFO] [stdout] 892 | enum DoorEvent { [INFO] [stdout] | -------------- doesn't satisfy `DoorEvent: Events` [INFO] [stdout] ... [INFO] [stdout] 1026 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^ function or associated item cannot be called on `StateMachineBuilder` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `DoorEvent: Events` [INFO] [stdout] `DoorState: States` [INFO] [stdout] --> src/lib.rs:523:9 [INFO] [stdout] | [INFO] [stdout] 523 | impl StateMachineBuilder { [INFO] [stdout] | ^^^^^^ ^^^^^^ --------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the traits `Events` and `States` must be implemented [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TrafficLightState: States` is not satisfied [INFO] [stdout] --> src/lib.rs:1056:18 [INFO] [stdout] | [INFO] [stdout] 1056 | let sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `States` is not implemented for `TrafficLightState` [INFO] [stdout] --> src/lib.rs:839:5 [INFO] [stdout] | [INFO] [stdout] 839 | enum TrafficLightState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:35 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TrafficLightEvent: Events` is not satisfied [INFO] [stdout] --> src/lib.rs:1056:18 [INFO] [stdout] | [INFO] [stdout] 1056 | let sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Events` is not implemented for `TrafficLightEvent` [INFO] [stdout] --> src/lib.rs:846:5 [INFO] [stdout] | [INFO] [stdout] 846 | enum TrafficLightEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: this trait has no implementations, consider adding one [INFO] [stdout] --> src/lib.rs:154:1 [INFO] [stdout] | [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:46 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `StateMachineBuilder`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:1056:85 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | -------------------------------------------------------------------------------------- function or associated item `new` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 839 | enum TrafficLightState { [INFO] [stdout] | ---------------------- doesn't satisfy `TrafficLightState: States` [INFO] [stdout] ... [INFO] [stdout] 846 | enum TrafficLightEvent { [INFO] [stdout] | ---------------------- doesn't satisfy `TrafficLightEvent: Events` [INFO] [stdout] ... [INFO] [stdout] 1056 | let sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^ function or associated item cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: the following trait bounds were not satisfied: [INFO] [stdout] `TrafficLightEvent: Events` [INFO] [stdout] `TrafficLightState: States` [INFO] [stdout] --> src/lib.rs:523:9 [INFO] [stdout] | [INFO] [stdout] 523 | impl StateMachineBuilder { [INFO] [stdout] | ^^^^^^ ^^^^^^ --------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | unsatisfied trait bound introduced here [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the traits `Events` and `States` must be implemented [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DoorState: States` is not satisfied [INFO] [stdout] --> examples/door.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `States` is not implemented for `DoorState` [INFO] [stdout] --> examples/door.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | enum DoorState { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:35 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `VendingState: States` is not satisfied [INFO] [stdout] --> examples/vending_machine.rs:25:23 [INFO] [stdout] | [INFO] [stdout] 25 | let mut machine = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `States` is not implemented for `VendingState` [INFO] [stdout] --> examples/vending_machine.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | enum VendingState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:35 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TrafficLight: States` is not satisfied [INFO] [stdout] --> examples/traffic_light.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | let mut light = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `States` is not implemented for `TrafficLight` [INFO] [stdout] --> examples/traffic_light.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | enum TrafficLight { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:35 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DoorEvent: Events` is not satisfied [INFO] [stdout] --> examples/door.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Events` is not implemented for `DoorEvent` [INFO] [stdout] --> examples/door.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | enum DoorEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:46 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `VendingEvent: Events` is not satisfied [INFO] [stdout] --> examples/vending_machine.rs:25:23 [INFO] [stdout] | [INFO] [stdout] 25 | let mut machine = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Events` is not implemented for `VendingEvent` [INFO] [stdout] --> examples/vending_machine.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | enum VendingEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:46 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Signal: Events` is not satisfied [INFO] [stdout] --> examples/traffic_light.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | let mut light = StateMachineBuilder::::new() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Events` is not implemented for `Signal` [INFO] [stdout] --> examples/traffic_light.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | enum Signal { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `StateMachineBuilder` [INFO] [stdout] --> src/lib.rs:516:46 [INFO] [stdout] | [INFO] [stdout] 516 | pub struct StateMachineBuilder { [INFO] [stdout] | ^^^^^^ required by this bound in `StateMachineBuilder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `StateMachineBuilder`, but its trait bounds were not satisfied [INFO] [stdout] --> examples/vending_machine.rs:25:80 [INFO] [stdout] | [INFO] [stdout] 6 | enum VendingState { [INFO] [stdout] | ----------------- doesn't satisfy `VendingState: States` [INFO] [stdout] ... [INFO] [stdout] 16 | enum VendingEvent { [INFO] [stdout] | ----------------- doesn't satisfy `VendingEvent: Events` [INFO] [stdout] ... [INFO] [stdout] 25 | let mut machine = StateMachineBuilder::::new() [INFO] [stdout] | ^^^ function or associated item cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `VendingState: States` [INFO] [stdout] `VendingEvent: Events` [INFO] [stdout] note: the traits `Events` and `States` must be implemented [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `StateMachineBuilder`, but its trait bounds were not satisfied [INFO] [stdout] --> examples/traffic_light.rs:18:72 [INFO] [stdout] | [INFO] [stdout] 6 | enum TrafficLight { [INFO] [stdout] | ----------------- doesn't satisfy `TrafficLight: States` [INFO] [stdout] ... [INFO] [stdout] 13 | enum Signal { [INFO] [stdout] | ----------- doesn't satisfy `Signal: Events` [INFO] [stdout] ... [INFO] [stdout] 18 | let mut light = StateMachineBuilder::::new() [INFO] [stdout] | ^^^ function or associated item cannot be called on `StateMachineBuilder` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TrafficLight: States` [INFO] [stdout] `Signal: Events` [INFO] [stdout] note: the traits `Events` and `States` must be implemented [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `StateMachineBuilder`, but its trait bounds were not satisfied [INFO] [stdout] --> examples/door.rs:21:69 [INFO] [stdout] | [INFO] [stdout] 6 | enum DoorState { [INFO] [stdout] | -------------- doesn't satisfy `DoorState: States` [INFO] [stdout] ... [INFO] [stdout] 13 | enum DoorEvent { [INFO] [stdout] | -------------- doesn't satisfy `DoorEvent: Events` [INFO] [stdout] ... [INFO] [stdout] 21 | let mut sm = StateMachineBuilder::::new() [INFO] [stdout] | ^^^ function or associated item cannot be called on `StateMachineBuilder` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `DoorState: States` [INFO] [stdout] `DoorEvent: Events` [INFO] [stdout] note: the traits `Events` and `States` must be implemented [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub trait States: Copy + Default { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub trait Events: Copy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tinystate` (example "traffic_light") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `tinystate` (example "door") due to 5 previous errors [INFO] [stderr] error: could not compile `tinystate` (example "vending_machine") due to 5 previous errors [INFO] [stderr] error: could not compile `tinystate` (lib test) due to 25 previous errors [INFO] running `Command { std: "docker" "inspect" "f3aa5990b2e242d3059d26013ff2c3383ac21a48157d6fec515105f023926ee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3aa5990b2e242d3059d26013ff2c3383ac21a48157d6fec515105f023926ee6", kill_on_drop: false }` [INFO] [stdout] f3aa5990b2e242d3059d26013ff2c3383ac21a48157d6fec515105f023926ee6