[INFO] cloning repository https://github.com/ThatsNoMoon/highlights [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ThatsNoMoon/highlights" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThatsNoMoon%2Fhighlights", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThatsNoMoon%2Fhighlights'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 98e25631c0824c38369d44dbb075eca0f8985434 [INFO] checking ThatsNoMoon/highlights against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThatsNoMoon%2Fhighlights" "/workspace/builds/worker-58/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-58/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ThatsNoMoon/highlights on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ThatsNoMoon/highlights [INFO] finished tweaking git repo https://github.com/ThatsNoMoon/highlights [INFO] tweaked toml for git repo https://github.com/ThatsNoMoon/highlights written to /workspace/builds/worker-58/source/Cargo.toml [INFO] crate git repo https://github.com/ThatsNoMoon/highlights already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded r2d2_sqlite v0.18.0 [INFO] [stderr] Downloaded simplelog v0.10.0 [INFO] [stderr] Downloaded prometheus v0.12.0 [INFO] [stderr] Downloaded config v0.11.0 [INFO] [stderr] Downloaded protobuf v2.23.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b718cf53e0f2d6f71dfcabbefc09e0b33c62cb1b6772a129c8012ffa1b60a300 [INFO] running `Command { std: "docker" "start" "-a" "b718cf53e0f2d6f71dfcabbefc09e0b33c62cb1b6772a129c8012ffa1b60a300", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b718cf53e0f2d6f71dfcabbefc09e0b33c62cb1b6772a129c8012ffa1b60a300", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b718cf53e0f2d6f71dfcabbefc09e0b33c62cb1b6772a129c8012ffa1b60a300", kill_on_drop: false }` [INFO] [stdout] b718cf53e0f2d6f71dfcabbefc09e0b33c62cb1b6772a129c8012ffa1b60a300 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9ec6622a4059ff59b2d8e6f05e8e1cbb9e267d1ee80b11c4a021415fa9ddbe48 [INFO] running `Command { std: "docker" "start" "-a" "9ec6622a4059ff59b2d8e6f05e8e1cbb9e267d1ee80b11c4a021415fa9ddbe48", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling cc v1.0.68 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Checking futures-sink v0.3.15 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking slab v0.4.3 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking futures-io v0.3.15 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking httpdate v1.0.1 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking cpufeatures v0.1.4 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Compiling protobuf v2.23.0 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Compiling prometheus v0.12.0 [INFO] [stderr] Compiling serenity v0.10.7 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Checking fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling unindent v0.1.7 [INFO] [stderr] Checking typemap_rev v0.1.5 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking http v0.2.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking tinyvec v1.2.0 [INFO] [stderr] Checking unicode-bidi v0.3.5 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Checking tracing-core v0.1.18 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Checking input_buffer v0.3.1 [INFO] [stderr] Compiling indoc v1.0.3 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking lock_api v0.4.4 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling tokio v1.6.1 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling libsqlite3-sys v0.22.2 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking socket2 v0.4.0 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking http-body v0.4.2 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking flate2 v1.0.20 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking scheduled-thread-pool v0.2.5 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking sha-1 v0.9.6 [INFO] [stderr] Checking hashlink v0.7.0 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking webpki-roots v0.20.0 [INFO] [stderr] Checking webpki-roots v0.21.1 [INFO] [stderr] Checking rusqlite v0.25.3 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling tracing-attributes v0.1.15 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Checking thiserror v1.0.25 [INFO] [stderr] Checking pin-project v1.0.7 [INFO] [stderr] Checking futures v0.3.15 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking serde_json v1.0.64 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking mio v0.7.11 [INFO] [stderr] Checking tracing v0.1.26 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking r2d2 v0.8.9 [INFO] [stderr] Checking r2d2_sqlite v0.18.0 [INFO] [stderr] Checking tungstenite v0.11.1 [INFO] [stderr] Checking simplelog v0.10.0 [INFO] [stderr] Checking config v0.11.0 [INFO] [stderr] Checking tokio-util v0.6.7 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking async-tungstenite v0.11.0 [INFO] [stderr] Checking h2 v0.3.3 [INFO] [stderr] Checking hyper v0.14.9 [INFO] [stderr] Checking hyper-rustls v0.22.1 [INFO] [stderr] Checking reqwest v0.11.3 [INFO] [stderr] Checking highlights v1.1.0-beta.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `highlights` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/db/block.rs [INFO] [stderr] * src/db/ignore.rs [INFO] [stderr] * src/db/keyword.rs [INFO] [stderr] * src/db/mod.rs [INFO] [stderr] * src/db/mute.rs [INFO] [stderr] * src/db/notification.rs [INFO] [stderr] * src/db/opt_out.rs [INFO] [stderr] * src/db/user_state.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/block.rs:49:18 [INFO] [stderr] | [INFO] [stderr] 49 | pub async fn user_blocks(user_id: UserId) -> Result> { [INFO] [stderr] | ----------- this function doesn't have a `self` parameter [INFO] [stderr] 50 | / await_db!("user blocks": |conn| { [INFO] [stderr] 51 | | let mut stmt = conn.prepare( [INFO] [stderr] 52 | | "SELECT user_id, blocked_id [INFO] [stderr] 53 | | FROM blocks [INFO] [stderr] ... | [INFO] [stderr] 59 | | blocks.map(|res| res.map_err(Into::into)).collect() [INFO] [stderr] 60 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 49 | pub async fn user_blocks(&self, user_id: UserId) -> Result> { [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/block.rs:64:5 [INFO] [stderr] | [INFO] [stderr] 64 | / pub async fn insert(self) -> Result<()> { [INFO] [stderr] 65 | | await_db!("insert block": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 66 | || conn.execute( [INFO] [stderr] 67 | || "INSERT INTO blocks (user_id, blocked_id) [INFO] [stderr] 68 | || VALUES (?, ?)", [INFO] [stderr] ... || [INFO] [stderr] 75 | || Ok(()) [INFO] [stderr] 76 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 77 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/block.rs:80:5 [INFO] [stderr] | [INFO] [stderr] 80 | / pub async fn exists(self) -> Result { [INFO] [stderr] 81 | | await_db!("block exists": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 82 | || conn.query_row( [INFO] [stderr] 83 | || "SELECT COUNT(*) FROM blocks [INFO] [stderr] 84 | || WHERE user_id = ? AND blocked_id = ?", [INFO] [stderr] ... || [INFO] [stderr] 90 | || ).map_err(Into::into) [INFO] [stderr] 91 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 92 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/block.rs:95:5 [INFO] [stderr] | [INFO] [stderr] 95 | / pub async fn delete(self) -> Result<()> { [INFO] [stderr] 96 | | await_db!("delete block": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 97 | || conn.execute( [INFO] [stderr] 98 | || "DELETE FROM blocks [INFO] [stderr] 99 | || WHERE user_id = ? AND blocked_id = ?", [INFO] [stderr] ... || [INFO] [stderr] 106 | || Ok(()) [INFO] [stderr] 107 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 108 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/ignore.rs:54:18 [INFO] [stderr] | [INFO] [stderr] 54 | pub async fn user_guild_ignores( [INFO] [stderr] | ------------------ this function doesn't have a `self` parameter [INFO] [stderr] ... [INFO] [stderr] 58 | / await_db!("user guild ignores": |conn| { [INFO] [stderr] 59 | | let mut stmt = conn.prepare( [INFO] [stderr] 60 | | "SELECT phrase, user_id, guild_id [INFO] [stderr] 61 | | FROM guild_ignores [INFO] [stderr] ... | [INFO] [stderr] 70 | | ignores.map(|res| res.map_err(Into::into)).collect() [INFO] [stderr] 71 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 55 | &self, user_id: UserId, [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/ignore.rs:75:18 [INFO] [stderr] | [INFO] [stderr] 75 | pub async fn user_ignores(user_id: UserId) -> Result> { [INFO] [stderr] | ------------ this function doesn't have a `self` parameter [INFO] [stderr] 76 | / await_db!("user ignores": |conn| { [INFO] [stderr] 77 | | let mut stmt = conn.prepare( [INFO] [stderr] 78 | | "SELECT phrase, user_id, guild_id [INFO] [stderr] 79 | | FROM guild_ignores [INFO] [stderr] ... | [INFO] [stderr] 86 | | ignores.map(|res| res.map_err(Into::into)).collect() [INFO] [stderr] 87 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 75 | pub async fn user_ignores(&self, user_id: UserId) -> Result> { [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/ignore.rs:91:5 [INFO] [stderr] | [INFO] [stderr] 91 | / pub async fn exists(self) -> Result { [INFO] [stderr] 92 | | await_db!("ignore exists": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 93 | || conn.query_row( [INFO] [stderr] 94 | || "SELECT COUNT(*) FROM guild_ignores [INFO] [stderr] 95 | || WHERE phrase = ? AND user_id = ? AND guild_id = ?", [INFO] [stderr] ... || [INFO] [stderr] 102 | || ).map_err(Into::into) [INFO] [stderr] 103 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 104 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/ignore.rs:107:5 [INFO] [stderr] | [INFO] [stderr] 107 | / pub async fn insert(self) -> Result<()> { [INFO] [stderr] 108 | | await_db!("insert ignore": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 109 | || conn.execute( [INFO] [stderr] 110 | || "INSERT INTO guild_ignores (phrase, user_id, guild_id) [INFO] [stderr] 111 | || VALUES (?, ?, ?)", [INFO] [stderr] ... || [INFO] [stderr] 119 | || Ok(()) [INFO] [stderr] 120 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 121 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/ignore.rs:124:5 [INFO] [stderr] | [INFO] [stderr] 124 | / pub async fn delete(self) -> Result<()> { [INFO] [stderr] 125 | | await_db!("delete ignore": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 126 | || conn.execute( [INFO] [stderr] 127 | || "DELETE FROM guild_ignores [INFO] [stderr] 128 | || WHERE phrase = ? AND user_id = ? AND guild_id = ?", [INFO] [stderr] ... || [INFO] [stderr] 136 | || Ok(()) [INFO] [stderr] 137 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 138 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/ignore.rs:141:18 [INFO] [stderr] | [INFO] [stderr] 141 | pub async fn delete_in_guild( [INFO] [stderr] | --------------- this function doesn't have a `self` parameter [INFO] [stderr] ... [INFO] [stderr] 145 | / await_db!("delete ignores in guild": |conn| { [INFO] [stderr] 146 | | conn.execute( [INFO] [stderr] 147 | | "DELETE FROM guild_ignores [INFO] [stderr] 148 | | WHERE user_id = ? AND guild_id = ?", [INFO] [stderr] 149 | | params![user_id.into_i64(), guild_id.into_i64()] [INFO] [stderr] 150 | | ).map_err(Into::into) [INFO] [stderr] 151 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 142 | &self, user_id: UserId, [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/keyword.rs:86:18 [INFO] [stderr] | [INFO] [stderr] 86 | pub async fn get_relevant_keywords( [INFO] [stderr] | --------------------- this function doesn't have a `self` parameter [INFO] [stderr] ... [INFO] [stderr] 91 | / await_db!("get keywords": |conn| { [INFO] [stderr] 92 | | let guild_id = guild_id.into_i64(); [INFO] [stderr] 93 | | let channel_id = channel_id.into_i64(); [INFO] [stderr] 94 | | let author_id = author_id.into_i64(); [INFO] [stderr] ... | [INFO] [stderr] 161 | | Ok(keywords) [INFO] [stderr] 162 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 87 | &self, guild_id: GuildId, [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/keyword.rs:166:18 [INFO] [stderr] | [INFO] [stderr] 166 | pub async fn user_guild_keywords( [INFO] [stderr] | ------------------- this function doesn't have a `self` parameter [INFO] [stderr] ... [INFO] [stderr] 170 | / await_db!("user guild keywords": |conn| { [INFO] [stderr] 171 | | [INFO] [stderr] 172 | | let mut stmt = conn.prepare( [INFO] [stderr] 173 | | "SELECT keyword, user_id, guild_id [INFO] [stderr] ... | [INFO] [stderr] 183 | | keywords.map(|res| res.map_err(Into::into)).collect() [INFO] [stderr] 184 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 167 | &self, user_id: UserId, [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/keyword.rs:188:18 [INFO] [stderr] | [INFO] [stderr] 188 | pub async fn user_channel_keywords( [INFO] [stderr] | --------------------- this function doesn't have a `self` parameter [INFO] [stderr] ... [INFO] [stderr] 191 | / await_db!("user channel keywords": |conn| { [INFO] [stderr] 192 | | let mut stmt = conn.prepare( [INFO] [stderr] 193 | | "SELECT keyword, user_id, channel_id [INFO] [stderr] 194 | | FROM channel_keywords [INFO] [stderr] ... | [INFO] [stderr] 203 | | keywords.map(|res| res.map_err(Into::into)).collect() [INFO] [stderr] 204 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 189 | &self, user_id: UserId, [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/keyword.rs:208:18 [INFO] [stderr] | [INFO] [stderr] 208 | pub async fn user_keywords(user_id: UserId) -> Result> { [INFO] [stderr] | ------------- this function doesn't have a `self` parameter [INFO] [stderr] 209 | / await_db!("user keywords": |conn| { [INFO] [stderr] 210 | | let mut stmt = conn.prepare( [INFO] [stderr] 211 | | "SELECT keyword, user_id, guild_id [INFO] [stderr] 212 | | FROM guild_keywords [INFO] [stderr] ... | [INFO] [stderr] 236 | | Ok(keywords) [INFO] [stderr] 237 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 208 | pub async fn user_keywords(&self, user_id: UserId) -> Result> { [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/keyword.rs:241:5 [INFO] [stderr] | [INFO] [stderr] 241 | / pub async fn exists(self) -> Result { [INFO] [stderr] 242 | | await_db!("keyword exists": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 243 | || match self.kind { [INFO] [stderr] 244 | || KeywordKind::Guild(guild_id) => { [INFO] [stderr] 245 | || conn.query_row( [INFO] [stderr] ... || [INFO] [stderr] 268 | || } [INFO] [stderr] 269 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 270 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/keyword.rs:273:18 [INFO] [stderr] | [INFO] [stderr] 273 | pub async fn user_keyword_count(user_id: UserId) -> Result { [INFO] [stderr] | ------------------ this function doesn't have a `self` parameter [INFO] [stderr] 274 | / await_db!("count user keywords": |conn| { [INFO] [stderr] 275 | | let guild_keywords = conn.query_row( [INFO] [stderr] 276 | | "SELECT COUNT(*) [INFO] [stderr] 277 | | FROM guild_keywords [INFO] [stderr] ... | [INFO] [stderr] 291 | | Ok(guild_keywords + channel_keywords) [INFO] [stderr] 292 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 273 | pub async fn user_keyword_count(&self, user_id: UserId) -> Result { [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/keyword.rs:296:5 [INFO] [stderr] | [INFO] [stderr] 296 | / pub async fn insert(self) -> Result<()> { [INFO] [stderr] 297 | | await_db!("insert keyword": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 298 | || match self.kind { [INFO] [stderr] 299 | || KeywordKind::Guild(guild_id) => { [INFO] [stderr] 300 | || conn.execute( [INFO] [stderr] ... || [INFO] [stderr] 323 | || Ok(()) [INFO] [stderr] 324 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 325 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/keyword.rs:328:5 [INFO] [stderr] | [INFO] [stderr] 328 | / pub async fn delete(self) -> Result<()> { [INFO] [stderr] 329 | | await_db!("delete keyword": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 330 | || match self.kind { [INFO] [stderr] 331 | || KeywordKind::Guild(guild_id) => { [INFO] [stderr] 332 | || conn.execute( [INFO] [stderr] ... || [INFO] [stderr] 355 | || Ok(()) [INFO] [stderr] 356 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 357 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/keyword.rs:360:18 [INFO] [stderr] | [INFO] [stderr] 360 | pub async fn delete_in_guild( [INFO] [stderr] | --------------- this function doesn't have a `self` parameter [INFO] [stderr] ... [INFO] [stderr] 364 | / await_db!("delete keywords in guild": |conn| { [INFO] [stderr] 365 | | conn.execute( [INFO] [stderr] 366 | | "DELETE FROM guild_keywords [INFO] [stderr] 367 | | WHERE user_id = ? AND guild_id = ?", [INFO] [stderr] 368 | | params![user_id.into_i64(), guild_id.into_i64()] [INFO] [stderr] 369 | | ).map_err(Into::into) [INFO] [stderr] 370 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 361 | &self, user_id: UserId, [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/keyword.rs:374:18 [INFO] [stderr] | [INFO] [stderr] 374 | pub async fn delete_in_channel( [INFO] [stderr] | ----------------- this function doesn't have a `self` parameter [INFO] [stderr] ... [INFO] [stderr] 378 | / await_db!("delete keywords in channel": |conn| { [INFO] [stderr] 379 | | conn.execute( [INFO] [stderr] 380 | | "DELETE FROM channel_keywords [INFO] [stderr] 381 | | WHERE user_id = ? AND channel_id = ?", [INFO] [stderr] 382 | | params![user_id.into_i64(), channel_id.into_i64()] [INFO] [stderr] 383 | | ).map_err(Into::into) [INFO] [stderr] 384 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 375 | &self, user_id: UserId, [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/mute.rs:49:18 [INFO] [stderr] | [INFO] [stderr] 49 | pub async fn user_mutes(user_id: UserId) -> Result> { [INFO] [stderr] | ---------- this function doesn't have a `self` parameter [INFO] [stderr] 50 | / await_db!("user mutes": |conn| { [INFO] [stderr] 51 | | [INFO] [stderr] 52 | | let mut stmt = conn.prepare( [INFO] [stderr] 53 | | "SELECT user_id, channel_id [INFO] [stderr] ... | [INFO] [stderr] 61 | | mutes.map(|res| res.map_err(Into::into)).collect() [INFO] [stderr] 62 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 49 | pub async fn user_mutes(&self, user_id: UserId) -> Result> { [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/mute.rs:68:5 [INFO] [stderr] | [INFO] [stderr] 68 | / pub async fn exists(self) -> Result { [INFO] [stderr] 69 | | await_db!("mute exists": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 70 | || conn.query_row( [INFO] [stderr] 71 | || "SELECT COUNT(*) FROM mutes [INFO] [stderr] 72 | || WHERE user_id = ? AND channel_id = ?", [INFO] [stderr] ... || [INFO] [stderr] 75 | || ).map_err(Into::into) [INFO] [stderr] 76 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 77 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/mute.rs:80:5 [INFO] [stderr] | [INFO] [stderr] 80 | / pub async fn insert(self) -> Result<()> { [INFO] [stderr] 81 | | await_db!("insert mute": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 82 | || conn.execute( [INFO] [stderr] 83 | || "INSERT INTO mutes (user_id, channel_id) [INFO] [stderr] 84 | || VALUES (?, ?)", [INFO] [stderr] ... || [INFO] [stderr] 88 | || Ok(()) [INFO] [stderr] 89 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 90 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/mute.rs:93:5 [INFO] [stderr] | [INFO] [stderr] 93 | / pub async fn delete(self) -> Result<()> { [INFO] [stderr] 94 | | await_db!("delete mute": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 95 | || conn.execute( [INFO] [stderr] 96 | || "DELETE FROM mutes [INFO] [stderr] 97 | || WHERE user_id = ? AND channel_id = ?", [INFO] [stderr] ... || [INFO] [stderr] 101 | || Ok(()) [INFO] [stderr] 102 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 103 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/notification.rs:58:18 [INFO] [stderr] | [INFO] [stderr] 58 | pub async fn notifications_of_message( [INFO] [stderr] | ------------------------ this function doesn't have a `self` parameter [INFO] [stderr] ... [INFO] [stderr] 61 | / await_db!("notifications from message": |conn| { [INFO] [stderr] 62 | | let mut stmt = conn.prepare( [INFO] [stderr] 63 | | "SELECT original_message, notification_message, keyword, user_id [INFO] [stderr] 64 | | FROM sent_notifications [INFO] [stderr] ... | [INFO] [stderr] 73 | | notifications.map(|res| res.map_err(Into::into)).collect() [INFO] [stderr] 74 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 59 | &self, message_id: MessageId, [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/notification.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | / pub async fn insert(self) -> Result<()> { [INFO] [stderr] 79 | | await_db!("insert notification": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 80 | || conn.execute( [INFO] [stderr] 81 | || "INSERT INTO sent_notifications ( [INFO] [stderr] 82 | || original_message, [INFO] [stderr] ... || [INFO] [stderr] 96 | || Ok(()) [INFO] [stderr] 97 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 98 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/notification.rs:101:5 [INFO] [stderr] | [INFO] [stderr] 101 | / pub async fn delete(self) -> Result<()> { [INFO] [stderr] 102 | | await_db!("delete notification": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 103 | || conn.execute( [INFO] [stderr] 104 | || "DELETE FROM sent_notifications [INFO] [stderr] 105 | || WHERE notification_message = ?", [INFO] [stderr] ... || [INFO] [stderr] 109 | || Ok(()) [INFO] [stderr] 110 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 111 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/notification.rs:114:18 [INFO] [stderr] | [INFO] [stderr] 114 | pub async fn delete_notifications_of_message( [INFO] [stderr] | ------------------------------- this function doesn't have a `self` parameter [INFO] [stderr] ... [INFO] [stderr] 117 | / await_db!("delete notifications": |conn| { [INFO] [stderr] 118 | | conn.execute( [INFO] [stderr] 119 | | "DELETE FROM sent_notifications [INFO] [stderr] 120 | | WHERE original_message = ?", [INFO] [stderr] ... | [INFO] [stderr] 124 | | Ok(()) [INFO] [stderr] 125 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 115 | &self, message_id: MessageId, [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/opt_out.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | / pub async fn exists(self) -> Result { [INFO] [stderr] 38 | | await_db!("opt-out exists": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 39 | || conn.query_row( [INFO] [stderr] 40 | || "SELECT COUNT(*) FROM opt_outs [INFO] [stderr] 41 | || WHERE user_id = ?", [INFO] [stderr] ... || [INFO] [stderr] 44 | || ).map_err(Into::into) [INFO] [stderr] 45 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 46 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/opt_out.rs:49:5 [INFO] [stderr] | [INFO] [stderr] 49 | / pub async fn insert(self) -> Result<()> { [INFO] [stderr] 50 | | await_db!("insert opt-out": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 51 | || conn.execute( [INFO] [stderr] 52 | || "INSERT INTO opt_outs (user_id) [INFO] [stderr] 53 | || VALUES (?)", [INFO] [stderr] ... || [INFO] [stderr] 57 | || Ok(()) [INFO] [stderr] 58 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 59 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/opt_out.rs:62:5 [INFO] [stderr] | [INFO] [stderr] 62 | / pub async fn delete(self) -> Result<()> { [INFO] [stderr] 63 | | await_db!("delete opt-out": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 64 | || conn.execute( [INFO] [stderr] 65 | || "DELETE FROM opt_outs [INFO] [stderr] 66 | || WHERE user_id = ?", [INFO] [stderr] ... || [INFO] [stderr] 70 | || Ok(()) [INFO] [stderr] 71 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 72 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/user_state.rs:65:18 [INFO] [stderr] | [INFO] [stderr] 65 | pub async fn user_state(user_id: UserId) -> Result> { [INFO] [stderr] | ---------- this function doesn't have a `self` parameter [INFO] [stderr] 66 | / await_db!("user state": |conn| { [INFO] [stderr] 67 | | [INFO] [stderr] 68 | | let mut stmt = conn.prepare( [INFO] [stderr] 69 | | "SELECT user_id, state [INFO] [stderr] ... | [INFO] [stderr] 77 | | .map_err(Into::into) [INFO] [stderr] 78 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 65 | pub async fn user_state(&self, user_id: UserId) -> Result> { [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/user_state.rs:82:5 [INFO] [stderr] | [INFO] [stderr] 82 | / pub async fn set(self) -> Result<()> { [INFO] [stderr] 83 | | await_db!("set user state": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 84 | || conn.execute( [INFO] [stderr] 85 | || "INSERT INTO user_states (user_id, state) [INFO] [stderr] 86 | || VALUES (?, ?) [INFO] [stderr] ... || [INFO] [stderr] 92 | || Ok(()) [INFO] [stderr] 93 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 94 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/user_state.rs:97:5 [INFO] [stderr] | [INFO] [stderr] 97 | / pub async fn delete(self) -> Result<()> { [INFO] [stderr] 98 | | await_db!("delete user state": |conn| { [INFO] [stderr] | |_________- [INFO] [stderr] 99 | || conn.execute( [INFO] [stderr] 100 | || "DELETE FROM user_states [INFO] [stderr] 101 | || WHERE user_id = ?", [INFO] [stderr] ... || [INFO] [stderr] 105 | || Ok(()) [INFO] [stderr] 106 | || }) [INFO] [stderr] | ||__________- in this macro invocation [INFO] [stderr] 107 | | } [INFO] [stderr] | |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0424]: expected value, found module `self` [INFO] [stderr] --> src/db/mod.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | let _ = &self; [INFO] [stderr] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stderr] | [INFO] [stderr] ::: src/db/user_state.rs:110:18 [INFO] [stderr] | [INFO] [stderr] 110 | pub async fn clear(user_id: UserId) -> Result<()> { [INFO] [stderr] | ----- this function doesn't have a `self` parameter [INFO] [stderr] 111 | / await_db!("delete user state": |conn| { [INFO] [stderr] 112 | | conn.execute( [INFO] [stderr] 113 | | "DELETE FROM user_states [INFO] [stderr] 114 | | WHERE user_id = ?", [INFO] [stderr] ... | [INFO] [stderr] 118 | | Ok(()) [INFO] [stderr] 119 | | }) [INFO] [stderr] | |__________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: add a `self` receiver parameter to make the associated `fn` a method [INFO] [stderr] | [INFO] [stderr] 110 | pub async fn clear(&self, user_id: UserId) -> Result<()> { [INFO] [stderr] | ++++++ [INFO] [stderr] [INFO] [stderr] error: aborting due to 35 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0424`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: changes to closure capture in Rust 2021 will affect drop order [INFO] [stdout] --> src/db/mod.rs:92:33 [INFO] [stdout] | [INFO] [stdout] 92 | ::tokio::task::spawn_blocking(move || -> ::anyhow::Result<_> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | }}; [INFO] [stdout] | - in Rust 2018, `self` is dropped here, but in Rust 2021, only `self.notification_message` will be dropped here as part of the closure [INFO] [stdout] | [INFO] [stdout] ::: src/db/notification.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | / await_db!("delete notification": |conn| { [INFO] [stdout] 103 | | conn.execute( [INFO] [stdout] 104 | | "DELETE FROM sent_notifications [INFO] [stdout] 105 | | WHERE notification_message = ?", [INFO] [stdout] 106 | | params![self.notification_message.into_i64()], [INFO] [stdout] | | ------------------------- in Rust 2018, this closure captures all of `self`, but in Rust 2021, it will only capture `self.notification_message` [INFO] [stdout] ... | [INFO] [stdout] 109 | | Ok(()) [INFO] [stdout] 110 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn rust-2021-incompatible-closure-captures` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a dummy let to cause `self` to be fully captured [INFO] [stdout] | [INFO] [stdout] 92 ~ ::tokio::task::spawn_blocking(move || -> ::anyhow::Result<_> { [INFO] [stdout] 93 + let _ = &self; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: changes to closure capture in Rust 2021 will affect drop order [INFO] [stdout] --> src/db/mod.rs:92:33 [INFO] [stdout] | [INFO] [stdout] 92 | ::tokio::task::spawn_blocking(move || -> ::anyhow::Result<_> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | }}; [INFO] [stdout] | - in Rust 2018, `self` is dropped here, but in Rust 2021, only `self.notification_message` will be dropped here as part of the closure [INFO] [stdout] | [INFO] [stdout] ::: src/db/notification.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | / await_db!("delete notification": |conn| { [INFO] [stdout] 103 | | conn.execute( [INFO] [stdout] 104 | | "DELETE FROM sent_notifications [INFO] [stdout] 105 | | WHERE notification_message = ?", [INFO] [stdout] 106 | | params![self.notification_message.into_i64()], [INFO] [stdout] | | ------------------------- in Rust 2018, this closure captures all of `self`, but in Rust 2021, it will only capture `self.notification_message` [INFO] [stdout] ... | [INFO] [stdout] 109 | | Ok(()) [INFO] [stdout] 110 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn rust-2021-incompatible-closure-captures` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `await_db` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a dummy let to cause `self` to be fully captured [INFO] [stdout] | [INFO] [stdout] 92 ~ ::tokio::task::spawn_blocking(move || -> ::anyhow::Result<_> { [INFO] [stdout] 93 + let _ = &self; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 12s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking highlights v1.1.0-beta.0 (/tmp/fixit) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 56s [INFO] running `Command { std: "docker" "inspect" "9ec6622a4059ff59b2d8e6f05e8e1cbb9e267d1ee80b11c4a021415fa9ddbe48", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ec6622a4059ff59b2d8e6f05e8e1cbb9e267d1ee80b11c4a021415fa9ddbe48", kill_on_drop: false }` [INFO] [stdout] 9ec6622a4059ff59b2d8e6f05e8e1cbb9e267d1ee80b11c4a021415fa9ddbe48