[INFO] updating cached repository https://github.com/Darrenmeehan/register-on-upload [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] [stderr] From https://github.com/Darrenmeehan/register-on-upload [INFO] [stderr] - [deleted] (none) -> dependabot/cargo/lambda-e528ef6 [INFO] [stderr] * [new branch] dependabot/cargo/lambda-f404617 -> dependabot/cargo/lambda-f404617 [INFO] [stderr] * [new branch] dependabot/cargo/rusoto_core-0.45.0 -> dependabot/cargo/rusoto_core-0.45.0 [INFO] [stderr] * [new branch] dependabot/cargo/rusoto_dynamodb-0.45.0 -> dependabot/cargo/rusoto_dynamodb-0.45.0 [INFO] [stderr] * [new branch] dependabot/cargo/tokio-0.2.22 -> dependabot/cargo/tokio-0.2.22 [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2b3e38bf4d93bb15cd0ee3f917548489aad4f797 [INFO] testing Darrenmeehan/register-on-upload against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDarrenmeehan%2Fregister-on-upload" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Darrenmeehan/register-on-upload on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-4/source/.cargo/config [INFO] started tweaking git repo https://github.com/Darrenmeehan/register-on-upload [INFO] finished tweaking git repo https://github.com/Darrenmeehan/register-on-upload [INFO] tweaked toml for git repo https://github.com/Darrenmeehan/register-on-upload written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/Darrenmeehan/register-on-upload already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/awslabs/aws-lambda-rust-runtime/` [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-4/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" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/awslabs/aws-lambda-rust-runtime/` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 706ce1a17377e3bb83ca9df62910ecc005f01bfd2442552cb745468a9fdf350c [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" "706ce1a17377e3bb83ca9df62910ecc005f01bfd2442552cb745468a9fdf350c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "706ce1a17377e3bb83ca9df62910ecc005f01bfd2442552cb745468a9fdf350c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "706ce1a17377e3bb83ca9df62910ecc005f01bfd2442552cb745468a9fdf350c", kill_on_drop: false }` [INFO] [stdout] 706ce1a17377e3bb83ca9df62910ecc005f01bfd2442552cb745468a9fdf350c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d77ef3fb1da222ee54a2755e6e38aedf972a56641787063c051b5182fc00956 [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" "0d77ef3fb1da222ee54a2755e6e38aedf972a56641787063c051b5182fc00956", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling arc-swap v0.4.7 [INFO] [stderr] Compiling futures-io v0.3.5 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling gimli v0.22.0 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling zeroize v1.1.0 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling object v0.20.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling rusoto v0.24.2 [INFO] [stderr] Compiling tokio-sync v0.1.8 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling futures-task v0.3.5 [INFO] [stderr] Compiling standback v0.2.9 [INFO] [stderr] Compiling time v0.2.16 [INFO] [stderr] Compiling tracing-core v0.1.11 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling sharded-slab v0.0.9 [INFO] [stderr] Compiling miniz_oxide v0.4.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling net2 v0.2.34 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling socket2 v0.3.12 [INFO] [stderr] Compiling dirs-sys v0.3.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling hashbrown v0.8.1 [INFO] [stderr] Compiling indexmap v1.5.0 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling want v0.2.0 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling syn v1.0.35 [INFO] [stderr] Compiling colored v1.9.3 [INFO] [stderr] Compiling dirs v2.0.2 [INFO] [stderr] Compiling tracing-subscriber v0.2.9 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling hyper v0.12.35 [INFO] [stderr] Compiling rusoto_core v0.44.0 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling tokio-executor v0.1.10 [INFO] [stderr] Compiling crossbeam-queue v0.2.3 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling tokio-current-thread v0.1.7 [INFO] [stderr] Compiling tokio-timer v0.2.13 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling tokio-io v0.1.13 [INFO] [stderr] Compiling http v0.1.21 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling tokio-buf v0.1.1 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling tokio-threadpool v0.1.18 [INFO] [stderr] Compiling addr2line v0.13.0 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling crypto-mac v0.7.0 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling tokio-codec v0.1.2 [INFO] [stderr] Compiling tokio-reactor v0.1.12 [INFO] [stderr] Compiling hmac v0.7.1 [INFO] [stderr] Compiling backtrace v0.3.50 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling tokio-fs v0.1.7 [INFO] [stderr] Compiling tokio-tcp v0.1.4 [INFO] [stderr] Compiling tokio-uds v0.2.7 [INFO] [stderr] Compiling tokio-udp v0.1.6 [INFO] [stderr] Compiling tokio v0.1.22 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling http-body v0.1.0 [INFO] [stderr] Compiling lambda_runtime_errors_derive v0.1.1 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling pin-project-internal v0.4.22 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.9 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.36 [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#a9de2fcb) [INFO] [stderr] Compiling tokio v0.2.22 [INFO] [stderr] Compiling async-stream v0.2.1 [INFO] [stderr] Compiling time-macros v0.1.0 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling tracing v0.1.17 [INFO] [stderr] Compiling tracing-error v0.1.2 [INFO] [stderr] Compiling pin-project v0.4.22 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling h2 v0.2.6 [INFO] [stderr] Compiling futures-executor v0.3.5 [INFO] [stderr] Compiling futures v0.3.5 [INFO] [stderr] Compiling serde_json v1.0.56 [INFO] [stderr] Compiling chrono v0.4.13 [INFO] [stderr] Compiling hyper v0.13.7 [INFO] [stderr] Compiling simple_logger v1.6.0 [INFO] [stderr] Compiling lambda_runtime_errors v0.1.1 [INFO] [stderr] Compiling lambda_runtime_client v0.2.2 [INFO] [stderr] Compiling rusoto_credential v0.44.0 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling lambda v0.1.0 (https://github.com/awslabs/aws-lambda-rust-runtime/?branch=master#a9de2fcb) [INFO] [stderr] Compiling rusoto_signature v0.44.0 [INFO] [stderr] Compiling rusoto_dynamodb v0.44.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:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[lambda] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rusoto_core::Region` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rusoto_core::Region; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AttributeValue`, `DynamoDbClient`, `DynamoDb`, `PutItemInput` [INFO] [stdout] --> src/main.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use rusoto_dynamodb::{AttributeValue, DynamoDb, DynamoDbClient, PutItemInput}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [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 | | s3_object [INFO] [stdout] 75 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/main.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [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" "0d77ef3fb1da222ee54a2755e6e38aedf972a56641787063c051b5182fc00956", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d77ef3fb1da222ee54a2755e6e38aedf972a56641787063c051b5182fc00956", kill_on_drop: false }` [INFO] [stdout] 0d77ef3fb1da222ee54a2755e6e38aedf972a56641787063c051b5182fc00956