[INFO] fetching crate aqueue_trait 0.1.0... [INFO] testing aqueue_trait-0.1.0 against beta-2021-09-08 for beta-1.56-1 [INFO] extracting crate aqueue_trait 0.1.0 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate aqueue_trait 0.1.0 on toolchain beta-2021-09-08 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate aqueue_trait 0.1.0 [INFO] finished tweaking crates.io crate aqueue_trait 0.1.0 [INFO] tweaked toml for crates.io crate aqueue_trait 0.1.0 written to /workspace/builds/worker-3/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "+beta-2021-09-08" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a48ff39b836e2187064cb50cf516b7473d683d27fd18c9eb31af85e68ad5c7ec [INFO] running `Command { std: "docker" "start" "-a" "a48ff39b836e2187064cb50cf516b7473d683d27fd18c9eb31af85e68ad5c7ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a48ff39b836e2187064cb50cf516b7473d683d27fd18c9eb31af85e68ad5c7ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a48ff39b836e2187064cb50cf516b7473d683d27fd18c9eb31af85e68ad5c7ec", kill_on_drop: false }` [INFO] [stdout] a48ff39b836e2187064cb50cf516b7473d683d27fd18c9eb31af85e68ad5c7ec [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "+beta-2021-09-08" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a18a76449f5c542edfe7f06e045da1a1660d780ca43f7d3d4e3ea71c2339c5db [INFO] running `Command { std: "docker" "start" "-a" "a18a76449f5c542edfe7f06e045da1a1660d780ca43f7d3d4e3ea71c2339c5db", kill_on_drop: false }` [INFO] [stderr] Compiling aqueue_trait v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.20s [INFO] running `Command { std: "docker" "inspect" "a18a76449f5c542edfe7f06e045da1a1660d780ca43f7d3d4e3ea71c2339c5db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a18a76449f5c542edfe7f06e045da1a1660d780ca43f7d3d4e3ea71c2339c5db", kill_on_drop: false }` [INFO] [stdout] a18a76449f5c542edfe7f06e045da1a1660d780ca43f7d3d4e3ea71c2339c5db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "+beta-2021-09-08" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 380f2a23433eb4ac55ba2963ff66f0c1d1b9775a6a86a7c61fd71953884b2081 [INFO] running `Command { std: "docker" "start" "-a" "380f2a23433eb4ac55ba2963ff66f0c1d1b9775a6a86a7c61fd71953884b2081", kill_on_drop: false }` [INFO] [stderr] Compiling rustversion v1.0.5 [INFO] [stderr] Compiling trybuild v1.0.45 [INFO] [stderr] Compiling dissimilar v1.0.2 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling pin-project v1.0.8 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling aqueue_trait v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 15.76s [INFO] running `Command { std: "docker" "inspect" "380f2a23433eb4ac55ba2963ff66f0c1d1b9775a6a86a7c61fd71953884b2081", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "380f2a23433eb4ac55ba2963ff66f0c1d1b9775a6a86a7c61fd71953884b2081", kill_on_drop: false }` [INFO] [stdout] 380f2a23433eb4ac55ba2963ff66f0c1d1b9775a6a86a7c61fd71953884b2081 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "+beta-2021-09-08" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f961ec2c3617189715be40a527a14af5d59f9b1502d437bcdc1b96b4c941f382 [INFO] running `Command { std: "docker" "start" "-a" "f961ec2c3617189715be40a527a14af5d59f9b1502d437bcdc1b96b4c941f382", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/aqueue_trait-27533aed1e78416b) [INFO] [stdout] [INFO] [stderr] Doc-tests aqueue_trait [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/lib.rs - (line 15) - compile fail ... ok [INFO] [stdout] test src/lib.rs - (line 265) ... FAILED [INFO] [stdout] test src/lib.rs - (line 286) ... FAILED [INFO] [stdout] test src/lib.rs - (line 211) ... FAILED [INFO] [stdout] test src/lib.rs - (line 165) - compile fail ... ok [INFO] [stdout] test src/lib.rs - (line 186) ... FAILED [INFO] [stdout] test src/lib.rs - (line 47) ... FAILED [INFO] [stdout] test src/lib.rs - (line 126) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 265) stdout ---- [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 7 | async fn can_dyn(&self) {} [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> src/lib.rs:266:5 [INFO] [stdout] | [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `async_trait` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/lib.rs:275:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/lib.rs:268:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `ObjectSafe` cannot be made into an object [INFO] [stdout] --> src/lib.rs:280:24 [INFO] [stdout] | [INFO] [stdout] 17 | let object = &value as &dyn ObjectSafe; [INFO] [stdout] | ^^^^^^^^^^^^^^^ `ObjectSafe` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] = help: consider moving `can_dyn` to another trait [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/lib.rs:270:29 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait ObjectSafe: Sync { // added supertrait [INFO] [stdout] | ---------- this trait cannot be made into an object... [INFO] [stdout] 7 | async fn can_dyn(&self) {} [INFO] [stdout] | ^ ...because method `can_dyn` references the `Self` type in its return type [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `ObjectSafe` cannot be made into an object [INFO] [stdout] --> src/lib.rs:280:14 [INFO] [stdout] | [INFO] [stdout] 17 | let object = &value as &dyn ObjectSafe; [INFO] [stdout] | ^^^^^^ `ObjectSafe` cannot be made into an object [INFO] [stdout] | [INFO] [stdout] = help: consider moving `can_dyn` to another trait [INFO] [stdout] note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit [INFO] [stdout] --> src/lib.rs:270:29 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait ObjectSafe: Sync { // added supertrait [INFO] [stdout] | ---------- this trait cannot be made into an object... [INFO] [stdout] 7 | async fn can_dyn(&self) {} [INFO] [stdout] | ^ ...because method `can_dyn` references the `Self` type in its return type [INFO] [stdout] = note: required because of the requirements on the impl of `CoerceUnsized<&dyn ObjectSafe>` for `&MyType` [INFO] [stdout] = note: required by cast to type `&dyn ObjectSafe` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0038, E0432, E0706. [INFO] [stdout] For more information about an error, try `rustc --explain E0038`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 286) stdout ---- [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:291:5 [INFO] [stdout] | [INFO] [stdout] 7 | async fn cannot_dyn(&self) where Self: Sized {} [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> src/lib.rs:287:5 [INFO] [stdout] | [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `async_trait` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/lib.rs:298:3 [INFO] [stdout] | [INFO] [stdout] 14 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/lib.rs:289:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0706. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 211) stdout ---- [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 7 | async fn f(&self); [INFO] [stdout] | -----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 8 | async fn g(&mut self); [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 21 | async fn f(&self) {} [INFO] [stdout] | -----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 22 | async fn g(&mut self) {} [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> src/lib.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `async_trait` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/lib.rs:214:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/lib.rs:228:3 [INFO] [stdout] | [INFO] [stdout] 19 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0053]: method `f` has an incompatible type for trait [INFO] [stdout] --> src/lib.rs:230:23 [INFO] [stdout] | [INFO] [stdout] 7 | async fn f(&self); [INFO] [stdout] | - type in trait [INFO] [stdout] ... [INFO] [stdout] 21 | async fn f(&self) {} [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | checked the `Output` of this `async fn`, found opaque type [INFO] [stdout] | expected `()`, found opaque type [INFO] [stdout] | [INFO] [stdout] = note: while checking the return type of the `async fn` [INFO] [stdout] = note: expected fn pointer `fn(&MyType)` [INFO] [stdout] found fn pointer `fn(&MyType) -> impl Future` [INFO] [stdout] [INFO] [stdout] error[E0053]: method `g` has an incompatible type for trait [INFO] [stdout] --> src/lib.rs:231:27 [INFO] [stdout] | [INFO] [stdout] 8 | async fn g(&mut self); [INFO] [stdout] | - type in trait [INFO] [stdout] ... [INFO] [stdout] 22 | async fn g(&mut self) {} [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | checked the `Output` of this `async fn`, found opaque type [INFO] [stdout] | expected `()`, found opaque type [INFO] [stdout] | [INFO] [stdout] = note: while checking the return type of the `async fn` [INFO] [stdout] = note: expected fn pointer `fn(&mut MyType)` [INFO] [stdout] found fn pointer `fn(&mut MyType) -> impl Future` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0432, E0706. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 186) stdout ---- [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:194:5 [INFO] [stdout] | [INFO] [stdout] 10 | async fn test<'e>(elided: Elided<'e>) {} [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:199:5 [INFO] [stdout] | [INFO] [stdout] 15 | async fn test(elided: Elided<'_>) {} [INFO] [stdout] | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> src/lib.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `async_trait` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/lib.rs:196:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/lib.rs:191:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0706. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 47) stdout ---- [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 7 | async fn run(&self); [INFO] [stdout] | -----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `async` because of this [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 14 | async fn run(&self) { [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 15 | | self.render_fullscreen().await; [INFO] [stdout] 16 | | for _ in 0..4u16 { [INFO] [stdout] 17 | | remind_user_to_join_mailing_list().await; [INFO] [stdout] 18 | | } [INFO] [stdout] 19 | | self.hide_for_now().await; [INFO] [stdout] 20 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] error[E0706]: functions in traits cannot be declared `async` [INFO] [stdout] --> src/lib.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 29 | async fn run(&self) { [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _____`async` because of this [INFO] [stdout] | | [INFO] [stdout] 30 | | let stream = connect(&self.media_url).await; [INFO] [stdout] 31 | | stream.play().await; [INFO] [stdout] 32 | | [INFO] [stdout] 33 | | // Video probably persuaded user to join our mailing list! [INFO] [stdout] 34 | | Modal.run().await; [INFO] [stdout] 35 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `async` trait functions are not currently supported [INFO] [stdout] = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> src/lib.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `async_trait` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/lib.rs:72:3 [INFO] [stdout] | [INFO] [stdout] 27 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/lib.rs:57:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the attribute macro `async_trait` [INFO] [stdout] --> src/lib.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0053]: method `run` has an incompatible type for trait [INFO] [stdout] --> src/lib.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 7 | async fn run(&self); [INFO] [stdout] | - type in trait [INFO] [stdout] ... [INFO] [stdout] 29 | async fn run(&self) { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | checked the `Output` of this `async fn`, found opaque type [INFO] [stdout] | expected `()`, found opaque type [INFO] [stdout] | [INFO] [stdout] = note: while checking the return type of the `async fn` [INFO] [stdout] = note: expected fn pointer `fn(&AutoplayingVideo)` [INFO] [stdout] found fn pointer `fn(&AutoplayingVideo) -> impl Future` [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` is not a future [INFO] [stdout] --> src/lib.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 34 | Modal.run().await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ `()` is not a future [INFO] [stdout] | [INFO] [stdout] = help: the trait `Future` is not implemented for `()` [INFO] [stdout] note: required by `poll` [INFO] [stdout] [INFO] [stdout] error[E0053]: method `run` has an incompatible type for trait [INFO] [stdout] --> src/lib.rs:59:25 [INFO] [stdout] | [INFO] [stdout] 7 | async fn run(&self); [INFO] [stdout] | - type in trait [INFO] [stdout] ... [INFO] [stdout] 14 | async fn run(&self) { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | checked the `Output` of this `async fn`, found opaque type [INFO] [stdout] | expected `()`, found opaque type [INFO] [stdout] | [INFO] [stdout] = note: while checking the return type of the `async fn` [INFO] [stdout] = note: expected fn pointer `fn(&Modal)` [INFO] [stdout] found fn pointer `fn(&Modal) -> impl Future` [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0277, E0432, E0706. [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 186) [INFO] [stdout] src/lib.rs - (line 211) [INFO] [stdout] src/lib.rs - (line 265) [INFO] [stdout] src/lib.rs - (line 286) [INFO] [stdout] src/lib.rs - (line 47) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.73s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f961ec2c3617189715be40a527a14af5d59f9b1502d437bcdc1b96b4c941f382", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f961ec2c3617189715be40a527a14af5d59f9b1502d437bcdc1b96b4c941f382", kill_on_drop: false }` [INFO] [stdout] f961ec2c3617189715be40a527a14af5d59f9b1502d437bcdc1b96b4c941f382