[INFO] cloning repository https://github.com/kevinchannon/stateful [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kevinchannon/stateful" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkevinchannon%2Fstateful", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkevinchannon%2Fstateful'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d222665229df41c4cd6628321a2e2e82a68a06d2 [INFO] checking kevinchannon/stateful against try#cd420d8bda33494ba3cc45048d5f067484a32b94 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkevinchannon%2Fstateful" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] fatal: error closing file /workspace/builds/worker-0-tc2/source/.git/packed-refs.new: No space left on device [INFO] checking kevinchannon/stateful against try#cd420d8bda33494ba3cc45048d5f067484a32b94 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkevinchannon%2Fstateful" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] error: failed to write new configuration file /workspace/builds/worker-0-tc2/source/.git/config.lock [INFO] [stderr] fatal: could not set 'core.filemode' to 'true' [INFO] checking kevinchannon/stateful against try#cd420d8bda33494ba3cc45048d5f067484a32b94 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkevinchannon%2Fstateful" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kevinchannon/stateful on toolchain cd420d8bda33494ba3cc45048d5f067484a32b94 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kevinchannon/stateful [INFO] finished tweaking git repo https://github.com/kevinchannon/stateful [INFO] tweaked toml for git repo https://github.com/kevinchannon/stateful written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kevinchannon/stateful 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" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3b286529f72e8c848dc496c3907678ad65fb2249e8658970ad31f887e9f128e0 [INFO] running `Command { std: "docker" "start" "-a" "3b286529f72e8c848dc496c3907678ad65fb2249e8658970ad31f887e9f128e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3b286529f72e8c848dc496c3907678ad65fb2249e8658970ad31f887e9f128e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b286529f72e8c848dc496c3907678ad65fb2249e8658970ad31f887e9f128e0", kill_on_drop: false }` [INFO] [stdout] 3b286529f72e8c848dc496c3907678ad65fb2249e8658970ad31f887e9f128e0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63777d6472ec1f729dba10a9c0503592093b11f1b5609e65c10317b26752d02d [INFO] running `Command { std: "docker" "start" "-a" "63777d6472ec1f729dba10a9c0503592093b11f1b5609e65c10317b26752d02d", kill_on_drop: false }` [INFO] [stderr] Checking stateless v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: `(dyn Fn() + 'static)` doesn't implement `Debug` [INFO] [stdout] --> src/stateful/elements.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 8 | pub on_entry: Action [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `(dyn Fn() + 'static)` cannot be formatted using `{:?}` because it doesn't implement `Debug` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `(dyn Fn() + 'static)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Box` [INFO] [stdout] --> src/stateful/elements.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 8 | pub on_entry: Action [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn Fn() + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/stateful/elements.rs:12:67 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new_with_entry(id: u32, name: &'sm_life str, on_entry: dyn Fn()->()) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn Fn() + 'static)` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new_with_entry(id: u32, name: &'sm_life str, on_entry: &dyn Fn()->()) -> Self { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn Fn()` cannot be known at compilation time [INFO] [stdout] --> src/stateful/elements.rs:13:54 [INFO] [stdout] | [INFO] [stdout] 13 | State{id: id, name: name, on_entry: Box::new(on_entry)} [INFO] [stdout] | -------- ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn Fn()` [INFO] [stdout] note: required by a bound in `Box::::new` [INFO] [stdout] --> /rustc/cd420d8bda33494ba3cc45048d5f067484a32b94/library/alloc/src/boxed.rs:260:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn Fn() + 'static)` doesn't implement `Debug` [INFO] [stdout] --> src/stateful/elements.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug)] [INFO] [stdout] | ----- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 8 | pub on_entry: Action [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ `(dyn Fn() + 'static)` cannot be formatted using `{:?}` because it doesn't implement `Debug` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `(dyn Fn() + 'static)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `==` cannot be applied to type `Box` [INFO] [stdout] --> src/stateful/elements.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(PartialEq)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 8 | pub on_entry: Action [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn Fn() + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/stateful/elements.rs:12:67 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new_with_entry(id: u32, name: &'sm_life str, on_entry: dyn Fn()->()) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn Fn() + 'static)` [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] help: function arguments must have a statically known size, borrowed types always have a known size [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new_with_entry(id: u32, name: &'sm_life str, on_entry: &dyn Fn()->()) -> Self { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn Fn()` cannot be known at compilation time [INFO] [stdout] --> src/stateful/elements.rs:13:54 [INFO] [stdout] | [INFO] [stdout] 13 | State{id: id, name: name, on_entry: Box::new(on_entry)} [INFO] [stdout] | -------- ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn Fn()` [INFO] [stdout] note: required by a bound in `Box::::new` [INFO] [stdout] --> /rustc/cd420d8bda33494ba3cc45048d5f067484a32b94/library/alloc/src/boxed.rs:260:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0369. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stateless` (bin "stateless") due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/stateful/state_machine.rs:47:64 [INFO] [stdout] | [INFO] [stdout] 44 | let mut entry_spy = || called = true; [INFO] [stdout] | -- the found closure [INFO] [stdout] ... [INFO] [stdout] 47 | let active: State = State::new_with_entry(1, "ACTIVE", entry_spy); [INFO] [stdout] | --------------------- ^^^^^^^^^ expected `dyn Fn`, found closure [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected trait object `(dyn Fn() + 'static)` [INFO] [stdout] found closure `{closure@src/stateful/state_machine.rs:44:29: 44:31}` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/stateful/elements.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new_with_entry(id: u32, name: &'sm_life str, on_entry: dyn Fn()->()) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ ---------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/stateful/state_machine.rs:55:78 [INFO] [stdout] | [INFO] [stdout] 55 | transitions: [Transition{start: &idle, event: &ACTIVATE, action: test_action, end: &active}], [INFO] [stdout] | ^^^^^^^^^^^ expected `Box`, found fn item [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box<(dyn Fn() + 'static)>` [INFO] [stdout] found fn item `fn() {state_machine::test::entry_function_is_called_on_state_entry::test_action}` [INFO] [stdout] = note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html [INFO] [stdout] help: store this in the heap by calling `Box::new` [INFO] [stdout] | [INFO] [stdout] 55 | transitions: [Transition{start: &idle, event: &ACTIVATE, action: Box::new(test_action), end: &active}], [INFO] [stdout] | +++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn Fn() + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/stateful/state_machine.rs:47:64 [INFO] [stdout] | [INFO] [stdout] 47 | let active: State = State::new_with_entry(1, "ACTIVE", entry_spy); [INFO] [stdout] | ^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn Fn() + 'static)` [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0369. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stateless` (bin "stateless" test) due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "63777d6472ec1f729dba10a9c0503592093b11f1b5609e65c10317b26752d02d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63777d6472ec1f729dba10a9c0503592093b11f1b5609e65c10317b26752d02d", kill_on_drop: false }` [INFO] [stdout] 63777d6472ec1f729dba10a9c0503592093b11f1b5609e65c10317b26752d02d