[INFO] cloning repository https://github.com/FoxLisk/RetroSpeedBot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FoxLisk/RetroSpeedBot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFoxLisk%2FRetroSpeedBot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFoxLisk%2FRetroSpeedBot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 92936bb160e099920f03d68e6f1ed609a567c868 [INFO] checking FoxLisk/RetroSpeedBot against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFoxLisk%2FRetroSpeedBot" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/FoxLisk/RetroSpeedBot on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/FoxLisk/RetroSpeedBot [INFO] finished tweaking git repo https://github.com/FoxLisk/RetroSpeedBot [INFO] tweaked toml for git repo https://github.com/FoxLisk/RetroSpeedBot written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/FoxLisk/RetroSpeedBot already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded vcpkg v0.2.12 [INFO] [stderr] Downloaded ahash v0.7.2 [INFO] [stderr] Downloaded async-tungstenite v0.11.0 [INFO] [stderr] Downloaded ahash v0.4.7 [INFO] [stderr] Downloaded sqlx-core v0.5.5 [INFO] [stderr] Downloaded radium v0.5.3 [INFO] [stderr] Downloaded derive_builder_core v0.10.2 [INFO] [stderr] Downloaded darling v0.12.4 [INFO] [stderr] Downloaded custom_error v1.9.2 [INFO] [stderr] Downloaded darling_core v0.12.4 [INFO] [stderr] Downloaded proc-quote v0.4.0 [INFO] [stderr] Downloaded cpufeatures v0.1.3 [INFO] [stderr] Downloaded tap v1.0.1 [INFO] [stderr] Downloaded time v0.1.43 [INFO] [stderr] Downloaded unicode_categories v0.1.1 [INFO] [stderr] Downloaded security-framework-sys v2.2.0 [INFO] [stderr] Downloaded parse-zoneinfo v0.3.0 [INFO] [stderr] Downloaded bitvec v0.19.5 [INFO] [stderr] Downloaded hashlink v0.7.0 [INFO] [stderr] Downloaded darling_macro v0.12.4 [INFO] [stderr] Downloaded twilight-command-parser v0.3.0 [INFO] [stderr] Downloaded lru v0.6.5 [INFO] [stderr] Downloaded tokio v1.6.0 [INFO] [stderr] Downloaded input_buffer v0.3.1 [INFO] [stderr] Downloaded atoi v0.4.0 [INFO] [stderr] Downloaded chrono-tz v0.5.3 [INFO] [stderr] Downloaded libsqlite3-sys v0.22.2 [INFO] [stderr] Downloaded sqlformat v0.1.6 [INFO] [stderr] Downloaded ordered-float v2.2.0 [INFO] [stderr] Downloaded security-framework v2.2.0 [INFO] [stderr] Downloaded hyper v0.14.7 [INFO] [stderr] Downloaded whoami v1.1.2 [INFO] [stderr] Downloaded base64 v0.12.3 [INFO] [stderr] Downloaded tungstenite v0.11.1 [INFO] [stderr] Downloaded tracing-attributes v0.1.15 [INFO] [stderr] Downloaded crossbeam-queue v0.3.1 [INFO] [stderr] Downloaded sha2 v0.9.5 [INFO] [stderr] Downloaded wyz v0.2.0 [INFO] [stderr] Downloaded funty v1.1.0 [INFO] [stderr] Downloaded stringprep v0.1.2 [INFO] [stderr] Downloaded twilight-gateway-queue v0.3.0 [INFO] [stderr] Downloaded httpdate v1.0.0 [INFO] [stderr] Downloaded serde_repr v0.1.7 [INFO] [stderr] Downloaded sqlx-macros v0.5.5 [INFO] [stderr] Downloaded derive_builder_macro v0.10.2 [INFO] [stderr] Downloaded derive_builder v0.10.2 [INFO] [stderr] Downloaded proc-quote-impl v0.3.2 [INFO] [stderr] Downloaded build_const v0.2.2 [INFO] [stderr] Downloaded sqlx v0.5.5 [INFO] [stderr] Downloaded sqlx-rt v0.5.5 [INFO] [stderr] Downloaded serde-value v0.7.0 [INFO] [stderr] Downloaded twilight-cache-inmemory v0.3.6 [INFO] [stderr] Downloaded twilight-gateway v0.3.4 [INFO] [stderr] Downloaded twilight-model v0.3.7 [INFO] [stderr] Downloaded twilight-http v0.3.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 174a3719544cd6e526378f4c24ceb657b8d6b715365c53d08297663b7948a846 [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" "174a3719544cd6e526378f4c24ceb657b8d6b715365c53d08297663b7948a846", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "174a3719544cd6e526378f4c24ceb657b8d6b715365c53d08297663b7948a846", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "174a3719544cd6e526378f4c24ceb657b8d6b715365c53d08297663b7948a846", kill_on_drop: false }` [INFO] [stdout] 174a3719544cd6e526378f4c24ceb657b8d6b715365c53d08297663b7948a846 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 13ff87845ff45b2bda9cb340dc8f0fdf7f99bab7409145c3e54ca78bf0d21f5b [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" "13ff87845ff45b2bda9cb340dc8f0fdf7f99bab7409145c3e54ca78bf0d21f5b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking futures-sink v0.3.15 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Checking slab v0.4.3 [INFO] [stderr] Checking futures-io v0.3.15 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Compiling cpufeatures v0.1.3 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking futures-timer v3.0.2 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking custom_error v1.9.2 [INFO] [stderr] Compiling instant v0.1.9 [INFO] [stderr] Checking tracing-core v0.1.18 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling ahash v0.7.2 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Checking tinyvec v1.2.0 [INFO] [stderr] Compiling tokio v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling crossbeam-utils v0.8.4 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Checking http v0.2.4 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking lru v0.6.5 [INFO] [stderr] Checking input_buffer v0.3.1 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling libsqlite3-sys v0.22.2 [INFO] [stderr] Compiling libz-sys v1.1.3 [INFO] [stderr] Compiling crc v1.8.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking unicode-normalization v0.1.17 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking mio v0.7.11 [INFO] [stderr] Checking socket2 v0.4.0 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Checking twilight-command-parser v0.3.0 [INFO] [stderr] Checking http-body v0.4.2 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.1 [INFO] [stderr] Checking dashmap v4.0.2 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling proc-quote-impl v0.3.2 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking ordered-float v2.2.0 [INFO] [stderr] Checking atoi v0.4.0 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking flate2 v1.0.20 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking sha-1 v0.9.6 [INFO] [stderr] Checking sha2 v0.9.5 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking env_logger v0.8.3 [INFO] [stderr] Checking hashlink v0.7.0 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Checking ct-logs v0.8.0 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Checking webpki-roots v0.20.0 [INFO] [stderr] Checking tungstenite v0.11.1 [INFO] [stderr] Checking sqlformat v0.1.6 [INFO] [stderr] Compiling chrono-tz v0.5.3 [INFO] [stderr] Compiling darling_core v0.12.4 [INFO] [stderr] Compiling proc-quote v0.4.0 [INFO] [stderr] Checking rustls-native-certs v0.5.0 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling tracing-attributes v0.1.15 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling serde_repr v0.1.7 [INFO] [stderr] Compiling darling_macro v0.12.4 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Checking tracing v0.1.26 [INFO] [stderr] Compiling darling v0.12.4 [INFO] [stderr] Checking pin-project v1.0.7 [INFO] [stderr] Compiling derive_builder_core v0.10.2 [INFO] [stderr] Compiling derive_builder_macro v0.10.2 [INFO] [stderr] Checking futures-executor v0.3.15 [INFO] [stderr] Compiling futures v0.3.15 [INFO] [stderr] Checking serde v1.0.126 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking tokio-util v0.6.7 [INFO] [stderr] Checking tokio-stream v0.1.6 [INFO] [stderr] Checking derive_builder v0.10.2 [INFO] [stderr] Checking sqlx-rt v0.5.5 [INFO] [stderr] Checking async-tungstenite v0.11.0 [INFO] [stderr] Checking h2 v0.3.3 [INFO] [stderr] Checking sqlx-core v0.5.5 [INFO] [stderr] Checking serde-value v0.7.0 [INFO] [stderr] Checking twilight-model v0.3.7 [INFO] [stderr] Checking hyper v0.14.7 [INFO] [stderr] Compiling sqlx-macros v0.5.5 [INFO] [stderr] Checking hyper-rustls v0.22.1 [INFO] [stderr] Compiling sqlx v0.5.5 [INFO] [stderr] Compiling procm v0.1.0 (/opt/rustwide/workdir/procm) [INFO] [stderr] Checking twilight-http v0.3.9 [INFO] [stderr] Checking twilight-cache-inmemory v0.3.6 [INFO] [stderr] Checking twilight-gateway-queue v0.3.0 [INFO] [stderr] Checking twilight-gateway v0.3.4 [INFO] [stderr] Checking retro_speed_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] "#[derive(sqlx :: FromRow)] #[derive(Debug, PartialEq)] pub(crate) struct Game\n{\n pub(crate) id : i64, pub(crate) name : String, pub(crate) name_pretty :\n String,\n} impl Game\n{\n pub(crate) async fn save(& self, pool : & SqlitePool) -> sqlx :: Result <\n () >\n {\n let q = sqlx :: query!\n [\" UPDATE Game SET id = ?, name = ?, name_pretty = ? WHERE id = ?\",\n self.id, self.name, self.name_pretty, self.id] ; debug!\n (\"Updating {:?}\", self) ; match q.execute(pool).await\n { Ok(_) => Ok(()), Err(e) => Err(e), }\n } pub(crate) async fn get_by_id(id : i64, pool : & SqlitePool) -> Option <\n Self >\n {\n let q = sqlx :: query_as!\n (Game, \"SELECT * FROM Game WHERE id = ?\", id) ; match\n q.fetch_one(pool).await\n {\n Ok(r) => Some(r), Err(e) =>\n { warn! (\"Error fetching by id: {}\", e) ; None }\n }\n }\n}" [INFO] [stdout] error: error returned from database: unable to open database file [INFO] [stdout] --> src/models.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | / model! { [INFO] [stdout] 64 | | pub(crate) struct Game { [INFO] [stdout] 65 | | pub(crate) id: i64, [INFO] [stdout] 66 | | pub(crate) name: String, [INFO] [stdout] 67 | | pub(crate) name_pretty: String, [INFO] [stdout] 68 | | } [INFO] [stdout] 69 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error returned from database: unable to open database file [INFO] [stdout] --> src/models.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | / model! { [INFO] [stdout] 64 | | pub(crate) struct Game { [INFO] [stdout] 65 | | pub(crate) id: i64, [INFO] [stdout] 66 | | pub(crate) name: String, [INFO] [stdout] 67 | | pub(crate) name_pretty: String, [INFO] [stdout] 68 | | } [INFO] [stdout] 69 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] "#[derive(sqlx :: FromRow)] #[derive(Debug, PartialEq)] pub(crate) struct\nCategory\n{\n pub(crate) id : i64, pub(crate) game_id : i64, pub(crate) name : String,\n pub(crate) name_pretty : String,\n} impl Category\n{\n pub(crate) async fn save(& self, pool : & SqlitePool) -> sqlx :: Result <\n () >\n {\n let q = sqlx :: query!\n [\" UPDATE Category SET id = ?, game_id = ?, name = ?, name_pretty = ? WHERE id = ?\",\n self.id, self.game_id, self.name, self.name_pretty, self.id] ; debug!\n (\"Updating {:?}\", self) ; match q.execute(pool).await\n { Ok(_) => Ok(()), Err(e) => Err(e), }\n } pub(crate) async fn get_by_id(id : i64, pool : & SqlitePool) -> Option <\n Self >\n {\n let q = sqlx :: query_as!\n (Category, \"SELECT * FROM Category WHERE id = ?\", id) ; match\n q.fetch_one(pool).await\n {\n Ok(r) => Some(r), Err(e) =>\n { warn! (\"Error fetching by id: {}\", e) ; None }\n }\n }\n}" [INFO] [stdout] error: error returned from database: unable to open database file [INFO] [stdout] --> src/models.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | / model! { [INFO] [stdout] 72 | | pub(crate) struct Category { [INFO] [stdout] 73 | | pub(crate) id: i64, [INFO] [stdout] 74 | | pub(crate) game_id: i64, [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] 78 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error returned from database: unable to open database file [INFO] [stdout] --> src/models.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | / model! { [INFO] [stdout] 72 | | pub(crate) struct Category { [INFO] [stdout] 73 | | pub(crate) id: i64, [INFO] [stdout] 74 | | pub(crate) game_id: i64, [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] 78 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] "#[derive(sqlx :: FromRow)] #[derive(Debug, PartialEq)] pub(crate) struct Race\n{\n pub(crate) id : i64, pub(crate) game_id : i64, pub(crate) category_id :\n i64, #[doc = \" use get/set_state() functions\"] pub(crate) state : String,\n pub(crate) occurs : i64,\n #[doc = \" Use get/set_scheduling_message_id() functions\"] pub(crate)\n scheduling_message_id : Option < String >,\n #[doc = \" use get/set_active_message_id() functions\"] pub(crate)\n active_message_id : Option < String >,\n} impl Race\n{\n pub(crate) async fn save(& self, pool : & SqlitePool) -> sqlx :: Result <\n () >\n {\n let q = sqlx :: query!\n [\" UPDATE Race SET id = ?, game_id = ?, category_id = ?, state = ?, occurs = ?, scheduling_message_id = ?, active_message_id = ? WHERE id = ?\",\n self.id, self.game_id, self.category_id, self.state, self.occurs,\n self.scheduling_message_id, self.active_message_id, self.id] ; debug!\n (\"Updating {:?}\", self) ; match q.execute(pool).await\n { Ok(_) => Ok(()), Err(e) => Err(e), }\n } pub(crate) async fn get_by_id(id : i64, pool : & SqlitePool) -> Option <\n Self >\n {\n let q = sqlx :: query_as!\n (Race, \"SELECT * FROM Race WHERE id = ?\", id) ; match\n q.fetch_one(pool).await\n {\n Ok(r) => Some(r), Err(e) =>\n { warn! (\"Error fetching by id: {}\", e) ; None }\n }\n }\n}" [INFO] [stdout] error: error returned from database: unable to open database file [INFO] [stdout] --> src/models.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | / model! { [INFO] [stdout] 81 | | pub(crate) struct Race { [INFO] [stdout] 82 | | pub(crate) id: i64, [INFO] [stdout] 83 | | // N.B. game_id is not strictly necessary in this struct [INFO] [stdout] ... | [INFO] [stdout] 99 | | } [INFO] [stdout] 100 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error returned from database: unable to open database file [INFO] [stdout] --> src/models.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | / model! { [INFO] [stdout] 81 | | pub(crate) struct Race { [INFO] [stdout] 82 | | pub(crate) id: i64, [INFO] [stdout] 83 | | // N.B. game_id is not strictly necessary in this struct [INFO] [stdout] ... | [INFO] [stdout] 99 | | } [INFO] [stdout] 100 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::Race` [INFO] [stdout] --> src/models.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | use crate::models::Race; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Local`, `Timelike` [INFO] [stdout] --> src/models.rs:177:18 [INFO] [stdout] | [INFO] [stdout] 177 | use chrono::{Local, Timelike}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] "#[derive(sqlx :: FromRow)] #[derive(Debug, PartialEq)] pub(crate) struct Game\n{\n pub(crate) id : i64, pub(crate) name : String, pub(crate) name_pretty :\n String,\n} impl Game\n{\n pub(crate) async fn save(& self, pool : & SqlitePool) -> sqlx :: Result <\n () >\n {\n let q = sqlx :: query!\n [\" UPDATE Game SET id = ?, name = ?, name_pretty = ? WHERE id = ?\",\n self.id, self.name, self.name_pretty, self.id] ; debug!\n (\"Updating {:?}\", self) ; match q.execute(pool).await\n { Ok(_) => Ok(()), Err(e) => Err(e), }\n } pub(crate) async fn get_by_id(id : i64, pool : & SqlitePool) -> Option <\n Self >\n {\n let q = sqlx :: query_as!\n (Game, \"SELECT * FROM Game WHERE id = ?\", id) ; match\n q.fetch_one(pool).await\n {\n Ok(r) => Some(r), Err(e) =>\n { warn! (\"Error fetching by id: {}\", e) ; None }\n }\n }\n}" [INFO] [stdout] error: error returned from database: unable to open database file [INFO] [stdout] --> src/models.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | / model! { [INFO] [stdout] 64 | | pub(crate) struct Game { [INFO] [stdout] 65 | | pub(crate) id: i64, [INFO] [stdout] 66 | | pub(crate) name: String, [INFO] [stdout] 67 | | pub(crate) name_pretty: String, [INFO] [stdout] 68 | | } [INFO] [stdout] 69 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error returned from database: unable to open database file [INFO] [stdout] --> src/models.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | / model! { [INFO] [stdout] 64 | | pub(crate) struct Game { [INFO] [stdout] 65 | | pub(crate) id: i64, [INFO] [stdout] 66 | | pub(crate) name: String, [INFO] [stdout] 67 | | pub(crate) name_pretty: String, [INFO] [stdout] 68 | | } [INFO] [stdout] 69 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] "#[derive(sqlx :: FromRow)] #[derive(Debug, PartialEq)] pub(crate) struct\nCategory\n{\n pub(crate) id : i64, pub(crate) game_id : i64, pub(crate) name : String,\n pub(crate) name_pretty : String,\n} impl Category\n{\n pub(crate) async fn save(& self, pool : & SqlitePool) -> sqlx :: Result <\n () >\n {\n let q = sqlx :: query!\n [\" UPDATE Category SET id = ?, game_id = ?, name = ?, name_pretty = ? WHERE id = ?\",\n self.id, self.game_id, self.name, self.name_pretty, self.id] ; debug!\n (\"Updating {:?}\", self) ; match q.execute(pool).await\n { Ok(_) => Ok(()), Err(e) => Err(e), }\n } pub(crate) async fn get_by_id(id : i64, pool : & SqlitePool) -> Option <\n Self >\n {\n let q = sqlx :: query_as!\n (Category, \"SELECT * FROM Category WHERE id = ?\", id) ; match\n q.fetch_one(pool).await\n {\n Ok(r) => Some(r), Err(e) =>\n { warn! (\"Error fetching by id: {}\", e) ; None }\n }\n }\n}" [INFO] [stdout] error: error returned from database: unable to open database file [INFO] [stdout] --> src/models.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | / model! { [INFO] [stdout] 72 | | pub(crate) struct Category { [INFO] [stdout] 73 | | pub(crate) id: i64, [INFO] [stdout] 74 | | pub(crate) game_id: i64, [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] 78 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error returned from database: unable to open database file [INFO] [stdout] --> src/models.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | / model! { [INFO] [stdout] 72 | | pub(crate) struct Category { [INFO] [stdout] 73 | | pub(crate) id: i64, [INFO] [stdout] 74 | | pub(crate) game_id: i64, [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] 78 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] "#[derive(sqlx :: FromRow)] #[derive(Debug, PartialEq)] pub(crate) struct Race\n{\n pub(crate) id : i64, pub(crate) game_id : i64, pub(crate) category_id :\n i64, #[doc = \" use get/set_state() functions\"] pub(crate) state : String,\n pub(crate) occurs : i64,\n #[doc = \" Use get/set_scheduling_message_id() functions\"] pub(crate)\n scheduling_message_id : Option < String >,\n #[doc = \" use get/set_active_message_id() functions\"] pub(crate)\n active_message_id : Option < String >,\n} impl Race\n{\n pub(crate) async fn save(& self, pool : & SqlitePool) -> sqlx :: Result <\n () >\n {\n let q = sqlx :: query!\n [\" UPDATE Race SET id = ?, game_id = ?, category_id = ?, state = ?, occurs = ?, scheduling_message_id = ?, active_message_id = ? WHERE id = ?\",\n self.id, self.game_id, self.category_id, self.state, self.occurs,\n self.scheduling_message_id, self.active_message_id, self.id] ; debug!\n (\"Updating {:?}\", self) ; match q.execute(pool).await\n { Ok(_) => Ok(()), Err(e) => Err(e), }\n } pub(crate) async fn get_by_id(id : i64, pool : & SqlitePool) -> Option <\n Self >\n {\n let q = sqlx :: query_as!\n (Race, \"SELECT * FROM Race WHERE id = ?\", id) ; match\n q.fetch_one(pool).await\n {\n Ok(r) => Some(r), Err(e) =>\n { warn! (\"Error fetching by id: {}\", e) ; None }\n }\n }\n}" [INFO] [stdout] error: error returned from database: unable to open database file [INFO] [stdout] --> src/models.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | / model! { [INFO] [stdout] 81 | | pub(crate) struct Race { [INFO] [stdout] 82 | | pub(crate) id: i64, [INFO] [stdout] 83 | | // N.B. game_id is not strictly necessary in this struct [INFO] [stdout] ... | [INFO] [stdout] 99 | | } [INFO] [stdout] 100 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error returned from database: unable to open database file [INFO] [stdout] --> src/models.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | / model! { [INFO] [stdout] 81 | | pub(crate) struct Race { [INFO] [stdout] 82 | | pub(crate) id: i64, [INFO] [stdout] 83 | | // N.B. game_id is not strictly necessary in this struct [INFO] [stdout] ... | [INFO] [stdout] 99 | | } [INFO] [stdout] 100 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `retro_speed_bot` due to 7 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/discord.rs:1651:13 [INFO] [stdout] | [INFO] [stdout] 1651 | _end_race(Some(r.id), &pool).await [INFO] [stdout] | ^^^^^^^^^ ---------- ----- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/discord.rs:1126:10 [INFO] [stdout] | [INFO] [stdout] 1126 | async fn _end_race(oid: Option, pool: &SqlitePool, bot_state: Arc) -> String { [INFO] [stdout] | ^^^^^^^^^ ---------------- ----------------- ------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/discord.rs:1659:13 [INFO] [stdout] | [INFO] [stdout] 1659 | _end_race(Some(r.id), &pool).await [INFO] [stdout] | ^^^^^^^^^ ---------- ----- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/discord.rs:1126:10 [INFO] [stdout] | [INFO] [stdout] 1126 | async fn _end_race(oid: Option, pool: &SqlitePool, bot_state: Arc) -> String { [INFO] [stdout] | ^^^^^^^^^ ---------------- ----------------- ------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/discord.rs:1671:13 [INFO] [stdout] | [INFO] [stdout] 1671 | _end_race(Some(1234), &pool).await [INFO] [stdout] | ^^^^^^^^^ ---------- ----- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/discord.rs:1126:10 [INFO] [stdout] | [INFO] [stdout] 1126 | async fn _end_race(oid: Option, pool: &SqlitePool, bot_state: Arc) -> String { [INFO] [stdout] | ^^^^^^^^^ ---------------- ----------------- ------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/discord.rs:1692:13 [INFO] [stdout] | [INFO] [stdout] 1692 | _end_race(Some(r.id), &pool).await [INFO] [stdout] | ^^^^^^^^^ ---------- ----- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/discord.rs:1126:10 [INFO] [stdout] | [INFO] [stdout] 1126 | async fn _end_race(oid: Option, pool: &SqlitePool, bot_state: Arc) -> String { [INFO] [stdout] | ^^^^^^^^^ ---------------- ----------------- ------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/discord.rs:1714:49 [INFO] [stdout] | [INFO] [stdout] 1714 | assert_eq!(format!("{} completed.", r), _end_race(None, &pool).await); [INFO] [stdout] | ^^^^^^^^^ ---- ----- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/discord.rs:1126:10 [INFO] [stdout] | [INFO] [stdout] 1126 | async fn _end_race(oid: Option, pool: &SqlitePool, bot_state: Arc) -> String { [INFO] [stdout] | ^^^^^^^^^ ---------------- ----------------- ------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/discord.rs:1750:13 [INFO] [stdout] | [INFO] [stdout] 1750 | _end_race(None, &pool).await [INFO] [stdout] | ^^^^^^^^^ ---- ----- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/discord.rs:1126:10 [INFO] [stdout] | [INFO] [stdout] 1126 | async fn _end_race(oid: Option, pool: &SqlitePool, bot_state: Arc) -> String { [INFO] [stdout] | ^^^^^^^^^ ---------------- ----------------- ------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/discord.rs:1767:13 [INFO] [stdout] | [INFO] [stdout] 1767 | _end_race(None, &pool).await [INFO] [stdout] | ^^^^^^^^^ ---- ----- supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 3 arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/discord.rs:1126:10 [INFO] [stdout] | [INFO] [stdout] 1126 | async fn _end_race(oid: Option, pool: &SqlitePool, bot_state: Arc) -> String { [INFO] [stdout] | ^^^^^^^^^ ---------------- ----------------- ------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "13ff87845ff45b2bda9cb340dc8f0fdf7f99bab7409145c3e54ca78bf0d21f5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13ff87845ff45b2bda9cb340dc8f0fdf7f99bab7409145c3e54ca78bf0d21f5b", kill_on_drop: false }` [INFO] [stdout] 13ff87845ff45b2bda9cb340dc8f0fdf7f99bab7409145c3e54ca78bf0d21f5b