[INFO] cloning repository https://github.com/wilderbit/url-shortening [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wilderbit/url-shortening" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwilderbit%2Furl-shortening", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwilderbit%2Furl-shortening'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7f94914f1a3a1404aef03b59de8344f82f58586d [INFO] testing wilderbit/url-shortening against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwilderbit%2Furl-shortening" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wilderbit/url-shortening on toolchain a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/wilderbit/url-shortening [INFO] finished tweaking git repo https://github.com/wilderbit/url-shortening [INFO] tweaked toml for git repo https://github.com/wilderbit/url-shortening written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/wilderbit/url-shortening already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", 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] 983e73d46ac7ccac3707dd7f3e0f623e5539d3d5b9365013192aba5c5c590047 [INFO] running `Command { std: "docker" "start" "-a" "983e73d46ac7ccac3707dd7f3e0f623e5539d3d5b9365013192aba5c5c590047", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "983e73d46ac7ccac3707dd7f3e0f623e5539d3d5b9365013192aba5c5c590047", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "983e73d46ac7ccac3707dd7f3e0f623e5539d3d5b9365013192aba5c5c590047", kill_on_drop: false }` [INFO] [stdout] 983e73d46ac7ccac3707dd7f3e0f623e5539d3d5b9365013192aba5c5c590047 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb764f7e48a423ab725b2b6e79d2b9d06319d80a385448ad3cb84dd3aafcf04c [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" "eb764f7e48a423ab725b2b6e79d2b9d06319d80a385448ad3cb84dd3aafcf04c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.45 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Compiling futures-core v0.3.6 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling futures-sink v0.3.6 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling smallvec v1.4.2 [INFO] [stderr] Compiling once_cell v1.4.1 [INFO] [stderr] Compiling pin-project-lite v0.1.10 [INFO] [stderr] Compiling futures-io v0.3.6 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling gimli v0.22.0 [INFO] [stderr] Compiling tinyvec v0.3.4 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling rustc-demangle v0.1.17 [INFO] [stderr] Compiling object v0.21.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.9 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling cc v1.0.61 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling const_fn v0.4.2 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling regex-syntax v0.6.20 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling linked-hash-map v0.5.3 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling encoding_rs v0.8.24 [INFO] [stderr] Compiling dtoa v0.4.6 [INFO] [stderr] Compiling cpuid-bool v0.1.2 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Compiling termcolor v1.1.0 [INFO] [stderr] Compiling bytestring v0.1.5 [INFO] [stderr] Compiling instant v0.1.7 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling futures-task v0.3.6 [INFO] [stderr] Compiling futures-channel v0.3.6 [INFO] [stderr] Compiling lock_api v0.4.1 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling unicode-normalization v0.1.13 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling standback v0.2.11 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling time v0.2.22 [INFO] [stderr] Compiling cookie v0.14.2 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling tinyvec v1.0.1 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling aho-corasick v0.7.14 [INFO] [stderr] Compiling tracing v0.1.21 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.35 [INFO] [stderr] Compiling signal-hook-registry v1.2.1 [INFO] [stderr] Compiling parking_lot_core v0.8.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling socket2 v0.3.15 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Compiling flate2 v1.0.18 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling parking_lot v0.11.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling regex v1.4.1 [INFO] [stderr] Compiling resolv-conf v0.6.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling addr2line v0.13.0 [INFO] [stderr] Compiling sha-1 v0.9.1 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.5 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling backtrace v0.3.53 [INFO] [stderr] Compiling r2d2 v0.8.9 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling tokio v0.2.22 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling brotli2 v0.3.2 [INFO] [stderr] Compiling futures-macro v0.3.6 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling actix-macros v0.1.2 [INFO] [stderr] Compiling thiserror-impl v1.0.21 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling async-trait v0.1.41 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling actix-web-codegen v0.3.0 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling dotenv v0.14.1 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling futures-util v0.3.6 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling thiserror v1.0.21 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling futures v0.3.6 [INFO] [stderr] Compiling h2 v0.2.6 [INFO] [stderr] Compiling trust-dns-proto v0.19.5 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling actix-tls v2.0.0 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling trust-dns-resolver v0.19.5 [INFO] [stderr] Compiling actix-connect v2.0.0 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling actix-router v0.2.5 [INFO] [stderr] Compiling diesel v1.4.5 [INFO] [stderr] Compiling actix-http v2.0.0 [INFO] [stderr] Compiling awc v2.0.0 [INFO] [stderr] Compiling actix-web v3.1.0 [INFO] [stderr] Compiling service v0.1.0 (/opt/rustwide/workdir/service) [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> service/src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use actix_web::{get, web, App, HttpServer, Responder}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `url_shortening_url` is imported redundantly [INFO] [stdout] --> service/src/models/url.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 1 | use super::prelude::*; [INFO] [stdout] | ----------------- the item `url_shortening_url` is already imported here [INFO] [stdout] ... [INFO] [stdout] 10 | use super::schema::url_shortening_url; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result`, `web` [INFO] [stdout] --> service/src/routes/create.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{web, HttpResponse, Result}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get`, `web` [INFO] [stdout] --> service/src/routes/get.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{get, web}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `base::ApiResponse` [INFO] [stdout] --> service/src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use base::ApiResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `api_key` [INFO] [stdout] --> service/src/routes/mod.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn create_url(api_key: String, url: String, expiry_time: Option) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_api_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> service/src/routes/mod.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn create_url(api_key: String, url: String, expiry_time: Option) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expiry_time` [INFO] [stdout] --> service/src/routes/mod.rs:4:55 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn create_url(api_key: String, url: String, expiry_time: Option) -> String { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expiry_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> service/src/routes/mod.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn get_url(url: String) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_data` [INFO] [stdout] --> service/src/base/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn with_data(mut self, data: serde_json::Value) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_error` [INFO] [stdout] --> service/src/base/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn with_error(mut self, error: serde_json::Value) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_success` [INFO] [stdout] --> service/src/base/mod.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | fn from_success(data: &impl serde::Serialize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_error` [INFO] [stdout] --> service/src/base/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn from_error(data: &impl serde::Serialize) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `success` [INFO] [stdout] --> service/src/base/mod.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn success(data: &impl serde::Serialize) -> actix_web::HttpResponse { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `error` [INFO] [stdout] --> service/src/base/mod.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | fn error(error: &impl serde::Serialize) -> actix_web::HttpResponse { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create` [INFO] [stdout] --> service/src/main.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | async fn create(web::Query(info): web::Query) -> impl Responder { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> service/src/routes/create.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / crate::models::url::create( [INFO] [stdout] 36 | | &crate::models::db::connection().unwrap(), [INFO] [stdout] 37 | | "12345", [INFO] [stdout] 38 | | &create_req.alias, [INFO] [stdout] 39 | | &create_req.url, [INFO] [stdout] 40 | | &Utc::now(), [INFO] [stdout] 41 | | ); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4m 02s [INFO] running `Command { std: "docker" "inspect" "eb764f7e48a423ab725b2b6e79d2b9d06319d80a385448ad3cb84dd3aafcf04c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb764f7e48a423ab725b2b6e79d2b9d06319d80a385448ad3cb84dd3aafcf04c", kill_on_drop: false }` [INFO] [stdout] eb764f7e48a423ab725b2b6e79d2b9d06319d80a385448ad3cb84dd3aafcf04c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0ba32f49ce75b9ca527c5a74e292ec0fa61102046917b3daae9db19ddb4e6135 [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" "0ba32f49ce75b9ca527c5a74e292ec0fa61102046917b3daae9db19ddb4e6135", kill_on_drop: false }` [INFO] [stderr] Compiling service v0.1.0 (/opt/rustwide/workdir/service) [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> service/src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | use actix_web::{get, web, App, HttpServer, Responder}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `url_shortening_url` is imported redundantly [INFO] [stdout] --> service/src/models/url.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 1 | use super::prelude::*; [INFO] [stdout] | ----------------- the item `url_shortening_url` is already imported here [INFO] [stdout] ... [INFO] [stdout] 10 | use super::schema::url_shortening_url; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result`, `web` [INFO] [stdout] --> service/src/routes/create.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{web, HttpResponse, Result}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get`, `web` [INFO] [stdout] --> service/src/routes/get.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{get, web}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `base::ApiResponse` [INFO] [stdout] --> service/src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use base::ApiResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `api_key` [INFO] [stdout] --> service/src/routes/mod.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn create_url(api_key: String, url: String, expiry_time: Option) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_api_key` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> service/src/routes/mod.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn create_url(api_key: String, url: String, expiry_time: Option) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expiry_time` [INFO] [stdout] --> service/src/routes/mod.rs:4:55 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn create_url(api_key: String, url: String, expiry_time: Option) -> String { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expiry_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `url` [INFO] [stdout] --> service/src/routes/mod.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn get_url(url: String) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_data` [INFO] [stdout] --> service/src/base/mod.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn with_data(mut self, data: serde_json::Value) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_error` [INFO] [stdout] --> service/src/base/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn with_error(mut self, error: serde_json::Value) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_success` [INFO] [stdout] --> service/src/base/mod.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | fn from_success(data: &impl serde::Serialize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_error` [INFO] [stdout] --> service/src/base/mod.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | fn from_error(data: &impl serde::Serialize) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `success` [INFO] [stdout] --> service/src/base/mod.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn success(data: &impl serde::Serialize) -> actix_web::HttpResponse { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `error` [INFO] [stdout] --> service/src/base/mod.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | fn error(error: &impl serde::Serialize) -> actix_web::HttpResponse { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create` [INFO] [stdout] --> service/src/main.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | async fn create(web::Query(info): web::Query) -> impl Responder { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> service/src/routes/create.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | / crate::models::url::create( [INFO] [stdout] 36 | | &crate::models::db::connection().unwrap(), [INFO] [stdout] 37 | | "12345", [INFO] [stdout] 38 | | &create_req.alias, [INFO] [stdout] 39 | | &create_req.url, [INFO] [stdout] 40 | | &Utc::now(), [INFO] [stdout] 41 | | ); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.98s [INFO] running `Command { std: "docker" "inspect" "0ba32f49ce75b9ca527c5a74e292ec0fa61102046917b3daae9db19ddb4e6135", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ba32f49ce75b9ca527c5a74e292ec0fa61102046917b3daae9db19ddb4e6135", kill_on_drop: false }` [INFO] [stdout] 0ba32f49ce75b9ca527c5a74e292ec0fa61102046917b3daae9db19ddb4e6135 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cbccaeea8a8f36e4c55a12789ad0c7d700f3163cce6674bb79f34673e2be3151 [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" "cbccaeea8a8f36e4c55a12789ad0c7d700f3163cce6674bb79f34673e2be3151", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `get` [INFO] [stderr] --> service/src/main.rs:6:17 [INFO] [stderr] | [INFO] [stderr] 6 | use actix_web::{get, web, App, HttpServer, Responder}; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: the item `url_shortening_url` is imported redundantly [INFO] [stderr] --> service/src/models/url.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 1 | use super::prelude::*; [INFO] [stderr] | ----------------- the item `url_shortening_url` is already imported here [INFO] [stderr] ... [INFO] [stderr] 10 | use super::schema::url_shortening_url; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Result`, `web` [INFO] [stderr] --> service/src/routes/create.rs:2:17 [INFO] [stderr] | [INFO] [stderr] 2 | use actix_web::{web, HttpResponse, Result}; [INFO] [stderr] | ^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `get`, `web` [INFO] [stderr] --> service/src/routes/get.rs:2:17 [INFO] [stderr] | [INFO] [stderr] 2 | use actix_web::{get, web}; [INFO] [stderr] | ^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `base::ApiResponse` [INFO] [stderr] --> service/src/main.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use base::ApiResponse; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `api_key` [INFO] [stderr] --> service/src/routes/mod.rs:4:25 [INFO] [stderr] | [INFO] [stderr] 4 | pub async fn create_url(api_key: String, url: String, expiry_time: Option) -> String { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_api_key` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `url` [INFO] [stderr] --> service/src/routes/mod.rs:4:42 [INFO] [stderr] | [INFO] [stderr] 4 | pub async fn create_url(api_key: String, url: String, expiry_time: Option) -> String { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expiry_time` [INFO] [stderr] --> service/src/routes/mod.rs:4:55 [INFO] [stderr] | [INFO] [stderr] 4 | pub async fn create_url(api_key: String, url: String, expiry_time: Option) -> String { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expiry_time` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `url` [INFO] [stderr] --> service/src/routes/mod.rs:11:22 [INFO] [stderr] | [INFO] [stderr] 11 | pub async fn get_url(url: String) -> String { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_url` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `with_data` [INFO] [stderr] --> service/src/base/mod.rs:24:8 [INFO] [stderr] | [INFO] [stderr] 24 | fn with_data(mut self, data: serde_json::Value) -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `with_error` [INFO] [stderr] --> service/src/base/mod.rs:30:8 [INFO] [stderr] | [INFO] [stderr] 30 | fn with_error(mut self, error: serde_json::Value) -> Self { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from_success` [INFO] [stderr] --> service/src/base/mod.rs:36:8 [INFO] [stderr] | [INFO] [stderr] 36 | fn from_success(data: &impl serde::Serialize) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `from_error` [INFO] [stderr] --> service/src/base/mod.rs:40:8 [INFO] [stderr] | [INFO] [stderr] 40 | fn from_error(data: &impl serde::Serialize) -> Self { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `success` [INFO] [stderr] --> service/src/base/mod.rs:44:8 [INFO] [stderr] | [INFO] [stderr] 44 | fn success(data: &impl serde::Serialize) -> actix_web::HttpResponse { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `error` [INFO] [stderr] --> service/src/base/mod.rs:48:8 [INFO] [stderr] | [INFO] [stderr] 48 | fn error(error: &impl serde::Serialize) -> actix_web::HttpResponse { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create` [INFO] [stderr] --> service/src/main.rs:27:10 [INFO] [stderr] | [INFO] [stderr] 27 | async fn create(web::Query(info): web::Query) -> impl Responder { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> service/src/routes/create.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | / crate::models::url::create( [INFO] [stderr] 36 | | &crate::models::db::connection().unwrap(), [INFO] [stderr] 37 | | "12345", [INFO] [stderr] 38 | | &create_req.alias, [INFO] [stderr] 39 | | &create_req.url, [INFO] [stderr] 40 | | &Utc::now(), [INFO] [stderr] 41 | | ); [INFO] [stderr] | |______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: `service` (bin "service" test) generated 17 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.26s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/service-47cf4cb0bb408d16) [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.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "cbccaeea8a8f36e4c55a12789ad0c7d700f3163cce6674bb79f34673e2be3151", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbccaeea8a8f36e4c55a12789ad0c7d700f3163cce6674bb79f34673e2be3151", kill_on_drop: false }` [INFO] [stdout] cbccaeea8a8f36e4c55a12789ad0c7d700f3163cce6674bb79f34673e2be3151