[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] checking bdashore3/ryzen-giveaway against master#36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923 for pr-81863 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbdashore3%2Fryzen-giveaway" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bdashore3/ryzen-giveaway on toolchain 36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-7/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" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "fetch" "--locked" "--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-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "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] 53e81194fef417592434e216959ea90b8b4ef1616368030b80c604d907b64fa6 [INFO] running `Command { std: "docker" "start" "-a" "53e81194fef417592434e216959ea90b8b4ef1616368030b80c604d907b64fa6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "53e81194fef417592434e216959ea90b8b4ef1616368030b80c604d907b64fa6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53e81194fef417592434e216959ea90b8b4ef1616368030b80c604d907b64fa6", kill_on_drop: false }` [INFO] [stdout] 53e81194fef417592434e216959ea90b8b4ef1616368030b80c604d907b64fa6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "check" "--frozen" "--all" "--all-targets" "--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] d4cca3b169a34068be51bd57807d181da5a8a5e78ea538ba747e78970f9e4236 [INFO] running `Command { std: "docker" "start" "-a" "d4cca3b169a34068be51bd57807d181da5a8a5e78ea538ba747e78970f9e4236", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling cc v1.0.63 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Checking futures-core v0.3.8 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking pin-project-lite v0.1.11 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling native-tls v0.2.6 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling lexical-core v0.7.4 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling getrandom v0.2.0 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking regex-syntax v0.6.21 [INFO] [stderr] Checking cpuid-bool v0.1.2 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling funty v1.0.1 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling tap v1.0.0 [INFO] [stderr] Compiling smallvec v1.5.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling subtle v2.3.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling encoding_rs v0.8.26 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Checking dtoa v0.4.6 [INFO] [stderr] Compiling whoami v0.9.0 [INFO] [stderr] Compiling hex v0.4.2 [INFO] [stderr] Checking linked-hash-map v0.5.3 [INFO] [stderr] Compiling unicode-segmentation v1.7.0 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Compiling serenity v0.9.1 (https://github.com/serenity-rs/serenity?branch=current#c38459be) [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Checking typemap_rev v0.1.4 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking sharded-slab v0.1.0 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking input_buffer v0.3.1 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking tinyvec v1.0.1 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling nom v6.0.0 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling lock_api v0.4.2 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling ring v0.16.16 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking tracing-log v0.1.1 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking net2 v0.2.35 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking socket2 v0.3.16 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking parking_lot_core v0.8.0 [INFO] [stderr] Checking bitvec v0.19.4 [INFO] [stderr] Checking regex v1.4.2 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking ahash v0.5.8 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Compiling crossbeam-queue v0.2.3 [INFO] [stderr] Compiling crossbeam-channel v0.4.4 [INFO] [stderr] Checking flate2 v1.0.19 [INFO] [stderr] Checking atoi v0.3.3 [INFO] [stderr] Checking matchers v0.0.1 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.9.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking hmac v0.9.0 [INFO] [stderr] Checking sha-1 v0.9.2 [INFO] [stderr] Checking md-5 v0.9.1 [INFO] [stderr] Checking sha2 v0.9.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking uuid v0.8.1 [INFO] [stderr] Checking webpki v0.21.3 [INFO] [stderr] Checking sct v0.6.0 [INFO] [stderr] Checking rustls v0.18.1 [INFO] [stderr] Checking webpki-roots v0.19.0 [INFO] [stderr] Checking webpki-roots v0.20.0 [INFO] [stderr] Checking sqlformat v0.1.4 [INFO] [stderr] Checking tungstenite v0.11.1 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling tracing-attributes v0.1.11 [INFO] [stderr] Compiling thiserror-impl v1.0.22 [INFO] [stderr] Compiling command_attr v0.3.1 (https://github.com/serenity-rs/serenity?branch=current#c38459be) [INFO] [stderr] Compiling async-trait v0.1.41 [INFO] [stderr] Checking tokio v0.2.23 [INFO] [stderr] Compiling thiserror v1.0.22 [INFO] [stderr] Checking tracing v0.1.21 [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stderr] Checking tracing-futures v0.2.4 [INFO] [stderr] Checking pin-project v1.0.2 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-native-tls v0.1.0 [INFO] [stderr] Checking tokio-rustls v0.14.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Checking sqlx-rt v0.2.0 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking futures-executor v0.3.8 [INFO] [stderr] Checking async-tungstenite v0.9.3 [INFO] [stderr] Checking futures v0.3.8 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Checking tracing-serde v0.1.2 [INFO] [stderr] Checking sqlx-core v0.4.0 [INFO] [stderr] Checking tracing-subscriber v0.2.15 [INFO] [stderr] Checking hyper v0.13.9 [INFO] [stderr] Checking hyper-tls v0.4.3 [INFO] [stderr] Checking hyper-rustls v0.21.0 [INFO] [stderr] Checking reqwest v0.10.8 [INFO] [stderr] Compiling sqlx-macros v0.4.0 [INFO] [stderr] Checking sqlx v0.4.1 [INFO] [stderr] Checking 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] 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] 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[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] [stderr] warning: build failed, waiting for other jobs to finish... [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: build failed [INFO] running `Command { std: "docker" "inspect" "d4cca3b169a34068be51bd57807d181da5a8a5e78ea538ba747e78970f9e4236", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4cca3b169a34068be51bd57807d181da5a8a5e78ea538ba747e78970f9e4236", kill_on_drop: false }` [INFO] [stdout] d4cca3b169a34068be51bd57807d181da5a8a5e78ea538ba747e78970f9e4236