[INFO] crate state_machine 0.1.14 is already in cache [INFO] testing state_machine-0.1.14 against 1.44.0 for beta-1.45-1 [INFO] extracting crate state_machine 0.1.14 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate state_machine 0.1.14 on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [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-0/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b47b6ef90c444ca043e26facd0182175d4097c04d0d47c309bd636abb984be5d [INFO] running `"docker" "start" "-a" "b47b6ef90c444ca043e26facd0182175d4097c04d0d47c309bd636abb984be5d"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling state_machine v0.1.14 (/opt/rustwide/workdir) [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 = Box>; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Machine` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.36s [INFO] running `"docker" "inspect" "b47b6ef90c444ca043e26facd0182175d4097c04d0d47c309bd636abb984be5d"` [INFO] running `"docker" "rm" "-f" "b47b6ef90c444ca043e26facd0182175d4097c04d0d47c309bd636abb984be5d"` [INFO] [stdout] b47b6ef90c444ca043e26facd0182175d4097c04d0d47c309bd636abb984be5d [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "test" "--frozen" "--no-run"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a3f44d9124369ceaf401909d94f7bc237038bd4b4a47c37f7a72355e71ac57bf [INFO] running `"docker" "start" "-a" "a3f44d9124369ceaf401909d94f7bc237038bd4b4a47c37f7a72355e71ac57bf"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling state_machine v0.1.14 (/opt/rustwide/workdir) [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 = Box>; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Machine` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [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 = Box>; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Machine` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.02s [INFO] running `"docker" "inspect" "a3f44d9124369ceaf401909d94f7bc237038bd4b4a47c37f7a72355e71ac57bf"` [INFO] running `"docker" "rm" "-f" "a3f44d9124369ceaf401909d94f7bc237038bd4b4a47c37f7a72355e71ac57bf"` [INFO] [stdout] a3f44d9124369ceaf401909d94f7bc237038bd4b4a47c37f7a72355e71ac57bf [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "test" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] cc633b2c820f2e1795ec98863ecaceb8970e59568b5f0681a6d6c1e6cdf74465 [INFO] running `"docker" "start" "-a" "cc633b2c820f2e1795ec98863ecaceb8970e59568b5f0681a6d6c1e6cdf74465"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [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 = Box>; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Machine` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [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 = Box>; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Machine` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/state_machine-ebbff6f795a279cb [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stderr] Doc-tests state_machine [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 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/lib.rs - StateMachine::get_machine (line 189) ... FAILED [INFO] [stdout] test src/lib.rs - StateMachine::contain (line 170) ... FAILED [INFO] [stdout] test src/lib.rs - StateMachine::add_builder (line 133) ... FAILED [INFO] [stdout] test src/lib.rs - StateMachine::remove (line 151) ... FAILED [INFO] [stdout] test src/lib.rs - StateMachine::add (line 115) ... FAILED [INFO] [stdout] test src/lib.rs - StateMachine::next (line 81) ... FAILED [INFO] [stdout] test src/lib.rs - StateMachine::new (line 45) ... FAILED [INFO] [stdout] test src/lib.rs - StateMachine::get_state (line 212) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - StateMachine::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>)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = help: use `::<...>` instead of `<...>` to specify type 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>)); [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[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `States` [INFO] [stdout] --> src/lib.rs:199:25 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(machine.get(&States::Fire), Some(&Box>)); [INFO] [stdout] | ^^^^^^ use of undeclared type or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [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: 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::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[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [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: 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::add_builder (line 133) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `StateMachine` [INFO] [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: 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::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>)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = help: use `::<...>` instead of `<...>` to specify type 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>)); [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[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `States` [INFO] [stdout] --> src/lib.rs:158:28 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(machine.remove(&States::Fire), Some(Box>)); [INFO] [stdout] | ^^^^^^ use of undeclared type or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [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: 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::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>)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = help: use `::<...>` instead of `<...>` to specify type 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>)); [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[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `States` [INFO] [stdout] --> src/lib.rs:122:24 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(machine.add(States::Fire, Box::new(StopStateImpl)), Some(Box>)); [INFO] [stdout] | ^^^^^^ use of undeclared type or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [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>)); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [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::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[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [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: 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::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 | } [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 or module `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 or module `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::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[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `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 or module `States` [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: 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::add (line 115) [INFO] [stdout] src/lib.rs - StateMachine::add_builder (line 133) [INFO] [stdout] src/lib.rs - StateMachine::contain (line 170) [INFO] [stdout] src/lib.rs - StateMachine::get_machine (line 189) [INFO] [stdout] src/lib.rs - StateMachine::get_state (line 212) [INFO] [stdout] src/lib.rs - StateMachine::new (line 45) [INFO] [stdout] src/lib.rs - StateMachine::next (line 81) [INFO] [stdout] src/lib.rs - StateMachine::remove (line 151) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "cc633b2c820f2e1795ec98863ecaceb8970e59568b5f0681a6d6c1e6cdf74465"` [INFO] running `"docker" "rm" "-f" "cc633b2c820f2e1795ec98863ecaceb8970e59568b5f0681a6d6c1e6cdf74465"` [INFO] [stdout] cc633b2c820f2e1795ec98863ecaceb8970e59568b5f0681a6d6c1e6cdf74465