[INFO] cloning repository https://github.com/GuglielmoFelici/niccolgur-be [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GuglielmoFelici/niccolgur-be" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGuglielmoFelici%2Fniccolgur-be"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGuglielmoFelici%2Fniccolgur-be'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] f826e22f44ca6c0623ff48321afd37d3b002c6ab [INFO] checking GuglielmoFelici/niccolgur-be against master#783139bd8fc3b94fac9a1bf81bba2c506e8221b6 for pr-72644 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGuglielmoFelici%2Fniccolgur-be" "/workspace/builds/worker-7/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GuglielmoFelici/niccolgur-be on toolchain 783139bd8fc3b94fac9a1bf81bba2c506e8221b6 [INFO] running `"/workspace/cargo-home/bin/cargo" "+783139bd8fc3b94fac9a1bf81bba2c506e8221b6" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/GuglielmoFelici/niccolgur-be [INFO] finished tweaking git repo https://github.com/GuglielmoFelici/niccolgur-be [INFO] tweaked toml for git repo https://github.com/GuglielmoFelici/niccolgur-be written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/GuglielmoFelici/niccolgur-be already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+783139bd8fc3b94fac9a1bf81bba2c506e8221b6" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+783139bd8fc3b94fac9a1bf81bba2c506e8221b6" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 67d88c40953e52b84dfc6a12a9847c8d8d14fc140966079dbf5d02b552199559 [INFO] running `"docker" "start" "-a" "67d88c40953e52b84dfc6a12a9847c8d8d14fc140966079dbf5d02b552199559"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking smallvec v1.4.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling cc v1.0.53 [INFO] [stderr] Compiling version_check v0.9.1 [INFO] [stderr] Compiling yansi v0.4.0 [INFO] [stderr] Compiling proc-macro2 v1.0.17 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Checking futures v0.1.29 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling syn v1.0.27 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling untrusted v0.6.2 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Checking ascii v0.9.3 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Compiling redis v0.9.1 [INFO] [stderr] Compiling state v0.4.1 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking lazycell v1.2.1 [INFO] [stderr] Checking sha1 v0.6.0 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking unicode-normalization v0.1.12 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling pear_codegen v0.1.2 [INFO] [stderr] Compiling rocket_codegen v0.4.4 [INFO] [stderr] Compiling rocket_contrib_codegen v0.4.4 [INFO] [stderr] Compiling rocket v0.4.4 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Compiling ring v0.13.5 [INFO] [stderr] Checking combine v3.8.1 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking parking_lot_core v0.7.2 [INFO] [stderr] Checking inotify-sys v0.1.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking filetime v0.2.10 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking inotify v0.7.0 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Checking scheduled-thread-pool v0.2.4 [INFO] [stderr] Checking r2d2 v0.8.8 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking hyper v0.10.16 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Checking notify v4.0.15 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Checking cookie v0.11.2 [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Compiling devise_core v0.2.0 [INFO] [stderr] Compiling devise_codegen v0.2.0 [INFO] [stderr] Compiling devise v0.2.0 [INFO] [stderr] Compiling pear v0.1.2 [INFO] [stderr] Compiling rocket_http v0.4.4 [INFO] [stderr] Checking r2d2_redis v0.8.0 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Checking serde_json v1.0.53 [INFO] [stderr] Checking rocket_contrib v0.4.4 [INFO] [stderr] Checking be v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused import: `std::error::Error` [INFO] [stderr] --> src/entities.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::error::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Cursor` [INFO] [stderr] --> src/entities.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::Cursor; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rocket::http::ContentType` [INFO] [stderr] --> src/entities.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use rocket::http::ContentType; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rocket::request::Request` [INFO] [stderr] --> src/entities.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use rocket::request::Request; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Responder`, `Response`, `self` [INFO] [stderr] --> src/entities.rs:7:24 [INFO] [stderr] | [INFO] [stderr] 7 | use rocket::response::{self, Responder, Response}; [INFO] [stderr] | ^^^^ ^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rocket_contrib::databases::r2d2_redis::redis::RedisError` [INFO] [stderr] --> src/controllers.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use rocket_contrib::databases::r2d2_redis::redis::RedisError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `HashMap` [INFO] [stderr] --> src/services.rs:1:24 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `RedisError` [INFO] [stderr] --> src/services.rs:4:52 [INFO] [stderr] | [INFO] [stderr] 4 | use rocket_contrib::databases::r2d2_redis::redis::{RedisError, RedisResult}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::ErrorKind` [INFO] [stderr] --> src/services.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use std::io::ErrorKind; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::error::Error` [INFO] [stderr] --> src/entities.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::error::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Cursor` [INFO] [stderr] --> src/entities.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::io::Cursor; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rocket::http::ContentType` [INFO] [stderr] --> src/entities.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use rocket::http::ContentType; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rocket::request::Request` [INFO] [stderr] --> src/entities.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use rocket::request::Request; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Responder`, `Response`, `self` [INFO] [stderr] --> src/entities.rs:7:24 [INFO] [stderr] | [INFO] [stderr] 7 | use rocket::response::{self, Responder, Response}; [INFO] [stderr] | ^^^^ ^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rocket_contrib::databases::r2d2_redis::redis::RedisError` [INFO] [stderr] --> src/controllers.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use rocket_contrib::databases::r2d2_redis::redis::RedisError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `HashMap` [INFO] [stderr] --> src/services.rs:1:24 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `RedisError` [INFO] [stderr] --> src/services.rs:4:52 [INFO] [stderr] | [INFO] [stderr] 4 | use rocket_contrib::databases::r2d2_redis::redis::{RedisError, RedisResult}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::ErrorKind` [INFO] [stderr] --> src/services.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use std::io::ErrorKind; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `impl std::error::Error` [INFO] [stderr] --> src/services.rs:42:19 [INFO] [stderr] | [INFO] [stderr] 41 | pub fn queue_users(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ----------------------------- expected `impl std::error::Error` because of this [INFO] [stderr] 42 | Ok(queue(conn)?.iter().filter_map(|id| user(conn, id).ok()).collect()) [INFO] [stderr] | ^ the trait `std::convert::From` is not implemented for `impl std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = note: required by `std::convert::From::from` [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `impl std::error::Error` [INFO] [stderr] --> src/services.rs:42:19 [INFO] [stderr] | [INFO] [stderr] 41 | pub fn queue_users(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ----------------------------- expected `impl std::error::Error` because of this [INFO] [stderr] 42 | Ok(queue(conn)?.iter().filter_map(|id| user(conn, id).ok()).collect()) [INFO] [stderr] | ^ the trait `std::convert::From` is not implemented for `impl std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = note: required by `std::convert::From::from` [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `impl std::error::Error` [INFO] [stderr] --> src/services.rs:31:20 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn users_full(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | --------------------------------- expected `impl std::error::Error` because of this [INFO] [stderr] 31 | Ok(users(&conn)?.iter().filter_map(|id| user(conn, id).ok()).collect()) [INFO] [stderr] | ^ the trait `std::convert::From` is not implemented for `impl std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = note: required by `std::convert::From::from` [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `impl std::error::Error` [INFO] [stderr] --> src/services.rs:31:20 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn users_full(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | --------------------------------- expected `impl std::error::Error` because of this [INFO] [stderr] 31 | Ok(users(&conn)?.iter().filter_map(|id| user(conn, id).ok()).collect()) [INFO] [stderr] | ^ the trait `std::convert::From` is not implemented for `impl std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = note: required by `std::convert::From::from` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/services.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 22 | pub fn user(conn: &NiccDbConn, id: &str) -> Result { [INFO] [stderr] | ------------------------ expected because this return type... [INFO] [stderr] ... [INFO] [stderr] 25 | Err(e) => return Err(e), [INFO] [stderr] | ------ ...is found to be `std::result::Result` here [INFO] [stderr] 26 | }; [INFO] [stderr] 27 | User::from_map(&map) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ expected struct `rocket_contrib::databases::redis::RedisError`, found struct `std::option::NoneError` [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::result::Result<_, rocket_contrib::databases::redis::RedisError>` [INFO] [stderr] found enum `std::result::Result<_, std::option::NoneError>` [INFO] [stderr] = note: to return `impl Trait`, all returned values must be of the same type [INFO] [stderr] = note: for information on `impl Trait`, see [INFO] [stderr] = help: alternatively, create a new `enum` with a variant for each returned type [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/services.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 22 | pub fn user(conn: &NiccDbConn, id: &str) -> Result { [INFO] [stderr] | ------------------------ expected because this return type... [INFO] [stderr] ... [INFO] [stderr] 25 | Err(e) => return Err(e), [INFO] [stderr] | ------ ...is found to be `std::result::Result` here [INFO] [stderr] 26 | }; [INFO] [stderr] 27 | User::from_map(&map) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ expected struct `rocket_contrib::databases::redis::RedisError`, found struct `std::option::NoneError` [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::result::Result<_, rocket_contrib::databases::redis::RedisError>` [INFO] [stderr] found enum `std::result::Result<_, std::option::NoneError>` [INFO] [stderr] = note: to return `impl Trait`, all returned values must be of the same type [INFO] [stderr] = note: for information on `impl Trait`, see [INFO] [stderr] = help: alternatively, create a new `enum` with a variant for each returned type [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `impl std::error::Error` [INFO] [stderr] --> src/services.rs:71:72 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn season_last(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ------------------------------- expected `impl std::error::Error` because of this [INFO] [stderr] 71 | let idx: HashSet = conn.0.smembers(compose!(SEASON, INDEX))?; [INFO] [stderr] | ^ the trait `std::convert::From` is not implemented for `impl std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = note: required by `std::convert::From::from` [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `impl std::error::Error` [INFO] [stderr] --> src/services.rs:72:43 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn season_last(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ------------------------------- expected `impl std::error::Error` because of this [INFO] [stderr] 71 | let idx: HashSet = conn.0.smembers(compose!(SEASON, INDEX))?; [INFO] [stderr] 72 | season(conn, idx.iter().max().ok_or(0)?) [INFO] [stderr] | ^ the trait `std::convert::From<{integer}>` is not implemented for `impl std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = note: required by `std::convert::From::from` [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `impl std::error::Error` [INFO] [stderr] --> src/services.rs:71:72 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn season_last(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ------------------------------- expected `impl std::error::Error` because of this [INFO] [stderr] 71 | let idx: HashSet = conn.0.smembers(compose!(SEASON, INDEX))?; [INFO] [stderr] | ^ the trait `std::convert::From` is not implemented for `impl std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = note: required by `std::convert::From::from` [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `impl std::error::Error` [INFO] [stderr] --> src/services.rs:72:43 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn season_last(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ------------------------------- expected `impl std::error::Error` because of this [INFO] [stderr] 71 | let idx: HashSet = conn.0.smembers(compose!(SEASON, INDEX))?; [INFO] [stderr] 72 | season(conn, idx.iter().max().ok_or(0)?) [INFO] [stderr] | ^ the trait `std::convert::From<{integer}>` is not implemented for `impl std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = note: required by `std::convert::From::from` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/controllers.rs:74:5 [INFO] [stderr] | [INFO] [stderr] 74 | services::season_last_full(&conn).map(Json) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected struct `std::string::String`, found struct `entities::Niccolgur` [INFO] [stderr] | help: try using a variant of the expected enum: `entities::_IMPL_SERIALIZE_FOR_User::_serde::export::Err(services::season_last_full(&conn).map(Json))` [INFO] [stderr] | [INFO] [stderr] ::: src/services.rs:75:70 [INFO] [stderr] | [INFO] [stderr] 75 | pub fn season_last_full(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ---------- the found opaque type [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::result::Result>, _>` [INFO] [stderr] found enum `std::result::Result>, impl std::error::Error>` [INFO] [stderr] [INFO] [stderr] error[E0720]: opaque type expands to a recursive type [INFO] [stderr] --> src/services.rs:30:63 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn users_full(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ^^^^^^^^^^ expands to a recursive type [INFO] [stderr] | [INFO] [stderr] = note: type resolves to itself [INFO] [stderr] [INFO] [stderr] error[E0720]: opaque type expands to a recursive type [INFO] [stderr] --> src/services.rs:41:60 [INFO] [stderr] | [INFO] [stderr] 41 | pub fn queue_users(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ^^^^^^^^^^ expands to a recursive type [INFO] [stderr] | [INFO] [stderr] = note: type resolves to itself [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/services.rs:55:55 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn niccolgur_full(conn: &NiccDbConn, id: &str) -> Result { [INFO] [stderr] | -------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found `()` [INFO] [stderr] | | [INFO] [stderr] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::result::Result` [INFO] [stderr] found unit type `()` [INFO] [stderr] [INFO] [stderr] error[E0277]: a value of type `std::result::Result, _>` cannot be built from an iterator over elements of type `entities::Niccolgur` [INFO] [stderr] --> src/services.rs:67:79 [INFO] [stderr] | [INFO] [stderr] 67 | season(conn, id)?.iter().filter_map(|nicc| niccolgur_full(conn, id).ok()).collect() [INFO] [stderr] | ^^^^^^^ value of type `std::result::Result, _>` cannot be built from `std::iter::Iterator` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::iter::FromIterator` is not implemented for `std::result::Result, _>` [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `impl std::error::Error` [INFO] [stderr] --> src/services.rs:76:72 [INFO] [stderr] | [INFO] [stderr] 75 | pub fn season_last_full(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ---------------------------------- expected `impl std::error::Error` because of this [INFO] [stderr] 76 | let idx: HashSet = conn.0.smembers(compose!(SEASON, INDEX))?; [INFO] [stderr] | ^ the trait `std::convert::From` is not implemented for `impl std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = note: required by `std::convert::From::from` [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `impl std::error::Error` [INFO] [stderr] --> src/services.rs:77:48 [INFO] [stderr] | [INFO] [stderr] 75 | pub fn season_last_full(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ---------------------------------- expected `impl std::error::Error` because of this [INFO] [stderr] 76 | let idx: HashSet = conn.0.smembers(compose!(SEASON, INDEX))?; [INFO] [stderr] 77 | season_full(conn, idx.iter().max().ok_or(0)?) [INFO] [stderr] | ^ the trait `std::convert::From<{integer}>` is not implemented for `impl std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = note: required by `std::convert::From::from` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/controllers.rs:74:5 [INFO] [stderr] | [INFO] [stderr] 74 | services::season_last_full(&conn).map(Json) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected struct `std::string::String`, found struct `entities::Niccolgur` [INFO] [stderr] | help: try using a variant of the expected enum: `entities::_IMPL_SERIALIZE_FOR_User::_serde::export::Err(services::season_last_full(&conn).map(Json))` [INFO] [stderr] | [INFO] [stderr] ::: src/services.rs:75:70 [INFO] [stderr] | [INFO] [stderr] 75 | pub fn season_last_full(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ---------- the found opaque type [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::result::Result>, _>` [INFO] [stderr] found enum `std::result::Result>, impl std::error::Error>` [INFO] [stderr] [INFO] [stderr] error[E0720]: opaque type expands to a recursive type [INFO] [stderr] --> src/services.rs:30:63 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn users_full(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ^^^^^^^^^^ expands to a recursive type [INFO] [stderr] | [INFO] [stderr] = note: type resolves to itself [INFO] [stderr] [INFO] [stderr] error[E0720]: opaque type expands to a recursive type [INFO] [stderr] --> src/services.rs:41:60 [INFO] [stderr] | [INFO] [stderr] 41 | pub fn queue_users(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ^^^^^^^^^^ expands to a recursive type [INFO] [stderr] | [INFO] [stderr] = note: type resolves to itself [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/services.rs:55:55 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn niccolgur_full(conn: &NiccDbConn, id: &str) -> Result { [INFO] [stderr] | -------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found `()` [INFO] [stderr] | | [INFO] [stderr] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::result::Result` [INFO] [stderr] found unit type `()` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `&NiccDbConn: rocket::request::FromRequest<'_, '_>` is not satisfied [INFO] [stderr] --> src/controllers.rs:22:14 [INFO] [stderr] | [INFO] [stderr] 22 | pub fn queue(conn: &NiccDbConn) -> Json> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ the trait `rocket::request::FromRequest<'_, '_>` is not implemented for `&NiccDbConn` [INFO] [stderr] | [INFO] [stderr] = help: the following implementations were found: [INFO] [stderr] > [INFO] [stderr] [INFO] [stderr] error[E0277]: a value of type `std::result::Result, _>` cannot be built from an iterator over elements of type `entities::Niccolgur` [INFO] [stderr] --> src/services.rs:67:79 [INFO] [stderr] | [INFO] [stderr] 67 | season(conn, id)?.iter().filter_map(|nicc| niccolgur_full(conn, id).ok()).collect() [INFO] [stderr] | ^^^^^^^ value of type `std::result::Result, _>` cannot be built from `std::iter::Iterator` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::iter::FromIterator` is not implemented for `std::result::Result, _>` [INFO] [stderr] [INFO] [stderr] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stderr] --> src/controllers.rs:23:10 [INFO] [stderr] | [INFO] [stderr] 22 | / pub fn queue(conn: &NiccDbConn) -> Json> { [INFO] [stderr] 23 | | Json(services::queue(&conn)?) [INFO] [stderr] | | ^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `rocket_contrib::json::Json>` [INFO] [stderr] 24 | | } [INFO] [stderr] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::ops::Try` is not implemented for `rocket_contrib::json::Json>` [INFO] [stderr] = note: required by `std::ops::Try::from_error` [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `impl std::error::Error` [INFO] [stderr] --> src/services.rs:76:72 [INFO] [stderr] | [INFO] [stderr] 75 | pub fn season_last_full(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ---------------------------------- expected `impl std::error::Error` because of this [INFO] [stderr] 76 | let idx: HashSet = conn.0.smembers(compose!(SEASON, INDEX))?; [INFO] [stderr] | ^ the trait `std::convert::From` is not implemented for `impl std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = note: required by `std::convert::From::from` [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `impl std::error::Error` [INFO] [stderr] --> src/services.rs:77:48 [INFO] [stderr] | [INFO] [stderr] 75 | pub fn season_last_full(conn: &NiccDbConn) -> Result, impl Error> { [INFO] [stderr] | ---------------------------------- expected `impl std::error::Error` because of this [INFO] [stderr] 76 | let idx: HashSet = conn.0.smembers(compose!(SEASON, INDEX))?; [INFO] [stderr] 77 | season_full(conn, idx.iter().max().ok_or(0)?) [INFO] [stderr] | ^ the trait `std::convert::From<{integer}>` is not implemented for `impl std::error::Error` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = note: required by `std::convert::From::from` [INFO] [stderr] [INFO] [stderr] error: aborting due to 14 previous errors; 9 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0308, E0720. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: could not compile `be`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0277]: the trait bound `&NiccDbConn: rocket::request::FromRequest<'_, '_>` is not satisfied [INFO] [stderr] --> src/controllers.rs:22:14 [INFO] [stderr] | [INFO] [stderr] 22 | pub fn queue(conn: &NiccDbConn) -> Json> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ the trait `rocket::request::FromRequest<'_, '_>` is not implemented for `&NiccDbConn` [INFO] [stderr] | [INFO] [stderr] = help: the following implementations were found: [INFO] [stderr] > [INFO] [stderr] [INFO] [stderr] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `std::ops::Try`) [INFO] [stderr] --> src/controllers.rs:23:10 [INFO] [stderr] | [INFO] [stderr] 22 | / pub fn queue(conn: &NiccDbConn) -> Json> { [INFO] [stderr] 23 | | Json(services::queue(&conn)?) [INFO] [stderr] | | ^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `rocket_contrib::json::Json>` [INFO] [stderr] 24 | | } [INFO] [stderr] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::ops::Try` is not implemented for `rocket_contrib::json::Json>` [INFO] [stderr] = note: required by `std::ops::Try::from_error` [INFO] [stderr] [INFO] [stderr] error: aborting due to 14 previous errors; 9 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0308, E0720. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "67d88c40953e52b84dfc6a12a9847c8d8d14fc140966079dbf5d02b552199559"` [INFO] running `"docker" "rm" "-f" "67d88c40953e52b84dfc6a12a9847c8d8d14fc140966079dbf5d02b552199559"` [INFO] [stdout] 67d88c40953e52b84dfc6a12a9847c8d8d14fc140966079dbf5d02b552199559