[INFO] cloning repository https://github.com/jtr109/zero2prod [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jtr109/zero2prod" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjtr109%2Fzero2prod", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjtr109%2Fzero2prod'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1bb7117b1582ae7dc6ccab3a53c63896e15b1480 [INFO] checking jtr109/zero2prod against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjtr109%2Fzero2prod" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jtr109/zero2prod 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/jtr109/zero2prod [INFO] finished tweaking git repo https://github.com/jtr109/zero2prod [INFO] tweaked toml for git repo https://github.com/jtr109/zero2prod written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/jtr109/zero2prod 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3b7aa1ebaf988e6bf77b35a5136e4c620c5d6ef3616fed7d3e465c0cc21d6287 [INFO] running `Command { std: "docker" "start" "-a" "3b7aa1ebaf988e6bf77b35a5136e4c620c5d6ef3616fed7d3e465c0cc21d6287", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3b7aa1ebaf988e6bf77b35a5136e4c620c5d6ef3616fed7d3e465c0cc21d6287", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b7aa1ebaf988e6bf77b35a5136e4c620c5d6ef3616fed7d3e465c0cc21d6287", kill_on_drop: false }` [INFO] [stdout] 3b7aa1ebaf988e6bf77b35a5136e4c620c5d6ef3616fed7d3e465c0cc21d6287 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "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] 106a08d6e0073c3ff6088ebe9e06706d4f5339fd71374261ec0c794ffb79805a [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" "106a08d6e0073c3ff6088ebe9e06706d4f5339fd71374261ec0c794ffb79805a", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] actix-rt v2.2.0 (as host dependency): actix-macros, default, macros [INFO] [stderr] chrono v0.4.19 (as host dependency): default, oldtime, time [INFO] [stderr] futures v0.3.15 (as host dependency): async-await, default [INFO] [stderr] futures-channel v0.3.15 (as host dependency): default [INFO] [stderr] futures-io v0.3.15 (as host dependency): default [INFO] [stderr] futures-sink v0.3.15 (as host dependency): default [INFO] [stderr] indexmap v1.6.2 (as host dependency): std [INFO] [stderr] log v0.4.14 (as host dependency): std [INFO] [stderr] rand v0.8.4 (as host dependency): default [INFO] [stderr] serde_json v1.0.64: indexmap, preserve_order [INFO] [stderr] serde_json v1.0.64 (as host dependency): arbitrary_precision [INFO] [stderr] sha-1 v0.9.6 (as host dependency): default, std [INFO] [stderr] sha2 v0.9.5: default, std [INFO] [stderr] standback v0.2.17 (as host dependency): std [INFO] [stderr] tokio v1.7.0: macros, tokio-macros, winapi [INFO] [stderr] tokio v1.7.0 (as host dependency): macros, tokio-macros, winapi [INFO] [stderr] url v2.2.2 (as host dependency): serde [INFO] [stderr] uuid v0.8.2 (as host dependency): default, getrandom, v4 [INFO] [stderr] [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-core v0.3.15 [INFO] [stderr] Checking pin-project-lite v0.2.6 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Checking once_cell v1.8.0 [INFO] [stderr] Checking bytes v1.0.1 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Compiling futures-channel v0.3.15 [INFO] [stderr] Compiling futures-task v0.3.15 [INFO] [stderr] Checking futures-sink v0.3.15 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking slab v0.4.3 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling httparse v1.4.1 [INFO] [stderr] Compiling build_const v0.2.2 [INFO] [stderr] Checking local-waker v0.1.1 [INFO] [stderr] Compiling whoami v1.1.2 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Compiling const_fn v0.4.8 [INFO] [stderr] Checking cpufeatures v0.1.4 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling futures-io v0.3.15 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling anyhow v1.0.41 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Checking event-listener v2.5.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling http-types v2.11.1 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Checking data-encoding v2.3.2 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Checking fastrand v1.4.1 [INFO] [stderr] Checking serde v0.8.23 [INFO] [stderr] Checking infer v0.2.3 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking rust-ini v0.13.0 [INFO] [stderr] Checking validator_types v0.12.0 [INFO] [stderr] Checking futures-timer v3.0.2 [INFO] [stderr] Checking ipnet v2.3.1 [INFO] [stderr] Checking unicode-segmentation v1.7.1 [INFO] [stderr] Compiling tokio v1.7.0 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling ahash v0.7.4 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling claim v0.5.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking tracing-core v0.1.18 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Checking sharded-slab v0.1.1 [INFO] [stderr] Checking lock_api v0.4.4 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking unicode-bidi v0.3.5 [INFO] [stderr] Checking tinyvec v1.2.0 [INFO] [stderr] Checking http v0.2.4 [INFO] [stderr] Checking bytestring v1.0.0 [INFO] [stderr] Checking actix-utils v3.0.0 [INFO] [stderr] Compiling crc v1.8.1 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Checking crossbeam-utils v0.8.5 [INFO] [stderr] Checking crc32fast v1.2.1 [INFO] [stderr] Checking num-traits v0.2.14 [INFO] [stderr] Checking miniz_oxide v0.4.4 [INFO] [stderr] Checking lexical-core v0.7.6 [INFO] [stderr] Compiling bitvec v0.19.5 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking actix-service v2.0.0-beta.5 [INFO] [stderr] Checking async-channel v1.6.1 [INFO] [stderr] Checking matchers v0.0.1 [INFO] [stderr] Checking crossbeam-queue v0.3.2 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking tracing-log v0.1.2 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling atoi v0.4.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.10.0 [INFO] [stderr] Checking futures-lite v1.12.0 [INFO] [stderr] Checking linkify v0.5.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking mio v0.7.13 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking socket2 v0.4.0 [INFO] [stderr] Checking dirs-sys v0.3.6 [INFO] [stderr] Checking gethostname v0.2.1 [INFO] [stderr] Checking http-body v0.4.2 [INFO] [stderr] Checking flate2 v1.0.20 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking sha-1 v0.9.6 [INFO] [stderr] Checking md-5 v0.9.1 [INFO] [stderr] Checking sha2 v0.9.5 [INFO] [stderr] Checking hmac v0.10.1 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking dirs v3.0.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking webpki v0.21.4 [INFO] [stderr] Checking sct v0.6.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rustls v0.19.1 [INFO] [stderr] Checking webpki-roots v0.21.1 [INFO] [stderr] Checking serde-hjson v0.9.1 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking brotli2 v0.3.2 [INFO] [stderr] Checking hashlink v0.7.0 [INFO] [stderr] Checking sqlformat v0.1.6 [INFO] [stderr] Checking quickcheck v0.9.2 [INFO] [stderr] Checking fake v2.3.0 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling tokio-macros v1.2.0 [INFO] [stderr] Compiling tracing-attributes v0.1.15 [INFO] [stderr] Compiling actix-macros v0.2.1 [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling derive_more v0.99.14 [INFO] [stderr] Compiling actix-web-codegen v0.5.0-beta.2 [INFO] [stderr] Compiling quickcheck_macros v0.9.1 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking thiserror v1.0.25 [INFO] [stderr] Checking tracing v0.1.26 [INFO] [stderr] Checking pin-project v1.0.7 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Compiling futures-executor v0.3.15 [INFO] [stderr] Checking local-channel v0.1.2 [INFO] [stderr] Checking tokio-util v0.6.7 [INFO] [stderr] Checking actix-rt v2.2.0 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Checking tokio-stream v0.1.6 [INFO] [stderr] Checking futures v0.3.15 [INFO] [stderr] Checking opentelemetry v0.13.0 [INFO] [stderr] Checking actix-server v2.0.0-beta.4 [INFO] [stderr] Checking sqlx-rt v0.5.5 [INFO] [stderr] Checking h2 v0.3.3 [INFO] [stderr] Checking actix-codec v0.4.0 [INFO] [stderr] Checking actix-tls v3.0.0-beta.5 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking tracing-serde v0.1.2 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking config v0.10.1 [INFO] [stderr] Checking serde_qs v0.7.2 [INFO] [stderr] Checking actix-router v0.2.7 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking deadpool v0.7.0 [INFO] [stderr] Checking tracing-subscriber v0.2.18 [INFO] [stderr] Checking sqlx-core v0.5.5 [INFO] [stderr] Checking serde-aux v2.2.0 [INFO] [stderr] Checking validator v0.13.0 [INFO] [stderr] Checking config v0.11.0 [INFO] [stderr] Checking hyper v0.14.9 [INFO] [stderr] Checking actix-http v3.0.0-beta.5 [INFO] [stderr] Checking tracing-opentelemetry v0.12.0 [INFO] [stderr] Checking tracing-bunyan-formatter v0.2.4 [INFO] [stderr] Checking actix-web v4.0.0-beta.5 [INFO] [stderr] Checking hyper-rustls v0.22.1 [INFO] [stderr] Checking wiremock v0.5.6 [INFO] [stderr] Checking reqwest v0.11.3 [INFO] [stderr] Checking tracing-actix-web v0.4.0-beta.4 [INFO] [stderr] Compiling sqlx-macros v0.5.5 [INFO] [stderr] Checking sqlx v0.5.5 [INFO] [stderr] Checking zero2prod v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stdout] error: proc macro panicked [INFO] [stdout] --> src/routes/newsletters.rs:82:33 [INFO] [stdout] | [INFO] [stdout] 82 | let confirmed_subscribers = sqlx::query!( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 83 | | r#" [INFO] [stdout] 84 | | SELECT email [INFO] [stdout] 85 | | FROM subscriptions [INFO] [stdout] 86 | | WHERE status = 'confirmed' [INFO] [stdout] 87 | | "#, [INFO] [stdout] 88 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: message: Invalid `cargo metadata` output: Error("EOF while parsing a value", line: 1, column: 0) [INFO] [stdout] = note: this error originates in the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc macro panicked [INFO] [stdout] --> src/routes/subscriptions.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | / sqlx::query!( [INFO] [stdout] 109 | | r#"INSERT INTO subscription_tokens (subscription_token, subscriber_id) [INFO] [stdout] 110 | | VALUES ($1, $2)"#, [INFO] [stdout] 111 | | subscription_token, [INFO] [stdout] 112 | | subscriber_id, [INFO] [stdout] 113 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: message: Lazy instance has previously been poisoned [INFO] [stdout] = note: this error originates in the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc macro panicked [INFO] [stdout] --> src/routes/subscriptions.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 197 | / sqlx::query!( [INFO] [stdout] 198 | | r#" [INFO] [stdout] 199 | | INSERT INTO subscriptions (id, email, name, subscribed_at, status) [INFO] [stdout] 200 | | VALUES ($1, $2, $3, $4, 'pending_confirmation') [INFO] [stdout] ... | [INFO] [stdout] 205 | | Utc::now(), [INFO] [stdout] 206 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: message: Lazy instance has previously been poisoned [INFO] [stdout] = note: this error originates in the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc macro panicked [INFO] [stdout] --> src/routes/subscriptions_confirm.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | / sqlx::query!( [INFO] [stdout] 32 | | r#"UPDATE subscriptions SET status = 'confirmed' WHERE id = $1"#, [INFO] [stdout] 33 | | subscriber_id, [INFO] [stdout] 34 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: message: Lazy instance has previously been poisoned [INFO] [stdout] = note: this error originates in the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc macro panicked [INFO] [stdout] --> src/routes/subscriptions_confirm.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 49 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 50 | | r#"SELECT subscriber_id FROM subscription_tokens WHERE subscription_token = $1"#, [INFO] [stdout] 51 | | subscription_token, [INFO] [stdout] 52 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: message: Lazy instance has previously been poisoned [INFO] [stdout] = note: this error originates in the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/routes/subscriptions.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: changes to closure capture in Rust 2021 will affect drop order [INFO] [stdout] --> src/routes/subscriptions.rs:169:33 [INFO] [stdout] | [INFO] [stdout] 163 | )] [INFO] [stdout] | - in Rust 2018, `new_subscriber` is dropped here, but in Rust 2021, only `new_subscriber.email` will be dropped here as part of the closure [INFO] [stdout] ... [INFO] [stdout] 169 | ) -> Result<(), reqwest::Error> { [INFO] [stdout] | _________________________________^ [INFO] [stdout] 170 | | let confirmation_link = format!( [INFO] [stdout] 171 | | "{}/subscriptions/confirm?subscription_token={}", [INFO] [stdout] 172 | | base_url, subscription_token, [INFO] [stdout] ... | [INFO] [stdout] 184 | | .send_email(&new_subscriber.email, "Welcome!", &html_body, &plain_body) [INFO] [stdout] | | -------------------- in Rust 2018, this closure captures all of `new_subscriber`, but in Rust 2021, it will only capture `new_subscriber.email` [INFO] [stdout] 185 | | .await [INFO] [stdout] 186 | | } [INFO] [stdout] | |_^ [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] help: add a dummy let to cause `new_subscriber` to be fully captured [INFO] [stdout] | [INFO] [stdout] 169 ~ ) -> Result<(), reqwest::Error> { [INFO] [stdout] 170 + let _ = &new_subscriber; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `zero2prod` due to 6 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: proc macro panicked [INFO] [stdout] --> src/routes/newsletters.rs:82:33 [INFO] [stdout] | [INFO] [stdout] 82 | let confirmed_subscribers = sqlx::query!( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 83 | | r#" [INFO] [stdout] 84 | | SELECT email [INFO] [stdout] 85 | | FROM subscriptions [INFO] [stdout] 86 | | WHERE status = 'confirmed' [INFO] [stdout] 87 | | "#, [INFO] [stdout] 88 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: message: Invalid `cargo metadata` output: Error("EOF while parsing a value", line: 1, column: 0) [INFO] [stdout] = note: this error originates in the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc macro panicked [INFO] [stdout] --> src/routes/subscriptions.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | / sqlx::query!( [INFO] [stdout] 109 | | r#"INSERT INTO subscription_tokens (subscription_token, subscriber_id) [INFO] [stdout] 110 | | VALUES ($1, $2)"#, [INFO] [stdout] 111 | | subscription_token, [INFO] [stdout] 112 | | subscriber_id, [INFO] [stdout] 113 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: message: Lazy instance has previously been poisoned [INFO] [stdout] = note: this error originates in the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc macro panicked [INFO] [stdout] --> src/routes/subscriptions.rs:197:5 [INFO] [stdout] | [INFO] [stdout] 197 | / sqlx::query!( [INFO] [stdout] 198 | | r#" [INFO] [stdout] 199 | | INSERT INTO subscriptions (id, email, name, subscribed_at, status) [INFO] [stdout] 200 | | VALUES ($1, $2, $3, $4, 'pending_confirmation') [INFO] [stdout] ... | [INFO] [stdout] 205 | | Utc::now(), [INFO] [stdout] 206 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: message: Lazy instance has previously been poisoned [INFO] [stdout] = note: this error originates in the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc macro panicked [INFO] [stdout] --> src/routes/subscriptions_confirm.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | / sqlx::query!( [INFO] [stdout] 32 | | r#"UPDATE subscriptions SET status = 'confirmed' WHERE id = $1"#, [INFO] [stdout] 33 | | subscriber_id, [INFO] [stdout] 34 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: message: Lazy instance has previously been poisoned [INFO] [stdout] = note: this error originates in the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc macro panicked [INFO] [stdout] --> src/routes/subscriptions_confirm.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 49 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 50 | | r#"SELECT subscriber_id FROM subscription_tokens WHERE subscription_token = $1"#, [INFO] [stdout] 51 | | subscription_token, [INFO] [stdout] 52 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: message: Lazy instance has previously been poisoned [INFO] [stdout] = note: this error originates in the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/routes/subscriptions.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: changes to closure capture in Rust 2021 will affect drop order [INFO] [stdout] --> src/routes/subscriptions.rs:169:33 [INFO] [stdout] | [INFO] [stdout] 163 | )] [INFO] [stdout] | - in Rust 2018, `new_subscriber` is dropped here, but in Rust 2021, only `new_subscriber.email` will be dropped here as part of the closure [INFO] [stdout] ... [INFO] [stdout] 169 | ) -> Result<(), reqwest::Error> { [INFO] [stdout] | _________________________________^ [INFO] [stdout] 170 | | let confirmation_link = format!( [INFO] [stdout] 171 | | "{}/subscriptions/confirm?subscription_token={}", [INFO] [stdout] 172 | | base_url, subscription_token, [INFO] [stdout] ... | [INFO] [stdout] 184 | | .send_email(&new_subscriber.email, "Welcome!", &html_body, &plain_body) [INFO] [stdout] | | -------------------- in Rust 2018, this closure captures all of `new_subscriber`, but in Rust 2021, it will only capture `new_subscriber.email` [INFO] [stdout] 185 | | .await [INFO] [stdout] 186 | | } [INFO] [stdout] | |_^ [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] help: add a dummy let to cause `new_subscriber` to be fully captured [INFO] [stdout] | [INFO] [stdout] 169 ~ ) -> Result<(), reqwest::Error> { [INFO] [stdout] 170 + let _ = &new_subscriber; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "106a08d6e0073c3ff6088ebe9e06706d4f5339fd71374261ec0c794ffb79805a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "106a08d6e0073c3ff6088ebe9e06706d4f5339fd71374261ec0c794ffb79805a", kill_on_drop: false }` [INFO] [stdout] 106a08d6e0073c3ff6088ebe9e06706d4f5339fd71374261ec0c794ffb79805a