[INFO] cloning repository https://github.com/KmiGM/Autenticaci-n [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KmiGM/Autenticaci-n" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKmiGM%2FAutenticaci-n", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKmiGM%2FAutenticaci-n'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8687ebf44dcfa134cfc9d51a4fc204e9f3b2cf07 [INFO] checking KmiGM/Autenticaci-n/8687ebf44dcfa134cfc9d51a4fc204e9f3b2cf07 against master#0c478fdfe138a8b09744798c85fe2be657768b00 for pr-139419 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKmiGM%2FAutenticaci-n" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KmiGM/Autenticaci-n on toolchain 0c478fdfe138a8b09744798c85fe2be657768b00 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0c478fdfe138a8b09744798c85fe2be657768b00" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/KmiGM/Autenticaci-n [INFO] finished tweaking git repo https://github.com/KmiGM/Autenticaci-n [INFO] tweaked toml for git repo https://github.com/KmiGM/Autenticaci-n written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/KmiGM/Autenticaci-n 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" "+0c478fdfe138a8b09744798c85fe2be657768b00" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rocket_db_pools_codegen v0.1.0 [INFO] [stderr] Downloaded password-hash v0.3.2 [INFO] [stderr] Downloaded base64ct v1.0.1 [INFO] [stderr] Downloaded rocket_db_pools v0.1.0 [INFO] [stderr] Downloaded argon2 v0.3.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+0c478fdfe138a8b09744798c85fe2be657768b00" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7d651a3ef578d2b47c80a6179938015df1543dafe264432def24e0bad024e6e6 [INFO] running `Command { std: "docker" "start" "-a" "7d651a3ef578d2b47c80a6179938015df1543dafe264432def24e0bad024e6e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d651a3ef578d2b47c80a6179938015df1543dafe264432def24e0bad024e6e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d651a3ef578d2b47c80a6179938015df1543dafe264432def24e0bad024e6e6", kill_on_drop: false }` [INFO] [stdout] 7d651a3ef578d2b47c80a6179938015df1543dafe264432def24e0bad024e6e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=forbid" "-e" "RUSTDOCFLAGS=--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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+0c478fdfe138a8b09744798c85fe2be657768b00" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 54e5ff4081a05dbb930a3af1f8315c7883814c067858ace14ce51724d01bd283 [INFO] running `Command { std: "docker" "start" "-a" "54e5ff4081a05dbb930a3af1f8315c7883814c067858ace14ce51724d01bd283", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling serde v1.0.216 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling time-macros v0.2.19 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling ref-cast v1.0.23 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling tokio v1.42.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling rustix v0.38.42 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking winnow v0.6.20 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling libsqlite3-sys v0.22.2 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking http v1.2.0 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking base64ct v1.0.1 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking password-hash v0.3.2 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Compiling serde_derive v1.0.216 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.23 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking pear v0.2.9 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking tempfile v3.14.0 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling rocket_db_pools_codegen v0.1.0 [INFO] [stderr] Checking argon2 v0.3.4 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Checking diesel v1.4.8 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Checking toml_edit v0.22.22 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking rocket_db_pools v0.1.0 [INFO] [stderr] Checking Segunda3 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `argon2::Config` [INFO] [stdout] --> src/main.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | use argon2::{Argon2, Config}; // Cambia esta línea [INFO] [stdout] | ^^^^^^ no `Config` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items instead: [INFO] [stdout] rocket::Config [INFO] [stdout] rocket::error::ErrorKind::Config [INFO] [stdout] rocket_db_pools::Config [INFO] [stdout] rocket_db_pools::Error::Config [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::schema` [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::schema::users; [INFO] [stdout] | ^^^^^^ could not find `schema` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `argon2::Config` [INFO] [stdout] --> src/main.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | use argon2::{Argon2, Config}; // Cambia esta línea [INFO] [stdout] | ^^^^^^ no `Config` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these items instead: [INFO] [stdout] rocket::Config [INFO] [stdout] rocket::error::ErrorKind::Config [INFO] [stdout] rocket_db_pools::Config [INFO] [stdout] rocket_db_pools::Error::Config [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `database` in this scope [INFO] [stdout] --> src/main.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 20 | #[database("sqlite_db")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::schema` [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::schema::users; [INFO] [stdout] | ^^^^^^ could not find `schema` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] extern crate rocket_db_pools; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::Queryable` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use diesel::Queryable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `database` in this scope [INFO] [stdout] --> src/main.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 20 | #[database("sqlite_db")] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] extern crate rocket_db_pools; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::Queryable` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use diesel::Queryable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:50 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:50 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `hash_encoded` found for struct `Argon2` in the current scope [INFO] [stdout] --> src/main.rs:41:34 [INFO] [stdout] | [INFO] [stdout] 41 | let hashed_password = argon2.hash_encoded(user.password.as_bytes(), b"somesalt", &Config::default()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Argon2<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `hash_encoded` found for struct `Argon2` in the current scope [INFO] [stdout] --> src/main.rs:41:34 [INFO] [stdout] | [INFO] [stdout] 41 | let hashed_password = argon2.hash_encoded(user.password.as_bytes(), b"somesalt", &Config::default()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Argon2<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `verify_encoded` found for struct `Argon2` in the current scope [INFO] [stdout] --> src/main.rs:72:23 [INFO] [stdout] | [INFO] [stdout] 72 | if argon2.verify_encoded(&record.password, user.password.as_bytes()).is_ok () { [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `Argon2<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:72:91 [INFO] [stdout] | [INFO] [stdout] 72 | if argon2.verify_encoded(&record.password, user.password.as_bytes()).is_ok () { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 73 | | // Establecer una cookie de sesión [INFO] [stdout] 74 | | cookies.add(Cookie::new("user_id", record.id.to_string())); [INFO] [stdout] 75 | | Status::Ok; [INFO] [stdout] | | - help: remove this semicolon to return this value [INFO] [stdout] 76 | | }else { [INFO] [stdout] | |_____________^ expected `Status`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `verify_encoded` found for struct `Argon2` in the current scope [INFO] [stdout] --> src/main.rs:72:23 [INFO] [stdout] | [INFO] [stdout] 72 | if argon2.verify_encoded(&record.password, user.password.as_bytes()).is_ok () { [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `Argon2<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:72:91 [INFO] [stdout] | [INFO] [stdout] 72 | if argon2.verify_encoded(&record.password, user.password.as_bytes()).is_ok () { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 73 | | // Establecer una cookie de sesión [INFO] [stdout] 74 | | cookies.add(Cookie::new("user_id", record.id.to_string())); [INFO] [stdout] 75 | | Status::Ok; [INFO] [stdout] | | - help: remove this semicolon to return this value [INFO] [stdout] 76 | | }else { [INFO] [stdout] | |_____________^ expected `Status`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:55 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:55 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:55 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:55 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:55 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:55 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:55 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&rocket_db_pools::Connection: FromRequest<'_>` is not satisfied [INFO] [stdout] --> src/main.rs:36:55 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `FromRequest<'_>` is not implemented for `&rocket_db_pools::Connection` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromRequest<'_>` is not implemented for `&rocket_db_pools::Connection` [INFO] [stdout] but it is implemented for `rocket_db_pools::Connection<_>` [INFO] [stdout] = help: for that trait implementation, expected `rocket_db_pools::Connection<_>`, found `&rocket_db_pools::Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:55 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:56 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&rocket_db_pools::Connection: FromRequest<'_>` is not satisfied [INFO] [stdout] --> src/main.rs:36:55 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `FromRequest<'_>` is not implemented for `&rocket_db_pools::Connection` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromRequest<'_>` is not implemented for `&rocket_db_pools::Connection` [INFO] [stdout] but it is implemented for `rocket_db_pools::Connection<_>` [INFO] [stdout] = help: for that trait implementation, expected `rocket_db_pools::Connection<_>`, found `&rocket_db_pools::Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:36:51 [INFO] [stdout] | [INFO] [stdout] 36 | async fn register_user(user: Json, db: &Connection) -> Status { [INFO] [stdout] | ^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:50 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:50 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:50 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&rocket_db_pools::Connection: FromRequest<'_>` is not satisfied [INFO] [stdout] --> src/main.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `FromRequest<'_>` is not implemented for `&rocket_db_pools::Connection` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromRequest<'_>` is not implemented for `&rocket_db_pools::Connection` [INFO] [stdout] but it is implemented for `rocket_db_pools::Connection<_>` [INFO] [stdout] = help: for that trait implementation, expected `rocket_db_pools::Connection<_>`, found `&rocket_db_pools::Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:45 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:50 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:50 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:50 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] = note: this error originates in the macro `::rocket::sentinel::resolve` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&rocket_db_pools::Connection: FromRequest<'_>` is not satisfied [INFO] [stdout] --> src/main.rs:62:49 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `FromRequest<'_>` is not implemented for `&rocket_db_pools::Connection` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromRequest<'_>` is not implemented for `&rocket_db_pools::Connection` [INFO] [stdout] but it is implemented for `rocket_db_pools::Connection<_>` [INFO] [stdout] = help: for that trait implementation, expected `rocket_db_pools::Connection<_>`, found `&rocket_db_pools::Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Db: Database` is not satisfied [INFO] [stdout] --> src/main.rs:62:45 [INFO] [stdout] | [INFO] [stdout] 62 | async fn login_user(user: Json, db: &Connection, cookies: &CookieJar<'_>) -> Status { [INFO] [stdout] | ^^ the trait `Database` is not implemented for `Db` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `rocket_db_pools::Connection` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rocket_db_pools-0.1.0/src/database.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | pub struct Connection(::Connection); [INFO] [stdout] | ^^^^^^^^ required by this bound in `Connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `init` found for struct `Db` in the current scope [INFO] [stdout] --> src/main.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 21 | struct Db(SqliteConnection); [INFO] [stdout] | --------- function or associated item `init` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 98 | .attach(Db::init()) [INFO] [stdout] | ^^^^ function or associated item not found in `Db` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `init`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Database` [INFO] [stdout] candidate #2: `FromForm` [INFO] [stdout] candidate #3: `Pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `init` found for struct `Db` in the current scope [INFO] [stdout] --> src/main.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 21 | struct Db(SqliteConnection); [INFO] [stdout] | --------- function or associated item `init` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 98 | .attach(Db::init()) [INFO] [stdout] | ^^^^ function or associated item not found in `Db` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `init`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Database` [INFO] [stdout] candidate #2: `FromForm` [INFO] [stdout] candidate #3: `Pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::prelude` [INFO] [stdout] --> src/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::prelude` [INFO] [stdout] --> src/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `Segunda3` (bin "Segunda3") due to 27 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `Segunda3` (bin "Segunda3" test) due to 27 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "54e5ff4081a05dbb930a3af1f8315c7883814c067858ace14ce51724d01bd283", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54e5ff4081a05dbb930a3af1f8315c7883814c067858ace14ce51724d01bd283", kill_on_drop: false }` [INFO] [stdout] 54e5ff4081a05dbb930a3af1f8315c7883814c067858ace14ce51724d01bd283