[INFO] cloning repository https://github.com/benkeil/rust-lambda-poc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/benkeil/rust-lambda-poc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenkeil%2Frust-lambda-poc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenkeil%2Frust-lambda-poc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] efb8d9c5bf86838958a6d654e02b4f86beb2d601 [INFO] testing benkeil/rust-lambda-poc against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbenkeil%2Frust-lambda-poc" "/workspace/builds/worker-26/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-26/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/benkeil/rust-lambda-poc on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/benkeil/rust-lambda-poc [INFO] finished tweaking git repo https://github.com/benkeil/rust-lambda-poc [INFO] tweaked toml for git repo https://github.com/benkeil/rust-lambda-poc written to /workspace/builds/worker-26/source/Cargo.toml [INFO] crate git repo https://github.com/benkeil/rust-lambda-poc already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a90354bedbdb18d2ccb8462bd7b692f4c431846046febb4b43c723f46c70ead7 [INFO] running `Command { std: "docker" "start" "-a" "a90354bedbdb18d2ccb8462bd7b692f4c431846046febb4b43c723f46c70ead7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a90354bedbdb18d2ccb8462bd7b692f4c431846046febb4b43c723f46c70ead7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a90354bedbdb18d2ccb8462bd7b692f4c431846046febb4b43c723f46c70ead7", kill_on_drop: false }` [INFO] [stdout] a90354bedbdb18d2ccb8462bd7b692f4c431846046febb4b43c723f46c70ead7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 79087c93929d9c5fca10198ce26bebd8042a72a2cafd3a347d4c3666f63dfb12 [INFO] running `Command { std: "docker" "start" "-a" "79087c93929d9c5fca10198ce26bebd8042a72a2cafd3a347d4c3666f63dfb12", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-core v0.3.7 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling pin-project-lite v0.1.11 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling futures-sink v0.3.7 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling once_cell v1.4.1 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling futures-io v0.3.7 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling cc v1.0.61 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling tower-service v0.3.0 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling const_fn v0.4.3 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling subtle v2.3.0 [INFO] [stderr] Compiling openssl-probe v0.1.2 [INFO] [stderr] Compiling zeroize v1.1.1 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling cpuid-bool v0.1.2 [INFO] [stderr] Compiling hex v0.4.2 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling md5 v0.7.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling fmt v0.1.0 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling sharded-slab v0.1.0 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling futures-channel v0.3.7 [INFO] [stderr] Compiling futures-task v0.3.7 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling standback v0.2.11 [INFO] [stderr] Compiling time v0.2.22 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling tracing-subscriber v0.2.15 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling rusoto_core v0.45.0 [INFO] [stderr] Compiling net2 v0.2.35 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling signal-hook-registry v1.2.2 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling socket2 v0.3.15 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling dirs-sys v0.3.5 [INFO] [stderr] Compiling dirs v2.0.2 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling sha2 v0.9.2 [INFO] [stderr] Compiling pin-project-internal v1.0.1 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.7 [INFO] [stderr] Compiling tracing-attributes v0.1.11 [INFO] [stderr] Compiling async-trait v0.1.41 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling async-stream-impl v0.2.1 [INFO] [stderr] Compiling lambda-attributes v0.1.0 (https://github.com/awslabs/aws-lambda-rust-runtime#13aa8f01) [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling async-stream v0.2.1 [INFO] [stderr] Compiling core v1.0.0 (/opt/rustwide/workdir/code/core) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> code/core/src/use_cases/hello_world_use_case.rs:6:32 [INFO] [stdout] | [INFO] [stdout] 6 | async fn execute(&self) -> Send; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 - async fn execute(&self) -> Send; [INFO] [stdout] 6 + async fn execute(&self) -> dyn Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `execute` has an incompatible type for trait [INFO] [stdout] --> code/core/src/use_cases/hello_world_use_case.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected trait object, found `()` [INFO] [stdout] | help: change the output type to match the trait: `Pin + Send + 'async_trait)>>` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> code/core/src/use_cases/hello_world_use_case.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | #[async_trait] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: expected fn pointer `fn(&'life0 HelloWorldUseCase) -> Pin + Send + 'async_trait)>>` [INFO] [stdout] found fn pointer `fn(&'life0 HelloWorldUseCase) -> Pin + Send + 'async_trait)>>` [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] error: future cannot be sent between threads safely [INFO] [stdout] --> code/core/src/use_cases/hello_world_use_case.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | async fn execute(&self) { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 16 | | let list = self.storage_repository.list(); [INFO] [stdout] 17 | | let list = list.await; [INFO] [stdout] 18 | | println!("Bucket: {:?}", list); [INFO] [stdout] ... | [INFO] [stdout] 21 | | // } [INFO] [stdout] 22 | | } [INFO] [stdout] | |_____^ future returned by `__execute` is not `Send` [INFO] [stdout] | [INFO] [stdout] = help: within `HelloWorldUseCase`, the trait `Sync` is not implemented for `(dyn StorageRepository + 'static)` [INFO] [stdout] note: future is not `Send` as this value is used across an await [INFO] [stdout] --> code/core/src/use_cases/hello_world_use_case.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 15 | async fn execute(&self) { [INFO] [stdout] | ---- has type `&HelloWorldUseCase` which is not `Send` [INFO] [stdout] 16 | let list = self.storage_repository.list(); [INFO] [stdout] 17 | let list = list.await; [INFO] [stdout] | ^^^^^^ await occurs here, with `self` maybe used later [INFO] [stdout] ... [INFO] [stdout] 22 | } [INFO] [stdout] | - `self` is later dropped here [INFO] [stdout] = note: required for the cast to the object type `dyn Future + Send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stderr] error: could not compile `core` due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "79087c93929d9c5fca10198ce26bebd8042a72a2cafd3a347d4c3666f63dfb12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79087c93929d9c5fca10198ce26bebd8042a72a2cafd3a347d4c3666f63dfb12", kill_on_drop: false }` [INFO] [stdout] 79087c93929d9c5fca10198ce26bebd8042a72a2cafd3a347d4c3666f63dfb12