[INFO] cloning repository https://github.com/Ryneqq/rusty_webservice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ryneqq/rusty_webservice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRyneqq%2Frusty_webservice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRyneqq%2Frusty_webservice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a9f4d4b98410841b8be82d1d7feccf6a27119b83 [INFO] checking Ryneqq/rusty_webservice against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRyneqq%2Frusty_webservice" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Ryneqq/rusty_webservice on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Ryneqq/rusty_webservice [INFO] finished tweaking git repo https://github.com/Ryneqq/rusty_webservice [INFO] tweaked toml for git repo https://github.com/Ryneqq/rusty_webservice written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/Ryneqq/rusty_webservice already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gzip-header v0.3.0 [INFO] [stderr] Downloaded chunked_transfer v0.3.1 [INFO] [stderr] Downloaded multipart v0.15.4 [INFO] [stderr] Downloaded tiny_http v0.6.2 [INFO] [stderr] Downloaded rust-argon2 v0.5.0 [INFO] [stderr] Downloaded filetime v0.2.6 [INFO] [stderr] Downloaded rouille v3.0.0 [INFO] [stderr] Downloaded syn v0.15.43 [INFO] [stderr] Downloaded crossbeam v0.5.0 [INFO] [stderr] Downloaded blake2b_simd v0.5.6 [INFO] [stderr] Downloaded safemem v0.3.1 [INFO] [stderr] Downloaded libsqlite3-sys v0.12.0 [INFO] [stderr] Downloaded ascii v0.8.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 636078d3b3d52b5fb43cd5ec6c0140d40a6a19cfbd8c3e9230fa7536ee5bd5a0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "636078d3b3d52b5fb43cd5ec6c0140d40a6a19cfbd8c3e9230fa7536ee5bd5a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "636078d3b3d52b5fb43cd5ec6c0140d40a6a19cfbd8c3e9230fa7536ee5bd5a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "636078d3b3d52b5fb43cd5ec6c0140d40a6a19cfbd8c3e9230fa7536ee5bd5a0", kill_on_drop: false }` [INFO] [stdout] 636078d3b3d52b5fb43cd5ec6c0140d40a6a19cfbd8c3e9230fa7536ee5bd5a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06ad6fde7d6b23ca6b03e77f2b197fb912ef5843ae796e044b0f1efc8f9340af [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "06ad6fde7d6b23ca6b03e77f2b197fb912ef5843ae796e044b0f1efc8f9340af", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.60 [INFO] [stderr] Compiling autocfg v0.1.5 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling syn v0.15.43 [INFO] [stderr] Compiling cc v1.0.38 [INFO] [stderr] Checking smallvec v0.6.10 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Compiling pkg-config v0.3.15 [INFO] [stderr] Compiling serde v1.0.98 [INFO] [stderr] Checking safemem v0.3.1 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Checking remove_dir_all v0.5.2 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking ucd-util v0.1.5 [INFO] [stderr] Checking itoa v0.4.4 [INFO] [stderr] Checking chunked_transfer v0.3.1 [INFO] [stderr] Checking ascii v0.8.7 [INFO] [stderr] Checking adler32 v1.0.3 [INFO] [stderr] Checking utf8-ranges v1.0.4 [INFO] [stderr] Checking quick-error v1.2.2 [INFO] [stderr] Checking sha1 v0.6.0 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Checking unicode-normalization v0.1.8 [INFO] [stderr] Checking crc32fast v1.2.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Checking twoway v0.1.8 [INFO] [stderr] Checking buf_redux v0.8.4 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking gzip-header v0.3.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking num_cpus v1.10.1 [INFO] [stderr] Checking dirs v1.0.5 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking filetime v0.2.6 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Compiling libsqlite3-sys v0.12.0 [INFO] [stderr] Checking threadpool v1.7.1 [INFO] [stderr] Checking term v0.5.2 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Checking phf v0.7.24 [INFO] [stderr] Checking tempdir v0.3.7 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking chrono v0.4.7 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling mime_guess v1.8.7 [INFO] [stderr] Checking dotenv v0.9.0 [INFO] [stderr] Checking tiny_http v0.6.2 [INFO] [stderr] Checking multipart v0.15.4 [INFO] [stderr] Checking serde_json v1.0.40 [INFO] [stderr] Checking brotli2 v0.3.2 [INFO] [stderr] Compiling diesel_derives v1.4.0 [INFO] [stderr] Compiling serde_derive v1.0.98 [INFO] [stderr] Checking diesel v1.4.2 [INFO] [stderr] Checking rouille v3.0.0 [INFO] [stderr] Checking rusty_webservice v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/db/mod.rs:27:39 [INFO] [stdout] | [INFO] [stdout] 27 | .expect("Error loading posts") [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 28 | } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/db/mod.rs:27:39 [INFO] [stdout] | [INFO] [stdout] 27 | .expect("Error loading posts") [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 28 | } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found module `posts` [INFO] [stdout] --> src/db/mod.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | let results = posts [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 25 | let results = posts::load::(conn) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: consider importing this unit struct instead [INFO] [stdout] | [INFO] [stdout] 3 | use crate::posts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: function `read_posts` is private [INFO] [stdout] --> src/main.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let posts = db::read_posts(&connection); [INFO] [stdout] | ^^^^^^^^^^ private function [INFO] [stdout] | [INFO] [stdout] note: the function `read_posts` is defined here [INFO] [stdout] --> src/db/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | fn read_posts(conn: &SqliteConnection) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/routes.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | / post_input!(request, { [INFO] [stdout] 60 | | login: String, [INFO] [stdout] 61 | | password: String, [INFO] [stdout] 62 | | } [INFO] [stdout] 63 | | )); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/routes.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | / post_input!(request, { [INFO] [stdout] 60 | | login: String, [INFO] [stdout] 61 | | password: String, [INFO] [stdout] 62 | | } [INFO] [stdout] 63 | | )); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::query_dsl::select_dsl::SelectDsl` [INFO] [stdout] --> src/db/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use diesel::query_dsl::select_dsl::SelectDsl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::prelude::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use diesel::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::db::models::Post` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use self::db::models::Post; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found module `posts` [INFO] [stdout] --> src/db/mod.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 25 | let results = posts [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 25 | let results = posts::load::(conn) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: consider importing this unit struct instead [INFO] [stdout] | [INFO] [stdout] 3 | use crate::posts; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: function `read_posts` is private [INFO] [stdout] --> src/main.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | let posts = db::read_posts(&connection); [INFO] [stdout] | ^^^^^^^^^^ private function [INFO] [stdout] | [INFO] [stdout] note: the function `read_posts` is defined here [INFO] [stdout] --> src/db/mod.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | fn read_posts(conn: &SqliteConnection) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/routes.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | / post_input!(request, { [INFO] [stdout] 60 | | login: String, [INFO] [stdout] 61 | | password: String, [INFO] [stdout] 62 | | } [INFO] [stdout] 63 | | )); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/routes.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | / post_input!(request, { [INFO] [stdout] 60 | | login: String, [INFO] [stdout] 61 | | password: String, [INFO] [stdout] 62 | | } [INFO] [stdout] 63 | | )); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::query_dsl::select_dsl::SelectDsl` [INFO] [stdout] --> src/db/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use diesel::query_dsl::select_dsl::SelectDsl; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::prelude::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use diesel::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::db::models::Post` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use self::db::models::Post; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let posts = db::read_posts(&connection); [INFO] [stdout] | ^^^^^ --------------------------- this expression has type `Vec` [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found struct `table` [INFO] [stdout] | `posts` is interpreted as a unit struct, not a new binding [INFO] [stdout] | help: introduce a new binding instead: `other_posts` [INFO] [stdout] | [INFO] [stdout] ::: src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | posts (id) { [INFO] [stdout] 3 | | id -> Integer, [INFO] [stdout] 4 | | title -> Text, [INFO] [stdout] ... | [INFO] [stdout] 7 | | } [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- unit struct defined here [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let posts = db::read_posts(&connection); [INFO] [stdout] | ^^^^^ --------------------------- this expression has type `Vec` [INFO] [stdout] | | [INFO] [stdout] | expected struct `Vec`, found struct `table` [INFO] [stdout] | `posts` is interpreted as a unit struct, not a new binding [INFO] [stdout] | help: introduce a new binding instead: `other_posts` [INFO] [stdout] | [INFO] [stdout] ::: src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | posts (id) { [INFO] [stdout] 3 | | id -> Integer, [INFO] [stdout] 4 | | title -> Text, [INFO] [stdout] ... | [INFO] [stdout] 7 | | } [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- unit struct defined here [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `table` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `len` found for struct `table` in the current scope [INFO] [stdout] --> src/main.rs:24:43 [INFO] [stdout] | [INFO] [stdout] 24 | println!("Displaying {} posts", posts.len()); [INFO] [stdout] | ^^^ method not found in `table` [INFO] [stdout] | [INFO] [stdout] ::: src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | posts (id) { [INFO] [stdout] 3 | | id -> Integer, [INFO] [stdout] 4 | | title -> Text, [INFO] [stdout] ... | [INFO] [stdout] 7 | | } [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- method `len` not found for this [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 `len`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `ExactSizeIterator` [INFO] [stdout] candidate #2: `regex::input::Input` [INFO] [stdout] candidate #3: `aho_corasick::autiter::Automaton` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `len` found for struct `table` in the current scope [INFO] [stdout] --> src/main.rs:24:43 [INFO] [stdout] | [INFO] [stdout] 24 | println!("Displaying {} posts", posts.len()); [INFO] [stdout] | ^^^ method not found in `table` [INFO] [stdout] | [INFO] [stdout] ::: src/schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / table! { [INFO] [stdout] 2 | | posts (id) { [INFO] [stdout] 3 | | id -> Integer, [INFO] [stdout] 4 | | title -> Text, [INFO] [stdout] ... | [INFO] [stdout] 7 | | } [INFO] [stdout] 8 | | } [INFO] [stdout] | |_- method `len` not found for this [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 `len`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `ExactSizeIterator` [INFO] [stdout] candidate #2: `regex::input::Input` [INFO] [stdout] candidate #3: `aho_corasick::autiter::Automaton` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `table` is not an iterator [INFO] [stdout] --> src/main.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | for post in posts { [INFO] [stdout] | ^^^^^ `table` is not an iterator [INFO] [stdout] | [INFO] [stdout] = help: the trait `Iterator` is not implemented for `table` [INFO] [stdout] = note: required because of the requirements on the impl of `IntoIterator` for `table` [INFO] [stdout] = note: required by `into_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `table` is not an iterator [INFO] [stdout] --> src/main.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | for post in posts { [INFO] [stdout] | ^^^^^ `table` is not an iterator [INFO] [stdout] | [INFO] [stdout] = help: the trait `Iterator` is not implemented for `table` [INFO] [stdout] = note: required because of the requirements on the impl of `IntoIterator` for `table` [INFO] [stdout] = note: required by `into_iter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/db/mod.rs:24:43 [INFO] [stdout] | [INFO] [stdout] 24 | fn read_posts(conn: &SqliteConnection) -> Vec { [INFO] [stdout] | ---------- ^^^^^^^^^ expected struct `Vec`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/db/mod.rs:24:43 [INFO] [stdout] | [INFO] [stdout] 24 | fn read_posts(conn: &SqliteConnection) -> Vec { [INFO] [stdout] | ---------- ^^^^^^^^^ expected struct `Vec`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0423, E0599, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rusty_webservice` [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] [stdout] Some errors have detailed explanations: E0277, E0308, E0423, E0599, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "06ad6fde7d6b23ca6b03e77f2b197fb912ef5843ae796e044b0f1efc8f9340af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06ad6fde7d6b23ca6b03e77f2b197fb912ef5843ae796e044b0f1efc8f9340af", kill_on_drop: false }` [INFO] [stdout] 06ad6fde7d6b23ca6b03e77f2b197fb912ef5843ae796e044b0f1efc8f9340af