[INFO] fetching crate rs-statemachine 0.1.0... [INFO] checking rs-statemachine-0.1.0 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate rs-statemachine 0.1.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate rs-statemachine 0.1.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate rs-statemachine 0.1.0 [INFO] tweaked toml for crates.io crate rs-statemachine 0.1.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rs-statemachine 0.1.0 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rs-statemachine 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d5bcba6b9708d034a2cb8a69b0345f448171246f5dff386d55ffa2c1b9976c8b [INFO] running `Command { std: "docker" "start" "-a" "d5bcba6b9708d034a2cb8a69b0345f448171246f5dff386d55ffa2c1b9976c8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5bcba6b9708d034a2cb8a69b0345f448171246f5dff386d55ffa2c1b9976c8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5bcba6b9708d034a2cb8a69b0345f448171246f5dff386d55ffa2c1b9976c8b", kill_on_drop: false }` [INFO] [stdout] d5bcba6b9708d034a2cb8a69b0345f448171246f5dff386d55ffa2c1b9976c8b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2b8efa7548a0bb3c7da94646f722cf549ff8cbe87fd70fcfdbf35a08486de91 [INFO] running `Command { std: "docker" "start" "-a" "c2b8efa7548a0bb3c7da94646f722cf549ff8cbe87fd70fcfdbf35a08486de91", kill_on_drop: false }` [INFO] [stderr] Checking rs-statemachine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:319:17 [INFO] [stdout] | [INFO] [stdout] 319 | let mut valid_transitions = transitions.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:319:17 [INFO] [stdout] | [INFO] [stdout] 319 | let mut valid_transitions = transitions.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transition_type` is never read [INFO] [stdout] --> src/lib.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 117 | pub struct Transition [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 128 | transition_type: TransitionType, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transition` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:606:32 [INFO] [stdout] | [INFO] [stdout] 606 | pub fn external_transition(&mut self) -> ExternalTransitionBuilder { [INFO] [stdout] | ^^^^^^^^^ ---------------------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 606 | pub fn external_transition(&mut self) -> ExternalTransitionBuilder<'_, S, E, C> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:611:32 [INFO] [stdout] | [INFO] [stdout] 611 | pub fn internal_transition(&mut self) -> InternalTransitionBuilder { [INFO] [stdout] | ^^^^^^^^^ ---------------------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 611 | pub fn internal_transition(&mut self) -> InternalTransitionBuilder<'_, S, E, C> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:616:33 [INFO] [stdout] | [INFO] [stdout] 616 | pub fn external_transitions(&mut self) -> ExternalTransitionsBuilder { [INFO] [stdout] | ^^^^^^^^^ ----------------------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 616 | pub fn external_transitions(&mut self) -> ExternalTransitionsBuilder<'_, S, E, C> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transition_type` is never read [INFO] [stdout] --> src/lib.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 117 | pub struct Transition [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 128 | transition_type: TransitionType, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transition` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `State3` and `State4` are never constructed [INFO] [stdout] --> src/lib.rs:1119:9 [INFO] [stdout] | [INFO] [stdout] 1116 | enum States { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 1119 | State3, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 1120 | State4, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `States` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Event3`, `Event4`, and `InternalEvent` are never constructed [INFO] [stdout] --> src/lib.rs:1129:9 [INFO] [stdout] | [INFO] [stdout] 1126 | enum Events { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 1129 | Event3, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 1130 | Event4, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 1131 | InternalEvent, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Events` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `entity_id` is never read [INFO] [stdout] --> src/lib.rs:1139:9 [INFO] [stdout] | [INFO] [stdout] 1137 | struct TestContext { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 1138 | operator: String, [INFO] [stdout] 1139 | entity_id: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TestContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:606:32 [INFO] [stdout] | [INFO] [stdout] 606 | pub fn external_transition(&mut self) -> ExternalTransitionBuilder { [INFO] [stdout] | ^^^^^^^^^ ---------------------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 606 | pub fn external_transition(&mut self) -> ExternalTransitionBuilder<'_, S, E, C> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:611:32 [INFO] [stdout] | [INFO] [stdout] 611 | pub fn internal_transition(&mut self) -> InternalTransitionBuilder { [INFO] [stdout] | ^^^^^^^^^ ---------------------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 611 | pub fn internal_transition(&mut self) -> InternalTransitionBuilder<'_, S, E, C> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:616:33 [INFO] [stdout] | [INFO] [stdout] 616 | pub fn external_transitions(&mut self) -> ExternalTransitionsBuilder { [INFO] [stdout] | ^^^^^^^^^ ----------------------------------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 616 | pub fn external_transitions(&mut self) -> ExternalTransitionsBuilder<'_, S, E, C> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TrafficLightState` is more private than the item `build_traffic_light_system` [INFO] [stdout] --> examples/traffic_light_example.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn build_traffic_light_system( [INFO] [stdout] 45 | | ) -> StateMachine { [INFO] [stdout] | |_______________________________________________________________________^ function `build_traffic_light_system` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `TrafficLightState` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/traffic_light_example.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | enum TrafficLightState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TrafficLightEvent` is more private than the item `build_traffic_light_system` [INFO] [stdout] --> examples/traffic_light_example.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn build_traffic_light_system( [INFO] [stdout] 45 | | ) -> StateMachine { [INFO] [stdout] | |_______________________________________________________________________^ function `build_traffic_light_system` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `TrafficLightEvent` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/traffic_light_example.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | enum TrafficLightEvent { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `TrafficContext` is more private than the item `build_traffic_light_system` [INFO] [stdout] --> examples/traffic_light_example.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn build_traffic_light_system( [INFO] [stdout] 45 | | ) -> StateMachine { [INFO] [stdout] | |_______________________________________________________________________^ function `build_traffic_light_system` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `TrafficContext` is only usable at visibility `pub(crate)` [INFO] [stdout] --> examples/traffic_light_example.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | struct TrafficContext { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PedestrianRequest` is never constructed [INFO] [stdout] --> examples/traffic_light_example.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 21 | enum TrafficLightEvent { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 27 | PedestrianRequest, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrafficLightEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Delivered` and `Refunded` are never constructed [INFO] [stdout] --> examples/order_example.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 7 | enum OrderState { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Delivered, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 14 | Cancelled, [INFO] [stdout] 15 | Refunded, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `traffic_density` and `time_in_state` are never read [INFO] [stdout] --> examples/traffic_light_example.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | struct TrafficContext { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 34 | intersection_id: String, [INFO] [stdout] 35 | traffic_density: f32, // 0.0 to 1.0 [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | time_in_state: std::time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrafficContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Deliver` and `Refund` are never constructed [INFO] [stdout] --> examples/order_example.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 21 | enum OrderEvent { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 26 | Deliver, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 27 | Cancel, [INFO] [stdout] 28 | Refund, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `customer_id` is never read [INFO] [stdout] --> examples/order_example.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct OrderContext { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | customer_id: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OrderContext` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.31s [INFO] running `Command { std: "docker" "inspect" "c2b8efa7548a0bb3c7da94646f722cf549ff8cbe87fd70fcfdbf35a08486de91", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2b8efa7548a0bb3c7da94646f722cf549ff8cbe87fd70fcfdbf35a08486de91", kill_on_drop: false }` [INFO] [stdout] c2b8efa7548a0bb3c7da94646f722cf549ff8cbe87fd70fcfdbf35a08486de91