[INFO] cloning repository https://github.com/IDL13/url_cuter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/IDL13/url_cuter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIDL13%2Furl_cuter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIDL13%2Furl_cuter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 22b631391aaad11ac29e330bd1e0015012c6c96f [INFO] testing IDL13/url_cuter/22b631391aaad11ac29e330bd1e0015012c6c96f against beta-2024-09-05 for beta-1.82-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIDL13%2Furl_cuter" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/IDL13/url_cuter on toolchain beta-2024-09-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-09-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/IDL13/url_cuter [INFO] finished tweaking git repo https://github.com/IDL13/url_cuter [INFO] tweaked toml for git repo https://github.com/IDL13/url_cuter written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/IDL13/url_cuter already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-09-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 35748043544ad9fd110971a309e31abb015e0df6658abe4ecb0c971b677add97 [INFO] running `Command { std: "docker" "start" "-a" "35748043544ad9fd110971a309e31abb015e0df6658abe4ecb0c971b677add97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "35748043544ad9fd110971a309e31abb015e0df6658abe4ecb0c971b677add97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35748043544ad9fd110971a309e31abb015e0df6658abe4ecb0c971b677add97", kill_on_drop: false }` [INFO] [stdout] 35748043544ad9fd110971a309e31abb015e0df6658abe4ecb0c971b677add97 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 02223e99a787d6c051cb535c7bab1c379cedd4f5f49008e46ebd069cf75b819e [INFO] running `Command { std: "docker" "start" "-a" "02223e99a787d6c051cb535c7bab1c379cedd4f5f49008e46ebd069cf75b819e", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.84 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling cc v1.0.98 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling zstd-safe v7.1.0 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling regex-lite v0.1.5 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling miniz_oxide v0.7.3 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling zstd-sys v2.0.10+zstd.1.5.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling brotli-decompressor v4.0.1 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling zerocopy v0.7.34 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling brotli v6.0.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling nanoid v0.4.0 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling actix-web-codegen v4.2.2 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling zstd v0.13.1 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling actix-rt v2.9.0 [INFO] [stderr] Compiling actix-server v2.3.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling actix-http v3.7.0 [INFO] [stderr] Compiling actix-web v4.6.0 [INFO] [stderr] Compiling url_cuter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/ports/httpapi/mod.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppService`, `HttpResponse`, `Path`, `get`, `post`, and `resource` [INFO] [stdout] --> src/ports/httpapi/mod.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{dev::{AppService, Path}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^ [INFO] [stdout] 4 | get, [INFO] [stdout] | ^^^ [INFO] [stdout] 5 | post, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | web::{self, resource, Data, Json}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | App, [INFO] [stdout] 8 | HttpResponse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/app/command/create_short_url.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::id_provider::{self, IDProvider}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> src/ports/httpapi/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Server [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/ports/httpapi/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 25 | / impl Server [INFO] [stdout] 26 | | where [INFO] [stdout] 27 | | I: IDProvider + Send + Sync + 'static, [INFO] [stdout] 28 | | R: CreateShortUrlRepository + Send + Sync + 'static, [INFO] [stdout] 29 | | Q: GetFullUrlRepository + Send + Sync + 'static, [INFO] [stdout] | |____________________________________________________- associated items in this implementation [INFO] [stdout] 30 | { [INFO] [stdout] 31 | pub fn new(port: u16, container: Arc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub async fn run(self) -> std::io::Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `config_shorten_url` is never used [INFO] [stdout] --> src/ports/httpapi/mod.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn config_shorten_url(cfg: &mut web::ServiceConfig) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `config_get_full_url` is never used [INFO] [stdout] --> src/ports/httpapi/mod.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn config_get_full_url(cfg: &mut web::ServiceConfig) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shorten_url` is never used [INFO] [stdout] --> src/ports/httpapi/mod.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | async fn shorten_url( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_full_url` is never used [INFO] [stdout] --> src/ports/httpapi/mod.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | async fn get_full_url( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id_provider` and `repo` are never read [INFO] [stdout] --> src/app/command/create_short_url.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct CreateShortUrlCommand [INFO] [stdout] | --------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | id_provider: I, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | repo: R, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/app/command/create_short_url.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 13 | / impl CreateShortUrlCommand [INFO] [stdout] 14 | | where [INFO] [stdout] 15 | | I: IDProvider, [INFO] [stdout] 16 | | R: CreateShortUrlRepository, [INFO] [stdout] | |________________________________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn execute(&self, full_url: String) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/app/query/get_full_url.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait GetFullUrlRepository { [INFO] [stdout] | -------------------- method in this trait [INFO] [stdout] 2 | fn get(&self, id: &str) -> Result; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `repo` is never read [INFO] [stdout] --> src/app/query/get_full_url.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct GetFullUrlQuery [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | repo: R, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/app/query/get_full_url.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 12 | / impl GetFullUrlQuery [INFO] [stdout] 13 | | where [INFO] [stdout] 14 | | R: GetFullUrlRepository, [INFO] [stdout] | |____________________________- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub async fn execute(&self, id: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `provide` is never used [INFO] [stdout] --> src/id_provider.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait IDProvider { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 2 | fn provide(&self) -> String; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `set_id` are never used [INFO] [stdout] --> src/id_provider.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl FakeIDProvide { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 18 | pub fn new(id: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn set_id(&mut self, id: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/storage/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait CreateShortUrlRepository { [INFO] [stdout] | ------------------------ method in this trait [INFO] [stdout] 5 | fn save(&self, full_url: String, id: String) -> Result<(), String>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/storage/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl StorageRepository { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(store: Arc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dependency_injection/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait DC [INFO] [stdout] | -- associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | fn new(id_provider: I, repository: R, querier: Q) -> Container; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `command` and `query` are never read [INFO] [stdout] --> src/dependency_injection/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Container [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub command: CreateShortUrlCommand, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub query: GetFullUrlQuery, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.58s [INFO] running `Command { std: "docker" "inspect" "02223e99a787d6c051cb535c7bab1c379cedd4f5f49008e46ebd069cf75b819e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02223e99a787d6c051cb535c7bab1c379cedd4f5f49008e46ebd069cf75b819e", kill_on_drop: false }` [INFO] [stdout] 02223e99a787d6c051cb535c7bab1c379cedd4f5f49008e46ebd069cf75b819e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c5c48ce18ced49d8881855f2c1cebd5e4dce9d22f5b0507274070ba6e954695 [INFO] running `Command { std: "docker" "start" "-a" "4c5c48ce18ced49d8881855f2c1cebd5e4dce9d22f5b0507274070ba6e954695", kill_on_drop: false }` [INFO] [stderr] Compiling url_cuter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/ports/httpapi/mod.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppService`, `HttpResponse`, `Path`, `get`, `post`, and `resource` [INFO] [stdout] --> src/ports/httpapi/mod.rs:3:23 [INFO] [stdout] | [INFO] [stdout] 3 | use actix_web::{dev::{AppService, Path}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^ [INFO] [stdout] 4 | get, [INFO] [stdout] | ^^^ [INFO] [stdout] 5 | post, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | web::{self, resource, Data, Json}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | App, [INFO] [stdout] 8 | HttpResponse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::StatusCode` [INFO] [stdout] --> src/ports/httpapi/mod.rs:138:21 [INFO] [stdout] | [INFO] [stdout] 138 | use actix_web::{http::StatusCode, test}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/app/command/create_short_url.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::id_provider::{self, IDProvider}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `app::command` and `self` [INFO] [stdout] --> src/app/command/create_short_url.rs:36:17 [INFO] [stdout] | [INFO] [stdout] 36 | use crate::{app::command, storage::{self, StorageRepository}}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `app::query` [INFO] [stdout] --> src/app/query/get_full_url.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::{app::query, storage::StorageRepository}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ports/httpapi/mod.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | let mut app = test::init_service(App::new().app_data(web::Data::new(container)).route( [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ports/httpapi/mod.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | let mut app = test::init_service(App::new().app_data(web::Data::new(container)).route( [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Server` is never constructed [INFO] [stdout] --> src/ports/httpapi/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Server [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/ports/httpapi/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 25 | / impl Server [INFO] [stdout] 26 | | where [INFO] [stdout] 27 | | I: IDProvider + Send + Sync + 'static, [INFO] [stdout] 28 | | R: CreateShortUrlRepository + Send + Sync + 'static, [INFO] [stdout] 29 | | Q: GetFullUrlRepository + Send + Sync + 'static, [INFO] [stdout] | |____________________________________________________- associated items in this implementation [INFO] [stdout] 30 | { [INFO] [stdout] 31 | pub fn new(port: u16, container: Arc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub async fn run(self) -> std::io::Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `config_shorten_url` is never used [INFO] [stdout] --> src/ports/httpapi/mod.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn config_shorten_url(cfg: &mut web::ServiceConfig) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `config_get_full_url` is never used [INFO] [stdout] --> src/ports/httpapi/mod.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn config_get_full_url(cfg: &mut web::ServiceConfig) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_id` is never used [INFO] [stdout] --> src/id_provider.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl FakeIDProvide { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn set_id(&mut self, id: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.25s [INFO] running `Command { std: "docker" "inspect" "4c5c48ce18ced49d8881855f2c1cebd5e4dce9d22f5b0507274070ba6e954695", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c5c48ce18ced49d8881855f2c1cebd5e4dce9d22f5b0507274070ba6e954695", kill_on_drop: false }` [INFO] [stdout] 4c5c48ce18ced49d8881855f2c1cebd5e4dce9d22f5b0507274070ba6e954695 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d9a108113fe028001a646337939ec5380945603accb87dac8564d47ff0e812a6 [INFO] running `Command { std: "docker" "start" "-a" "d9a108113fe028001a646337939ec5380945603accb87dac8564d47ff0e812a6", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `collections::HashMap` [INFO] [stderr] --> src/ports/httpapi/mod.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | use std::{collections::HashMap, sync::Arc}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AppService`, `HttpResponse`, `Path`, `get`, `post`, and `resource` [INFO] [stderr] --> src/ports/httpapi/mod.rs:3:23 [INFO] [stderr] | [INFO] [stderr] 3 | use actix_web::{dev::{AppService, Path}, [INFO] [stderr] | ^^^^^^^^^^ ^^^^ [INFO] [stderr] 4 | get, [INFO] [stderr] | ^^^ [INFO] [stderr] 5 | post, [INFO] [stderr] | ^^^^ [INFO] [stderr] 6 | web::{self, resource, Data, Json}, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 7 | App, [INFO] [stderr] 8 | HttpResponse, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `http::StatusCode` [INFO] [stderr] --> src/ports/httpapi/mod.rs:138:21 [INFO] [stderr] | [INFO] [stderr] 138 | use actix_web::{http::StatusCode, test}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `self` [INFO] [stderr] --> src/app/command/create_short_url.rs:1:26 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::id_provider::{self, IDProvider}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `app::command` and `self` [INFO] [stderr] --> src/app/command/create_short_url.rs:36:17 [INFO] [stderr] | [INFO] [stderr] 36 | use crate::{app::command, storage::{self, StorageRepository}}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `app::query` [INFO] [stderr] --> src/app/query/get_full_url.rs:29:17 [INFO] [stderr] | [INFO] [stderr] 29 | use crate::{app::query, storage::StorageRepository}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/ports/httpapi/mod.rs:211:13 [INFO] [stderr] | [INFO] [stderr] 211 | let mut app = test::init_service(App::new().app_data(web::Data::new(container)).route( [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/ports/httpapi/mod.rs:230:13 [INFO] [stderr] | [INFO] [stderr] 230 | let mut app = test::init_service(App::new().app_data(web::Data::new(container)).route( [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: struct `Server` is never constructed [INFO] [stderr] --> src/ports/httpapi/mod.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 15 | pub struct Server [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `run` are never used [INFO] [stderr] --> src/ports/httpapi/mod.rs:31:12 [INFO] [stderr] | [INFO] [stderr] 25 | / impl Server [INFO] [stderr] 26 | | where [INFO] [stderr] 27 | | I: IDProvider + Send + Sync + 'static, [INFO] [stderr] 28 | | R: CreateShortUrlRepository + Send + Sync + 'static, [INFO] [stderr] 29 | | Q: GetFullUrlRepository + Send + Sync + 'static, [INFO] [stderr] | |____________________________________________________- associated items in this implementation [INFO] [stderr] 30 | { [INFO] [stderr] 31 | pub fn new(port: u16, container: Arc>) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | pub async fn run(self) -> std::io::Result<()> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `config_shorten_url` is never used [INFO] [stderr] --> src/ports/httpapi/mod.rs:51:4 [INFO] [stderr] | [INFO] [stderr] 51 | fn config_shorten_url(cfg: &mut web::ServiceConfig) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `config_get_full_url` is never used [INFO] [stderr] --> src/ports/httpapi/mod.rs:63:4 [INFO] [stderr] | [INFO] [stderr] 63 | fn config_get_full_url(cfg: &mut web::ServiceConfig) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `set_id` is never used [INFO] [stderr] --> src/id_provider.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl FakeIDProvide { [INFO] [stderr] | ------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 22 | pub fn set_id(&mut self, id: String) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `url_cuter` (bin "url_cuter" test) generated 13 warnings (run `cargo fix --bin "url_cuter" --tests` to apply 8 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/url_cuter-46936a5cbaa5a398) [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test app::query::get_full_url::test::get_full_url ... ok [INFO] [stdout] test app::command::create_short_url::tests::get_short_url ... ok [INFO] [stdout] test app::query::get_full_url::test::get_from_storage ... ok [INFO] [stdout] test app::query::get_full_url::test::get_two_different_full_url ... ok [INFO] [stdout] test app::command::create_short_url::tests::save_one_item ... ok [INFO] [stdout] test app::command::create_short_url::tests::get_two_different_url ... ok [INFO] [stdout] test app::tests::create_and_get_short_url ... ok [INFO] [stdout] test ports::httpapi::tests::tes_shorten_url_success ... ok [INFO] [stdout] test ports::httpapi::tests::test_shorten_url ... ok [INFO] [stdout] test ports::httpapi::tests::test_get_full_url ... ok [INFO] [stdout] test ports::httpapi::tests::tes_get_full_url_success ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d9a108113fe028001a646337939ec5380945603accb87dac8564d47ff0e812a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9a108113fe028001a646337939ec5380945603accb87dac8564d47ff0e812a6", kill_on_drop: false }` [INFO] [stdout] d9a108113fe028001a646337939ec5380945603accb87dac8564d47ff0e812a6