[INFO] fetching crate fx-callback 2.0.0... [INFO] testing fx-callback-2.0.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate fx-callback 2.0.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate fx-callback 2.0.0 [INFO] finished tweaking crates.io crate fx-callback 2.0.0 [INFO] tweaked toml for crates.io crate fx-callback 2.0.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate fx-callback 2.0.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate fx-callback 2.0.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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded log-mdc v0.1.0 [INFO] [stderr] Downloaded destructure_traitobject v0.2.0 [INFO] [stderr] Downloaded unsafe-any-ors v1.0.0 [INFO] [stderr] Downloaded typemap-ors v1.0.0 [INFO] [stderr] Downloaded mock_instant v0.6.0 [INFO] [stderr] Downloaded log4rs v1.4.0 [INFO] [stderr] Downloaded thread-id v5.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 936e120563be7c8ec14e04b8acccb54978dadf745700cc13de9dea586a24b883 [INFO] running `Command { std: "docker" "start" "-a" "936e120563be7c8ec14e04b8acccb54978dadf745700cc13de9dea586a24b883", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "936e120563be7c8ec14e04b8acccb54978dadf745700cc13de9dea586a24b883", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "936e120563be7c8ec14e04b8acccb54978dadf745700cc13de9dea586a24b883", kill_on_drop: false }` [INFO] [stdout] 936e120563be7c8ec14e04b8acccb54978dadf745700cc13de9dea586a24b883 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c09ec1fa9a981533a71c46cc7ff1b7333b3e857be8ff963a61e2cc33342b79c7 [INFO] running `Command { std: "docker" "start" "-a" "c09ec1fa9a981533a71c46cc7ff1b7333b3e857be8ff963a61e2cc33342b79c7", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.50.0 [INFO] [stderr] Compiling fx-callback v2.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.64s [INFO] running `Command { std: "docker" "inspect" "c09ec1fa9a981533a71c46cc7ff1b7333b3e857be8ff963a61e2cc33342b79c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c09ec1fa9a981533a71c46cc7ff1b7333b3e857be8ff963a61e2cc33342b79c7", kill_on_drop: false }` [INFO] [stdout] c09ec1fa9a981533a71c46cc7ff1b7333b3e857be8ff963a61e2cc33342b79c7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 193b7146bf6b2deef4ec4598c259714b760b9fc6bde16863d14982e0918e8eed [INFO] running `Command { std: "docker" "start" "-a" "193b7146bf6b2deef4ec4598c259714b760b9fc6bde16863d14982e0918e8eed", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling destructure_traitobject v0.2.0 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling arc-swap v1.8.2 [INFO] [stderr] Compiling thread-id v5.1.0 [INFO] [stderr] Compiling humantime v2.3.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling log-mdc v0.1.0 [INFO] [stderr] Compiling mock_instant v0.6.0 [INFO] [stderr] Compiling unsafe-any-ors v1.0.0 [INFO] [stderr] Compiling typemap-ors v1.0.0 [INFO] [stderr] Compiling ordered-float v2.10.1 [INFO] [stderr] Compiling chrono v0.4.44 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.1 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Compiling tokio v1.50.0 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling derive_more v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling fx-callback v2.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling serde-value v0.7.0 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling log4rs v1.4.0 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 20.99s [INFO] running `Command { std: "docker" "inspect" "193b7146bf6b2deef4ec4598c259714b760b9fc6bde16863d14982e0918e8eed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "193b7146bf6b2deef4ec4598c259714b760b9fc6bde16863d14982e0918e8eed", kill_on_drop: false }` [INFO] [stdout] 193b7146bf6b2deef4ec4598c259714b760b9fc6bde16863d14982e0918e8eed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9c2f0a1e4c2807eb097a3611d80c5babbb6ba863d1b81a8da1fcdfd9d840c7b1 [INFO] running `Command { std: "docker" "start" "-a" "9c2f0a1e4c2807eb097a3611d80c5babbb6ba863d1b81a8da1fcdfd9d840c7b1", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/fx_callback-d32a484818c217c9) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test callback::tests::test_multi_threaded_invoke ... ok [INFO] [stdout] test callback::tests::test_invoke_dropped_receiver ... ok [INFO] [stdout] test callback::tests::test_non_cloneable_type ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests fx_callback [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/lib.rs - (line 84) ... FAILED [INFO] [stdout] test src/lib.rs - (line 47) ... FAILED [INFO] [stdout] test src/callback.rs - callback::Callback (line 15) - compile ... ok [INFO] [stdout] test src/lib.rs - (line 58) ... FAILED [INFO] [stdout] test src/callback.rs - callback::Callback::subscribe (line 43) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 72) ... FAILED [INFO] [stdout] test src/callback.rs - callback::MultiThreadedCallback (line 73) - compile ... ok [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/lib.rs - (line 12) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 84) stdout ---- [INFO] [stdout] error: The default runtime flavor is `multi_thread`, but the `rt-multi-thread` feature is disabled. [INFO] [stdout] --> src/lib.rs:89:1 [INFO] [stdout] | [INFO] [stdout] 89 | #[tokio::main] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `tokio::main` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `MyStruct` in the current scope [INFO] [stdout] --> src/lib.rs:91:42 [INFO] [stdout] | [INFO] [stdout] 91 | let struct_with_callback = MyStruct::new(); [INFO] [stdout] | ^^^ function or associated item not found in `MyStruct` [INFO] [stdout] ... [INFO] [stdout] 105 | pub struct MyStruct { [INFO] [stdout] | ------------------- function or associated item `new` not found for this struct [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 47) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `MyEvent` in this scope [INFO] [stdout] --> src/lib.rs:53:38 [INFO] [stdout] | [INFO] [stdout] 53 | callbacks: MultiThreadedCallback, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 52 | pub struct MyStruct { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 58) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `Callback` in this scope [INFO] [stdout] --> src/lib.rs:59:6 [INFO] [stdout] | [INFO] [stdout] 59 | impl Callback for MyStruct { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 58 + use fx_callback::Callback; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `MyEvent` in this scope [INFO] [stdout] --> src/lib.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 59 | impl Callback for MyStruct { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 59 | impl Callback for MyStruct { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `MyStruct` in this scope [INFO] [stdout] --> src/lib.rs:59:28 [INFO] [stdout] | [INFO] [stdout] 59 | impl Callback for MyStruct { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Subscription` in this scope [INFO] [stdout] --> src/lib.rs:60:28 [INFO] [stdout] | [INFO] [stdout] 60 | fn subscribe(&self) -> Subscription { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 58 + use fx_callback::Subscription; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `MyEvent` in this scope [INFO] [stdout] --> src/lib.rs:60:41 [INFO] [stdout] | [INFO] [stdout] 60 | fn subscribe(&self) -> Subscription { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 59 | impl Callback for MyStruct { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Subscriber` in this scope [INFO] [stdout] --> src/lib.rs:64:42 [INFO] [stdout] | [INFO] [stdout] 64 | fn subscribe_with(&self, subscriber: Subscriber) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `MyEvent` in this scope [INFO] [stdout] --> src/lib.rs:64:53 [INFO] [stdout] | [INFO] [stdout] 64 | fn subscribe_with(&self, subscriber: Subscriber) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 59 | impl Callback for MyStruct { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/callback.rs - callback::Callback::subscribe (line 43) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/callback.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | if let Some(event) = receiver.recv().await { [INFO] [stdout] | ^^^^^^^^^^^ --------------------- this expression has type `Result, tokio::sync::broadcast::error::RecvError>` [INFO] [stdout] | | [INFO] [stdout] | expected `Result, RecvError>`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result, tokio::sync::broadcast::error::RecvError>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 72) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `MyStruct` in this scope [INFO] [stdout] --> src/lib.rs:73:6 [INFO] [stdout] | [INFO] [stdout] 73 | impl MyStruct { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyEvent` in this scope [INFO] [stdout] --> src/lib.rs:75:31 [INFO] [stdout] | [INFO] [stdout] 75 | self.callbacks.invoke(MyEvent::Foo); [INFO] [stdout] | ^^^^^^^ use of undeclared type `MyEvent` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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] [INFO] [stdout] failures: [INFO] [stdout] src/callback.rs - callback::Callback::subscribe (line 43) [INFO] [stdout] src/lib.rs - (line 47) [INFO] [stdout] src/lib.rs - (line 58) [INFO] [stdout] src/lib.rs - (line 72) [INFO] [stdout] src/lib.rs - (line 84) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.46s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "9c2f0a1e4c2807eb097a3611d80c5babbb6ba863d1b81a8da1fcdfd9d840c7b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c2f0a1e4c2807eb097a3611d80c5babbb6ba863d1b81a8da1fcdfd9d840c7b1", kill_on_drop: false }` [INFO] [stdout] 9c2f0a1e4c2807eb097a3611d80c5babbb6ba863d1b81a8da1fcdfd9d840c7b1