[INFO] cloning repository https://github.com/tetsu-sh/muscle [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tetsu-sh/muscle" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftetsu-sh%2Fmuscle", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftetsu-sh%2Fmuscle'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bdec892353be1ddd714da9fe90bb5d5f223c31e8 [INFO] testing tetsu-sh/muscle/bdec892353be1ddd714da9fe90bb5d5f223c31e8 against 1.86.0 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftetsu-sh%2Fmuscle" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tetsu-sh/muscle on toolchain 1.86.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.86.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tetsu-sh/muscle [INFO] finished tweaking git repo https://github.com/tetsu-sh/muscle [INFO] tweaked toml for git repo https://github.com/tetsu-sh/muscle written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/tetsu-sh/muscle already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.86.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bcrypt v0.13.0 [INFO] [stderr] Downloaded async-graphql-derive v4.0.6 [INFO] [stderr] Downloaded async-graphql-actix-web v4.0.6 [INFO] [stderr] Downloaded async-graphql-parser v4.0.6 [INFO] [stderr] Downloaded async-graphql-value v4.0.6 [INFO] [stderr] Downloaded futures-intrusive v0.4.1 [INFO] [stderr] Downloaded async-graphql v4.0.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6306757a6dd0e3f296db959d22fc78bbea799fc985633e48344233d69cd2ea2a [INFO] running `Command { std: "docker" "start" "-a" "6306757a6dd0e3f296db959d22fc78bbea799fc985633e48344233d69cd2ea2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6306757a6dd0e3f296db959d22fc78bbea799fc985633e48344233d69cd2ea2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6306757a6dd0e3f296db959d22fc78bbea799fc985633e48344233d69cd2ea2a", kill_on_drop: false }` [INFO] [stdout] 6306757a6dd0e3f296db959d22fc78bbea799fc985633e48344233d69cd2ea2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7555d2780cd3362672f5e8487287bbc8a33e7bb937e87be82f1f57bb71f23ccb [INFO] running `Command { std: "docker" "start" "-a" "7555d2780cd3362672f5e8487287bbc8a33e7bb937e87be82f1f57bb71f23ccb", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling serde_derive v1.0.140 [INFO] [stderr] Compiling serde v1.0.140 [INFO] [stderr] Compiling once_cell v1.13.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling itoa v1.0.2 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling libm v0.2.5 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling serde_json v1.0.82 [INFO] [stderr] Compiling openssl v0.10.42 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling hashbrown v0.12.2 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling mio v0.8.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling zeroize v1.5.7 [INFO] [stderr] Compiling base64ct v1.5.3 [INFO] [stderr] Compiling unicode-normalization v0.1.21 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling crossbeam-utils v0.8.11 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling pem-rfc7468 v0.3.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling tracing-core v0.1.28 [INFO] [stderr] Compiling const-oid v0.7.1 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Compiling tracing v0.1.35 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling num-bigint-dig v0.8.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling openssl-sys v0.9.77 [INFO] [stderr] Compiling zstd-sys v2.0.1+zstd.1.5.2 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.2 [INFO] [stderr] Compiling crypto-bigint v0.3.2 [INFO] [stderr] Compiling digest v0.10.5 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling local-waker v0.1.3 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling alloc-stdlib v0.2.1 [INFO] [stderr] Compiling der v0.5.1 [INFO] [stderr] Compiling sha1 v0.10.1 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling crossbeam-queue v0.3.6 [INFO] [stderr] Compiling firestorm v0.5.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling ucd-trie v0.1.4 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling miniz_oxide v0.5.3 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling brotli-decompressor v2.3.2 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling actix-utils v3.0.0 [INFO] [stderr] Compiling cookie v0.16.0 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling time v0.3.11 [INFO] [stderr] Compiling crc-catalog v2.1.0 [INFO] [stderr] Compiling unicode-segmentation v1.10.0 [INFO] [stderr] Compiling spki v0.5.4 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling pkcs8 v0.8.0 [INFO] [stderr] Compiling pkcs1 v0.3.3 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling flate2 v1.0.24 [INFO] [stderr] Compiling crc v3.0.0 [INFO] [stderr] Compiling brotli v3.3.4 [INFO] [stderr] Compiling atoi v1.0.0 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling hashlink v0.8.1 [INFO] [stderr] Compiling futures-intrusive v0.4.1 [INFO] [stderr] Compiling multer v2.0.3 [INFO] [stderr] Compiling rustversion v1.0.9 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling async-trait v0.1.58 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling dotenvy v0.15.6 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling mysqlclient-sys v0.2.5 [INFO] [stderr] Compiling cache-padded v1.2.0 [INFO] [stderr] Compiling local-channel v0.1.3 [INFO] [stderr] Compiling spin v0.9.4 [INFO] [stderr] Compiling ascii_utils v0.9.3 [INFO] [stderr] Compiling fastrand v1.8.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling concurrent-queue v1.2.4 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling sqlformat v0.2.0 [INFO] [stderr] Compiling fast_chemail v0.9.6 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.6 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling rsa v0.6.1 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling darling_core v0.14.1 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling unsafe-libyaml v0.2.4 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling base64 v0.21.0 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling bcrypt v0.13.0 [INFO] [stderr] Compiling ulid v1.0.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling actix_derive v0.6.0 [INFO] [stderr] Compiling async-stream-impl v0.3.3 [INFO] [stderr] Compiling darling_macro v0.14.1 [INFO] [stderr] Compiling actix-macros v0.2.3 [INFO] [stderr] Compiling async-stream v0.3.3 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling thiserror v1.0.31 [INFO] [stderr] Compiling pest v2.2.1 [INFO] [stderr] Compiling darling v0.14.1 [INFO] [stderr] Compiling simple_asn1 v0.6.2 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling strum v0.24.1 [INFO] [stderr] Compiling diesel v1.4.8 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling uuid v1.1.2 [INFO] [stderr] Compiling tokio v1.19.2 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling bytestring v1.1.0 [INFO] [stderr] Compiling jsonwebtoken v8.3.0 [INFO] [stderr] Compiling async-graphql-value v4.0.6 [INFO] [stderr] Compiling serde_yaml v0.9.14 [INFO] [stderr] Compiling proc-macro-crate v1.2.0 [INFO] [stderr] Compiling actix-router v0.5.0 [INFO] [stderr] Compiling async-graphql-parser v4.0.6 [INFO] [stderr] Compiling actix-web-codegen v4.0.1 [INFO] [stderr] Compiling async-graphql-derive v4.0.6 [INFO] [stderr] Compiling tokio-util v0.7.3 [INFO] [stderr] Compiling actix-rt v2.7.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling tokio-stream v0.1.11 [INFO] [stderr] Compiling sqlx-rt v0.6.2 [INFO] [stderr] Compiling actix-server v2.1.1 [INFO] [stderr] Compiling h2 v0.3.13 [INFO] [stderr] Compiling actix-codec v0.5.0 [INFO] [stderr] Compiling actix v0.13.0 [INFO] [stderr] Compiling sqlx-core v0.6.2 [INFO] [stderr] Compiling sqlx-macros v0.6.2 [INFO] [stderr] Compiling async-graphql v4.0.6 [INFO] [stderr] Compiling zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Compiling actix-http v3.2.1 [INFO] [stderr] Compiling sqlx v0.6.2 [INFO] [stderr] Compiling actix-web v4.1.0 [INFO] [stderr] Compiling actix-web-actors v4.1.0 [INFO] [stderr] Compiling async-graphql-actix-web v4.0.6 [INFO] [stderr] Compiling muscle v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: couldn't read `src/middleware/../../secret.key`: No such file or directory (os error 2) [INFO] [stdout] --> src/middleware/authn.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | static SECRETE_KEY: [u8; 16] = *include_bytes!("../../secret.key"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/repository/muscle_repository.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | / sqlx::query!( [INFO] [stdout] 31 | | "insert into muscles [INFO] [stdout] 32 | | values(?,?,?,?) [INFO] [stdout] 33 | | ", [INFO] [stdout] ... | [INFO] [stdout] 37 | | muscle.size.to_string() [INFO] [stdout] 38 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/repository/muscle_repository.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | let record = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 46 | | "select muscles.id,muscles.name,muscles.size,body_parts.name as position [INFO] [stdout] 47 | | from muscles join body_parts on muscles.body_part_id=body_parts.id [INFO] [stdout] 48 | | where muscles.id=? [INFO] [stdout] 49 | | ", [INFO] [stdout] 50 | | id [INFO] [stdout] 51 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/repository/muscle_repository.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 65 | let muscles_iter = sqlx::query!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 66 | | "select muscles.id,muscles.name,muscles.size,body_parts.name as position [INFO] [stdout] 67 | | from muscles join train_muscle on muscles.id=train_muscle.muscle_id [INFO] [stdout] 68 | | join body_parts on muscles.body_part_id=body_parts.id [INFO] [stdout] 69 | | where train_muscle.train_id=?", [INFO] [stdout] 70 | | train_id [INFO] [stdout] 71 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/repository/muscle_repository.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | / sqlx::query!( [INFO] [stdout] 94 | | r#"insert into body_parts(id,name) [INFO] [stdout] 95 | | values(?,?) [INFO] [stdout] 96 | | "#, [INFO] [stdout] 97 | | id, [INFO] [stdout] 98 | | body_part.to_string() [INFO] [stdout] 99 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/repository/muscle_repository.rs:107:22 [INFO] [stdout] | [INFO] [stdout] 107 | let record = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 108 | | "select id,name [INFO] [stdout] 109 | | from body_parts [INFO] [stdout] 110 | | where body_parts.id=? [INFO] [stdout] 111 | | ", [INFO] [stdout] 112 | | id [INFO] [stdout] 113 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/repository/muscle_repository.rs:121:22 [INFO] [stdout] | [INFO] [stdout] 121 | let record = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 122 | | "select id,name [INFO] [stdout] 123 | | from body_parts [INFO] [stdout] 124 | | where body_parts.name=? [INFO] [stdout] 125 | | ", [INFO] [stdout] 126 | | name [INFO] [stdout] 127 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/repository/train_repository.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | / sqlx::query!( [INFO] [stdout] 74 | | "insert into train_muscle(train_id,muscle_id) values(?,?)", [INFO] [stdout] 75 | | train.id, [INFO] [stdout] 76 | | muscle.id [INFO] [stdout] 77 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/repository/train_repository.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | / sqlx::query!( [INFO] [stdout] 82 | | "insert into trains(id,account_id,name,volume,rep) values(?,?,?,?,?)", [INFO] [stdout] 83 | | train.id, [INFO] [stdout] 84 | | account_id, [INFO] [stdout] ... | [INFO] [stdout] 87 | | train.rep [INFO] [stdout] 88 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/repository/train_repository.rs:96:28 [INFO] [stdout] | [INFO] [stdout] 96 | let query_trains = sqlx::query!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 97 | | "select t.id,t.name,t.volume,t.rep,m.id as train_id,m.name as muscle_name,m.size,bp.name as body_part_name [INFO] [stdout] 98 | | from trains as t [INFO] [stdout] 99 | | join train_muscle as tm on t.id=tm.train_id [INFO] [stdout] ... | [INFO] [stdout] 103 | | id [INFO] [stdout] 104 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/repository/user_repository.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | / sqlx::query!( [INFO] [stdout] 31 | | "insert into users(id,code,name,password) [INFO] [stdout] 32 | | values(?,?,?,?) [INFO] [stdout] 33 | | ", [INFO] [stdout] ... | [INFO] [stdout] 37 | | user.hashed_password, [INFO] [stdout] 38 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/repository/user_repository.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | let record = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 46 | | "select id,name,code,password [INFO] [stdout] 47 | | from users [INFO] [stdout] 48 | | where users.id=? [INFO] [stdout] 49 | | ", [INFO] [stdout] 50 | | id [INFO] [stdout] 51 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `DATABASE_URL` must be set to use query macros [INFO] [stdout] --> src/repository/user_repository.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | let record = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 66 | | "select id,name,code, password [INFO] [stdout] 67 | | from users [INFO] [stdout] 68 | | where users.code=?", [INFO] [stdout] 69 | | code [INFO] [stdout] 70 | | ) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::repository::user_repository::UserRepositoryImpl` [INFO] [stdout] --> src/presentation/train.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::repository::user_repository::UserRepositoryImpl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::user::User` [INFO] [stdout] --> src/presentation/user.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::domain::user::User; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BodyPosition` and `muscle::Muscle` [INFO] [stdout] --> src/repository/user_repository.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | muscle::Muscle, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 6 | muscle::{BodyPartRepository, BodyPosition, MuscleRepository}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/usecase/train.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/usecase/user.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/usecase/user.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BodyPosition`, `MuscleSize`, and `Muscle` [INFO] [stdout] --> src/usecase/user.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | muscle::{BodyPartRepository, BodyPosition, Muscle, MuscleRepository, MuscleSize}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils` [INFO] [stdout] --> src/utils/state.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::utils; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::mysql::MysqlConnection` [INFO] [stdout] --> src/utils/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use diesel::mysql::MysqlConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ConnectionManager` and `PooledConnection` [INFO] [stdout] --> src/utils/state.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use diesel::r2d2::{ConnectionManager, PooledConnection}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/presentation/muscle.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | req: HttpRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/presentation/muscle.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | req: HttpRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/presentation/muscle.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | req: HttpRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `conn` does not live long enough [INFO] [stdout] --> src/presentation/train.rs:70:65 [INFO] [stdout] | [INFO] [stdout] 67 | let conn = state.get_sqls_db_conn()?; [INFO] [stdout] | ---- binding `conn` declared here [INFO] [stdout] ... [INFO] [stdout] 70 | let train_repository = Box::new(TrainRepositoryImpl { conn: &conn }); [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 74 | train_repository, [INFO] [stdout] | ---------------- coercion requires that `conn` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 88 | } [INFO] [stdout] | - `conn` dropped here while still borrowed [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box` actually means `Box<(dyn TrainRepository + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/presentation/train.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | req: HttpRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `conn` does not live long enough [INFO] [stdout] --> src/presentation/train.rs:96:65 [INFO] [stdout] | [INFO] [stdout] 95 | let conn = state.get_sqls_db_conn()?; [INFO] [stdout] | ---- binding `conn` declared here [INFO] [stdout] 96 | let train_repository = Box::new(TrainRepositoryImpl { conn: &conn }); [INFO] [stdout] | ^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 99 | train_repository, [INFO] [stdout] | ---------------- coercion requires that `conn` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 106 | } [INFO] [stdout] | - `conn` dropped here while still borrowed [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box` actually means `Box<(dyn TrainRepository + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/presentation/user.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | req: HttpRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/presentation/user.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | let (user, token) = user_usecase [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/presentation/user.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | req: HttpRequest, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `fetch_one` has an incompatible type for trait [INFO] [stdout] --> src/repository/user_repository.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | async fn fetch_one(&self, id: &String) -> Result, MyError> { [INFO] [stdout] | ^^^^^ expected `User`, found `std::option::Option` [INFO] [stdout] | [INFO] [stdout] note: type in trait [INFO] [stdout] --> src/domain/user.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | async fn fetch_one(&self, id: &String) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: expected signature `fn(&'life0 UserRepositoryImpl<'_>, &'life1 std::string::String) -> Pin> + Send + 'async_trait)>>` [INFO] [stdout] found signature `fn(&'life0 UserRepositoryImpl<'_>, &'life1 std::string::String) -> Pin, MyError>> + Send + 'async_trait)>>` [INFO] [stdout] help: change the output type to match the trait [INFO] [stdout] | [INFO] [stdout] 44 - async fn fetch_one(&self, id: &String) -> Result, MyError> { [INFO] [stdout] 44 + Pin> + Send + 'async_trait)>> fn fetch_one(&self, id: &String) -> Result, MyError> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MuscleRepository` [INFO] [stdout] --> src/usecase/user.rs:9:60 [INFO] [stdout] | [INFO] [stdout] 9 | muscle::{BodyPartRepository, BodyPosition, Muscle, MuscleRepository, MuscleSize}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BodyPartRepository` [INFO] [stdout] --> src/usecase/user.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | muscle::{BodyPartRepository, BodyPosition, Muscle, MuscleRepository, MuscleSize}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::From` [INFO] [stdout] --> src/presentation/user.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::convert::From; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/repository/muscle_repository.rs:79:28 [INFO] [stdout] | [INFO] [stdout] 79 | fn find_by_name(&self, name: &String) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/utils/errors.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | fn from(err: R2D2Error) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stderr] error: could not compile `muscle` (bin "muscle") due to 16 previous errors; 22 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7555d2780cd3362672f5e8487287bbc8a33e7bb937e87be82f1f57bb71f23ccb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7555d2780cd3362672f5e8487287bbc8a33e7bb937e87be82f1f57bb71f23ccb", kill_on_drop: false }` [INFO] [stdout] 7555d2780cd3362672f5e8487287bbc8a33e7bb937e87be82f1f57bb71f23ccb