[INFO] cloning repository https://github.com/Matias-Ongay/ClassMate-Back [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Matias-Ongay/ClassMate-Back" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMatias-Ongay%2FClassMate-Back", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMatias-Ongay%2FClassMate-Back'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ff511e5c0f5adf99ea89d62b907b1d7de5156ad1 [INFO] checking Matias-Ongay/ClassMate-Back against try#78c81ee3917a99dcff6e2e6822800f0492c415c3 for pr-148967 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMatias-Ongay%2FClassMate-Back" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Matias-Ongay/ClassMate-Back [INFO] finished tweaking git repo https://github.com/Matias-Ongay/ClassMate-Back [INFO] tweaked toml for git repo https://github.com/Matias-Ongay/ClassMate-Back written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Matias-Ongay/ClassMate-Back on toolchain 78c81ee3917a99dcff6e2e6822800f0492c415c3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Matias-Ongay/ClassMate-Back 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" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded time-macros v0.2.18 [INFO] [stderr] Downloaded jobserver v0.1.31 [INFO] [stderr] Downloaded jsonwebtoken v9.3.0 [INFO] [stderr] Downloaded serde_derive v1.0.201 [INFO] [stderr] Downloaded actix-server v2.3.0 [INFO] [stderr] Downloaded zstd v0.13.1 [INFO] [stderr] Downloaded actix-cors v0.7.0 [INFO] [stderr] Downloaded actix-router v0.5.2 [INFO] [stderr] Downloaded diesel_derives v2.1.4 [INFO] [stderr] Downloaded pem v3.0.4 [INFO] [stderr] Downloaded flate2 v1.0.30 [INFO] [stderr] Downloaded time v0.3.36 [INFO] [stderr] Downloaded tokio-util v0.7.11 [INFO] [stderr] Downloaded actix-http v3.6.0 [INFO] [stderr] Downloaded brotli-decompressor v2.5.1 [INFO] [stderr] Downloaded rusqlite v0.25.4 [INFO] [stderr] Downloaded num-bigint v0.4.5 [INFO] [stderr] Downloaded regex v1.10.4 [INFO] [stderr] Downloaded serde_json v1.0.117 [INFO] [stderr] Downloaded zerocopy v0.7.34 [INFO] [stderr] Downloaded diesel v2.1.6 [INFO] [stderr] Downloaded actix-web v4.5.1 [INFO] [stderr] Downloaded actix-web-codegen v4.2.2 [INFO] [stderr] Downloaded zerocopy-derive v0.7.34 [INFO] [stderr] Downloaded zstd-safe v7.1.0 [INFO] [stderr] Downloaded actix-service v2.0.2 [INFO] [stderr] Downloaded bytestring v1.3.1 [INFO] [stderr] Downloaded semver v1.0.23 [INFO] [stderr] Downloaded blowfish v0.8.0 [INFO] [stderr] Downloaded bcrypt v0.10.1 [INFO] [stderr] Downloaded thiserror-impl v1.0.60 [INFO] [stderr] Downloaded thiserror v1.0.60 [INFO] [stderr] Downloaded actix-rt v2.9.0 [INFO] [stderr] Downloaded serde v1.0.201 [INFO] [stderr] Downloaded brotli v3.5.0 [INFO] [stderr] Downloaded libsqlite3-sys v0.22.2 [INFO] [stderr] Downloaded zstd-sys v2.0.10+zstd.1.5.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7e207d36cd5554f865ad2ed05be961a2caa46ef73b1621b8f7139ffdfc5ef554 [INFO] running `Command { std: "docker" "start" "-a" "7e207d36cd5554f865ad2ed05be961a2caa46ef73b1621b8f7139ffdfc5ef554", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7e207d36cd5554f865ad2ed05be961a2caa46ef73b1621b8f7139ffdfc5ef554", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e207d36cd5554f865ad2ed05be961a2caa46ef73b1621b8f7139ffdfc5ef554", kill_on_drop: false }` [INFO] [stdout] 7e207d36cd5554f865ad2ed05be961a2caa46ef73b1621b8f7139ffdfc5ef554 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3078f4d3471379b26e75f17a07ae89d52b8ba6a247665bf814e4d42efdff02c3 [INFO] running `Command { std: "docker" "start" "-a" "3078f4d3471379b26e75f17a07ae89d52b8ba6a247665bf814e4d42efdff02c3", kill_on_drop: false }` [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling syn v2.0.61 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling serde v1.0.201 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling zstd-safe v7.1.0 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling cc v1.0.97 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling zstd-sys v2.0.10+zstd.1.5.6 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling thiserror v1.0.60 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Checking actix-rt v2.9.0 [INFO] [stderr] Compiling serde_derive v1.0.201 [INFO] [stderr] Compiling thiserror-impl v1.0.60 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking brotli-decompressor v2.5.1 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking zerocopy v0.7.34 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking brotli v3.5.0 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking num-bigint v0.4.5 [INFO] [stderr] Compiling actix-router v0.5.2 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking pem v3.0.4 [INFO] [stderr] Compiling actix-web-codegen v4.2.2 [INFO] [stderr] Checking simple_asn1 v0.6.2 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking actix-server v2.3.0 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking jsonwebtoken v9.3.0 [INFO] [stderr] Checking zstd v0.13.1 [INFO] [stderr] Checking actix-http v3.6.0 [INFO] [stderr] Checking actix-web v4.5.1 [INFO] [stderr] Checking backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `actix_cors` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_cors::Cors; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `actix_cors` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `actix_cors`, use `cargo add actix_cors` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bcrypt` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use bcrypt::{hash, verify, DEFAULT_COST}; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `bcrypt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `bcrypt`, use `cargo add bcrypt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rusqlite` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rusqlite::{Connection, Result}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `rusqlite` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rusqlite`, use `cargo add rusqlite` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let password_hash = match hash(password, DEFAULT_COST) { [INFO] [stdout] | ^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::marker::Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | Ok(hash) => hash, [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::marker::Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | Ok(hash) => hash, [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::marker::Sized` is not implemented for `str` [INFO] [stdout] note: required by a bound in `Ok` [INFO] [stdout] --> /rustc/78c81ee3917a99dcff6e2e6822800f0492c415c3/library/core/src/result.rs:561:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:279:63 [INFO] [stdout] | [INFO] [stdout] 279 | let task_iter = stmt.query_map(&[&user_id.into_inner()], |row| { [INFO] [stdout] | ^^^ [INFO] [stdout] 280 | Ok(Task { [INFO] [stdout] 281 | id: row.get(0)?, [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 279 | let task_iter = stmt.query_map(&[&user_id.into_inner()], |row: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:289:43 [INFO] [stdout] | [INFO] [stdout] 289 | let tasks: Vec = task_iter.map(|task| task.unwrap()).collect(); [INFO] [stdout] | ^^^^ ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 289 | let tasks: Vec = task_iter.map(|task: /* Type */| task.unwrap()).collect(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:300:65 [INFO] [stdout] | [INFO] [stdout] 300 | let subject_iter = stmt.query_map(&[&user_id.to_string()], |row| { [INFO] [stdout] | ^^^ [INFO] [stdout] 301 | Ok(Subject { [INFO] [stdout] 302 | id: row.get(0)?, [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 300 | let subject_iter = stmt.query_map(&[&user_id.to_string()], |row: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:308:52 [INFO] [stdout] | [INFO] [stdout] 308 | let subjects: Vec = subject_iter.map(|subject| subject.unwrap()).collect(); [INFO] [stdout] | ^^^^^^^ ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 308 | let subjects: Vec = subject_iter.map(|subject: /* Type */| subject.unwrap()).collect(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:319:71 [INFO] [stdout] | [INFO] [stdout] 319 | let exam_date_iter = stmt.query_map(&[&subject_id.into_inner()], |row| { [INFO] [stdout] | ^^^ [INFO] [stdout] 320 | Ok(ExamDate { [INFO] [stdout] 321 | id: row.get(0)?, [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 319 | let exam_date_iter = stmt.query_map(&[&subject_id.into_inner()], |row: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:327:57 [INFO] [stdout] | [INFO] [stdout] 327 | let exam_dates: Vec = exam_date_iter.map(|exam_date| exam_date.unwrap()).collect(); [INFO] [stdout] | ^^^^^^^^^ --------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 327 | let exam_dates: Vec = exam_date_iter.map(|exam_date: /* Type */| exam_date.unwrap()).collect(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:338:66 [INFO] [stdout] | [INFO] [stdout] 338 | let note_iter = stmt.query_map(&[&subject_id.into_inner()], |row| { [INFO] [stdout] | ^^^ [INFO] [stdout] 339 | Ok(Note { [INFO] [stdout] 340 | id: row.get(0)?, [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 338 | let note_iter = stmt.query_map(&[&subject_id.into_inner()], |row: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:346:43 [INFO] [stdout] | [INFO] [stdout] 346 | let notes: Vec = note_iter.map(|note| note.unwrap()).collect(); [INFO] [stdout] | ^^^^ ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 346 | let notes: Vec = note_iter.map(|note: /* Type */| note.unwrap()).collect(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:357:71 [INFO] [stdout] | [INFO] [stdout] 357 | let file_link_iter = stmt.query_map(&[&subject_id.into_inner()], |row| { [INFO] [stdout] | ^^^ [INFO] [stdout] 358 | Ok(FileLink { [INFO] [stdout] 359 | id: row.get(0)?, [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 357 | let file_link_iter = stmt.query_map(&[&subject_id.into_inner()], |row: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:365:57 [INFO] [stdout] | [INFO] [stdout] 365 | let file_links: Vec = file_link_iter.map(|file_link| file_link.unwrap()).collect(); [INFO] [stdout] | ^^^^^^^^^ --------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 365 | let file_links: Vec = file_link_iter.map(|file_link: /* Type */| file_link.unwrap()).collect(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `actix_cors` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_cors::Cors; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `actix_cors` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `actix_cors`, use `cargo add actix_cors` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `bcrypt` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use bcrypt::{hash, verify, DEFAULT_COST}; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `bcrypt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `bcrypt`, use `cargo add bcrypt` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rusqlite` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rusqlite::{Connection, Result}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `rusqlite` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rusqlite`, use `cargo add rusqlite` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | let password_hash = match hash(password, DEFAULT_COST) { [INFO] [stdout] | ^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::marker::Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | Ok(hash) => hash, [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::marker::Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/main.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | Ok(hash) => hash, [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::marker::Sized` is not implemented for `str` [INFO] [stdout] note: required by a bound in `Ok` [INFO] [stdout] --> /rustc/78c81ee3917a99dcff6e2e6822800f0492c415c3/library/core/src/result.rs:561:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:414:49 [INFO] [stdout] | [INFO] [stdout] 414 | let user_row = stmt.query_row(&[username], |row| { [INFO] [stdout] | ^^^ [INFO] [stdout] 415 | Ok(User { [INFO] [stdout] 416 | id: row.get(0)?, [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 414 | let user_row = stmt.query_row(&[username], |row: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:279:63 [INFO] [stdout] | [INFO] [stdout] 279 | let task_iter = stmt.query_map(&[&user_id.into_inner()], |row| { [INFO] [stdout] | ^^^ [INFO] [stdout] 280 | Ok(Task { [INFO] [stdout] 281 | id: row.get(0)?, [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 279 | let task_iter = stmt.query_map(&[&user_id.into_inner()], |row: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:289:43 [INFO] [stdout] | [INFO] [stdout] 289 | let tasks: Vec = task_iter.map(|task| task.unwrap()).collect(); [INFO] [stdout] | ^^^^ ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 289 | let tasks: Vec = task_iter.map(|task: /* Type */| task.unwrap()).collect(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:300:65 [INFO] [stdout] | [INFO] [stdout] 300 | let subject_iter = stmt.query_map(&[&user_id.to_string()], |row| { [INFO] [stdout] | ^^^ [INFO] [stdout] 301 | Ok(Subject { [INFO] [stdout] 302 | id: row.get(0)?, [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 300 | let subject_iter = stmt.query_map(&[&user_id.to_string()], |row: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:308:52 [INFO] [stdout] | [INFO] [stdout] 308 | let subjects: Vec = subject_iter.map(|subject| subject.unwrap()).collect(); [INFO] [stdout] | ^^^^^^^ ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 308 | let subjects: Vec = subject_iter.map(|subject: /* Type */| subject.unwrap()).collect(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:319:71 [INFO] [stdout] | [INFO] [stdout] 319 | let exam_date_iter = stmt.query_map(&[&subject_id.into_inner()], |row| { [INFO] [stdout] | ^^^ [INFO] [stdout] 320 | Ok(ExamDate { [INFO] [stdout] 321 | id: row.get(0)?, [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 319 | let exam_date_iter = stmt.query_map(&[&subject_id.into_inner()], |row: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:327:57 [INFO] [stdout] | [INFO] [stdout] 327 | let exam_dates: Vec = exam_date_iter.map(|exam_date| exam_date.unwrap()).collect(); [INFO] [stdout] | ^^^^^^^^^ --------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 327 | let exam_dates: Vec = exam_date_iter.map(|exam_date: /* Type */| exam_date.unwrap()).collect(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:338:66 [INFO] [stdout] | [INFO] [stdout] 338 | let note_iter = stmt.query_map(&[&subject_id.into_inner()], |row| { [INFO] [stdout] | ^^^ [INFO] [stdout] 339 | Ok(Note { [INFO] [stdout] 340 | id: row.get(0)?, [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 338 | let note_iter = stmt.query_map(&[&subject_id.into_inner()], |row: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:346:43 [INFO] [stdout] | [INFO] [stdout] 346 | let notes: Vec = note_iter.map(|note| note.unwrap()).collect(); [INFO] [stdout] | ^^^^ ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 346 | let notes: Vec = note_iter.map(|note: /* Type */| note.unwrap()).collect(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:357:71 [INFO] [stdout] | [INFO] [stdout] 357 | let file_link_iter = stmt.query_map(&[&subject_id.into_inner()], |row| { [INFO] [stdout] | ^^^ [INFO] [stdout] 358 | Ok(FileLink { [INFO] [stdout] 359 | id: row.get(0)?, [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 357 | let file_link_iter = stmt.query_map(&[&subject_id.into_inner()], |row: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:365:57 [INFO] [stdout] | [INFO] [stdout] 365 | let file_links: Vec = file_link_iter.map(|file_link| file_link.unwrap()).collect(); [INFO] [stdout] | ^^^^^^^^^ --------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 365 | let file_links: Vec = file_link_iter.map(|file_link: /* Type */| file_link.unwrap()).collect(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:414:49 [INFO] [stdout] | [INFO] [stdout] 414 | let user_row = stmt.query_row(&[username], |row| { [INFO] [stdout] | ^^^ [INFO] [stdout] 415 | Ok(User { [INFO] [stdout] 416 | id: row.get(0)?, [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 414 | let user_row = stmt.query_row(&[username], |row: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `backend` (bin "backend") due to 17 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `backend` (bin "backend" test) due to 17 previous errors [INFO] running `Command { std: "docker" "inspect" "3078f4d3471379b26e75f17a07ae89d52b8ba6a247665bf814e4d42efdff02c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3078f4d3471379b26e75f17a07ae89d52b8ba6a247665bf814e4d42efdff02c3", kill_on_drop: false }` [INFO] [stdout] 3078f4d3471379b26e75f17a07ae89d52b8ba6a247665bf814e4d42efdff02c3