[INFO] cloning repository https://github.com/sansx/cn_poems_api
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sansx/cn_poems_api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsansx%2Fcn_poems_api", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsansx%2Fcn_poems_api'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 715ab63a90a54c8de6e2f261b01081638228806c
[INFO] testing sansx/cn_poems_api against 1.60.0 for beta-1.61-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsansx%2Fcn_poems_api" "/workspace/builds/worker-1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/sansx/cn_poems_api on toolchain 1.60.0
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/sansx/cn_poems_api
[INFO] finished tweaking git repo https://github.com/sansx/cn_poems_api
[INFO] tweaked toml for git repo https://github.com/sansx/cn_poems_api written to /workspace/builds/worker-1/source/Cargo.toml
[INFO] crate git repo https://github.com/sansx/cn_poems_api already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] Downloading crates ...
[INFO] [stderr] Downloaded actix-web-codegen v0.5.0-beta.2
[INFO] [stderr] Downloaded awc v3.0.0-beta.3
[INFO] [stderr] Downloaded actix-codec v0.4.0-beta.1
[INFO] [stderr] Downloaded actix-server v2.0.0-beta.3
[INFO] [stderr] Downloaded actix-rt v2.1.0
[INFO] [stderr] Downloaded actix-utils v3.0.0-beta.2
[INFO] [stderr] Downloaded listenfd v0.3.3
[INFO] [stderr] Downloaded actix-macros v0.2.0
[INFO] [stderr] Downloaded actix-web v4.0.0-beta.4
[INFO] [stderr] Downloaded actix-http v3.0.0-beta.4
[INFO] [stderr] Downloaded actix-tls v3.0.0-beta.4
[INFO] [stderr] Downloaded actix-service v2.0.0-beta.5
[INFO] [stderr] Downloaded diesel v1.4.6
[INFO] [stderr] Downloaded actix_derive v0.6.0-beta.2
[INFO] [stderr] Downloaded actix v0.11.0-beta.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 61007579bc2ab02f3e3c13c18699132caddbbe46ab0bcc147585cbc306316378
[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" "61007579bc2ab02f3e3c13c18699132caddbbe46ab0bcc147585cbc306316378", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "61007579bc2ab02f3e3c13c18699132caddbbe46ab0bcc147585cbc306316378", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "61007579bc2ab02f3e3c13c18699132caddbbe46ab0bcc147585cbc306316378", kill_on_drop: false }`
[INFO] [stdout] 61007579bc2ab02f3e3c13c18699132caddbbe46ab0bcc147585cbc306316378
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 3f47095177fd28582802478f67a4a1998959a5b52b885c7287877a2437ae028a
[INFO] running `Command { std: "docker" "start" "-a" "3f47095177fd28582802478f67a4a1998959a5b52b885c7287877a2437ae028a", kill_on_drop: false }`
[INFO] [stderr] Compiling libc v0.2.89
[INFO] [stderr] Compiling syn v1.0.64
[INFO] [stderr] Compiling once_cell v1.7.2
[INFO] [stderr] Compiling serde_derive v1.0.124
[INFO] [stderr] Compiling serde v1.0.124
[INFO] [stderr] Compiling futures-task v0.3.13
[INFO] [stderr] Compiling tokio v1.3.0
[INFO] [stderr] Compiling actix-service v2.0.0-beta.5
[INFO] [stderr] Compiling cookie v0.14.4
[INFO] [stderr] Compiling ahash v0.7.2
[INFO] [stderr] Compiling crossbeam-utils v0.8.3
[INFO] [stderr] Compiling tracing v0.1.25
[INFO] [stderr] Compiling generic-array v0.14.4
[INFO] [stderr] Compiling futures-util v0.3.13
[INFO] [stderr] Compiling digest v0.9.0
[INFO] [stderr] Compiling block-buffer v0.9.0
[INFO] [stderr] Compiling sha-1 v0.9.4
[INFO] [stderr] Compiling parking_lot_core v0.8.3
[INFO] [stderr] Compiling mio v0.7.10
[INFO] [stderr] Compiling signal-hook-registry v1.3.0
[INFO] [stderr] Compiling getrandom v0.2.2
[INFO] [stderr] Compiling brotli-sys v0.3.2
[INFO] [stderr] Compiling flate2 v1.0.20
[INFO] [stderr] Compiling num_cpus v1.13.0
[INFO] [stderr] Compiling socket2 v0.3.19
[INFO] [stderr] Compiling listenfd v0.3.3
[INFO] [stderr] Compiling brotli2 v0.3.2
[INFO] [stderr] Compiling crossbeam-channel v0.5.0
[INFO] [stderr] Compiling rand_core v0.6.2
[INFO] [stderr] Compiling parking_lot v0.11.1
[INFO] [stderr] Compiling rand_chacha v0.3.0
[INFO] [stderr] Compiling scheduled-thread-pool v0.2.5
[INFO] [stderr] Compiling rand v0.8.3
[INFO] [stderr] Compiling r2d2 v0.8.9
[INFO] [stderr] Compiling tokio-util v0.6.4
[INFO] [stderr] Compiling actix-codec v0.4.0-beta.1
[INFO] [stderr] Compiling h2 v0.3.1
[INFO] [stderr] Compiling actix-macros v0.2.0
[INFO] [stderr] Compiling time-macros-impl v0.1.1
[INFO] [stderr] Compiling pin-project-internal v1.0.5
[INFO] [stderr] Compiling derive_more v0.99.11
[INFO] [stderr] Compiling actix_derive v0.6.0-beta.2
[INFO] [stderr] Compiling diesel_derives v1.4.1
[INFO] [stderr] Compiling actix-web-codegen v0.5.0-beta.2
[INFO] [stderr] Compiling actix-rt v2.1.0
[INFO] [stderr] Compiling actix-utils v3.0.0-beta.2
[INFO] [stderr] Compiling actix v0.11.0-beta.3
[INFO] [stderr] Compiling time-macros v0.1.1
[INFO] [stderr] Compiling time v0.2.25
[INFO] [stderr] Compiling actix-server v2.0.0-beta.3
[INFO] [stderr] Compiling pin-project v1.0.5
[INFO] [stderr] Compiling actix-tls v3.0.0-beta.4
[INFO] [stderr] Compiling serde_json v1.0.64
[INFO] [stderr] Compiling serde_urlencoded v0.7.0
[INFO] [stderr] Compiling actix-router v0.2.7
[INFO] [stderr] Compiling actix-http v3.0.0-beta.4
[INFO] [stderr] Compiling diesel v1.4.6
[INFO] [stderr] Compiling awc v3.0.0-beta.3
[INFO] [stderr] Compiling actix-web v4.0.0-beta.4
[INFO] [stderr] Compiling cn_poems_api v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `HttpResponse`, `Responder`, `delete`, `get`, `post`, `put`
[INFO] [stdout] --> src/main.rs:6:17
[INFO] [stdout] |
[INFO] [stdout] 6 | use actix_web::{delete, get, post, put, web, App, HttpResponse, HttpServer, Responder};
[INFO] [stdout] | ^^^^^^ ^^^ ^^^^ ^^^ ^^^^^^^^^^^^ ^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `dotenv::dotenv`
[INFO] [stdout] --> src/main.rs:10:5
[INFO] [stdout] |
[INFO] [stdout] 10 | use dotenv::dotenv;
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `handlers::get_poems_by_search`
[INFO] [stdout] --> src/main.rs:11:5
[INFO] [stdout] |
[INFO] [stdout] 11 | use handlers::get_poems_by_search;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout] --> src/main.rs:13:5
[INFO] [stdout] |
[INFO] [stdout] 13 | use std::env;
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::error`
[INFO] [stdout] --> src/main.rs:14:5
[INFO] [stdout] |
[INFO] [stdout] 14 | use std::error;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout] --> src/main.rs:15:5
[INFO] [stdout] |
[INFO] [stdout] 15 | use std::fs::File;
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`
[INFO] [stdout] --> src/main.rs:16:15
[INFO] [stdout] |
[INFO] [stdout] 16 | use std::io::{BufRead, BufReader};
[INFO] [stdout] | ^^^^^^^ ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::time::Instant`
[INFO] [stdout] --> src/main.rs:17:5
[INFO] [stdout] |
[INFO] [stdout] 17 | use std::time::Instant;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `super::errors`
[INFO] [stdout] --> src/handlers.rs:1:5
[INFO] [stdout] |
[INFO] [stdout] 1 | use super::errors;
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `id`
[INFO] [stdout] --> src/handlers.rs:160:37
[INFO] [stdout] |
[INFO] [stdout] 160 | use super::schema::poems::dsl::{id, poems};
[INFO] [stdout] | ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `NewPoem`, `Poems`, `ResPoems`
[INFO] [stdout] --> src/main.rs:25:14
[INFO] [stdout] |
[INFO] [stdout] 25 | use models::{NewPoem, Poems, ResPoems};
[INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `schema::poems`
[INFO] [stdout] --> src/main.rs:26:5
[INFO] [stdout] |
[INFO] [stdout] 26 | use schema::poems;
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `diesel::prelude`
[INFO] [stdout] --> src/main.rs:8:5
[INFO] [stdout] |
[INFO] [stdout] 8 | use diesel::prelude::*;
[INFO] [stdout] | ^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout] --> src/models.rs:112:13
[INFO] [stdout] |
[INFO] [stdout] 112 | id,
[INFO] [stdout] | ^^ help: try ignoring the field: `id: _`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `detailIntro`
[INFO] [stdout] --> src/models.rs:116:13
[INFO] [stdout] |
[INFO] [stdout] 116 | detailIntro,
[INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `detailIntro: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variant is never constructed: `InternalServerError`
[INFO] [stdout] --> src/errors.rs:7:5
[INFO] [stdout] |
[INFO] [stdout] 7 | InternalServerError,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] note: `ServiceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] --> src/errors.rs:4:10
[INFO] [stdout] |
[INFO] [stdout] 4 | #[derive(Debug, Display)]
[INFO] [stdout] | ^^^^^
[INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variant is never constructed: `BadRequest`
[INFO] [stdout] --> src/errors.rs:10:5
[INFO] [stdout] |
[INFO] [stdout] 10 | BadRequest(String),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] note: `ServiceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] --> src/errors.rs:4:10
[INFO] [stdout] |
[INFO] [stdout] 4 | #[derive(Debug, Display)]
[INFO] [stdout] | ^^^^^
[INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variant is never constructed: `JWKSFetchError`
[INFO] [stdout] --> src/errors.rs:13:5
[INFO] [stdout] |
[INFO] [stdout] 13 | JWKSFetchError,
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] note: `ServiceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] --> src/errors.rs:4:10
[INFO] [stdout] |
[INFO] [stdout] 4 | #[derive(Debug, Display)]
[INFO] [stdout] | ^^^^^
[INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `get_pagination_res`
[INFO] [stdout] --> src/handlers.rs:257:4
[INFO] [stdout] |
[INFO] [stdout] 257 | fn get_pagination_res
(
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `per_page`
[INFO] [stdout] --> src/pagination.rs:42:12
[INFO] [stdout] |
[INFO] [stdout] 42 | pub fn per_page(self, per_page: i64) -> Self {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 20 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 12s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: time-macros-impl v0.1.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 16`
[INFO] running `Command { std: "docker" "inspect" "3f47095177fd28582802478f67a4a1998959a5b52b885c7287877a2437ae028a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3f47095177fd28582802478f67a4a1998959a5b52b885c7287877a2437ae028a", kill_on_drop: false }`
[INFO] [stdout] 3f47095177fd28582802478f67a4a1998959a5b52b885c7287877a2437ae028a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 543f57835156c26f1bf0b912d6357086cf88dec3c615da67617b7117f458913d
[INFO] running `Command { std: "docker" "start" "-a" "543f57835156c26f1bf0b912d6357086cf88dec3c615da67617b7117f458913d", kill_on_drop: false }`
[INFO] [stderr] Compiling cn_poems_api v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `HttpResponse`, `Responder`, `delete`, `get`, `post`, `put`
[INFO] [stdout] --> src/main.rs:6:17
[INFO] [stdout] |
[INFO] [stdout] 6 | use actix_web::{delete, get, post, put, web, App, HttpResponse, HttpServer, Responder};
[INFO] [stdout] | ^^^^^^ ^^^ ^^^^ ^^^ ^^^^^^^^^^^^ ^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `dotenv::dotenv`
[INFO] [stdout] --> src/main.rs:10:5
[INFO] [stdout] |
[INFO] [stdout] 10 | use dotenv::dotenv;
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `handlers::get_poems_by_search`
[INFO] [stdout] --> src/main.rs:11:5
[INFO] [stdout] |
[INFO] [stdout] 11 | use handlers::get_poems_by_search;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout] --> src/main.rs:13:5
[INFO] [stdout] |
[INFO] [stdout] 13 | use std::env;
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::error`
[INFO] [stdout] --> src/main.rs:14:5
[INFO] [stdout] |
[INFO] [stdout] 14 | use std::error;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout] --> src/main.rs:15:5
[INFO] [stdout] |
[INFO] [stdout] 15 | use std::fs::File;
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`
[INFO] [stdout] --> src/main.rs:16:15
[INFO] [stdout] |
[INFO] [stdout] 16 | use std::io::{BufRead, BufReader};
[INFO] [stdout] | ^^^^^^^ ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::time::Instant`
[INFO] [stdout] --> src/main.rs:17:5
[INFO] [stdout] |
[INFO] [stdout] 17 | use std::time::Instant;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `super::errors`
[INFO] [stdout] --> src/handlers.rs:1:5
[INFO] [stdout] |
[INFO] [stdout] 1 | use super::errors;
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `id`
[INFO] [stdout] --> src/handlers.rs:160:37
[INFO] [stdout] |
[INFO] [stdout] 160 | use super::schema::poems::dsl::{id, poems};
[INFO] [stdout] | ^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `NewPoem`, `Poems`, `ResPoems`
[INFO] [stdout] --> src/main.rs:25:14
[INFO] [stdout] |
[INFO] [stdout] 25 | use models::{NewPoem, Poems, ResPoems};
[INFO] [stdout] | ^^^^^^^ ^^^^^ ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `schema::poems`
[INFO] [stdout] --> src/main.rs:26:5
[INFO] [stdout] |
[INFO] [stdout] 26 | use schema::poems;
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `diesel::prelude`
[INFO] [stdout] --> src/main.rs:8:5
[INFO] [stdout] |
[INFO] [stdout] 8 | use diesel::prelude::*;
[INFO] [stdout] | ^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout] --> src/models.rs:112:13
[INFO] [stdout] |
[INFO] [stdout] 112 | id,
[INFO] [stdout] | ^^ help: try ignoring the field: `id: _`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `detailIntro`
[INFO] [stdout] --> src/models.rs:116:13
[INFO] [stdout] |
[INFO] [stdout] 116 | detailIntro,
[INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `detailIntro: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variant is never constructed: `InternalServerError`
[INFO] [stdout] --> src/errors.rs:7:5
[INFO] [stdout] |
[INFO] [stdout] 7 | InternalServerError,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] note: `ServiceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] --> src/errors.rs:4:10
[INFO] [stdout] |
[INFO] [stdout] 4 | #[derive(Debug, Display)]
[INFO] [stdout] | ^^^^^
[INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variant is never constructed: `BadRequest`
[INFO] [stdout] --> src/errors.rs:10:5
[INFO] [stdout] |
[INFO] [stdout] 10 | BadRequest(String),
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] note: `ServiceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] --> src/errors.rs:4:10
[INFO] [stdout] |
[INFO] [stdout] 4 | #[derive(Debug, Display)]
[INFO] [stdout] | ^^^^^
[INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variant is never constructed: `JWKSFetchError`
[INFO] [stdout] --> src/errors.rs:13:5
[INFO] [stdout] |
[INFO] [stdout] 13 | JWKSFetchError,
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] note: `ServiceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] --> src/errors.rs:4:10
[INFO] [stdout] |
[INFO] [stdout] 4 | #[derive(Debug, Display)]
[INFO] [stdout] | ^^^^^
[INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function is never used: `get_pagination_res`
[INFO] [stdout] --> src/handlers.rs:257:4
[INFO] [stdout] |
[INFO] [stdout] 257 | fn get_pagination_res(
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `per_page`
[INFO] [stdout] --> src/pagination.rs:42:12
[INFO] [stdout] |
[INFO] [stdout] 42 | pub fn per_page(self, per_page: i64) -> Self {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 20 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.13s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: time-macros-impl v0.1.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 17`
[INFO] running `Command { std: "docker" "inspect" "543f57835156c26f1bf0b912d6357086cf88dec3c615da67617b7117f458913d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "543f57835156c26f1bf0b912d6357086cf88dec3c615da67617b7117f458913d", kill_on_drop: false }`
[INFO] [stdout] 543f57835156c26f1bf0b912d6357086cf88dec3c615da67617b7117f458913d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 02c8b96b4811651ba947063726a6260e02e91e3885ebb51a3debd23267ad574d
[INFO] running `Command { std: "docker" "start" "-a" "02c8b96b4811651ba947063726a6260e02e91e3885ebb51a3debd23267ad574d", kill_on_drop: false }`
[INFO] [stderr] warning: unused imports: `HttpResponse`, `Responder`, `delete`, `get`, `post`, `put`
[INFO] [stderr] --> src/main.rs:6:17
[INFO] [stderr] |
[INFO] [stderr] 6 | use actix_web::{delete, get, post, put, web, App, HttpResponse, HttpServer, Responder};
[INFO] [stderr] | ^^^^^^ ^^^ ^^^^ ^^^ ^^^^^^^^^^^^ ^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `dotenv::dotenv`
[INFO] [stderr] --> src/main.rs:10:5
[INFO] [stderr] |
[INFO] [stderr] 10 | use dotenv::dotenv;
[INFO] [stderr] | ^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `handlers::get_poems_by_search`
[INFO] [stderr] --> src/main.rs:11:5
[INFO] [stderr] |
[INFO] [stderr] 11 | use handlers::get_poems_by_search;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `std::env`
[INFO] [stderr] --> src/main.rs:13:5
[INFO] [stderr] |
[INFO] [stderr] 13 | use std::env;
[INFO] [stderr] | ^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `std::error`
[INFO] [stderr] --> src/main.rs:14:5
[INFO] [stderr] |
[INFO] [stderr] 14 | use std::error;
[INFO] [stderr] | ^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `std::fs::File`
[INFO] [stderr] --> src/main.rs:15:5
[INFO] [stderr] |
[INFO] [stderr] 15 | use std::fs::File;
[INFO] [stderr] | ^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused imports: `BufRead`, `BufReader`
[INFO] [stderr] --> src/main.rs:16:15
[INFO] [stderr] |
[INFO] [stderr] 16 | use std::io::{BufRead, BufReader};
[INFO] [stderr] | ^^^^^^^ ^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `std::time::Instant`
[INFO] [stderr] --> src/main.rs:17:5
[INFO] [stderr] |
[INFO] [stderr] 17 | use std::time::Instant;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `super::errors`
[INFO] [stderr] --> src/handlers.rs:1:5
[INFO] [stderr] |
[INFO] [stderr] 1 | use super::errors;
[INFO] [stderr] | ^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `id`
[INFO] [stderr] --> src/handlers.rs:160:37
[INFO] [stderr] |
[INFO] [stderr] 160 | use super::schema::poems::dsl::{id, poems};
[INFO] [stderr] | ^^
[INFO] [stderr]
[INFO] [stderr] warning: unused imports: `NewPoem`, `Poems`, `ResPoems`
[INFO] [stderr] --> src/main.rs:25:14
[INFO] [stderr] |
[INFO] [stderr] 25 | use models::{NewPoem, Poems, ResPoems};
[INFO] [stderr] | ^^^^^^^ ^^^^^ ^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `schema::poems`
[INFO] [stderr] --> src/main.rs:26:5
[INFO] [stderr] |
[INFO] [stderr] 26 | use schema::poems;
[INFO] [stderr] | ^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `diesel::prelude`
[INFO] [stderr] --> src/main.rs:8:5
[INFO] [stderr] |
[INFO] [stderr] 8 | use diesel::prelude::*;
[INFO] [stderr] | ^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `id`
[INFO] [stderr] --> src/models.rs:112:13
[INFO] [stderr] |
[INFO] [stderr] 112 | id,
[INFO] [stderr] | ^^ help: try ignoring the field: `id: _`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `detailIntro`
[INFO] [stderr] --> src/models.rs:116:13
[INFO] [stderr] |
[INFO] [stderr] 116 | detailIntro,
[INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `detailIntro: _`
[INFO] [stderr]
[INFO] [stderr] warning: variant is never constructed: `InternalServerError`
[INFO] [stderr] --> src/errors.rs:7:5
[INFO] [stderr] |
[INFO] [stderr] 7 | InternalServerError,
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] note: `ServiceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] --> src/errors.rs:4:10
[INFO] [stderr] |
[INFO] [stderr] 4 | #[derive(Debug, Display)]
[INFO] [stderr] | ^^^^^
[INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] warning: variant is never constructed: `BadRequest`
[INFO] [stderr] --> src/errors.rs:10:5
[INFO] [stderr] |
[INFO] [stderr] 10 | BadRequest(String),
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: `ServiceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] --> src/errors.rs:4:10
[INFO] [stderr] |
[INFO] [stderr] 4 | #[derive(Debug, Display)]
[INFO] [stderr] | ^^^^^
[INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] warning: variant is never constructed: `JWKSFetchError`
[INFO] [stderr] --> src/errors.rs:13:5
[INFO] [stderr] |
[INFO] [stderr] 13 | JWKSFetchError,
[INFO] [stderr] | ^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: `ServiceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] --> src/errors.rs:4:10
[INFO] [stderr] |
[INFO] [stderr] 4 | #[derive(Debug, Display)]
[INFO] [stderr] | ^^^^^
[INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] warning: function is never used: `get_pagination_res`
[INFO] [stderr] --> src/handlers.rs:257:4
[INFO] [stderr] |
[INFO] [stderr] 257 | fn get_pagination_res(
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: associated function is never used: `per_page`
[INFO] [stderr] --> src/pagination.rs:42:12
[INFO] [stderr] |
[INFO] [stderr] 42 | pub fn per_page(self, per_page: i64) -> Self {
[INFO] [stderr] | ^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: `cn_poems_api` (bin "cn_poems_api" test) generated 20 warnings
[INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.17s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: time-macros-impl v0.1.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 18`
[INFO] [stdout]
[INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/cn_poems_api-70395c82f72e80be)
[INFO] [stdout] running 0 tests
[INFO] [stdout]
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout]
[INFO] running `Command { std: "docker" "inspect" "02c8b96b4811651ba947063726a6260e02e91e3885ebb51a3debd23267ad574d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "02c8b96b4811651ba947063726a6260e02e91e3885ebb51a3debd23267ad574d", kill_on_drop: false }`
[INFO] [stdout] 02c8b96b4811651ba947063726a6260e02e91e3885ebb51a3debd23267ad574d