[INFO] cloning repository https://github.com/aqrun/aqblog [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aqrun/aqblog" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faqrun%2Faqblog", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faqrun%2Faqblog'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d49bdbacdb5949c8544fee5e91b2e9ef9d3e3d03 [INFO] testing aqrun/aqblog against 1.59.0 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faqrun%2Faqblog" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aqrun/aqblog on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aqrun/aqblog [INFO] finished tweaking git repo https://github.com/aqrun/aqblog [INFO] tweaked toml for git repo https://github.com/aqrun/aqblog written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/aqrun/aqblog already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "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] fc469b71da615826050277ed8869aecc84f61d994bc24b324951d640553d74ef [INFO] running `Command { std: "docker" "start" "-a" "fc469b71da615826050277ed8869aecc84f61d994bc24b324951d640553d74ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc469b71da615826050277ed8869aecc84f61d994bc24b324951d640553d74ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc469b71da615826050277ed8869aecc84f61d994bc24b324951d640553d74ef", kill_on_drop: false }` [INFO] [stdout] fc469b71da615826050277ed8869aecc84f61d994bc24b324951d640553d74ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 388f6e11b449638198b9b1cf12a2ddeebf177bea1392af1bd494f71a125e818a [INFO] running `Command { std: "docker" "start" "-a" "388f6e11b449638198b9b1cf12a2ddeebf177bea1392af1bd494f71a125e818a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling futures-io v0.3.15 [INFO] [stderr] Compiling gimli v0.24.0 [INFO] [stderr] Compiling async-trait v0.1.50 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling base64 v0.11.0 [INFO] [stderr] Compiling sha1 v0.6.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling v_htmlescape v0.4.5 [INFO] [stderr] Compiling if_chain v0.1.3 [INFO] [stderr] Compiling futures-util v0.3.15 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling backtrace v0.3.60 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling miniz-sys v0.1.12 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling libsqlite3-sys v0.22.2 [INFO] [stderr] Compiling tracing v0.1.26 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling crossbeam-channel v0.4.4 [INFO] [stderr] Compiling argon2rs v0.2.5 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling object v0.25.3 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling parking_lot_core v0.7.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling listenfd v0.3.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling resolv-conf v0.6.3 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling flate2 v1.0.20 [INFO] [stderr] Compiling parking_lot v0.10.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling addr2line v0.15.2 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.5 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling backoff v0.1.6 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling r2d2 v0.8.9 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling env_logger v0.6.2 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling derive_more v0.15.0 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-util v0.2.0 [INFO] [stderr] Compiling actix-codec v0.2.0 [INFO] [stderr] Compiling futures-macro v0.3.15 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling pin-project-internal v0.4.28 [INFO] [stderr] Compiling derive_more v0.99.14 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling pin-project-internal v1.0.7 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling actix-web-codegen v0.2.2 [INFO] [stderr] Compiling v_escape_derive v0.5.6 [INFO] [stderr] Compiling actix_derive v0.5.0 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling dotenv v0.14.1 [INFO] [stderr] Compiling v_escape v0.7.4 [INFO] [stderr] Compiling pin-project v1.0.7 [INFO] [stderr] Compiling pin-project v0.4.28 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling futures-executor v0.3.15 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling redis-async v0.6.2 [INFO] [stderr] Compiling futures v0.3.15 [INFO] [stderr] Compiling trust-dns-proto v0.18.0-alpha.2 [INFO] [stderr] Compiling actix-utils v1.0.6 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling actix-tls v1.0.0 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling trust-dns-resolver v0.18.0-alpha.2 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling uuid v0.7.4 [INFO] [stderr] Compiling envy v0.4.2 [INFO] [stderr] Compiling actix-connect v1.0.2 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling diesel v1.4.7 [INFO] [stderr] Compiling actix-http v1.0.1 [INFO] [stderr] Compiling validator v0.8.0 [INFO] [stderr] Compiling jsonwebtoken v7.2.0 [INFO] [stderr] Compiling validator_derive v0.8.0 [INFO] [stderr] Compiling awc v1.0.1 [INFO] [stderr] Compiling actix v0.9.0 [INFO] [stderr] Compiling actix-web v2.0.0 [INFO] [stderr] Compiling actix-session v0.3.0 [INFO] [stderr] Compiling actix-files v0.2.2 [INFO] [stderr] Compiling actix-cors v0.2.0 [INFO] [stderr] Compiling actix-identity v0.2.1 [INFO] [stderr] Compiling actix-redis v0.8.2 [INFO] [stderr] Compiling r2d2-diesel v1.0.0 [INFO] [stderr] Compiling aqblog v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/database.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[serde(untagged)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | #[derive(Clone, Deserialize, Debug, PartialEq)] [INFO] [stdout] | ----------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(legacy_derive_helpers)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4m 50s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: actix-web v2.0.0 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 7` [INFO] running `Command { std: "docker" "inspect" "388f6e11b449638198b9b1cf12a2ddeebf177bea1392af1bd494f71a125e818a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "388f6e11b449638198b9b1cf12a2ddeebf177bea1392af1bd494f71a125e818a", kill_on_drop: false }` [INFO] [stdout] 388f6e11b449638198b9b1cf12a2ddeebf177bea1392af1bd494f71a125e818a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04b741c778620faf40ecedde9f9725c9a90b5967c7934ed172ce7cadcbd19045 [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" "04b741c778620faf40ecedde9f9725c9a90b5967c7934ed172ce7cadcbd19045", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling actix-service v0.4.2 [INFO] [stderr] Compiling hashbrown v0.6.3 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling tokio-timer v0.2.13 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling enum-as-inner v0.2.1 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling tokio-io v0.1.13 [INFO] [stderr] Compiling http v0.1.21 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling actix-threadpool v0.1.2 [INFO] [stderr] Compiling const-random-macro v0.1.13 [INFO] [stderr] Compiling tokio-reactor v0.1.12 [INFO] [stderr] Compiling tokio-codec v0.1.2 [INFO] [stderr] Compiling actix-codec v0.1.2 [INFO] [stderr] Compiling actix-utils v0.4.7 [INFO] [stderr] Compiling tokio-tcp v0.1.4 [INFO] [stderr] Compiling tokio-udp v0.1.6 [INFO] [stderr] Compiling actix-rt v0.2.6 [INFO] [stderr] Compiling tokio-signal v0.2.9 [INFO] [stderr] Compiling const-random v0.1.13 [INFO] [stderr] Compiling actix-server-config v0.1.2 [INFO] [stderr] Compiling ahash v0.2.19 [INFO] [stderr] Compiling trust-dns-proto v0.7.4 [INFO] [stderr] Compiling actix-server v0.6.1 [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling trust-dns-resolver v0.11.1 [INFO] [stderr] Compiling actix-connect v0.2.5 [INFO] [stderr] Compiling actix-http v0.2.11 [INFO] [stderr] Compiling awc v0.2.8 [INFO] [stderr] Compiling actix-http-test v0.2.5 [INFO] [stderr] Compiling aqblog v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: derive helper attribute is used before it is introduced [INFO] [stdout] --> src/database.rs:12:3 [INFO] [stdout] | [INFO] [stdout] 12 | #[serde(untagged)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | #[derive(Clone, Deserialize, Debug, PartialEq)] [INFO] [stdout] | ----------- the attribute is introduced here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(legacy_derive_helpers)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79202 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/handlers/auth.rs:77:25 [INFO] [stdout] | [INFO] [stdout] 77 | login(identity, get_data_pool(), Json(params)).await [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `actix_web::web::Data>>` [INFO] [stdout] found struct `actix_web::web::Data>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/handlers/user.rs:159:17 [INFO] [stdout] | [INFO] [stdout] 159 | get_all(&pool).unwrap() [INFO] [stdout] | ^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&r2d2::Pool>` [INFO] [stdout] found reference `&r2d2::Pool>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/user.rs:149:17 [INFO] [stdout] | [INFO] [stdout] 149 | get_all(&pool) [INFO] [stdout] | ^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&r2d2::Pool>` [INFO] [stdout] found reference `&r2d2::Pool>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/user.rs:164:16 [INFO] [stdout] | [INFO] [stdout] 164 | create(&get_pool(), &user) [INFO] [stdout] | ^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&r2d2::Pool>` [INFO] [stdout] found reference `&r2d2::Pool>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/handlers/user.rs:170:42 [INFO] [stdout] | [INFO] [stdout] 170 | let response = get_user(user_id, get_data_pool()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `actix_web::web::Data>>` [INFO] [stdout] found struct `actix_web::web::Data>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/handlers/user.rs:178:42 [INFO] [stdout] | [INFO] [stdout] 178 | let response = get_user(user_id, get_data_pool()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `actix_web::web::Data>>` [INFO] [stdout] found struct `actix_web::web::Data>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/handlers/user.rs:186:34 [INFO] [stdout] | [INFO] [stdout] 186 | let response = get_users(get_data_pool()).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `actix_web::web::Data>>` [INFO] [stdout] found struct `actix_web::web::Data>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/handlers/user.rs:199:36 [INFO] [stdout] | [INFO] [stdout] 199 | let response = create_user(get_data_pool(), Json(params.clone())) [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `actix_web::web::Data>>` [INFO] [stdout] found struct `actix_web::web::Data>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/handlers/user.rs:214:45 [INFO] [stdout] | [INFO] [stdout] 214 | let response = update_user(user_id, get_data_pool(), Json(params.clone())) [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `actix_web::web::Data>>` [INFO] [stdout] found struct `actix_web::web::Data>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/handlers/user.rs:225:25 [INFO] [stdout] | [INFO] [stdout] 225 | let user = find(&get_pool(), user_id); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&r2d2::Pool>` [INFO] [stdout] found reference `&r2d2::Pool>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/handlers/user.rs:227:35 [INFO] [stdout] | [INFO] [stdout] 227 | delete_user(user_id_path, get_data_pool()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `actix_web::web::Data>>` [INFO] [stdout] found struct `actix_web::web::Data>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/handlers/user.rs:228:25 [INFO] [stdout] | [INFO] [stdout] 228 | let user = find(&get_pool(), user_id); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&r2d2::Pool>` [INFO] [stdout] found reference `&r2d2::Pool>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/user.rs:177:31 [INFO] [stdout] | [INFO] [stdout] 177 | let found_user = find(&get_pool(), user.id).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&r2d2::Pool>` [INFO] [stdout] found reference `&r2d2::Pool>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/user.rs:184:35 [INFO] [stdout] | [INFO] [stdout] 184 | let not_found_user = find(&get_pool(), user_id); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&r2d2::Pool>` [INFO] [stdout] found reference `&r2d2::Pool>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/user.rs:193:31 [INFO] [stdout] | [INFO] [stdout] 193 | let found_user = find(&get_pool(), unwrapped.id.clone()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&r2d2::Pool>` [INFO] [stdout] found reference `&r2d2::Pool>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/user.rs:208:30 [INFO] [stdout] | [INFO] [stdout] 208 | let updated = update(&get_pool(), &update_user); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&r2d2::Pool>` [INFO] [stdout] found reference `&r2d2::Pool>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/user.rs:210:31 [INFO] [stdout] | [INFO] [stdout] 210 | let found_user = find(&get_pool(), user.id).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&r2d2::Pool>` [INFO] [stdout] found reference `&r2d2::Pool>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/user.rs:224:30 [INFO] [stdout] | [INFO] [stdout] 224 | let updated = update(&get_pool(), &update_user); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&r2d2::Pool>` [INFO] [stdout] found reference `&r2d2::Pool>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/user.rs:232:25 [INFO] [stdout] | [INFO] [stdout] 232 | let user = find(&get_pool(), user_id); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&r2d2::Pool>` [INFO] [stdout] found reference `&r2d2::Pool>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/user.rs:234:16 [INFO] [stdout] | [INFO] [stdout] 234 | delete(&get_pool(), user_id).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&r2d2::Pool>` [INFO] [stdout] found reference `&r2d2::Pool>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/user.rs:235:25 [INFO] [stdout] | [INFO] [stdout] 235 | let user = find(&get_pool(), user_id); [INFO] [stdout] | ^^^^^^^^^^^ expected struct `PgConnection`, found struct `MysqlConnection` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&r2d2::Pool>` [INFO] [stdout] found reference `&r2d2::Pool>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aqblog` due to 22 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "04b741c778620faf40ecedde9f9725c9a90b5967c7934ed172ce7cadcbd19045", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04b741c778620faf40ecedde9f9725c9a90b5967c7934ed172ce7cadcbd19045", kill_on_drop: false }` [INFO] [stdout] 04b741c778620faf40ecedde9f9725c9a90b5967c7934ed172ce7cadcbd19045