[INFO] cloning repository https://github.com/krator-rs/krator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/krator-rs/krator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkrator-rs%2Fkrator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkrator-rs%2Fkrator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5511ecf8950b5e2b8a5e793c209578b8b303d487 [INFO] testing krator-rs/krator against 1.55.0 for beta-1.56-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkrator-rs%2Fkrator" "/workspace/builds/worker-118/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-118/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/krator-rs/krator on toolchain 1.55.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-118/source/.cargo/config [INFO] started tweaking git repo https://github.com/krator-rs/krator [INFO] finished tweaking git repo https://github.com/krator-rs/krator [INFO] tweaked toml for git repo https://github.com/krator-rs/krator written to /workspace/builds/worker-118/source/Cargo.toml [INFO] crate git repo https://github.com/krator-rs/krator already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cea04cb7c954acdbc92fab955d16bc80ed775e12ab07c656f39b23f7e6cd7ee3 [INFO] running `Command { std: "docker" "start" "-a" "cea04cb7c954acdbc92fab955d16bc80ed775e12ab07c656f39b23f7e6cd7ee3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cea04cb7c954acdbc92fab955d16bc80ed775e12ab07c656f39b23f7e6cd7ee3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cea04cb7c954acdbc92fab955d16bc80ed775e12ab07c656f39b23f7e6cd7ee3", kill_on_drop: false }` [INFO] [stdout] cea04cb7c954acdbc92fab955d16bc80ed775e12ab07c656f39b23f7e6cd7ee3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 716179721ef22f80fd2c6beda1544075cf0628898d52d1a34fada356d25c98a9 [INFO] running `Command { std: "docker" "start" "-a" "716179721ef22f80fd2c6beda1544075cf0628898d52d1a34fada356d25c98a9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.88 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling futures-core v0.3.13 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling bytes v1.0.1 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling futures-sink v0.3.13 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.13 [INFO] [stderr] Compiling futures-io v0.3.13 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling httpdate v1.0.1 [INFO] [stderr] Compiling openssl-probe v0.1.2 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling k8s-openapi v0.12.0 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling tower-layer v0.3.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling dtoa v0.4.7 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling futures-channel v0.3.13 [INFO] [stderr] Compiling tracing-core v0.1.18 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling tokio v1.9.0 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling http v0.2.3 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling socket2 v0.4.0 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling dashmap v4.0.2 [INFO] [stderr] Compiling ordered-float v2.1.1 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling http-body v0.4.2 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling tokio-macros v1.1.0 [INFO] [stderr] Compiling futures-macro v0.3.13 [INFO] [stderr] Compiling tracing-attributes v0.1.15 [INFO] [stderr] Compiling pin-project-internal v1.0.5 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling snafu-derive v0.6.10 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling futures-util v0.3.13 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling pin-project v1.0.5 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling snafu v0.6.10 [INFO] [stderr] Compiling tokio-util v0.6.3 [INFO] [stderr] Compiling tokio-io-timeout v1.1.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling futures-executor v0.3.13 [INFO] [stderr] Compiling tower-http v0.1.1 [INFO] [stderr] Compiling futures v0.3.13 [INFO] [stderr] Compiling tower v0.4.6 [INFO] [stderr] Compiling tokio-stream v0.1.3 [INFO] [stderr] Compiling hyper v0.14.11 [INFO] [stderr] Compiling serde-value v0.7.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling serde_yaml v0.8.17 [INFO] [stderr] Compiling treediff v3.0.2 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling hyper-timeout v0.4.1 [INFO] [stderr] Compiling json-patch v0.2.6 [INFO] [stderr] Compiling jsonpath_lib v0.3.0 [INFO] [stderr] Compiling kube-core v0.58.0 [INFO] [stderr] Compiling kube v0.58.1 [INFO] [stderr] Compiling kube-runtime v0.58.1 [INFO] [stderr] Compiling krator v0.4.0 (/opt/rustwide/workdir/krator) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 35.23s [INFO] running `Command { std: "docker" "inspect" "716179721ef22f80fd2c6beda1544075cf0628898d52d1a34fada356d25c98a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "716179721ef22f80fd2c6beda1544075cf0628898d52d1a34fada356d25c98a9", kill_on_drop: false }` [INFO] [stdout] 716179721ef22f80fd2c6beda1544075cf0628898d52d1a34fada356d25c98a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04cb00c73ceb7a7122abdd43aca09267826e662494f9f850aac2e0aafe9ba761 [INFO] running `Command { std: "docker" "start" "-a" "04cb00c73ceb7a7122abdd43aca09267826e662494f9f850aac2e0aafe9ba761", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling schemars v0.8.2 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling integer-encoding v1.1.7 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling compiletest_rs v0.6.0 [INFO] [stderr] Compiling diff v0.1.12 [INFO] [stderr] Compiling dyn-clone v1.0.4 [INFO] [stderr] Compiling sharded-slab v0.1.1 [INFO] [stderr] Compiling tracing-log v0.1.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling filetime v0.2.14 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling serde_derive_internals v0.25.0 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling tracing-serde v0.1.2 [INFO] [stderr] Compiling rustfix v0.5.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling darling_core v0.12.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling tester v0.9.0 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling regex-automata v0.1.9 [INFO] [stderr] Compiling thrift v0.13.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling schemars_derive v0.8.2 [INFO] [stderr] Compiling structopt-derive v0.4.15 [INFO] [stderr] Compiling matchers v0.0.1 [INFO] [stderr] Compiling opentelemetry v0.12.0 [INFO] [stderr] Compiling tracing-subscriber v0.2.16 [INFO] [stderr] Compiling darling_macro v0.12.2 [INFO] [stderr] Compiling opentelemetry-jaeger v0.11.0 [INFO] [stderr] Compiling tracing-opentelemetry v0.11.0 [INFO] [stderr] Compiling structopt v0.3.22 [INFO] [stderr] Compiling darling v0.12.2 [INFO] [stderr] Compiling kube-derive v0.58.0 [INFO] [stderr] Compiling krator v0.4.0 (/opt/rustwide/workdir/krator) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 9.47s [INFO] running `Command { std: "docker" "inspect" "04cb00c73ceb7a7122abdd43aca09267826e662494f9f850aac2e0aafe9ba761", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04cb00c73ceb7a7122abdd43aca09267826e662494f9f850aac2e0aafe9ba761", kill_on_drop: false }` [INFO] [stdout] 04cb00c73ceb7a7122abdd43aca09267826e662494f9f850aac2e0aafe9ba761 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-118/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 57123ee4d38462ac9438616a2ce5588cb6cec5f1742e2eac9c2a06b42001562f [INFO] running `Command { std: "docker" "start" "-a" "57123ee4d38462ac9438616a2ce5588cb6cec5f1742e2eac9c2a06b42001562f", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/krator-b8069b006b6e9d9c) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test manifest::test::test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.01s [INFO] [stdout] [INFO] [stderr] Running tests/ui.rs (/opt/rustwide/target/debug/deps/ui-416c14e6eb6732c3) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test [ui] ui/state/cannot_construct_transition_next.rs ... ok [INFO] [stdout] test [ui] ui/state/require_transition_to.rs ... FAILED [INFO] [stdout] test [ui] ui/state/next_must_be_state.rs ... FAILED [INFO] [stdout] test [ui] ui/state/require_same_object_state.rs ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [ui] ui/state/next_must_be_state.rs [INFO] [stdout] [ui] ui/state/require_same_object_state.rs [INFO] [stdout] [ui] ui/state/require_transition_to.rs [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.50s [INFO] [stdout] [INFO] [stdout] test compile_test ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- compile_test stdout ---- [INFO] [stdout] diff of stderr: [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TestState: TransitionTo<_>` is not satisfied [INFO] [stdout] --> $DIR/require_transition_to.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | Transition::next(self, TestState) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `TransitionTo<_>` is not implemented for `TestState` [INFO] [stdout] | [INFO] [stdout] - = note: required by `Transition::::next` [INFO] [stdout] +note: required by `Transition::::next` [INFO] [stdout] + --> /opt/rustwide/workdir/krator/src/state.rs:43:5 [INFO] [stdout] + | [INFO] [stdout] +43 | / pub fn next, O: State>(_i: Box, o: O) -> Transition [INFO] [stdout] +44 | | where [INFO] [stdout] +45 | | I: TransitionTo, [INFO] [stdout] + | |___________________________^ [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] The actual stderr differed from the expected stderr. [INFO] [stdout] Actual stderr saved to /tmp/state/require_transition_to.stage-id.stderr [INFO] [stdout] To update references, rerun the tests and pass the `--bless` flag [INFO] [stdout] To only update this specific test, also pass `--test-args state/require_transition_to.rs` [INFO] [stdout] [INFO] [stdout] error: 1 errors occurred comparing output. [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/ui/state/require_transition_to.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/state/require_transition_to.stage-id" "-A" "unused" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/1.55.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/1.55.0-x86_64-unknown-linux-gnu/lib" "--edition=2018" "-L" "/tmp/state/require_transition_to.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"message":"the trait bound `TestState: TransitionTo<_>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"tests/ui/state/require_transition_to.rs","byte_start":1073,"byte_end":1089,"line_start":38,"line_end":38,"column_start":9,"column_end":25,"is_primary":true,"text":[{"text":" Transition::next(self, TestState)","highlight_start":9,"highlight_end":25}],"label":"the trait `TransitionTo<_>` is not implemented for `TestState`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"required by `Transition::::next`","code":null,"level":"note","spans":[{"file_name":"/opt/rustwide/workdir/krator/src/state.rs","byte_start":1518,"byte_end":1628,"line_start":43,"line_end":45,"column_start":5,"column_end":28,"is_primary":true,"text":[{"text":" pub fn next, O: State>(_i: Box, o: O) -> Transition","highlight_start":5,"highlight_end":77},{"text":" where","highlight_start":1,"highlight_end":10},{"text":" I: TransitionTo,","highlight_start":1,"highlight_end":28}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0277]: the trait bound `TestState: TransitionTo<_>` is not satisfied\n --> tests/ui/state/require_transition_to.rs:38:9\n |\n38 | Transition::next(self, TestState)\n | ^^^^^^^^^^^^^^^^ the trait `TransitionTo<_>` is not implemented for `TestState`\n |\nnote: required by `Transition::::next`\n --> /opt/rustwide/workdir/krator/src/state.rs:43:5\n |\n43 | / pub fn next, O: State>(_i: Box, o: O) -> Transition\n44 | | where\n45 | | I: TransitionTo,\n | |___________________________^\n\n"} [INFO] [stdout] {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"} [INFO] [stdout] {"message":"For more information about this error, try `rustc --explain E0277`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0277`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] diff of stderr: [INFO] [stdout] [INFO] [stdout] -error[E0277]: the trait bound `NotState: krator::State` is not satisfied [INFO] [stdout] +error: cannot find derive macro `TransitionTo` in this scope [INFO] [stdout] + --> $DIR/next_must_be_state.rs:12:17 [INFO] [stdout] + | [INFO] [stdout] +12 | #[derive(Debug, TransitionTo)] [INFO] [stdout] + | ^^^^^^^^^^^^ [INFO] [stdout] + [INFO] [stdout] +error: cannot find attribute `transition_to` in this scope [INFO] [stdout] + --> $DIR/next_must_be_state.rs:13:3 [INFO] [stdout] + | [INFO] [stdout] +13 | #[transition_to(NotState)] [INFO] [stdout] + | ^^^^^^^^^^^^^ [INFO] [stdout] + [INFO] [stdout] +error[E0277]: the trait bound `TestState: TransitionTo<_>` is not satisfied [INFO] [stdout] --> $DIR/next_must_be_state.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | Transition::next(self, NotState) [INFO] [stdout] - | ^^^^^^^^^^^^^^^^ the trait `krator::State` is not implemented for `NotState` [INFO] [stdout] + | ^^^^^^^^^^^^^^^^ the trait `TransitionTo<_>` is not implemented for `TestState` [INFO] [stdout] | [INFO] [stdout] - = note: required by `Transition::::next` [INFO] [stdout] +note: required by `Transition::::next` [INFO] [stdout] + --> /opt/rustwide/workdir/krator/src/state.rs:43:5 [INFO] [stdout] + | [INFO] [stdout] +43 | / pub fn next, O: State>(_i: Box, o: O) -> Transition [INFO] [stdout] +44 | | where [INFO] [stdout] +45 | | I: TransitionTo, [INFO] [stdout] + | |___________________________^ [INFO] [stdout] [INFO] [stdout] -error: aborting due to previous error [INFO] [stdout] +error[E0277]: the trait bound `NotState: krator::State` is not satisfied [INFO] [stdout] + --> $DIR/next_must_be_state.rs:39:32 [INFO] [stdout] + | [INFO] [stdout] +39 | Transition::next(self, NotState) [INFO] [stdout] + | ^^^^^^^^ the trait `krator::State` is not implemented for `NotState` [INFO] [stdout] + | [INFO] [stdout] +note: required by `Transition::::next` [INFO] [stdout] + --> /opt/rustwide/workdir/krator/src/state.rs:43:5 [INFO] [stdout] + | [INFO] [stdout] +43 | / pub fn next, O: State>(_i: Box, o: O) -> Transition [INFO] [stdout] +44 | | where [INFO] [stdout] +45 | | I: TransitionTo, [INFO] [stdout] + | |___________________________^ [INFO] [stdout] + [INFO] [stdout] +error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] The actual stderr differed from the expected stderr. [INFO] [stdout] Actual stderr saved to /tmp/state/next_must_be_state.stage-id.stderr [INFO] [stdout] To update references, rerun the tests and pass the `--bless` flag [INFO] [stdout] To only update this specific test, also pass `--test-args state/next_must_be_state.rs` [INFO] [stdout] [INFO] [stdout] error: 1 errors occurred comparing output. [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/ui/state/next_must_be_state.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/state/next_must_be_state.stage-id" "-A" "unused" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/1.55.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/1.55.0-x86_64-unknown-linux-gnu/lib" "--edition=2018" "-L" "/tmp/state/next_must_be_state.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"message":"cannot find derive macro `TransitionTo` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/ui/state/next_must_be_state.rs","byte_start":362,"byte_end":374,"line_start":12,"line_end":12,"column_start":17,"column_end":29,"is_primary":true,"text":[{"text":"#[derive(Debug, TransitionTo)]","highlight_start":17,"highlight_end":29}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find derive macro `TransitionTo` in this scope\n --> tests/ui/state/next_must_be_state.rs:12:17\n |\n12 | #[derive(Debug, TransitionTo)]\n | ^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"message":"cannot find attribute `transition_to` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/ui/state/next_must_be_state.rs","byte_start":379,"byte_end":392,"line_start":13,"line_end":13,"column_start":3,"column_end":16,"is_primary":true,"text":[{"text":"#[transition_to(NotState)]","highlight_start":3,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `transition_to` in this scope\n --> tests/ui/state/next_must_be_state.rs:13:3\n |\n13 | #[transition_to(NotState)]\n | ^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"message":"the trait bound `TestState: TransitionTo<_>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"tests/ui/state/next_must_be_state.rs","byte_start":1035,"byte_end":1051,"line_start":39,"line_end":39,"column_start":9,"column_end":25,"is_primary":true,"text":[{"text":" Transition::next(self, NotState)","highlight_start":9,"highlight_end":25}],"label":"the trait `TransitionTo<_>` is not implemented for `TestState`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"required by `Transition::::next`","code":null,"level":"note","spans":[{"file_name":"/opt/rustwide/workdir/krator/src/state.rs","byte_start":1518,"byte_end":1628,"line_start":43,"line_end":45,"column_start":5,"column_end":28,"is_primary":true,"text":[{"text":" pub fn next, O: State>(_i: Box, o: O) -> Transition","highlight_start":5,"highlight_end":77},{"text":" where","highlight_start":1,"highlight_end":10},{"text":" I: TransitionTo,","highlight_start":1,"highlight_end":28}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0277]: the trait bound `TestState: TransitionTo<_>` is not satisfied\n --> tests/ui/state/next_must_be_state.rs:39:9\n |\n39 | Transition::next(self, NotState)\n | ^^^^^^^^^^^^^^^^ the trait `TransitionTo<_>` is not implemented for `TestState`\n |\nnote: required by `Transition::::next`\n --> /opt/rustwide/workdir/krator/src/state.rs:43:5\n |\n43 | / pub fn next, O: State>(_i: Box, o: O) -> Transition\n44 | | where\n45 | | I: TransitionTo,\n | |___________________________^\n\n"} [INFO] [stdout] {"message":"the trait bound `NotState: krator::State` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"tests/ui/state/next_must_be_state.rs","byte_start":1058,"byte_end":1066,"line_start":39,"line_end":39,"column_start":32,"column_end":40,"is_primary":true,"text":[{"text":" Transition::next(self, NotState)","highlight_start":32,"highlight_end":40}],"label":"the trait `krator::State` is not implemented for `NotState`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"required by `Transition::::next`","code":null,"level":"note","spans":[{"file_name":"/opt/rustwide/workdir/krator/src/state.rs","byte_start":1518,"byte_end":1628,"line_start":43,"line_end":45,"column_start":5,"column_end":28,"is_primary":true,"text":[{"text":" pub fn next, O: State>(_i: Box, o: O) -> Transition","highlight_start":5,"highlight_end":77},{"text":" where","highlight_start":1,"highlight_end":10},{"text":" I: TransitionTo,","highlight_start":1,"highlight_end":28}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0277]: the trait bound `NotState: krator::State` is not satisfied\n --> tests/ui/state/next_must_be_state.rs:39:32\n |\n39 | Transition::next(self, NotState)\n | ^^^^^^^^ the trait `krator::State` is not implemented for `NotState`\n |\nnote: required by `Transition::::next`\n --> /opt/rustwide/workdir/krator/src/state.rs:43:5\n |\n43 | / pub fn next, O: State>(_i: Box, o: O) -> Transition\n44 | | where\n45 | | I: TransitionTo,\n | |___________________________^\n\n"} [INFO] [stdout] {"message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"} [INFO] [stdout] {"message":"For more information about this error, try `rustc --explain E0277`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0277`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] diff of stderr: [INFO] [stdout] [INFO] [stdout] -error[E0277]: the trait bound `OtherState: krator::State` is not satisfied [INFO] [stdout] +error: cannot find derive macro `TransitionTo` in this scope [INFO] [stdout] + --> $DIR/require_same_object_state.rs:13:17 [INFO] [stdout] + | [INFO] [stdout] +13 | #[derive(Debug, TransitionTo)] [INFO] [stdout] + | ^^^^^^^^^^^^ [INFO] [stdout] + [INFO] [stdout] +error: cannot find attribute `transition_to` in this scope [INFO] [stdout] + --> $DIR/require_same_object_state.rs:14:3 [INFO] [stdout] + | [INFO] [stdout] +14 | #[transition_to(OtherState)] [INFO] [stdout] + | ^^^^^^^^^^^^^ [INFO] [stdout] + [INFO] [stdout] +error[E0277]: the trait bound `TestState: TransitionTo<_>` is not satisfied [INFO] [stdout] --> $DIR/require_same_object_state.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | Transition::next(self, OtherState) [INFO] [stdout] - | ^^^^^^^^^^^^^^^^ the trait `krator::State` is not implemented for `OtherState` [INFO] [stdout] + | ^^^^^^^^^^^^^^^^ the trait `TransitionTo<_>` is not implemented for `TestState` [INFO] [stdout] | [INFO] [stdout] +note: required by `Transition::::next` [INFO] [stdout] + --> /opt/rustwide/workdir/krator/src/state.rs:43:5 [INFO] [stdout] + | [INFO] [stdout] +43 | / pub fn next, O: State>(_i: Box, o: O) -> Transition [INFO] [stdout] +44 | | where [INFO] [stdout] +45 | | I: TransitionTo, [INFO] [stdout] + | |___________________________^ [INFO] [stdout] + [INFO] [stdout] +error[E0277]: the trait bound `OtherState: krator::State` is not satisfied [INFO] [stdout] + --> $DIR/require_same_object_state.rs:50:32 [INFO] [stdout] + | [INFO] [stdout] +50 | Transition::next(self, OtherState) [INFO] [stdout] + | ^^^^^^^^^^ the trait `krator::State` is not implemented for `OtherState` [INFO] [stdout] + | [INFO] [stdout] = help: the following implementations were found: [INFO] [stdout] > [INFO] [stdout] - = note: required by `Transition::::next` [INFO] [stdout] +note: required by `Transition::::next` [INFO] [stdout] + --> /opt/rustwide/workdir/krator/src/state.rs:43:5 [INFO] [stdout] + | [INFO] [stdout] +43 | / pub fn next, O: State>(_i: Box, o: O) -> Transition [INFO] [stdout] +44 | | where [INFO] [stdout] +45 | | I: TransitionTo, [INFO] [stdout] + | |___________________________^ [INFO] [stdout] [INFO] [stdout] -error: aborting due to previous error [INFO] [stdout] +error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] The actual stderr differed from the expected stderr. [INFO] [stdout] Actual stderr saved to /tmp/state/require_same_object_state.stage-id.stderr [INFO] [stdout] To update references, rerun the tests and pass the `--bless` flag [INFO] [stdout] To only update this specific test, also pass `--test-args state/require_same_object_state.rs` [INFO] [stdout] [INFO] [stdout] error: 1 errors occurred comparing output. [INFO] [stdout] status: exit status: 1 [INFO] [stdout] command: "rustc" "tests/ui/state/require_same_object_state.rs" "-L" "/tmp" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/tmp/state/require_same_object_state.stage-id" "-A" "unused" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug" "-L" "/opt/rustwide/rustup-home/toolchains/1.55.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/1.55.0-x86_64-unknown-linux-gnu/lib" "--edition=2018" "-L" "/tmp/state/require_same_object_state.stage-id.aux" [INFO] [stdout] stdout: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] stderr: [INFO] [stdout] ------------------------------------------ [INFO] [stdout] {"message":"cannot find derive macro `TransitionTo` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/ui/state/require_same_object_state.rs","byte_start":397,"byte_end":409,"line_start":13,"line_end":13,"column_start":17,"column_end":29,"is_primary":true,"text":[{"text":"#[derive(Debug, TransitionTo)]","highlight_start":17,"highlight_end":29}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find derive macro `TransitionTo` in this scope\n --> tests/ui/state/require_same_object_state.rs:13:17\n |\n13 | #[derive(Debug, TransitionTo)]\n | ^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"message":"cannot find attribute `transition_to` in this scope","code":null,"level":"error","spans":[{"file_name":"tests/ui/state/require_same_object_state.rs","byte_start":414,"byte_end":427,"line_start":14,"line_end":14,"column_start":3,"column_end":16,"is_primary":true,"text":[{"text":"#[transition_to(OtherState)]","highlight_start":3,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: cannot find attribute `transition_to` in this scope\n --> tests/ui/state/require_same_object_state.rs:14:3\n |\n14 | #[transition_to(OtherState)]\n | ^^^^^^^^^^^^^\n\n"} [INFO] [stdout] {"message":"the trait bound `TestState: TransitionTo<_>` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"tests/ui/state/require_same_object_state.rs","byte_start":1353,"byte_end":1369,"line_start":50,"line_end":50,"column_start":9,"column_end":25,"is_primary":true,"text":[{"text":" Transition::next(self, OtherState)","highlight_start":9,"highlight_end":25}],"label":"the trait `TransitionTo<_>` is not implemented for `TestState`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"required by `Transition::::next`","code":null,"level":"note","spans":[{"file_name":"/opt/rustwide/workdir/krator/src/state.rs","byte_start":1518,"byte_end":1628,"line_start":43,"line_end":45,"column_start":5,"column_end":28,"is_primary":true,"text":[{"text":" pub fn next, O: State>(_i: Box, o: O) -> Transition","highlight_start":5,"highlight_end":77},{"text":" where","highlight_start":1,"highlight_end":10},{"text":" I: TransitionTo,","highlight_start":1,"highlight_end":28}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0277]: the trait bound `TestState: TransitionTo<_>` is not satisfied\n --> tests/ui/state/require_same_object_state.rs:50:9\n |\n50 | Transition::next(self, OtherState)\n | ^^^^^^^^^^^^^^^^ the trait `TransitionTo<_>` is not implemented for `TestState`\n |\nnote: required by `Transition::::next`\n --> /opt/rustwide/workdir/krator/src/state.rs:43:5\n |\n43 | / pub fn next, O: State>(_i: Box, o: O) -> Transition\n44 | | where\n45 | | I: TransitionTo,\n | |___________________________^\n\n"} [INFO] [stdout] {"message":"the trait bound `OtherState: krator::State` is not satisfied","code":{"code":"E0277","explanation":"You tried to use a type which doesn't implement some trait in a place which\nexpected that trait.\n\nErroneous code example:\n\n```compile_fail,E0277\n// here we declare the Foo trait with a bar method\ntrait Foo {\n fn bar(&self);\n}\n\n// we now declare a function which takes an object implementing the Foo trait\nfn some_func(foo: T) {\n foo.bar();\n}\n\nfn main() {\n // we now call the method with the i32 type, which doesn't implement\n // the Foo trait\n some_func(5i32); // error: the trait bound `i32 : Foo` is not satisfied\n}\n```\n\nIn order to fix this error, verify that the type you're using does implement\nthe trait. Example:\n\n```\ntrait Foo {\n fn bar(&self);\n}\n\n// we implement the trait on the i32 type\nimpl Foo for i32 {\n fn bar(&self) {}\n}\n\nfn some_func(foo: T) {\n foo.bar(); // we can now use this method since i32 implements the\n // Foo trait\n}\n\nfn main() {\n some_func(5i32); // ok!\n}\n```\n\nOr in a generic context, an erroneous code example would look like:\n\n```compile_fail,E0277\nfn some_func(foo: T) {\n println!(\"{:?}\", foo); // error: the trait `core::fmt::Debug` is not\n // implemented for the type `T`\n}\n\nfn main() {\n // We now call the method with the i32 type,\n // which *does* implement the Debug trait.\n some_func(5i32);\n}\n```\n\nNote that the error here is in the definition of the generic function. Although\nwe only call it with a parameter that does implement `Debug`, the compiler\nstill rejects the function. It must work with all possible input types. In\norder to make this example compile, we need to restrict the generic type we're\naccepting:\n\n```\nuse std::fmt;\n\n// Restrict the input type to types that implement Debug.\nfn some_func(foo: T) {\n println!(\"{:?}\", foo);\n}\n\nfn main() {\n // Calling the method is still fine, as i32 implements Debug.\n some_func(5i32);\n\n // This would fail to compile now:\n // struct WithoutDebug;\n // some_func(WithoutDebug);\n}\n```\n\nRust only looks at the signature of the called function, as such it must\nalready specify all requirements that will be used for every type parameter.\n"},"level":"error","spans":[{"file_name":"tests/ui/state/require_same_object_state.rs","byte_start":1376,"byte_end":1386,"line_start":50,"line_end":50,"column_start":32,"column_end":42,"is_primary":true,"text":[{"text":" Transition::next(self, OtherState)","highlight_start":32,"highlight_end":42}],"label":"the trait `krator::State` is not implemented for `OtherState`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"the following implementations were found:\n >","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"required by `Transition::::next`","code":null,"level":"note","spans":[{"file_name":"/opt/rustwide/workdir/krator/src/state.rs","byte_start":1518,"byte_end":1628,"line_start":43,"line_end":45,"column_start":5,"column_end":28,"is_primary":true,"text":[{"text":" pub fn next, O: State>(_i: Box, o: O) -> Transition","highlight_start":5,"highlight_end":77},{"text":" where","highlight_start":1,"highlight_end":10},{"text":" I: TransitionTo,","highlight_start":1,"highlight_end":28}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0277]: the trait bound `OtherState: krator::State` is not satisfied\n --> tests/ui/state/require_same_object_state.rs:50:32\n |\n50 | Transition::next(self, OtherState)\n | ^^^^^^^^^^ the trait `krator::State` is not implemented for `OtherState`\n |\n = help: the following implementations were found:\n >\nnote: required by `Transition::::next`\n --> /opt/rustwide/workdir/krator/src/state.rs:43:5\n |\n43 | / pub fn next, O: State>(_i: Box, o: O) -> Transition\n44 | | where\n45 | | I: TransitionTo,\n | |___________________________^\n\n"} [INFO] [stdout] {"message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors\n\n"} [INFO] [stdout] {"message":"For more information about this error, try `rustc --explain E0277`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"For more information about this error, try `rustc --explain E0277`.\n"} [INFO] [stdout] [INFO] [stdout] ------------------------------------------ [INFO] [stdout] [INFO] [stdout] thread 'compile_test' panicked at 'Some tests failed', /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.6.0/src/lib.rs:105:22 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5578f6d38290 - std::backtrace_rs::backtrace::libunwind::trace::ha0ad43e8a952bfe7 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x5578f6d38290 - std::backtrace_rs::backtrace::trace_unsynchronized::h6830419c0c4130dc [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5578f6d38290 - std::sys_common::backtrace::_print_fmt::h8f3516631ffa1ef5 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x5578f6d38290 - ::fmt::he1640d5f0d93f618 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x5578f6d5d3fc - core::fmt::write::h88012e1f01caeebf [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x5578f6d34585 - std::io::Write::write_fmt::h7728c39ea5632753 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/io/mod.rs:1665:15 [INFO] [stdout] 6: 0x5578f6d3afcb - std::sys_common::backtrace::_print::ha1f00492f406a015 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x5578f6d3afcb - std::sys_common::backtrace::print::hd54561b13feb6af3 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x5578f6d3afcb - std::panicking::default_hook::{{closure}}::h84fe124cd0864662 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x5578f6d3aadc - std::panicking::default_hook::h5a8e74a76ce290a7 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x5578f6d3b694 - std::panicking::rust_panic_with_hook::h67c812a4fe9d4c91 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:622:17 [INFO] [stdout] 11: 0x5578f6cdac43 - std::panicking::begin_panic::{{closure}}::h0e2af3c33dda4b54 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:542:9 [INFO] [stdout] 12: 0x5578f6cdc269 - std::sys_common::backtrace::__rust_end_short_backtrace::h5a427509efa42acd [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x5578f6cdab79 - std::panicking::begin_panic::h7308f41a67400c1f [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:541:12 [INFO] [stdout] 14: 0x5578f693a5ff - compiletest_rs::run_tests::h28d0afa5d6fadcb4 [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.6.0/src/lib.rs:105:22 [INFO] [stdout] 15: 0x5578f6934a4b - ui::compile_test::hc5207e9716a3ecc9 [INFO] [stdout] at /opt/rustwide/workdir/krator/tests/ui.rs:30:5 [INFO] [stdout] 16: 0x5578f693448a - ui::compile_test::{{closure}}::h24675d2a7222f227 [INFO] [stdout] at /opt/rustwide/workdir/krator/tests/ui.rs:21:1 [INFO] [stdout] 17: 0x5578f6934b6e - core::ops::function::FnOnce::call_once::h384d7f0f761e706d [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 18: 0x5578f6d17f43 - core::ops::function::FnOnce::call_once::h5aba9a5d361d6c79 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 19: 0x5578f6d17f43 - test::__rust_begin_short_backtrace::h705bb53b2b1d45e6 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/test/src/lib.rs:578:5 [INFO] [stdout] 20: 0x5578f6d169f8 - as core::ops::function::FnOnce>::call_once::ha20f614d7c0b2b6d [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 21: 0x5578f6d169f8 - as core::ops::function::FnOnce<()>>::call_once::hf02f19eeb64ceabd [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panic.rs:347:9 [INFO] [stdout] 22: 0x5578f6d169f8 - std::panicking::try::do_call::h4bfab65eb3b4b036 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:401:40 [INFO] [stdout] 23: 0x5578f6d169f8 - std::panicking::try::h6613a46a6d2b6f88 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:365:19 [INFO] [stdout] 24: 0x5578f6d169f8 - std::panic::catch_unwind::h9f07b17b60991273 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panic.rs:434:14 [INFO] [stdout] 25: 0x5578f6d169f8 - test::run_test_in_process::hc38797eecf07854f [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/test/src/lib.rs:601:18 [INFO] [stdout] 26: 0x5578f6d169f8 - test::run_test::run_test_inner::{{closure}}::hac209db8bce0fd77 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/test/src/lib.rs:493:39 [INFO] [stdout] 27: 0x5578f6ce518d - test::run_test::run_test_inner::{{closure}}::h4aefdd4b4a423e20 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/test/src/lib.rs:520:37 [INFO] [stdout] 28: 0x5578f6ce518d - std::sys_common::backtrace::__rust_begin_short_backtrace::h652c9e2663704700 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 29: 0x5578f6ce9968 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::hd84fd5e0b5b1f45f [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 30: 0x5578f6ce9968 - as core::ops::function::FnOnce<()>>::call_once::he23556962a2ae14b [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panic.rs:347:9 [INFO] [stdout] 31: 0x5578f6ce9968 - std::panicking::try::do_call::h67d4f93e1fbaa5f9 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:401:40 [INFO] [stdout] 32: 0x5578f6ce9968 - std::panicking::try::h396886e678db815e [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:365:19 [INFO] [stdout] 33: 0x5578f6ce9968 - std::panic::catch_unwind::hc1d64dcecf0a00e0 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panic.rs:434:14 [INFO] [stdout] 34: 0x5578f6ce9968 - std::thread::Builder::spawn_unchecked::{{closure}}::hc2644cf33cb61d8e [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 35: 0x5578f6ce9968 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h4473c2c77b66963f [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 36: 0x5578f6d41647 - as core::ops::function::FnOnce>::call_once::h6bff7798948b1075 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 37: 0x5578f6d41647 - as core::ops::function::FnOnce>::call_once::hc2d25ac38f6b2342 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 38: 0x5578f6d41647 - std::sys::unix::thread::Thread::new::thread_start::hbba5bc368baac205 [INFO] [stdout] at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys/unix/thread.rs:74:17 [INFO] [stdout] 39: 0x7fe4451b8609 - start_thread [INFO] [stdout] 40: 0x7fe444f8a293 - clone [INFO] [stdout] 41: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] compile_test [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.56s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--test ui' [INFO] running `Command { std: "docker" "inspect" "57123ee4d38462ac9438616a2ce5588cb6cec5f1742e2eac9c2a06b42001562f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57123ee4d38462ac9438616a2ce5588cb6cec5f1742e2eac9c2a06b42001562f", kill_on_drop: false }` [INFO] [stdout] 57123ee4d38462ac9438616a2ce5588cb6cec5f1742e2eac9c2a06b42001562f