[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 try#c3758fdc4730d7700b25a13cccff296a08f42c00 for pr-91743
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsansx%2Fcn_poems_api" "/workspace/builds/worker-98/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-98/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/sansx/cn_poems_api on toolchain c3758fdc4730d7700b25a13cccff296a08f42c00
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+c3758fdc4730d7700b25a13cccff296a08f42c00" "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-98/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" "+c3758fdc4730d7700b25a13cccff296a08f42c00" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/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:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+c3758fdc4730d7700b25a13cccff296a08f42c00" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 15ebfe20e1d10a4a00b9770dd3d58e22e5484990ed2bb270f6f11ac071b1eec6
[INFO] running `Command { std: "docker" "start" "-a" "15ebfe20e1d10a4a00b9770dd3d58e22e5484990ed2bb270f6f11ac071b1eec6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "15ebfe20e1d10a4a00b9770dd3d58e22e5484990ed2bb270f6f11ac071b1eec6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "15ebfe20e1d10a4a00b9770dd3d58e22e5484990ed2bb270f6f11ac071b1eec6", kill_on_drop: false }`
[INFO] [stdout] 15ebfe20e1d10a4a00b9770dd3d58e22e5484990ed2bb270f6f11ac071b1eec6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+c3758fdc4730d7700b25a13cccff296a08f42c00" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 19bfcf72ff2b2b4e51a35a6c56e009fd934fbb6abafd160060297be722234765
[INFO] running `Command { std: "docker" "start" "-a" "19bfcf72ff2b2b4e51a35a6c56e009fd934fbb6abafd160060297be722234765", kill_on_drop: false }`
[INFO] [stderr] Compiling libc v0.2.89
[INFO] [stderr] Compiling cfg-if v1.0.0
[INFO] [stderr] Compiling proc-macro2 v1.0.24
[INFO] [stderr] Compiling unicode-xid v0.2.1
[INFO] [stderr] Compiling syn v1.0.64
[INFO] [stderr] Compiling autocfg v1.0.1
[INFO] [stderr] Compiling version_check v0.9.2
[INFO] [stderr] Compiling log v0.4.14
[INFO] [stderr] Compiling memchr v2.3.4
[INFO] [stderr] Compiling smallvec v1.6.1
[INFO] [stderr] Compiling scopeguard v1.1.0
[INFO] [stderr] Compiling pin-project-lite v0.2.6
[INFO] [stderr] Compiling bytes v1.0.1
[INFO] [stderr] Compiling futures-core v0.3.13
[INFO] [stderr] Compiling once_cell v1.7.2
[INFO] [stderr] Compiling futures-sink v0.3.13
[INFO] [stderr] Compiling bitflags v1.2.1
[INFO] [stderr] Compiling itoa v0.4.7
[INFO] [stderr] Compiling serde_derive v1.0.124
[INFO] [stderr] Compiling serde v1.0.124
[INFO] [stderr] Compiling getrandom v0.2.2
[INFO] [stderr] Compiling proc-macro-hack v0.5.19
[INFO] [stderr] Compiling lazy_static v1.4.0
[INFO] [stderr] Compiling typenum v1.13.0
[INFO] [stderr] Compiling ryu v1.0.5
[INFO] [stderr] Compiling matches v0.1.8
[INFO] [stderr] Compiling fnv v1.0.7
[INFO] [stderr] Compiling cc v1.0.67
[INFO] [stderr] Compiling percent-encoding v2.1.0
[INFO] [stderr] Compiling const_fn v0.4.5
[INFO] [stderr] Compiling serde_json v1.0.64
[INFO] [stderr] Compiling crc32fast v1.2.1
[INFO] [stderr] Compiling pin-utils v0.1.0
[INFO] [stderr] Compiling futures-task v0.3.13
[INFO] [stderr] Compiling slab v0.4.2
[INFO] [stderr] Compiling ppv-lite86 v0.2.10
[INFO] [stderr] Compiling hashbrown v0.9.1
[INFO] [stderr] Compiling regex-syntax v0.6.23
[INFO] [stderr] Compiling tinyvec_macros v0.1.0
[INFO] [stderr] Compiling encoding_rs v0.8.28
[INFO] [stderr] Compiling httparse v1.3.5
[INFO] [stderr] Compiling adler v1.0.2
[INFO] [stderr] Compiling cpuid-bool v0.1.2
[INFO] [stderr] Compiling opaque-debug v0.3.0
[INFO] [stderr] Compiling base64 v0.13.0
[INFO] [stderr] Compiling language-tags v0.2.2
[INFO] [stderr] Compiling pq-sys v0.4.6
[INFO] [stderr] Compiling mime v0.3.16
[INFO] [stderr] Compiling either v1.6.1
[INFO] [stderr] Compiling byteorder v1.4.3
[INFO] [stderr] Compiling dotenv v0.15.0
[INFO] [stderr] Compiling tinyvec v1.1.1
[INFO] [stderr] Compiling actix-service v2.0.0-beta.5
[INFO] [stderr] Compiling tracing-core v0.1.17
[INFO] [stderr] Compiling lock_api v0.4.2
[INFO] [stderr] Compiling form_urlencoded v1.0.1
[INFO] [stderr] Compiling unicode-bidi v0.3.4
[INFO] [stderr] Compiling instant v0.1.9
[INFO] [stderr] Compiling futures-util v0.3.13
[INFO] [stderr] Compiling tracing v0.1.25
[INFO] [stderr] Compiling http v0.2.3
[INFO] [stderr] Compiling bytestring v1.0.0
[INFO] [stderr] Compiling standback v0.2.15
[INFO] [stderr] Compiling generic-array v0.14.4
[INFO] [stderr] Compiling time v0.2.25
[INFO] [stderr] Compiling ahash v0.7.2
[INFO] [stderr] Compiling cookie v0.14.4
[INFO] [stderr] Compiling tokio v1.3.0
[INFO] [stderr] Compiling miniz_oxide v0.4.4
[INFO] [stderr] Compiling indexmap v1.6.2
[INFO] [stderr] Compiling crossbeam-utils v0.8.3
[INFO] [stderr] Compiling unicode-normalization v0.1.17
[INFO] [stderr] Compiling aho-corasick v0.7.15
[INFO] [stderr] Compiling quote v1.0.9
[INFO] [stderr] Compiling brotli-sys v0.3.2
[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 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 regex v1.4.5
[INFO] [stderr] Compiling idna v0.2.2
[INFO] [stderr] Compiling digest v0.9.0
[INFO] [stderr] Compiling block-buffer v0.9.0
[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 sha-1 v0.9.4
[INFO] [stderr] Compiling scheduled-thread-pool v0.2.5
[INFO] [stderr] Compiling rand_chacha v0.3.0
[INFO] [stderr] Compiling r2d2 v0.8.9
[INFO] [stderr] Compiling url v2.2.1
[INFO] [stderr] Compiling rand v0.8.3
[INFO] [stderr] Compiling tokio-util v0.6.4
[INFO] [stderr] Compiling brotli2 v0.3.2
[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-web-codegen v0.5.0-beta.2
[INFO] [stderr] Compiling actix_derive v0.6.0-beta.2
[INFO] [stderr] Compiling diesel_derives v1.4.1
[INFO] [stderr] Compiling actix-rt v2.1.0
[INFO] [stderr] Compiling time-macros v0.1.1
[INFO] [stderr] Compiling actix-utils v3.0.0-beta.2
[INFO] [stderr] Compiling actix v0.11.0-beta.3
[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_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 2m 14s
[INFO] running `Command { std: "docker" "inspect" "19bfcf72ff2b2b4e51a35a6c56e009fd934fbb6abafd160060297be722234765", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "19bfcf72ff2b2b4e51a35a6c56e009fd934fbb6abafd160060297be722234765", kill_on_drop: false }`
[INFO] [stdout] 19bfcf72ff2b2b4e51a35a6c56e009fd934fbb6abafd160060297be722234765
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+c3758fdc4730d7700b25a13cccff296a08f42c00" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f5c7103057057bad0d82399b66dea152d3c79538730b125bfe58e0ba1bed58ba
[INFO] running `Command { std: "docker" "start" "-a" "f5c7103057057bad0d82399b66dea152d3c79538730b125bfe58e0ba1bed58ba", 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 1.26s
[INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/cn_poems_api-347ba238f90ba19e)
[INFO] running `Command { std: "docker" "inspect" "f5c7103057057bad0d82399b66dea152d3c79538730b125bfe58e0ba1bed58ba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f5c7103057057bad0d82399b66dea152d3c79538730b125bfe58e0ba1bed58ba", kill_on_drop: false }`
[INFO] [stdout] f5c7103057057bad0d82399b66dea152d3c79538730b125bfe58e0ba1bed58ba
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d190cb871061d98bc6d0581d85cb2ecb09a0f8a142ba5463de30be9999fc3251" "/opt/rustwide/cargo-home/bin/cargo" "+c3758fdc4730d7700b25a13cccff296a08f42c00" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] caf57bb449dff1e284f3461639804a54f46c3c9e6fba73acc7c8eb8179377c7f
[INFO] running `Command { std: "docker" "start" "-a" "caf57bb449dff1e284f3461639804a54f46c3c9e6fba73acc7c8eb8179377c7f", 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] 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.92s
[INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/cn_poems_api-347ba238f90ba19e)
[INFO] [stdout]
[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" "caf57bb449dff1e284f3461639804a54f46c3c9e6fba73acc7c8eb8179377c7f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "caf57bb449dff1e284f3461639804a54f46c3c9e6fba73acc7c8eb8179377c7f", kill_on_drop: false }`
[INFO] [stdout] caf57bb449dff1e284f3461639804a54f46c3c9e6fba73acc7c8eb8179377c7f