[INFO] cloning repository https://github.com/bdashore3/ryzen-giveaway [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bdashore3/ryzen-giveaway" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbdashore3%2Fryzen-giveaway", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbdashore3%2Fryzen-giveaway'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e41768c8c3be55dd56318b98e002a8b54b53c2a2 [INFO] testing bdashore3/ryzen-giveaway against beta-2021-01-01 for beta-1.50-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbdashore3%2Fryzen-giveaway" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bdashore3/ryzen-giveaway on toolchain beta-2021-01-01 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bdashore3/ryzen-giveaway [INFO] finished tweaking git repo https://github.com/bdashore3/ryzen-giveaway [INFO] tweaked toml for git repo https://github.com/bdashore3/ryzen-giveaway written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/bdashore3/ryzen-giveaway already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/serenity-rs/serenity` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tracing-serde v0.1.2 [INFO] [stderr] Downloaded nom v6.0.0 [INFO] [stderr] Downloaded ahash v0.5.8 [INFO] [stderr] Downloaded sqlformat v0.1.4 [INFO] [stderr] Downloaded sharded-slab v0.1.0 [INFO] [stderr] Downloaded cc v1.0.63 [INFO] [stderr] Downloaded generator v0.6.23 [INFO] [stderr] Downloaded loom v0.3.6 [INFO] [stderr] Downloaded tracing-subscriber v0.2.15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "+beta-2021-01-01" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 578ed1e885f3def11956c7349f793318f6252f2a830831103c97308d0c359d7e [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" "578ed1e885f3def11956c7349f793318f6252f2a830831103c97308d0c359d7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "578ed1e885f3def11956c7349f793318f6252f2a830831103c97308d0c359d7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "578ed1e885f3def11956c7349f793318f6252f2a830831103c97308d0c359d7e", kill_on_drop: false }` [INFO] [stdout] 578ed1e885f3def11956c7349f793318f6252f2a830831103c97308d0c359d7e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "+beta-2021-01-01" "build" "--frozen" "--message-format=json", 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] b9607b0d36f37b916db7badb59cc3bb3676f504aaf961f183f0c80c5d156882c [INFO] running `Command { std: "docker" "start" "-a" "b9607b0d36f37b916db7badb59cc3bb3676f504aaf961f183f0c80c5d156882c", 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling cc v1.0.63 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling getrandom v0.2.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling unicode-segmentation v1.7.0 [INFO] [stderr] Compiling whoami v0.9.0 [INFO] [stderr] Compiling serenity v0.9.1 (https://github.com/serenity-rs/serenity?branch=current#c38459be) [INFO] [stderr] Compiling typemap_rev v0.1.4 [INFO] [stderr] Compiling nom v6.0.0 [INFO] [stderr] Compiling unicode-normalization v0.1.16 [INFO] [stderr] Compiling net2 v0.2.35 [INFO] [stderr] Compiling socket2 v0.3.16 [INFO] [stderr] Compiling regex-automata v0.1.9 [INFO] [stderr] Compiling atoi v0.3.3 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling crypto-mac v0.9.1 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling flate2 v1.0.19 [INFO] [stderr] Compiling command_attr v0.3.1 (https://github.com/serenity-rs/serenity?branch=current#c38459be) [INFO] [stderr] Compiling md-5 v0.9.1 [INFO] [stderr] Compiling hmac v0.9.0 [INFO] [stderr] Compiling tracing v0.1.21 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling ahash v0.5.8 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling ring v0.16.16 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling matchers v0.0.1 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling tokio v0.2.23 [INFO] [stderr] Compiling url v2.2.0 [INFO] [stderr] Compiling pin-project v1.0.2 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling native-tls v0.2.6 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling sqlformat v0.1.4 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling tracing-serde v0.1.2 [INFO] [stderr] Compiling webpki v0.21.3 [INFO] [stderr] Compiling sct v0.6.0 [INFO] [stderr] Compiling rustls v0.18.1 [INFO] [stderr] Compiling webpki-roots v0.20.0 [INFO] [stderr] Compiling webpki-roots v0.19.0 [INFO] [stderr] Compiling tungstenite v0.11.1 [INFO] [stderr] Compiling tracing-subscriber v0.2.15 [INFO] [stderr] Compiling tokio-native-tls v0.1.0 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling futures-executor v0.3.8 [INFO] [stderr] Compiling sqlx-rt v0.2.0 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling sqlx-core v0.4.0 [INFO] [stderr] Compiling futures v0.3.8 [INFO] [stderr] Compiling tokio-rustls v0.14.1 [INFO] [stderr] Compiling async-tungstenite v0.9.3 [INFO] [stderr] Compiling hyper v0.13.9 [INFO] [stderr] Compiling sqlx-macros v0.4.0 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling hyper-rustls v0.21.0 [INFO] [stderr] Compiling reqwest v0.10.8 [INFO] [stderr] Compiling sqlx v0.4.1 [INFO] [stderr] Compiling kinggiveaway v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: `DATABASE_URL` must be set, or `cargo sqlx prepare` must have been run and sqlx-data.json must exist, to use query macros [INFO] [stdout] --> src/commands/giveaway.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | / sqlx::query!( [INFO] [stdout] 44 | | "INSERT INTO info VALUES($1, $2, $3, $4)", [INFO] [stdout] 45 | | giveaway_msg.id.0 as i64, [INFO] [stdout] 46 | | giveaway_msg.channel_id.0 as i64, [INFO] [stdout] 47 | | (lock_delay + current_time) as i64, [INFO] [stdout] 48 | | (end_delay + current_time) as i64 [INFO] [stdout] 49 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set, or `cargo sqlx prepare` must have been run and sqlx-data.json must exist, to use query macros [INFO] [stdout] --> src/helpers/database_helper.rs:31:25 [INFO] [stdout] | [INFO] [stdout] 31 | let giveaway_info = sqlx::query!("SELECT message_id, channel_id, pre_expiry, expiry FROM info") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set, or `cargo sqlx prepare` must have been run and sqlx-data.json must exist, to use query macros [INFO] [stdout] --> src/helpers/giveaway_helper.rs:27:25 [INFO] [stdout] | [INFO] [stdout] 27 | let giveaway_data = sqlx::query!( [INFO] [stdout] | _________________________^ [INFO] [stdout] 28 | | "SELECT * FROM entries WHERE message_id = $1", [INFO] [stdout] 29 | | msg.id.0 as i64 [INFO] [stdout] 30 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set, or `cargo sqlx prepare` must have been run and sqlx-data.json must exist, to use query macros [INFO] [stdout] --> src/helpers/giveaway_helper.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | sqlx::query!("DELETE FROM info WHERE message_id = $1", msg.id.0 as i64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set, or `cargo sqlx prepare` must have been run and sqlx-data.json must exist, to use query macros [INFO] [stdout] --> src/helpers/giveaway_helper.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let check = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 79 | | "SELECT EXISTS(SELECT 1 FROM entries WHERE user_id = $1)", [INFO] [stdout] 80 | | user_id.0 as i64 [INFO] [stdout] 81 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set, or `cargo sqlx prepare` must have been run and sqlx-data.json must exist, to use query macros [INFO] [stdout] --> src/helpers/giveaway_helper.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | sqlx::query!("DELETE FROM entries WHERE user_id = $1", user_id.0 as i64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set, or `cargo sqlx prepare` must have been run and sqlx-data.json must exist, to use query macros [INFO] [stdout] --> src/reactions/giveaway.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | let giveaway_data = sqlx::query!( [INFO] [stdout] | _________________________^ [INFO] [stdout] 18 | | "SELECT pre_expiry FROM info WHERE message_id = $1", [INFO] [stdout] 19 | | reaction.message_id.0 as i64 [INFO] [stdout] 20 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set, or `cargo sqlx prepare` must have been run and sqlx-data.json must exist, to use query macros [INFO] [stdout] --> src/reactions/giveaway.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | / sqlx::query!( [INFO] [stdout] 48 | | "INSERT INTO entries VALUES($1, $2, $3)", [INFO] [stdout] 49 | | Uuid::new_v4(), [INFO] [stdout] 50 | | user_id.0 as i64, [INFO] [stdout] 51 | | reaction.message_id.0 as i64 [INFO] [stdout] 52 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set, or `cargo sqlx prepare` must have been run and sqlx-data.json must exist, to use query macros [INFO] [stdout] --> src/reactions/giveaway.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / sqlx::query!( [INFO] [stdout] 58 | | "INSERT INTO entries VALUES($1, $2, $3)", [INFO] [stdout] 59 | | Uuid::new_v4(), [INFO] [stdout] 60 | | user_id.0 as i64, [INFO] [stdout] 61 | | reaction.message_id.0 as i64 [INFO] [stdout] 62 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/reactions/giveaway.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/helpers/giveaway_helper.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let val = rng.gen_range(0, giveaway_data.len()); [INFO] [stdout] | ^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/helpers/giveaway_helper.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | / sqlx::query!("DELETE FROM info WHERE message_id = $1", msg.id.0 as i64) [INFO] [stdout] 63 | | .execute(&pool) [INFO] [stdout] 64 | | .await?; [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0698`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kinggiveaway` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "b9607b0d36f37b916db7badb59cc3bb3676f504aaf961f183f0c80c5d156882c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9607b0d36f37b916db7badb59cc3bb3676f504aaf961f183f0c80c5d156882c", kill_on_drop: false }` [INFO] [stdout] b9607b0d36f37b916db7badb59cc3bb3676f504aaf961f183f0c80c5d156882c