[INFO] cloning repository https://github.com/by77er/pasta [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/by77er/pasta" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fby77er%2Fpasta", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fby77er%2Fpasta'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 93e941a4fec986682369563bf1bc67e46a3ae644 [INFO] checking by77er/pasta against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fby77er%2Fpasta" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/by77er/pasta [INFO] finished tweaking git repo https://github.com/by77er/pasta [INFO] tweaked toml for git repo https://github.com/by77er/pasta written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/by77er/pasta on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/by77er/pasta 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thiserror-impl v1.0.63 [INFO] [stderr] Downloaded tokio-macros v2.4.0 [INFO] [stderr] Downloaded thiserror v1.0.63 [INFO] [stderr] Downloaded http-body v1.0.1 [INFO] [stderr] Downloaded axum-core v0.4.3 [INFO] [stderr] Downloaded hashlink v0.9.1 [INFO] [stderr] Downloaded tower-layer v0.3.2 [INFO] [stderr] Downloaded sqlx-macros v0.8.0 [INFO] [stderr] Downloaded http-body-util v0.1.2 [INFO] [stderr] Downloaded httparse v1.9.4 [INFO] [stderr] Downloaded sqlx-macros-core v0.8.0 [INFO] [stderr] Downloaded async-trait v0.1.81 [INFO] [stderr] Downloaded hyper-util v0.1.7 [INFO] [stderr] Downloaded futures-intrusive v0.5.0 [INFO] [stderr] Downloaded rsa v0.9.6 [INFO] [stderr] Downloaded sqlx v0.8.0 [INFO] [stderr] Downloaded axum v0.7.5 [INFO] [stderr] Downloaded hyper v1.4.1 [INFO] [stderr] Downloaded serde_json v1.0.122 [INFO] [stderr] Downloaded num-bigint-dig v0.8.4 [INFO] [stderr] Downloaded syn v2.0.72 [INFO] [stderr] Downloaded sqlx-core v0.8.0 [INFO] [stderr] Downloaded sqlx-postgres v0.8.0 [INFO] [stderr] Downloaded serde v1.0.205 [INFO] [stderr] Downloaded unicode_categories v0.1.1 [INFO] [stderr] Downloaded object v0.36.3 [INFO] [stderr] Downloaded url v2.5.2 [INFO] [stderr] Downloaded sqlx-mysql v0.8.0 [INFO] [stderr] Downloaded bytes v1.7.1 [INFO] [stderr] Downloaded event-listener v5.3.1 [INFO] [stderr] Downloaded serde_derive v1.0.205 [INFO] [stderr] Downloaded tinyvec v1.8.0 [INFO] [stderr] Downloaded sqlx-sqlite v0.8.0 [INFO] [stderr] Downloaded mio v1.0.1 [INFO] [stderr] Downloaded tempfile v3.12.0 [INFO] [stderr] Downloaded bitflags v2.6.0 [INFO] [stderr] Downloaded pkcs1 v0.7.5 [INFO] [stderr] Downloaded crc-catalog v2.4.0 [INFO] [stderr] Downloaded matchit v0.7.3 [INFO] [stderr] Downloaded serde_path_to_error v0.1.16 [INFO] [stderr] Downloaded lazy_static v1.5.0 [INFO] [stderr] Downloaded num-iter v0.1.45 [INFO] [stderr] Downloaded pem-rfc7468 v0.7.0 [INFO] [stderr] Downloaded whoami v1.5.1 [INFO] [stderr] Downloaded dotenvy v0.15.7 [INFO] [stderr] Downloaded stringprep v0.1.5 [INFO] [stderr] Downloaded sqlformat v0.2.4 [INFO] [stderr] Downloaded tokio v1.39.2 [INFO] [stderr] Downloaded etcetera v0.8.0 [INFO] [stderr] Downloaded atoi v2.0.0 [INFO] [stderr] Downloaded crc v3.2.1 [INFO] [stderr] Downloaded redox_syscall v0.5.3 [INFO] [stderr] Downloaded tower-service v0.3.2 [INFO] [stderr] Downloaded wasite v0.1.0 [INFO] [stderr] Downloaded crossbeam-queue v0.3.11 [INFO] [stderr] Downloaded backtrace v0.3.73 [INFO] [stderr] Downloaded libsqlite3-sys v0.28.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 88f8dab56d200af7e9e4f8239024e156b1c1056bc2579879561640782fcc2430 [INFO] running `Command { std: "docker" "start" "-a" "88f8dab56d200af7e9e4f8239024e156b1c1056bc2579879561640782fcc2430", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "88f8dab56d200af7e9e4f8239024e156b1c1056bc2579879561640782fcc2430", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88f8dab56d200af7e9e4f8239024e156b1c1056bc2579879561640782fcc2430", kill_on_drop: false }` [INFO] [stdout] 88f8dab56d200af7e9e4f8239024e156b1c1056bc2579879561640782fcc2430 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dbaa9c1533ba5c994902edbdcf596a4c2e332448d07695f634e89b6acfc8ea8a [INFO] running `Command { std: "docker" "start" "-a" "dbaa9c1533ba5c994902edbdcf596a4c2e332448d07695f634e89b6acfc8ea8a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling serde v1.0.205 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling serde_json v1.0.122 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling indexmap v2.3.0 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling sqlformat v0.2.4 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Compiling serde_derive v1.0.205 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Checking tokio v1.39.2 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Compiling axum v0.7.5 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking hyper-util v0.1.7 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking sqlx-core v0.8.0 [INFO] [stderr] Compiling sqlx-macros-core v0.8.0 [INFO] [stderr] Compiling sqlx-macros v0.8.0 [INFO] [stderr] Checking sqlx v0.8.0 [INFO] [stderr] Checking pasta v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `slug` [INFO] [stdout] --> src/repo.rs:25:31 [INFO] [stdout] | [INFO] [stdout] 25 | async fn get_paste(&self, slug: &str) -> Result, RepositoryError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_slug` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paste` [INFO] [stdout] --> src/repo.rs:29:32 [INFO] [stdout] | [INFO] [stdout] 29 | async fn save_paste(&self, paste: &Paste) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_paste` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slug` [INFO] [stdout] --> src/repo.rs:33:34 [INFO] [stdout] | [INFO] [stdout] 33 | async fn delete_paste(&self, slug: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_slug` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slug` [INFO] [stdout] --> src/repo.rs:25:31 [INFO] [stdout] | [INFO] [stdout] 25 | async fn get_paste(&self, slug: &str) -> Result, RepositoryError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_slug` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `saved_paste` [INFO] [stdout] --> src/service.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let saved_paste = self.repository.save_paste(&paste).await?; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_saved_paste` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paste` [INFO] [stdout] --> src/repo.rs:29:32 [INFO] [stdout] | [INFO] [stdout] 29 | async fn save_paste(&self, paste: &Paste) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_paste` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slug` [INFO] [stdout] --> src/repo.rs:33:34 [INFO] [stdout] | [INFO] [stdout] 33 | async fn delete_paste(&self, slug: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_slug` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Paste` is never constructed [INFO] [stdout] --> src/domain.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Paste { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ContentTooLarge` and `SlugTooLarge` are never constructed [INFO] [stdout] --> src/domain.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum PasteError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 11 | ContentTooLarge, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | SlugTooLarge, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_slug`, and `get_content` are never used [INFO] [stdout] --> src/domain.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Paste { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(slug: String, content: String) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_slug(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_content(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnknownError` is never constructed [INFO] [stdout] --> src/repo.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RepositoryError { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 7 | #[error("unknown error occurred")] [INFO] [stdout] 8 | UnknownError, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RepositoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PasteRepository` is never used [INFO] [stdout] --> src/repo.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait PasteRepository: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgresRepository` is never constructed [INFO] [stdout] --> src/repo.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct PostgresRepository {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RepoBackedPasteService` is never constructed [INFO] [stdout] --> src/service.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct RepoBackedPasteService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/service.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl RepoBackedPasteService { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 89 | pub fn new(repository: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `saved_paste` [INFO] [stdout] --> src/service.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let saved_paste = self.repository.save_paste(&paste).await?; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_saved_paste` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Paste` is never constructed [INFO] [stdout] --> src/domain.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Paste { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ContentTooLarge` and `SlugTooLarge` are never constructed [INFO] [stdout] --> src/domain.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum PasteError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 11 | ContentTooLarge, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | SlugTooLarge, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_slug`, and `get_content` are never used [INFO] [stdout] --> src/domain.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Paste { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(slug: String, content: String) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_slug(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_content(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnknownError` is never constructed [INFO] [stdout] --> src/repo.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RepositoryError { [INFO] [stdout] | --------------- variant in this enum [INFO] [stdout] 7 | #[error("unknown error occurred")] [INFO] [stdout] 8 | UnknownError, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RepositoryError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PasteRepository` is never used [INFO] [stdout] --> src/repo.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait PasteRepository: Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgresRepository` is never constructed [INFO] [stdout] --> src/repo.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct PostgresRepository {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RepoBackedPasteService` is never constructed [INFO] [stdout] --> src/service.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct RepoBackedPasteService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/service.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl RepoBackedPasteService { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 89 | pub fn new(repository: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 44s [INFO] running `Command { std: "docker" "inspect" "dbaa9c1533ba5c994902edbdcf596a4c2e332448d07695f634e89b6acfc8ea8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbaa9c1533ba5c994902edbdcf596a4c2e332448d07695f634e89b6acfc8ea8a", kill_on_drop: false }` [INFO] [stdout] dbaa9c1533ba5c994902edbdcf596a4c2e332448d07695f634e89b6acfc8ea8a