[INFO] cloning repository https://github.com/Go-and/async-trait [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Go-and/async-trait" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGo-and%2Fasync-trait", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGo-and%2Fasync-trait'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f0481706f2745a159eca0d8b7a179a105a53057c [INFO] testing Go-and/async-trait against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGo-and%2Fasync-trait" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Go-and/async-trait [INFO] finished tweaking git repo https://github.com/Go-and/async-trait [INFO] tweaked toml for git repo https://github.com/Go-and/async-trait written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Go-and/async-trait on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Go-and/async-trait 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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 38753e34163cb0cde79674d6033d75aee9141a120ac8a4965af19d4724a70be1 [INFO] running `Command { std: "docker" "start" "-a" "38753e34163cb0cde79674d6033d75aee9141a120ac8a4965af19d4724a70be1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "38753e34163cb0cde79674d6033d75aee9141a120ac8a4965af19d4724a70be1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38753e34163cb0cde79674d6033d75aee9141a120ac8a4965af19d4724a70be1", kill_on_drop: false }` [INFO] [stdout] 38753e34163cb0cde79674d6033d75aee9141a120ac8a4965af19d4724a70be1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a74befb130cdaf79a3321cc30dbe43673d08f3cc3c9d5c26f25d648fa822c0ac [INFO] running `Command { std: "docker" "start" "-a" "a74befb130cdaf79a3321cc30dbe43673d08f3cc3c9d5c26f25d648fa822c0ac", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling unicode-ident v1.0.20 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling async-trait v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: `impl DataFetcher` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:149:26 [INFO] [stdout] | [INFO] [stdout] 149 | let result = fetcher.process(id).await?; [INFO] [stdout] | ^^^^^^^ `impl DataFetcher` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `DataFetcher::process` [INFO] [stdout] --> src/main.rs:97:1 [INFO] [stdout] | [INFO] [stdout] 97 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `DataFetcher::process` [INFO] [stdout] ... [INFO] [stdout] 102 | async fn process(&self, id: u32) -> Result { [INFO] [stdout] | ------- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider restricting opaque type `impl DataFetcher` with trait `Sync` [INFO] [stdout] | [INFO] [stdout] 148 | async fn handle_data(fetcher: &impl DataFetcher + std::marker::Sync, id: u32) -> Result<(), String> { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `dyn DataFetcher` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:177:25 [INFO] [stdout] | [INFO] [stdout] 177 | let _ = fetcher.process(1).await; [INFO] [stdout] | ^^^^^^^ `dyn DataFetcher` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `dyn DataFetcher` [INFO] [stdout] note: required by a bound in `DataFetcher::process` [INFO] [stdout] --> src/main.rs:97:1 [INFO] [stdout] | [INFO] [stdout] 97 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `DataFetcher::process` [INFO] [stdout] ... [INFO] [stdout] 102 | async fn process(&self, id: u32) -> Result { [INFO] [stdout] | ------- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the attribute macro `async_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async-trait` (bin "async-trait") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "a74befb130cdaf79a3321cc30dbe43673d08f3cc3c9d5c26f25d648fa822c0ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a74befb130cdaf79a3321cc30dbe43673d08f3cc3c9d5c26f25d648fa822c0ac", kill_on_drop: false }` [INFO] [stdout] a74befb130cdaf79a3321cc30dbe43673d08f3cc3c9d5c26f25d648fa822c0ac