[INFO] fetching crate async-trait-with-sync 0.1.36... [INFO] checking async-trait-with-sync-0.1.36 against try#0c7fed2b7584d310ca8221267fa1b3bec4df427f for pr-133502-4 [INFO] extracting crate async-trait-with-sync 0.1.36 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate async-trait-with-sync 0.1.36 on toolchain 0c7fed2b7584d310ca8221267fa1b3bec4df427f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0c7fed2b7584d310ca8221267fa1b3bec4df427f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate async-trait-with-sync 0.1.36 [INFO] finished tweaking crates.io crate async-trait-with-sync 0.1.36 [INFO] tweaked toml for crates.io crate async-trait-with-sync 0.1.36 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0c7fed2b7584d310ca8221267fa1b3bec4df427f" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 44 packages to latest compatible versions [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.100) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0c7fed2b7584d310ca8221267fa1b3bec4df427f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+0c7fed2b7584d310ca8221267fa1b3bec4df427f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 83c6b5763bc5e788cbff29424cd57dc926a88020d88353e139222f74a81bad9e [INFO] running `Command { std: "docker" "start" "-a" "83c6b5763bc5e788cbff29424cd57dc926a88020d88353e139222f74a81bad9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "83c6b5763bc5e788cbff29424cd57dc926a88020d88353e139222f74a81bad9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83c6b5763bc5e788cbff29424cd57dc926a88020d88353e139222f74a81bad9e", kill_on_drop: false }` [INFO] [stdout] 83c6b5763bc5e788cbff29424cd57dc926a88020d88353e139222f74a81bad9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+0c7fed2b7584d310ca8221267fa1b3bec4df427f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 120812c1188977c4bcfb2899032f637bf1fa1dfbbeeff7a2bfc267406db19e1d [INFO] running `Command { std: "docker" "start" "-a" "120812c1188977c4bcfb2899032f637bf1fa1dfbbeeff7a2bfc267406db19e1d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking unicode-ident v1.0.18 [INFO] [stderr] Compiling target-triple v0.1.4 [INFO] [stderr] Checking winnow v0.7.7 [INFO] [stderr] Checking glob v0.3.2 [INFO] [stderr] Checking dissimilar v1.0.10 [INFO] [stderr] Checking quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking async-trait-with-sync v0.1.36 (/opt/rustwide/workdir) [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking toml_edit v0.22.24 [INFO] [stderr] Checking toml v0.8.20 [INFO] [stderr] Checking trybuild v1.0.104 [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 264 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:339:9 [INFO] [stdout] | [INFO] [stdout] 339 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:378:9 [INFO] [stdout] | [INFO] [stdout] 378 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:397:9 [INFO] [stdout] | [INFO] [stdout] 397 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:416:9 [INFO] [stdout] | [INFO] [stdout] 416 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:438:9 [INFO] [stdout] | [INFO] [stdout] 438 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:573:9 [INFO] [stdout] | [INFO] [stdout] 573 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:604:9 [INFO] [stdout] | [INFO] [stdout] 604 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:689:9 [INFO] [stdout] | [INFO] [stdout] 689 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:703:9 [INFO] [stdout] | [INFO] [stdout] 703 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:725:9 [INFO] [stdout] | [INFO] [stdout] 725 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:738:9 [INFO] [stdout] | [INFO] [stdout] 738 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:756:9 [INFO] [stdout] | [INFO] [stdout] 756 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:795:9 [INFO] [stdout] | [INFO] [stdout] 795 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:820:9 [INFO] [stdout] | [INFO] [stdout] 820 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:902:9 [INFO] [stdout] | [INFO] [stdout] 902 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:927:9 [INFO] [stdout] | [INFO] [stdout] 927 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `async_trait` [INFO] [stdout] --> tests/test.rs:961:9 [INFO] [stdout] | [INFO] [stdout] 961 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `async_trait`, use `cargo add async_trait` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] --> tests/test.rs:674:7 [INFO] [stdout] | [INFO] [stdout] 674 | #[async_trait::async_trait] [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `async_trait` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `async_trait_nightly_testing` [INFO] [stdout] --> tests/test.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(async_trait_nightly_testing, feature(specialization, const_generics))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(async_trait_nightly_testing)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(async_trait_nightly_testing)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `async_trait_nightly_testing` [INFO] [stdout] --> tests/test.rs:291:7 [INFO] [stdout] | [INFO] [stdout] 291 | #[cfg(async_trait_nightly_testing)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(async_trait_nightly_testing)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(async_trait_nightly_testing)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `async_trait_nightly_testing` [INFO] [stdout] --> tests/test.rs:647:7 [INFO] [stdout] | [INFO] [stdout] 647 | #[cfg(async_trait_nightly_testing)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(async_trait_nightly_testing)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(async_trait_nightly_testing)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `test_object_safe_without_default::{closure#0}::ObjectSafe` is not dyn compatible [INFO] [stdout] --> tests/test.rs:105:29 [INFO] [stdout] | [INFO] [stdout] 105 | let object = &Struct as &dyn ObjectSafe; [INFO] [stdout] | ^^^^^^^^^^^^^^^ `test_object_safe_without_default::{closure#0}::ObjectSafe` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> tests/test.rs:97:18 [INFO] [stdout] | [INFO] [stdout] 96 | trait ObjectSafe { [INFO] [stdout] | ---------- this trait is not dyn compatible... [INFO] [stdout] 97 | async fn f(&self); [INFO] [stdout] | ^ ...because method `f` is `async` [INFO] [stdout] = help: consider moving `f` to another trait [INFO] [stdout] = help: only type `Struct` implements `test_object_safe_without_default::{closure#0}::ObjectSafe`; consider using it directly instead. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `f` exists for reference `&dyn ObjectSafe`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 96 | trait ObjectSafe { [INFO] [stdout] | ---------------- doesn't satisfy `_: ObjectSafe` [INFO] [stdout] ... [INFO] [stdout] 106 | object.f().await; [INFO] [stdout] | ^ method cannot be called on `&dyn ObjectSafe` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn test_object_safe_without_default::{closure#0}::ObjectSafe: test_object_safe_without_default::{closure#0}::ObjectSafe` [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `f`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `AsyncCommands1` [INFO] [stdout] candidate #2: `AsyncCommands2` [INFO] [stdout] candidate #3: `Interface` [INFO] [stdout] candidate #4: `Issue1` [INFO] [stdout] candidate #5: `Issue17` [INFO] [stdout] candidate #6: `Issue23` [INFO] [stdout] candidate #7: `Issue9` [INFO] [stdout] candidate #8: `Trait1` [INFO] [stdout] candidate #9: `Trait2` [INFO] [stdout] candidate #10: `Trait3` [INFO] [stdout] candidate #11: `issue83::Trait` [INFO] [stdout] candidate #12: `issue87::Trait` [INFO] [stdout] candidate #13: `issue89::Trait` [INFO] [stdout] candidate #14: `test_object_no_send::{closure#0}::ObjectSafe` [INFO] [stdout] candidate #15: `test_object_safe_with_default::{closure#0}::ObjectSafe` [INFO] [stdout] candidate #16: `test_object_safe_without_default::{closure#0}::ObjectSafe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `&Struct` as `&dyn test_object_safe_without_default::{closure#0}::ObjectSafe` [INFO] [stdout] --> tests/test.rs:105:18 [INFO] [stdout] | [INFO] [stdout] 105 | let object = &Struct as &dyn ObjectSafe; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `test_object_safe_with_default::{closure#0}::ObjectSafe` is not dyn compatible [INFO] [stdout] --> tests/test.rs:120:29 [INFO] [stdout] | [INFO] [stdout] 120 | let object = &Struct as &dyn ObjectSafe; [INFO] [stdout] | ^^^^^^^^^^^^^^^ `test_object_safe_with_default::{closure#0}::ObjectSafe` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> tests/test.rs:112:18 [INFO] [stdout] | [INFO] [stdout] 111 | trait ObjectSafe: Sync { [INFO] [stdout] | ---------- this trait is not dyn compatible... [INFO] [stdout] 112 | async fn f(&self) {} [INFO] [stdout] | ^ ...because method `f` is `async` [INFO] [stdout] = help: consider moving `f` to another trait [INFO] [stdout] = help: only type `Struct` implements `test_object_safe_with_default::{closure#0}::ObjectSafe`; consider using it directly instead. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `f` exists for reference `&dyn ObjectSafe`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 111 | trait ObjectSafe: Sync { [INFO] [stdout] | ---------------------- doesn't satisfy `_: Sync` [INFO] [stdout] ... [INFO] [stdout] 121 | object.f().await; [INFO] [stdout] | ^ method cannot be called on `&dyn ObjectSafe` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `dyn test_object_safe_with_default::{closure#0}::ObjectSafe: Sync` was not satisfied [INFO] [stdout] --> tests/test.rs:111:23 [INFO] [stdout] | [INFO] [stdout] 111 | trait ObjectSafe: Sync { [INFO] [stdout] | ---------- ^^^^ unsatisfied trait bound introduced here [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn test_object_safe_with_default::{closure#0}::ObjectSafe: Sync` [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `f`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `AsyncCommands1` [INFO] [stdout] candidate #2: `AsyncCommands2` [INFO] [stdout] candidate #3: `Interface` [INFO] [stdout] candidate #4: `Issue1` [INFO] [stdout] candidate #5: `Issue17` [INFO] [stdout] candidate #6: `Issue23` [INFO] [stdout] candidate #7: `Issue9` [INFO] [stdout] candidate #8: `Trait1` [INFO] [stdout] candidate #9: `Trait2` [INFO] [stdout] candidate #10: `Trait3` [INFO] [stdout] candidate #11: `issue83::Trait` [INFO] [stdout] candidate #12: `issue87::Trait` [INFO] [stdout] candidate #13: `issue89::Trait` [INFO] [stdout] candidate #14: `test_object_no_send::{closure#0}::ObjectSafe` [INFO] [stdout] candidate #15: `test_object_safe_with_default::{closure#0}::ObjectSafe` [INFO] [stdout] candidate #16: `test_object_safe_without_default::{closure#0}::ObjectSafe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `&Struct` as `&dyn test_object_safe_with_default::{closure#0}::ObjectSafe` [INFO] [stdout] --> tests/test.rs:120:18 [INFO] [stdout] | [INFO] [stdout] 120 | let object = &Struct as &dyn ObjectSafe; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `test_object_no_send::{closure#0}::ObjectSafe` is not dyn compatible [INFO] [stdout] --> tests/test.rs:135:29 [INFO] [stdout] | [INFO] [stdout] 135 | let object = &Struct as &dyn ObjectSafe; [INFO] [stdout] | ^^^^^^^^^^^^^^^ `test_object_no_send::{closure#0}::ObjectSafe` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> tests/test.rs:127:18 [INFO] [stdout] | [INFO] [stdout] 126 | trait ObjectSafe: Sync { [INFO] [stdout] | ---------- this trait is not dyn compatible... [INFO] [stdout] 127 | async fn f(&self) {} [INFO] [stdout] | ^ ...because method `f` is `async` [INFO] [stdout] = help: consider moving `f` to another trait [INFO] [stdout] = help: only type `Struct` implements `test_object_no_send::{closure#0}::ObjectSafe`; consider using it directly instead. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `f` exists for reference `&dyn ObjectSafe`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 126 | trait ObjectSafe: Sync { [INFO] [stdout] | ---------------------- doesn't satisfy `_: Sync` [INFO] [stdout] ... [INFO] [stdout] 136 | object.f().await; [INFO] [stdout] | ^ method cannot be called on `&dyn ObjectSafe` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `dyn test_object_no_send::{closure#0}::ObjectSafe: Sync` was not satisfied [INFO] [stdout] --> tests/test.rs:126:23 [INFO] [stdout] | [INFO] [stdout] 126 | trait ObjectSafe: Sync { [INFO] [stdout] | ---------- ^^^^ unsatisfied trait bound introduced here [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn test_object_no_send::{closure#0}::ObjectSafe: Sync` [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `f`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `AsyncCommands1` [INFO] [stdout] candidate #2: `AsyncCommands2` [INFO] [stdout] candidate #3: `Interface` [INFO] [stdout] candidate #4: `Issue1` [INFO] [stdout] candidate #5: `Issue17` [INFO] [stdout] candidate #6: `Issue23` [INFO] [stdout] candidate #7: `Issue9` [INFO] [stdout] candidate #8: `Trait1` [INFO] [stdout] candidate #9: `Trait2` [INFO] [stdout] candidate #10: `Trait3` [INFO] [stdout] candidate #11: `issue83::Trait` [INFO] [stdout] candidate #12: `issue87::Trait` [INFO] [stdout] candidate #13: `issue89::Trait` [INFO] [stdout] candidate #14: `test_object_no_send::{closure#0}::ObjectSafe` [INFO] [stdout] candidate #15: `test_object_safe_with_default::{closure#0}::ObjectSafe` [INFO] [stdout] candidate #16: `test_object_safe_without_default::{closure#0}::ObjectSafe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `&Struct` as `&dyn test_object_no_send::{closure#0}::ObjectSafe` [INFO] [stdout] --> tests/test.rs:135:18 [INFO] [stdout] | [INFO] [stdout] 135 | let object = &Struct as &dyn ObjectSafe; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0038]: the trait `Interface` is not dyn compatible [INFO] [stdout] --> tests/test.rs:150:29 [INFO] [stdout] | [INFO] [stdout] 150 | let object = &Struct as &dyn Interface; [INFO] [stdout] | ^^^^^^^^^^^^^^ `Interface` is not dyn compatible [INFO] [stdout] | [INFO] [stdout] note: for a trait to be dyn compatible it needs to allow building a vtable [INFO] [stdout] for more information, visit [INFO] [stdout] --> tests/test.rs:142:18 [INFO] [stdout] | [INFO] [stdout] 141 | trait Interface { [INFO] [stdout] | --------- this trait is not dyn compatible... [INFO] [stdout] 142 | async fn f(&self); [INFO] [stdout] | ^ ...because method `f` is `async` [INFO] [stdout] = help: consider moving `f` to another trait [INFO] [stdout] = help: only type `Struct` implements `Interface`; consider using it directly instead. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `f` exists for reference `&dyn Interface`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test.rs:152:16 [INFO] [stdout] | [INFO] [stdout] 141 | trait Interface { [INFO] [stdout] | --------------- doesn't satisfy `dyn Interface: Interface` [INFO] [stdout] ... [INFO] [stdout] 152 | object.f(); [INFO] [stdout] | ^ method cannot be called on `&dyn Interface` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn Interface: Interface` [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `f`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `AsyncCommands1` [INFO] [stdout] candidate #2: `AsyncCommands2` [INFO] [stdout] candidate #3: `Interface` [INFO] [stdout] candidate #4: `Issue1` [INFO] [stdout] candidate #5: `Issue17` [INFO] [stdout] candidate #6: `Issue23` [INFO] [stdout] candidate #7: `Issue9` [INFO] [stdout] candidate #8: `Trait1` [INFO] [stdout] candidate #9: `Trait2` [INFO] [stdout] candidate #10: `Trait3` [INFO] [stdout] candidate #11: `issue83::Trait` [INFO] [stdout] candidate #12: `issue87::Trait` [INFO] [stdout] candidate #13: `issue89::Trait` [INFO] [stdout] candidate #14: `test_object_no_send::{closure#0}::ObjectSafe` [INFO] [stdout] candidate #15: `test_object_safe_with_default::{closure#0}::ObjectSafe` [INFO] [stdout] candidate #16: `test_object_safe_without_default::{closure#0}::ObjectSafe` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `&Struct` as `&dyn Interface` [INFO] [stdout] --> tests/test.rs:150:18 [INFO] [stdout] | [INFO] [stdout] 150 | let object = &Struct as &dyn Interface; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0733]: recursion in an async fn requires boxing [INFO] [stdout] --> tests/test.rs:579:17 [INFO] [stdout] | [INFO] [stdout] 579 | async fn f<$tyargs: $ty>(&mut self, x: $tyargs) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 580 | self.f(x).await [INFO] [stdout] | --------------- recursive call here [INFO] [stdout] ... [INFO] [stdout] 586 | implement_commands_workaround!(K: Send); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: a recursive `async fn` call must introduce indirection such as `Box::pin` to avoid an infinitely sized future [INFO] [stdout] = note: this error originates in the macro `implement_commands_workaround` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0733]: recursion in an async fn requires boxing [INFO] [stdout] --> tests/test.rs:592:17 [INFO] [stdout] | [INFO] [stdout] 592 | async fn f<$tyargs: $ty>(&mut self, x: $tyargs) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 593 | self.f(x).await [INFO] [stdout] | --------------- recursive call here [INFO] [stdout] ... [INFO] [stdout] 599 | implement_commands!(K: Send); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: a recursive `async fn` call must introduce indirection such as `Box::pin` to avoid an infinitely sized future [INFO] [stdout] = note: this error originates in the macro `implement_commands` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0038, E0432, E0433, E0599, E0605, E0733. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0038`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async-trait-with-sync` (test "test") due to 40 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "120812c1188977c4bcfb2899032f637bf1fa1dfbbeeff7a2bfc267406db19e1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "120812c1188977c4bcfb2899032f637bf1fa1dfbbeeff7a2bfc267406db19e1d", kill_on_drop: false }` [INFO] [stdout] 120812c1188977c4bcfb2899032f637bf1fa1dfbbeeff7a2bfc267406db19e1d