[INFO] cloning repository https://github.com/Darrenmeehan/hello-word-rust-lambda [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Darrenmeehan/hello-word-rust-lambda" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarrenmeehan%2Fhello-word-rust-lambda", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarrenmeehan%2Fhello-word-rust-lambda'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 771b5bc1d1725ca942b5d8d914a0b220782a1372 [INFO] testing Darrenmeehan/hello-word-rust-lambda against 1.49.0 for beta-1.50-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarrenmeehan%2Fhello-word-rust-lambda" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Darrenmeehan/hello-word-rust-lambda on toolchain 1.49.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.49.0" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-3/source/.cargo/config [INFO] started tweaking git repo https://github.com/Darrenmeehan/hello-word-rust-lambda [INFO] finished tweaking git repo https://github.com/Darrenmeehan/hello-word-rust-lambda [INFO] tweaked toml for git repo https://github.com/Darrenmeehan/hello-word-rust-lambda written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/Darrenmeehan/hello-word-rust-lambda already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.49.0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-3/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.49.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/awslabs/aws-lambda-rust-runtime/` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.49.0" "fetch" "--locked" "--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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+1.49.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 026842384b2a93351b4e1aa65bc76a1622d6494e361426d6d41dba4e5544408e [INFO] running `Command { std: "docker" "start" "-a" "026842384b2a93351b4e1aa65bc76a1622d6494e361426d6d41dba4e5544408e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "026842384b2a93351b4e1aa65bc76a1622d6494e361426d6d41dba4e5544408e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "026842384b2a93351b4e1aa65bc76a1622d6494e361426d6d41dba4e5544408e", kill_on_drop: false }` [INFO] [stdout] 026842384b2a93351b4e1aa65bc76a1622d6494e361426d6d41dba4e5544408e [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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+1.49.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43f937c4d29078826c8d1e81a27f007f4f4f2e92e720dcf7aef9260a29ea4dba [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "43f937c4d29078826c8d1e81a27f007f4f4f2e92e720dcf7aef9260a29ea4dba", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling futures-core v0.3.8 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling futures-sink v0.3.8 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling pin-project-lite v0.1.11 [INFO] [stderr] Compiling pin-project-lite v0.2.1 [INFO] [stderr] Compiling futures-io v0.3.8 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling cc v1.0.66 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling const_fn v0.4.5 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling zeroize v1.2.0 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling subtle v1.0.0 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling gimli v0.23.0 [INFO] [stderr] Compiling object v0.22.0 [INFO] [stderr] Compiling rustc-demangle v0.1.18 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling rusoto v0.24.2 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling sharded-slab v0.1.1 [INFO] [stderr] Compiling http v0.2.2 [INFO] [stderr] Compiling standback v0.2.14 [INFO] [stderr] Compiling time v0.2.23 [INFO] [stderr] Compiling futures-channel v0.3.8 [INFO] [stderr] Compiling futures-task v0.3.8 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling rusoto_core v0.43.0 [INFO] [stderr] Compiling rusoto_core v0.44.0 [INFO] [stderr] Compiling crypto-mac v0.7.0 [INFO] [stderr] Compiling hmac v0.7.1 [INFO] [stderr] Compiling lambda_runtime_errors_derive v0.1.1 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Compiling tracing-subscriber v0.2.15 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling dirs-sys v0.3.5 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling tokio-threadpool v0.1.18 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling dirs v2.0.2 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling colored v1.9.3 [INFO] [stderr] Compiling tokio-io v0.1.13 [INFO] [stderr] Compiling http v0.1.21 [INFO] [stderr] Compiling tokio-buf v0.1.1 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling tokio-reactor v0.1.12 [INFO] [stderr] Compiling tokio-codec v0.1.2 [INFO] [stderr] Compiling tokio-fs v0.1.7 [INFO] [stderr] Compiling addr2line v0.14.1 [INFO] [stderr] Compiling backtrace v0.3.55 [INFO] [stderr] Compiling tokio-uds v0.2.7 [INFO] [stderr] Compiling tokio-udp v0.1.6 [INFO] [stderr] Compiling tokio-tcp v0.1.4 [INFO] [stderr] Compiling tokio v0.1.22 [INFO] [stderr] Compiling http-body v0.1.0 [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling hyper v0.12.35 [INFO] [stderr] Compiling pin-project-internal v1.0.3 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling tracing-attributes v0.1.11 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.42 [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/?branch=master#13aa8f01) [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling tokio v0.2.24 [INFO] [stderr] Compiling async-stream v0.2.1 [INFO] [stderr] Compiling tracing v0.1.22 [INFO] [stderr] Compiling pin-project v1.0.3 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling tracing-error v0.1.2 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling futures-executor v0.3.8 [INFO] [stderr] Compiling futures v0.3.8 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling lambda_runtime_errors v0.1.1 [INFO] [stderr] Compiling simple_logger v1.11.0 [INFO] [stderr] Compiling lambda_runtime_client v0.2.2 [INFO] [stderr] Compiling hyper v0.13.9 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling rusoto_credential v0.43.0 [INFO] [stderr] Compiling rusoto_credential v0.44.0 [INFO] [stderr] Compiling lambda v0.1.0 (https://github.com/awslabs/aws-lambda-rust-runtime/?branch=master#13aa8f01) [INFO] [stderr] Compiling rusoto_signature v0.44.0 [INFO] [stderr] Compiling rusoto_signature v0.43.0 [INFO] [stderr] Compiling rusoto_dynamodb v0.43.0 [INFO] [stderr] Compiling register-on-upload v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: The #[lambda] macro can expects two arguments: a triggered event and lambda context. [INFO] [stdout] --> src/main.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | async fn main(event: Value) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `register_on_upload` [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[macro_use] [INFO] [stdout] 2 | | extern crate log; [INFO] [stdout] 3 | | extern crate simple_logger; [INFO] [stdout] 4 | | use lambda::lambda; [INFO] [stdout] ... | [INFO] [stdout] 74 | | error!("This is an example error message."); [INFO] [stdout] 75 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/main.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `simple_logger::init`: Please use the Builder pattern instead. [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | simple_logger::init().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:48:38 [INFO] [stdout] | [INFO] [stdout] 48 | let client = DynamoDbClient::new(Region::EuWest1); [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected enum `rusoto_signature::region::Region`, found enum `Region` [INFO] [stdout] | [INFO] [stdout] = note: perhaps two different versions of crate `rusoto_signature` are being used? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `register-on-upload` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "43f937c4d29078826c8d1e81a27f007f4f4f2e92e720dcf7aef9260a29ea4dba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43f937c4d29078826c8d1e81a27f007f4f4f2e92e720dcf7aef9260a29ea4dba", kill_on_drop: false }` [INFO] [stdout] 43f937c4d29078826c8d1e81a27f007f4f4f2e92e720dcf7aef9260a29ea4dba