[INFO] fetching crate state_machine 0.1.14...
[INFO] testing state_machine-0.1.14 against master#1871252fc8bb672d40787e67404e6eaae7059369 for pr-125151
[INFO] extracting crate state_machine 0.1.14 into /workspace/builds/worker-5-tc1/source
[INFO] validating manifest of crates.io crate state_machine 0.1.14 on toolchain 1871252fc8bb672d40787e67404e6eaae7059369
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate state_machine 0.1.14
[INFO] finished tweaking crates.io crate state_machine 0.1.14
[INFO] tweaked toml for crates.io crate state_machine 0.1.14 written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ef2045c4962de2df83ae06b41f7faba8038edbce72febefb15380156e224aed1
[INFO] running `Command { std: "docker" "start" "-a" "ef2045c4962de2df83ae06b41f7faba8038edbce72febefb15380156e224aed1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ef2045c4962de2df83ae06b41f7faba8038edbce72febefb15380156e224aed1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ef2045c4962de2df83ae06b41f7faba8038edbce72febefb15380156e224aed1", kill_on_drop: false }`
[INFO] [stdout] ef2045c4962de2df83ae06b41f7faba8038edbce72febefb15380156e224aed1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 748013085d5c7d403b87da0ae59183f3c299c168208ab7cba0b0096a398715d6
[INFO] running `Command { std: "docker" "start" "-a" "748013085d5c7d403b87da0ae59183f3c299c168208ab7cba0b0096a398715d6", kill_on_drop: false }`
[INFO] [stderr]    Compiling state_machine v0.1.14 (/opt/rustwide/workdir)
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:18:30
[INFO] [stdout]    |
[INFO] [stdout] 18 | type MachineVal<State> = Box<Machine<State>>;
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 18 | type MachineVal<State> = Box<dyn Machine<State>>;
[INFO] [stdout]    |                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.12s
[INFO] running `Command { std: "docker" "inspect" "748013085d5c7d403b87da0ae59183f3c299c168208ab7cba0b0096a398715d6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "748013085d5c7d403b87da0ae59183f3c299c168208ab7cba0b0096a398715d6", kill_on_drop: false }`
[INFO] [stdout] 748013085d5c7d403b87da0ae59183f3c299c168208ab7cba0b0096a398715d6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2c29bec5734ac8e6d44cbf7dc4e93cf9c5306da05687e94c589a863cc798574b
[INFO] running `Command { std: "docker" "start" "-a" "2c29bec5734ac8e6d44cbf7dc4e93cf9c5306da05687e94c589a863cc798574b", kill_on_drop: false }`
[INFO] [stderr]    Compiling state_machine v0.1.14 (/opt/rustwide/workdir)
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:18:30
[INFO] [stdout]    |
[INFO] [stdout] 18 | type MachineVal<State> = Box<Machine<State>>;
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 18 | type MachineVal<State> = Box<dyn Machine<State>>;
[INFO] [stdout]    |                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:18:30
[INFO] [stdout]    |
[INFO] [stdout] 18 | type MachineVal<State> = Box<Machine<State>>;
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 18 | type MachineVal<State> = Box<dyn Machine<State>>;
[INFO] [stdout]    |                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.52s
[INFO] running `Command { std: "docker" "inspect" "2c29bec5734ac8e6d44cbf7dc4e93cf9c5306da05687e94c589a863cc798574b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2c29bec5734ac8e6d44cbf7dc4e93cf9c5306da05687e94c589a863cc798574b", kill_on_drop: false }`
[INFO] [stdout] 2c29bec5734ac8e6d44cbf7dc4e93cf9c5306da05687e94c589a863cc798574b
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 8903fd5fa2ee8584a0f5e11d2780117922d226b27895b7b6cc71ef5c2903a4cc
[INFO] running `Command { std: "docker" "start" "-a" "8903fd5fa2ee8584a0f5e11d2780117922d226b27895b7b6cc71ef5c2903a4cc", kill_on_drop: false }`
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr]   --> src/lib.rs:18:30
[INFO] [stderr]    |
[INFO] [stderr] 18 | type MachineVal<State> = Box<Machine<State>>;
[INFO] [stderr]    |                              ^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stderr] help: if this is an object-safe trait, use `dyn`
[INFO] [stderr]    |
[INFO] [stderr] 18 | type MachineVal<State> = Box<dyn Machine<State>>;
[INFO] [stderr]    |                              +++
[INFO] [stderr] 
[INFO] [stderr] warning: `state_machine` (lib) generated 1 warning (run `cargo fix --lib -p state_machine` to apply 1 suggestion)
[INFO] [stderr] warning: `state_machine` (lib test) generated 1 warning (1 duplicate)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/state_machine-d02325fe5734bcb0)
[INFO] [stdout] 
[INFO] [stdout] running 2 tests
[INFO] [stdout] test test::contain ... ok
[INFO] [stdout] test test::get ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests state_machine
[INFO] [stdout] 
[INFO] [stdout] running 8 tests
[INFO] [stdout] test src/lib.rs - StateMachine<State>::remove (line 151) ... FAILED
[INFO] [stdout] test src/lib.rs - StateMachine<State>::contain (line 170) ... FAILED
[INFO] [stdout] test src/lib.rs - StateMachine<State>::next (line 81) ... FAILED
[INFO] [stdout] test src/lib.rs - StateMachine<State>::add (line 115) ... FAILED
[INFO] [stdout] test src/lib.rs - StateMachine<State>::add_builder (line 133) ... FAILED
[INFO] [stdout] test src/lib.rs - StateMachine<State>::get_state (line 212) ... FAILED
[INFO] [stdout] test src/lib.rs - StateMachine<State>::new (line 45) ... FAILED
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] [stdout] test src/lib.rs - StateMachine<State>::get_machine (line 189) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::remove (line 151) stdout ----
[INFO] [stdout] error: comparison operators cannot be chained
[INFO] [stdout]  --> src/lib.rs:158:51
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.remove(&States::Fire), Some(Box<Machine<States>>));
[INFO] [stdout]   |                                                   ^       ^
[INFO] [stdout]   |
[INFO] [stdout]   = help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
[INFO] [stdout]   = help: or use `(...)` if you meant to specify fn arguments
[INFO] [stdout] help: split the comparison into two
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.remove(&States::Fire), Some(Box<Machine && Machine<States>>));
[INFO] [stdout]   |                                                            ++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `Machine`
[INFO] [stdout]  --> src/lib.rs:152:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use Machine;
[INFO] [stdout]   |     ^^^^^^^ no `Machine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `StateMachine`
[INFO] [stdout]  --> src/lib.rs:153:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use StateMachine;
[INFO] [stdout]   |     ^^^^^^^^^^^^ no `StateMachine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `FireStateImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:156:36
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:155:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mut machine = StateMachine::new(States::Empty);
[INFO] [stdout]   |                                     ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:156:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:158:28
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.remove(&States::Fire), Some(Box<Machine<States>>));
[INFO] [stdout]   |                            ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:159:28
[INFO] [stdout]    |
[INFO] [stdout] 10 | assert_eq!(machine.remove(&States::Stop), None);
[INFO] [stdout]    |                            ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::contain (line 170) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `Machine`
[INFO] [stdout]  --> src/lib.rs:171:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use Machine;
[INFO] [stdout]   |     ^^^^^^^ no `Machine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `StateMachine`
[INFO] [stdout]  --> src/lib.rs:172:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use StateMachine;
[INFO] [stdout]   |     ^^^^^^^^^^^^ no `StateMachine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `FireStateImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:175:36
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:174:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mut machine = StateMachine::new(States::Empty);
[INFO] [stdout]   |                                     ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:175:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:177:29
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.contain(&States::Fire), true);
[INFO] [stdout]   |                             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:178:29
[INFO] [stdout]    |
[INFO] [stdout] 10 | assert_eq!(machine.contain(&States::Stop), false);
[INFO] [stdout]    |                             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::next (line 81) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `Machine`
[INFO] [stdout]  --> src/lib.rs:82:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use Machine;
[INFO] [stdout]   |     ^^^^^^^ no `Machine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `StateMachine`
[INFO] [stdout]  --> src/lib.rs:83:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use StateMachine;
[INFO] [stdout]   |     ^^^^^^^^^^^^ no `StateMachine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `EmptyImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:86:37
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Empty, Box::new(EmptyImpl));
[INFO] [stdout]   |                                     ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `FireImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:87:36
[INFO] [stdout]   |
[INFO] [stdout] 8 | machine.add(States::Fire, Box::new(FireImpl));
[INFO] [stdout]   |                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `StopImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:88:36
[INFO] [stdout]   |
[INFO] [stdout] 9 | machine.add(States::Stop, Box::new(StopImpl));
[INFO] [stdout]   |                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:85:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mut machine = StateMachine::new(States::Empty);
[INFO] [stdout]   |                                     ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:86:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Empty, Box::new(EmptyImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:87:13
[INFO] [stdout]   |
[INFO] [stdout] 8 | machine.add(States::Fire, Box::new(FireImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:88:13
[INFO] [stdout]   |
[INFO] [stdout] 9 | machine.add(States::Stop, Box::new(StopImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 9 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::add (line 115) stdout ----
[INFO] [stdout] error: comparison operators cannot be chained
[INFO] [stdout]  --> src/lib.rs:122:72
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.add(States::Fire, Box::new(StopStateImpl)), Some(Box<Machine<States>>));
[INFO] [stdout]   |                                                                        ^       ^
[INFO] [stdout]   |
[INFO] [stdout]   = help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
[INFO] [stdout]   = help: or use `(...)` if you meant to specify fn arguments
[INFO] [stdout] help: split the comparison into two
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.add(States::Fire, Box::new(StopStateImpl)), Some(Box<Machine && Machine<States>>));
[INFO] [stdout]   |                                                                                 ++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `Machine`
[INFO] [stdout]  --> src/lib.rs:116:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use Machine;
[INFO] [stdout]   |     ^^^^^^^ no `Machine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `StateMachine`
[INFO] [stdout]  --> src/lib.rs:117:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use StateMachine;
[INFO] [stdout]   |     ^^^^^^^^^^^^ no `StateMachine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `FireStateImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:120:36
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `StopStateImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:122:47
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.add(States::Fire, Box::new(StopStateImpl)), Some(Box<Machine<States>>));
[INFO] [stdout]   |                                               ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:119:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mut machine = StateMachine::new(States::Empty);
[INFO] [stdout]   |                                     ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:120:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:122:24
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.add(States::Fire, Box::new(StopStateImpl)), Some(Box<Machine<States>>));
[INFO] [stdout]   |                        ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:123:25
[INFO] [stdout]    |
[INFO] [stdout] 10 | assert_eq!(machine.add(&States::Block), None);
[INFO] [stdout]    |                         ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 9 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::add_builder (line 133) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `State2` in this scope
[INFO] [stdout]  --> src/lib.rs:137:24
[INFO] [stdout]   |
[INFO] [stdout] 6 |        .add_builder(2, State2)
[INFO] [stdout]   |                        ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `State3` in this scope
[INFO] [stdout]  --> src/lib.rs:138:24
[INFO] [stdout]   |
[INFO] [stdout] 7 |        .add_builder(3, State3);
[INFO] [stdout]   |                        ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StateMachine`
[INFO] [stdout]  --> src/lib.rs:134:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut mach = StateMachine::new(1);
[INFO] [stdout]   |                ^^^^^^^^^^^^ use of undeclared type `StateMachine`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::get_state (line 212) stdout ----
[INFO] [stdout] error: expected `;`, found `machine`
[INFO] [stdout]  --> src/lib.rs:216:51
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mut machine = StateMachine::new(States::Empty)
[INFO] [stdout]   |                                                   ^ help: add `;` here
[INFO] [stdout] 7 | machine.add(States::Music, Box::new(MusicImpl));
[INFO] [stdout]   | ------- unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `Machine`
[INFO] [stdout]  --> src/lib.rs:213:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use Machine;
[INFO] [stdout]   |     ^^^^^^^ no `Machine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `StateMachine`
[INFO] [stdout]  --> src/lib.rs:214:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use StateMachine;
[INFO] [stdout]   |     ^^^^^^^^^^^^ no `StateMachine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MusicImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:217:37
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Music, Box::new(MusicImpl));
[INFO] [stdout]   |                                     ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `EmptyImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:218:37
[INFO] [stdout]   |
[INFO] [stdout] 8 | machine.add(States::Empty, Box::new(EmptyImpl));
[INFO] [stdout]   |                                     ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:216:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mut machine = StateMachine::new(States::Empty)
[INFO] [stdout]   |                                     ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:217:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Music, Box::new(MusicImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:218:13
[INFO] [stdout]   |
[INFO] [stdout] 8 | machine.add(States::Empty, Box::new(EmptyImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:220:34
[INFO] [stdout]    |
[INFO] [stdout] 10 | assert_eq!(*machine.get_state(), States::Empty);
[INFO] [stdout]    |                                  ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:223:34
[INFO] [stdout]    |
[INFO] [stdout] 13 | assert_eq!(*machine.get_state(), States::Music);
[INFO] [stdout]    |                                  ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::new (line 45) stdout ----
[INFO] [stdout] error: expected `;`, found `}`
[INFO] [stdout]  --> src/lib.rs:48:51
[INFO] [stdout]   |
[INFO] [stdout] 5 | let mut machine = StateMachine::new(States::Empty)
[INFO] [stdout]   |                                                   ^ help: add `;` here
[INFO] [stdout] 6 | } _doctest_main_src_lib_rs_45_0() }
[INFO] [stdout]   | - unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `StateMachine`
[INFO] [stdout]  --> src/lib.rs:46:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use StateMachine;
[INFO] [stdout]   |     ^^^^^^^^^^^^ no `StateMachine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:48:37
[INFO] [stdout]   |
[INFO] [stdout] 5 | let mut machine = StateMachine::new(States::Empty)
[INFO] [stdout]   |                                     ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::get_machine (line 189) stdout ----
[INFO] [stdout] error: comparison operators cannot be chained
[INFO] [stdout]   --> src/lib.rs:199:49
[INFO] [stdout]    |
[INFO] [stdout] 12 | assert_eq!(machine.get(&States::Fire), Some(&Box<Machine<States>>));
[INFO] [stdout]    |                                                 ^       ^
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
[INFO] [stdout]    = help: or use `(...)` if you meant to specify fn arguments
[INFO] [stdout] help: split the comparison into two
[INFO] [stdout]    |
[INFO] [stdout] 12 | assert_eq!(machine.get(&States::Fire), Some(&Box<Machine && Machine<States>>));
[INFO] [stdout]    |                                                          ++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `Machine`
[INFO] [stdout]  --> src/lib.rs:190:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use Machine;
[INFO] [stdout]   |     ^^^^^^^ no `Machine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `StateMachine`
[INFO] [stdout]  --> src/lib.rs:191:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use StateMachine;
[INFO] [stdout]   |     ^^^^^^^^^^^^ no `StateMachine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `FireStateImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:194:36
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:193:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mut machine = StateMachine::new(States::Empty);
[INFO] [stdout]   |                                     ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:194:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:196:29
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.contain(&States::Fire), true);
[INFO] [stdout]   |                             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:197:29
[INFO] [stdout]    |
[INFO] [stdout] 10 | assert_eq!(machine.contain(&States::Stop), false);
[INFO] [stdout]    |                             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:199:25
[INFO] [stdout]    |
[INFO] [stdout] 12 | assert_eq!(machine.get(&States::Fire), Some(&Box<Machine<States>>));
[INFO] [stdout]    |                         ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:200:25
[INFO] [stdout]    |
[INFO] [stdout] 13 | assert_eq!(machine.get(&States::Empty), None);
[INFO] [stdout]    |                         ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - StateMachine<State>::add (line 115)
[INFO] [stdout]     src/lib.rs - StateMachine<State>::add_builder (line 133)
[INFO] [stdout]     src/lib.rs - StateMachine<State>::contain (line 170)
[INFO] [stdout]     src/lib.rs - StateMachine<State>::get_machine (line 189)
[INFO] [stdout]     src/lib.rs - StateMachine<State>::get_state (line 212)
[INFO] [stdout]     src/lib.rs - StateMachine<State>::new (line 45)
[INFO] [stdout]     src/lib.rs - StateMachine<State>::next (line 81)
[INFO] [stdout]     src/lib.rs - StateMachine<State>::remove (line 151)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "8903fd5fa2ee8584a0f5e11d2780117922d226b27895b7b6cc71ef5c2903a4cc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8903fd5fa2ee8584a0f5e11d2780117922d226b27895b7b6cc71ef5c2903a4cc", kill_on_drop: false }`
[INFO] [stdout] 8903fd5fa2ee8584a0f5e11d2780117922d226b27895b7b6cc71ef5c2903a4cc
[INFO] testing state_machine-0.1.14 against try#b642703cf9526da1e72c0b6755753b939a9c6b6d for pr-125151
[INFO] extracting crate state_machine 0.1.14 into /workspace/builds/worker-5-tc2/source
[INFO] validating manifest of crates.io crate state_machine 0.1.14 on toolchain b642703cf9526da1e72c0b6755753b939a9c6b6d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate state_machine 0.1.14
[INFO] finished tweaking crates.io crate state_machine 0.1.14
[INFO] tweaked toml for crates.io crate state_machine 0.1.14 written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6a0004b10b17661ae5c98727e97f65bfe845424e3df2e43be0a5da1e847ff663
[INFO] running `Command { std: "docker" "start" "-a" "6a0004b10b17661ae5c98727e97f65bfe845424e3df2e43be0a5da1e847ff663", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6a0004b10b17661ae5c98727e97f65bfe845424e3df2e43be0a5da1e847ff663", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6a0004b10b17661ae5c98727e97f65bfe845424e3df2e43be0a5da1e847ff663", kill_on_drop: false }`
[INFO] [stdout] 6a0004b10b17661ae5c98727e97f65bfe845424e3df2e43be0a5da1e847ff663
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] defc7a249299cc12f03135997a7ddd7f4fcf503562d30c4c15f75dbfab98c9a7
[INFO] running `Command { std: "docker" "start" "-a" "defc7a249299cc12f03135997a7ddd7f4fcf503562d30c4c15f75dbfab98c9a7", kill_on_drop: false }`
[INFO] [stderr]    Compiling state_machine v0.1.14 (/opt/rustwide/workdir)
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:18:30
[INFO] [stdout]    |
[INFO] [stdout] 18 | type MachineVal<State> = Box<Machine<State>>;
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 18 | type MachineVal<State> = Box<dyn Machine<State>>;
[INFO] [stdout]    |                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.08s
[INFO] running `Command { std: "docker" "inspect" "defc7a249299cc12f03135997a7ddd7f4fcf503562d30c4c15f75dbfab98c9a7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "defc7a249299cc12f03135997a7ddd7f4fcf503562d30c4c15f75dbfab98c9a7", kill_on_drop: false }`
[INFO] [stdout] defc7a249299cc12f03135997a7ddd7f4fcf503562d30c4c15f75dbfab98c9a7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0efbfa748c07971fa4caa153b1e1dafd70a3f32d3e6b05ad37973f2ceb802602
[INFO] running `Command { std: "docker" "start" "-a" "0efbfa748c07971fa4caa153b1e1dafd70a3f32d3e6b05ad37973f2ceb802602", kill_on_drop: false }`
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:18:30
[INFO] [stdout]    |
[INFO] [stdout] 18 | type MachineVal<State> = Box<Machine<State>>;
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 18 | type MachineVal<State> = Box<dyn Machine<State>>;
[INFO] [stdout]    |                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling state_machine v0.1.14 (/opt/rustwide/workdir)
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/lib.rs:18:30
[INFO] [stdout]    |
[INFO] [stdout] 18 | type MachineVal<State> = Box<Machine<State>>;
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] help: if this is an object-safe trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 18 | type MachineVal<State> = Box<dyn Machine<State>>;
[INFO] [stdout]    |                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.48s
[INFO] running `Command { std: "docker" "inspect" "0efbfa748c07971fa4caa153b1e1dafd70a3f32d3e6b05ad37973f2ceb802602", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0efbfa748c07971fa4caa153b1e1dafd70a3f32d3e6b05ad37973f2ceb802602", kill_on_drop: false }`
[INFO] [stdout] 0efbfa748c07971fa4caa153b1e1dafd70a3f32d3e6b05ad37973f2ceb802602
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] bbc57aa831dac6257581c3baeb1e1e8fda070e541404665e9a64c4f5f27993a1
[INFO] running `Command { std: "docker" "start" "-a" "bbc57aa831dac6257581c3baeb1e1e8fda070e541404665e9a64c4f5f27993a1", kill_on_drop: false }`
[INFO] [stdout] 
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout] running 2 tests
[INFO] [stderr]   --> src/lib.rs:18:30
[INFO] [stderr]    |
[INFO] [stderr] 18 | type MachineVal<State> = Box<Machine<State>>;
[INFO] [stderr]    |                              ^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stderr] help: if this is an object-safe trait, use `dyn`
[INFO] [stderr]    |
[INFO] [stderr] 18 | type MachineVal<State> = Box<dyn Machine<State>>;
[INFO] [stderr]    |                              +++
[INFO] [stderr] 
[INFO] [stderr] warning: `state_machine` (lib) generated 1 warning (run `cargo fix --lib -p state_machine` to apply 1 suggestion)
[INFO] [stderr] warning: `state_machine` (lib test) generated 1 warning (1 duplicate)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/state_machine-d02325fe5734bcb0)
[INFO] [stderr]    Doc-tests state_machine
[INFO] [stdout] test test::get ... ok
[INFO] [stdout] test test::contain ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 8 tests
[INFO] [stdout] test src/lib.rs - StateMachine<State>::next (line 81) ... FAILED
[INFO] [stdout] test src/lib.rs - StateMachine<State>::contain (line 170) ... FAILED
[INFO] [stdout] test src/lib.rs - StateMachine<State>::new (line 45) ... FAILED
[INFO] [stdout] test src/lib.rs - StateMachine<State>::add (line 115) ... FAILED
[INFO] [stdout] test src/lib.rs - StateMachine<State>::add_builder (line 133) ... FAILED
[INFO] [stdout] test src/lib.rs - StateMachine<State>::get_state (line 212) ... FAILED
[INFO] [stdout] test src/lib.rs - StateMachine<State>::remove (line 151) ... FAILED
[INFO] [stdout] test src/lib.rs - StateMachine<State>::get_machine (line 189) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::next (line 81) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `Machine`
[INFO] [stdout]  --> src/lib.rs:82:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use Machine;
[INFO] [stdout]   |     ^^^^^^^ no `Machine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `StateMachine`
[INFO] [stdout]  --> src/lib.rs:83:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use StateMachine;
[INFO] [stdout]   |     ^^^^^^^^^^^^ no `StateMachine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `EmptyImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:86:37
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Empty, Box::new(EmptyImpl));
[INFO] [stdout]   |                                     ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `FireImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:87:36
[INFO] [stdout]   |
[INFO] [stdout] 8 | machine.add(States::Fire, Box::new(FireImpl));
[INFO] [stdout]   |                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `StopImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:88:36
[INFO] [stdout]   |
[INFO] [stdout] 9 | machine.add(States::Stop, Box::new(StopImpl));
[INFO] [stdout]   |                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:85:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mut machine = StateMachine::new(States::Empty);
[INFO] [stdout]   |                                     ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:86:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Empty, Box::new(EmptyImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:87:13
[INFO] [stdout]   |
[INFO] [stdout] 8 | machine.add(States::Fire, Box::new(FireImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:88:13
[INFO] [stdout]   |
[INFO] [stdout] 9 | machine.add(States::Stop, Box::new(StopImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 9 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::contain (line 170) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `Machine`
[INFO] [stdout]  --> src/lib.rs:171:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use Machine;
[INFO] [stdout]   |     ^^^^^^^ no `Machine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `StateMachine`
[INFO] [stdout]  --> src/lib.rs:172:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use StateMachine;
[INFO] [stdout]   |     ^^^^^^^^^^^^ no `StateMachine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `FireStateImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:175:36
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:174:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mut machine = StateMachine::new(States::Empty);
[INFO] [stdout]   |                                     ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:175:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:177:29
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.contain(&States::Fire), true);
[INFO] [stdout]   |                             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:178:29
[INFO] [stdout]    |
[INFO] [stdout] 10 | assert_eq!(machine.contain(&States::Stop), false);
[INFO] [stdout]    |                             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::new (line 45) stdout ----
[INFO] [stdout] error: expected `;`, found `}`
[INFO] [stdout]  --> src/lib.rs:48:51
[INFO] [stdout]   |
[INFO] [stdout] 5 | let mut machine = StateMachine::new(States::Empty)
[INFO] [stdout]   |                                                   ^ help: add `;` here
[INFO] [stdout] 6 | } _doctest_main_src_lib_rs_45_0() }
[INFO] [stdout]   | - unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `StateMachine`
[INFO] [stdout]  --> src/lib.rs:46:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use StateMachine;
[INFO] [stdout]   |     ^^^^^^^^^^^^ no `StateMachine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:48:37
[INFO] [stdout]   |
[INFO] [stdout] 5 | let mut machine = StateMachine::new(States::Empty)
[INFO] [stdout]   |                                     ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::add (line 115) stdout ----
[INFO] [stdout] error: comparison operators cannot be chained
[INFO] [stdout]  --> src/lib.rs:122:72
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.add(States::Fire, Box::new(StopStateImpl)), Some(Box<Machine<States>>));
[INFO] [stdout]   |                                                                        ^       ^
[INFO] [stdout]   |
[INFO] [stdout]   = help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
[INFO] [stdout]   = help: or use `(...)` if you meant to specify fn arguments
[INFO] [stdout] help: split the comparison into two
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.add(States::Fire, Box::new(StopStateImpl)), Some(Box<Machine && Machine<States>>));
[INFO] [stdout]   |                                                                                 ++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `Machine`
[INFO] [stdout]  --> src/lib.rs:116:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use Machine;
[INFO] [stdout]   |     ^^^^^^^ no `Machine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `StateMachine`
[INFO] [stdout]  --> src/lib.rs:117:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use StateMachine;
[INFO] [stdout]   |     ^^^^^^^^^^^^ no `StateMachine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `FireStateImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:120:36
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `StopStateImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:122:47
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.add(States::Fire, Box::new(StopStateImpl)), Some(Box<Machine<States>>));
[INFO] [stdout]   |                                               ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:119:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mut machine = StateMachine::new(States::Empty);
[INFO] [stdout]   |                                     ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:120:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:122:24
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.add(States::Fire, Box::new(StopStateImpl)), Some(Box<Machine<States>>));
[INFO] [stdout]   |                        ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:123:25
[INFO] [stdout]    |
[INFO] [stdout] 10 | assert_eq!(machine.add(&States::Block), None);
[INFO] [stdout]    |                         ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 9 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::add_builder (line 133) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `State2` in this scope
[INFO] [stdout]  --> src/lib.rs:137:24
[INFO] [stdout]   |
[INFO] [stdout] 6 |        .add_builder(2, State2)
[INFO] [stdout]   |                        ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `State3` in this scope
[INFO] [stdout]  --> src/lib.rs:138:24
[INFO] [stdout]   |
[INFO] [stdout] 7 |        .add_builder(3, State3);
[INFO] [stdout]   |                        ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StateMachine`
[INFO] [stdout]  --> src/lib.rs:134:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | let mut mach = StateMachine::new(1);
[INFO] [stdout]   |                ^^^^^^^^^^^^ use of undeclared type `StateMachine`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::get_state (line 212) stdout ----
[INFO] [stdout] error: expected `;`, found `machine`
[INFO] [stdout]  --> src/lib.rs:216:51
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mut machine = StateMachine::new(States::Empty)
[INFO] [stdout]   |                                                   ^ help: add `;` here
[INFO] [stdout] 7 | machine.add(States::Music, Box::new(MusicImpl));
[INFO] [stdout]   | ------- unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `Machine`
[INFO] [stdout]  --> src/lib.rs:213:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use Machine;
[INFO] [stdout]   |     ^^^^^^^ no `Machine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `StateMachine`
[INFO] [stdout]  --> src/lib.rs:214:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use StateMachine;
[INFO] [stdout]   |     ^^^^^^^^^^^^ no `StateMachine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `MusicImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:217:37
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Music, Box::new(MusicImpl));
[INFO] [stdout]   |                                     ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `EmptyImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:218:37
[INFO] [stdout]   |
[INFO] [stdout] 8 | machine.add(States::Empty, Box::new(EmptyImpl));
[INFO] [stdout]   |                                     ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:216:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mut machine = StateMachine::new(States::Empty)
[INFO] [stdout]   |                                     ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:217:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Music, Box::new(MusicImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:218:13
[INFO] [stdout]   |
[INFO] [stdout] 8 | machine.add(States::Empty, Box::new(EmptyImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:220:34
[INFO] [stdout]    |
[INFO] [stdout] 10 | assert_eq!(*machine.get_state(), States::Empty);
[INFO] [stdout]    |                                  ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:223:34
[INFO] [stdout]    |
[INFO] [stdout] 13 | assert_eq!(*machine.get_state(), States::Music);
[INFO] [stdout]    |                                  ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::remove (line 151) stdout ----
[INFO] [stdout] error: comparison operators cannot be chained
[INFO] [stdout]  --> src/lib.rs:158:51
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.remove(&States::Fire), Some(Box<Machine<States>>));
[INFO] [stdout]   |                                                   ^       ^
[INFO] [stdout]   |
[INFO] [stdout]   = help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
[INFO] [stdout]   = help: or use `(...)` if you meant to specify fn arguments
[INFO] [stdout] help: split the comparison into two
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.remove(&States::Fire), Some(Box<Machine && Machine<States>>));
[INFO] [stdout]   |                                                            ++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `Machine`
[INFO] [stdout]  --> src/lib.rs:152:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use Machine;
[INFO] [stdout]   |     ^^^^^^^ no `Machine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `StateMachine`
[INFO] [stdout]  --> src/lib.rs:153:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use StateMachine;
[INFO] [stdout]   |     ^^^^^^^^^^^^ no `StateMachine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `FireStateImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:156:36
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:155:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mut machine = StateMachine::new(States::Empty);
[INFO] [stdout]   |                                     ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:156:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:158:28
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.remove(&States::Fire), Some(Box<Machine<States>>));
[INFO] [stdout]   |                            ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:159:28
[INFO] [stdout]    |
[INFO] [stdout] 10 | assert_eq!(machine.remove(&States::Stop), None);
[INFO] [stdout]    |                            ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - StateMachine<State>::get_machine (line 189) stdout ----
[INFO] [stdout] error: comparison operators cannot be chained
[INFO] [stdout]   --> src/lib.rs:199:49
[INFO] [stdout]    |
[INFO] [stdout] 12 | assert_eq!(machine.get(&States::Fire), Some(&Box<Machine<States>>));
[INFO] [stdout]    |                                                 ^       ^
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
[INFO] [stdout]    = help: or use `(...)` if you meant to specify fn arguments
[INFO] [stdout] help: split the comparison into two
[INFO] [stdout]    |
[INFO] [stdout] 12 | assert_eq!(machine.get(&States::Fire), Some(&Box<Machine && Machine<States>>));
[INFO] [stdout]    |                                                          ++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `Machine`
[INFO] [stdout]  --> src/lib.rs:190:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use Machine;
[INFO] [stdout]   |     ^^^^^^^ no `Machine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `StateMachine`
[INFO] [stdout]  --> src/lib.rs:191:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use StateMachine;
[INFO] [stdout]   |     ^^^^^^^^^^^^ no `StateMachine` in the root
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `FireStateImpl` in this scope
[INFO] [stdout]  --> src/lib.rs:194:36
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |                                    ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:193:37
[INFO] [stdout]   |
[INFO] [stdout] 6 | let mut machine = StateMachine::new(States::Empty);
[INFO] [stdout]   |                                     ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:194:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | machine.add(States::Fire, Box::new(FireStateImpl));
[INFO] [stdout]   |             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]  --> src/lib.rs:196:29
[INFO] [stdout]   |
[INFO] [stdout] 9 | assert_eq!(machine.contain(&States::Fire), true);
[INFO] [stdout]   |                             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:197:29
[INFO] [stdout]    |
[INFO] [stdout] 10 | assert_eq!(machine.contain(&States::Stop), false);
[INFO] [stdout]    |                             ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:199:25
[INFO] [stdout]    |
[INFO] [stdout] 12 | assert_eq!(machine.get(&States::Fire), Some(&Box<Machine<States>>));
[INFO] [stdout]    |                         ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `States`
[INFO] [stdout]   --> src/lib.rs:200:25
[INFO] [stdout]    |
[INFO] [stdout] 13 | assert_eq!(machine.get(&States::Empty), None);
[INFO] [stdout]    |                         ^^^^^^ use of undeclared type `States`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - StateMachine<State>::add (line 115)
[INFO] [stdout]     src/lib.rs - StateMachine<State>::add_builder (line 133)
[INFO] [stdout]     src/lib.rs - StateMachine<State>::contain (line 170)
[INFO] [stdout]     src/lib.rs - StateMachine<State>::get_machine (line 189)
[INFO] [stdout]     src/lib.rs - StateMachine<State>::get_state (line 212)
[INFO] [stdout]     src/lib.rs - StateMachine<State>::new (line 45)
[INFO] [stdout]     src/lib.rs - StateMachine<State>::next (line 81)
[INFO] [stdout]     src/lib.rs - StateMachine<State>::remove (line 151)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "bbc57aa831dac6257581c3baeb1e1e8fda070e541404665e9a64c4f5f27993a1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bbc57aa831dac6257581c3baeb1e1e8fda070e541404665e9a64c4f5f27993a1", kill_on_drop: false }`
[INFO] [stdout] bbc57aa831dac6257581c3baeb1e1e8fda070e541404665e9a64c4f5f27993a1
