[INFO] cloning repository https://github.com/bhargav55/Rust-Api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bhargav55/Rust-Api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbhargav55%2FRust-Api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbhargav55%2FRust-Api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 679997b1ddfb51a1e5cdaf185831d7c6c3e6d885 [INFO] checking bhargav55/Rust-Api against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbhargav55%2FRust-Api" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bhargav55/Rust-Api on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bhargav55/Rust-Api [INFO] finished tweaking git repo https://github.com/bhargav55/Rust-Api [INFO] tweaked toml for git repo https://github.com/bhargav55/Rust-Api written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/bhargav55/Rust-Api 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded backtrace v0.3.54 [INFO] [stderr] Downloaded addr2line v0.14.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b3478b7f51d566251dc8e09e50ef222880e90bf86b2484cc5fb93578b38ca2d0 [INFO] running `Command { std: "docker" "start" "-a" "b3478b7f51d566251dc8e09e50ef222880e90bf86b2484cc5fb93578b38ca2d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b3478b7f51d566251dc8e09e50ef222880e90bf86b2484cc5fb93578b38ca2d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3478b7f51d566251dc8e09e50ef222880e90bf86b2484cc5fb93578b38ca2d0", kill_on_drop: false }` [INFO] [stdout] b3478b7f51d566251dc8e09e50ef222880e90bf86b2484cc5fb93578b38ca2d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2db24e8faa6f61703ae2b86f465b486720c261e46a7df3e6cb10d2adf6c445c4 [INFO] running `Command { std: "docker" "start" "-a" "2db24e8faa6f61703ae2b86f465b486720c261e46a7df3e6cb10d2adf6c445c4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Checking gimli v0.23.0 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking rustc-demangle v0.1.18 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Checking ucd-util v0.1.8 [INFO] [stderr] Checking object v0.22.0 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling syntex_fmt_macros v0.5.0 [INFO] [stderr] Checking utf8-ranges v1.0.4 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Checking addr2line v0.14.0 [INFO] [stderr] Checking backtrace v0.3.54 [INFO] [stderr] Checking error-chain v0.11.0 [INFO] [stderr] Compiling derive-error-chain v0.11.2 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Checking dotenv v0.11.0 [INFO] [stderr] Checking diesel v1.4.5 [INFO] [stderr] Checking api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `PgConnection` is imported redundantly [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | use diesel::prelude::*; [INFO] [stdout] | ------------------ the item `PgConnection` is already imported here [INFO] [stdout] 9 | use diesel::pg::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `diesel` is imported redundantly [INFO] [stdout] --> src/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use diesel; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate diesel; [INFO] [stdout] | -------------------- the item `diesel` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PgConnection` is imported redundantly [INFO] [stdout] --> src/models.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | use diesel::prelude::*; [INFO] [stdout] | ------------------ the item `PgConnection` is already imported here [INFO] [stdout] 3 | use diesel::pg::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PgConnection` is imported redundantly [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | use diesel::prelude::*; [INFO] [stdout] | ------------------ the item `PgConnection` is already imported here [INFO] [stdout] 9 | use diesel::pg::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `diesel` is imported redundantly [INFO] [stdout] --> src/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use diesel; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate diesel; [INFO] [stdout] | -------------------- the item `diesel` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PgConnection` is imported redundantly [INFO] [stdout] --> src/models.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | use diesel::prelude::*; [INFO] [stdout] | ------------------ the item `PgConnection` is already imported here [INFO] [stdout] 3 | use diesel::pg::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `title`, `author`, and `published` are never read [INFO] [stdout] --> src/models.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Book { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 10 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | pub title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | pub author: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | pub published: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `show`, `all`, `update_by_id`, `delete_by_id`, and `all_by_author` are never used [INFO] [stdout] --> src/models.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Book { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 25 | pub fn show(id: i32, conn: &PgConnection) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn all(conn: &PgConnection) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn update_by_id(id: i32, conn: &PgConnection, book: NewBook) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn delete_by_id(id: i32, conn: &PgConnection) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn all_by_author(author: String, conn: &PgConnection) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `title`, `author`, and `published` are never read [INFO] [stdout] --> src/models.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Book { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 10 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | pub title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | pub author: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | pub published: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `show`, `all`, `update_by_id`, `delete_by_id`, and `all_by_author` are never used [INFO] [stdout] --> src/models.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Book { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 25 | pub fn show(id: i32, conn: &PgConnection) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn all(conn: &PgConnection) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn update_by_id(id: i32, conn: &PgConnection, book: NewBook) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn delete_by_id(id: i32, conn: &PgConnection) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn all_by_author(author: String, conn: &PgConnection) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 33.30s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.14.9 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "2db24e8faa6f61703ae2b86f465b486720c261e46a7df3e6cb10d2adf6c445c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2db24e8faa6f61703ae2b86f465b486720c261e46a7df3e6cb10d2adf6c445c4", kill_on_drop: false }` [INFO] [stdout] 2db24e8faa6f61703ae2b86f465b486720c261e46a7df3e6cb10d2adf6c445c4 [INFO] checking bhargav55/Rust-Api against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbhargav55%2FRust-Api" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bhargav55/Rust-Api on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bhargav55/Rust-Api [INFO] finished tweaking git repo https://github.com/bhargav55/Rust-Api [INFO] tweaked toml for git repo https://github.com/bhargav55/Rust-Api written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/bhargav55/Rust-Api 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 85f4758cb170b591f52b232b188996eda7fc2ccc63aa20695f127f0c0356ac23 [INFO] running `Command { std: "docker" "start" "-a" "85f4758cb170b591f52b232b188996eda7fc2ccc63aa20695f127f0c0356ac23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "85f4758cb170b591f52b232b188996eda7fc2ccc63aa20695f127f0c0356ac23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85f4758cb170b591f52b232b188996eda7fc2ccc63aa20695f127f0c0356ac23", kill_on_drop: false }` [INFO] [stdout] 85f4758cb170b591f52b232b188996eda7fc2ccc63aa20695f127f0c0356ac23 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d18ad4612e65865c52a0d1f3030e6670c0175f1d859dcec41ebf258bd5d8184b [INFO] running `Command { std: "docker" "start" "-a" "d18ad4612e65865c52a0d1f3030e6670c0175f1d859dcec41ebf258bd5d8184b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking gimli v0.23.0 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking object v0.22.0 [INFO] [stderr] Checking ucd-util v0.1.8 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking rustc-demangle v0.1.18 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Compiling syntex_fmt_macros v0.5.0 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Checking utf8-ranges v1.0.4 [INFO] [stderr] Checking addr2line v0.14.0 [INFO] [stderr] Checking backtrace v0.3.54 [INFO] [stderr] Checking error-chain v0.11.0 [INFO] [stderr] Compiling derive-error-chain v0.11.2 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Checking dotenv v0.11.0 [INFO] [stderr] Checking diesel v1.4.5 [INFO] [stderr] Checking api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `PgConnection` is imported redundantly [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | use diesel::prelude::*; [INFO] [stdout] | ------------------ the item `PgConnection` is already imported here [INFO] [stdout] 9 | use diesel::pg::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `diesel` is imported redundantly [INFO] [stdout] --> src/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use diesel; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate diesel; [INFO] [stdout] | -------------------- the item `diesel` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PgConnection` is imported redundantly [INFO] [stdout] --> src/models.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | use diesel::prelude::*; [INFO] [stdout] | ------------------ the item `PgConnection` is already imported here [INFO] [stdout] 3 | use diesel::pg::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PgConnection` is imported redundantly [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | use diesel::prelude::*; [INFO] [stdout] | ------------------ the item `PgConnection` is already imported here [INFO] [stdout] 9 | use diesel::pg::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `diesel` is imported redundantly [INFO] [stdout] --> src/models.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use diesel; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate diesel; [INFO] [stdout] | -------------------- the item `diesel` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PgConnection` is imported redundantly [INFO] [stdout] --> src/models.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | use diesel::prelude::*; [INFO] [stdout] | ------------------ the item `PgConnection` is already imported here [INFO] [stdout] 3 | use diesel::pg::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `title`, `author`, and `published` are never read [INFO] [stdout] --> src/models.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Book { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 10 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | pub title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | pub author: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | pub published: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `show`, `all`, `update_by_id`, `delete_by_id`, and `all_by_author` are never used [INFO] [stdout] --> src/models.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Book { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 25 | pub fn show(id: i32, conn: &PgConnection) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn all(conn: &PgConnection) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn update_by_id(id: i32, conn: &PgConnection, book: NewBook) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn delete_by_id(id: i32, conn: &PgConnection) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn all_by_author(author: String, conn: &PgConnection) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `title`, `author`, and `published` are never read [INFO] [stdout] --> src/models.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Book { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 10 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | pub title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | pub author: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | pub published: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `show`, `all`, `update_by_id`, `delete_by_id`, and `all_by_author` are never used [INFO] [stdout] --> src/models.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Book { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 25 | pub fn show(id: i32, conn: &PgConnection) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn all(conn: &PgConnection) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn update_by_id(id: i32, conn: &PgConnection, book: NewBook) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn delete_by_id(id: i32, conn: &PgConnection) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn all_by_author(author: String, conn: &PgConnection) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 32.12s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: syn v0.14.9 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "d18ad4612e65865c52a0d1f3030e6670c0175f1d859dcec41ebf258bd5d8184b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d18ad4612e65865c52a0d1f3030e6670c0175f1d859dcec41ebf258bd5d8184b", kill_on_drop: false }` [INFO] [stdout] d18ad4612e65865c52a0d1f3030e6670c0175f1d859dcec41ebf258bd5d8184b