[INFO] cloning repository https://github.com/teguhkurnia/twitter-clone [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/teguhkurnia/twitter-clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteguhkurnia%2Ftwitter-clone", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteguhkurnia%2Ftwitter-clone'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8a5c1e3c892625b2a0c09ec85e13b388891e771a [INFO] testing teguhkurnia/twitter-clone against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fteguhkurnia%2Ftwitter-clone" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/teguhkurnia/twitter-clone [INFO] finished tweaking git repo https://github.com/teguhkurnia/twitter-clone [INFO] tweaked toml for git repo https://github.com/teguhkurnia/twitter-clone written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/teguhkurnia/twitter-clone on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/teguhkurnia/twitter-clone 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 22db61af7b068e6c6f08ad4d8eb6a58cfcb92bb4c1525fefa572f5d585c94fe1 [INFO] running `Command { std: "docker" "start" "-a" "22db61af7b068e6c6f08ad4d8eb6a58cfcb92bb4c1525fefa572f5d585c94fe1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "22db61af7b068e6c6f08ad4d8eb6a58cfcb92bb4c1525fefa572f5d585c94fe1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22db61af7b068e6c6f08ad4d8eb6a58cfcb92bb4c1525fefa572f5d585c94fe1", kill_on_drop: false }` [INFO] [stdout] 22db61af7b068e6c6f08ad4d8eb6a58cfcb92bb4c1525fefa572f5d585c94fe1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2d8fdcecd6d9433177df7a98a74c2228bd845f2ea7613db5ec170f814c07c1c0 [INFO] running `Command { std: "docker" "start" "-a" "2d8fdcecd6d9433177df7a98a74c2228bd845f2ea7613db5ec170f814c07c1c0", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.1 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_properties_data v1.5.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling icu_normalizer_data v1.5.1 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling cc v1.2.21 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling quick-xml v0.37.2 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling miniz_oxide v0.8.8 [INFO] [stderr] Compiling brotli-decompressor v4.0.3 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling castaway v0.2.3 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling pq-sys v0.7.1 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling bcrypt v0.17.0 [INFO] [stderr] Compiling brotli v7.0.0 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling regex-cache v0.2.1 [INFO] [stderr] Compiling card-validate v2.4.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling garde_derive v0.22.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling diesel-derive-enum v2.1.0 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling dsl_auto_type v0.1.3 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling diesel_derives v2.2.5 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling phonenumber v0.3.7+8.13.52 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling compact_str v0.8.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling jwt v0.16.0 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling diesel v2.2.10 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling garde v0.22.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling actix-server v2.5.1 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling actix-http v3.10.0 [INFO] [stderr] Compiling actix-web v4.10.2 [INFO] [stderr] Compiling actix-web-validation v0.8.0 [INFO] [stderr] Compiling twitter-clone v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `associations::HasTable` [INFO] [stdout] --> src/repositories/postgres/post_repository.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use diesel::{associations::HasTable, dsl::insert_into, r2d2::ConnectionManager, ExpressionMethods, PgConnection, QueryDsl, RunQueryDsl, S... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id_value` [INFO] [stdout] --> src/repositories/postgres/post_repository.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | user_id_value: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Email` is never constructed [INFO] [stdout] --> src/repositories/traits/user_repository.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum UserIdentifier{ [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 4 | Username(String), [INFO] [stdout] 5 | Email(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bio`, `background_picture`, `created_at`, and `updated_at` are never read [INFO] [stdout] --> src/models/user.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub bio: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | pub profile_picture: Option, [INFO] [stdout] 13 | pub background_picture: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub created_at: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | pub updated_at: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Media` is never constructed [INFO] [stdout] --> src/models/media.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Media { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostMedia` is never constructed [INFO] [stdout] --> src/models/post_media.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct PostMedia { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username` and `token` are never read [INFO] [stdout] --> src/extractors/auth_extractor.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Authenticated { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 6 | pub id: i32, [INFO] [stdout] 7 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | pub token: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 58.08s [INFO] running `Command { std: "docker" "inspect" "2d8fdcecd6d9433177df7a98a74c2228bd845f2ea7613db5ec170f814c07c1c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d8fdcecd6d9433177df7a98a74c2228bd845f2ea7613db5ec170f814c07c1c0", kill_on_drop: false }` [INFO] [stdout] 2d8fdcecd6d9433177df7a98a74c2228bd845f2ea7613db5ec170f814c07c1c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4da5eba282e9234ebb6e8237648ad056d16ee6271cc20df8477d27f33dd269b3 [INFO] running `Command { std: "docker" "start" "-a" "4da5eba282e9234ebb6e8237648ad056d16ee6271cc20df8477d27f33dd269b3", kill_on_drop: false }` [INFO] [stderr] Compiling twitter-clone v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `associations::HasTable` [INFO] [stdout] --> src/repositories/postgres/post_repository.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use diesel::{associations::HasTable, dsl::insert_into, r2d2::ConnectionManager, ExpressionMethods, PgConnection, QueryDsl, RunQueryDsl, S... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_id_value` [INFO] [stdout] --> src/repositories/postgres/post_repository.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | user_id_value: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Email` is never constructed [INFO] [stdout] --> src/repositories/traits/user_repository.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum UserIdentifier{ [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] 4 | Username(String), [INFO] [stdout] 5 | Email(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bio`, `background_picture`, `created_at`, and `updated_at` are never read [INFO] [stdout] --> src/models/user.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub bio: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | pub profile_picture: Option, [INFO] [stdout] 13 | pub background_picture: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub created_at: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 15 | pub updated_at: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Media` is never constructed [INFO] [stdout] --> src/models/media.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct Media { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostMedia` is never constructed [INFO] [stdout] --> src/models/post_media.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct PostMedia { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username` and `token` are never read [INFO] [stdout] --> src/extractors/auth_extractor.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Authenticated { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 6 | pub id: i32, [INFO] [stdout] 7 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | pub token: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.18s [INFO] running `Command { std: "docker" "inspect" "4da5eba282e9234ebb6e8237648ad056d16ee6271cc20df8477d27f33dd269b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4da5eba282e9234ebb6e8237648ad056d16ee6271cc20df8477d27f33dd269b3", kill_on_drop: false }` [INFO] [stdout] 4da5eba282e9234ebb6e8237648ad056d16ee6271cc20df8477d27f33dd269b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] aafb5cf67f18f6e969cd67afd8de341b10c6fe238e97977534f325740bba75c0 [INFO] running `Command { std: "docker" "start" "-a" "aafb5cf67f18f6e969cd67afd8de341b10c6fe238e97977534f325740bba75c0", kill_on_drop: false }` [INFO] [stderr] warning: found module declaration for lib.rs [INFO] [stderr] --> src/main.rs:13:1 [INFO] [stderr] | [INFO] [stderr] 13 | mod lib; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lib.rs is the root of this crate's library target [INFO] [stderr] = help: to refer to it from other targets, use the library's name as the path [INFO] [stderr] = note: `#[warn(special_module_name)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `associations::HasTable` [INFO] [stderr] --> src/repositories/postgres/post_repository.rs:2:14 [INFO] [stderr] | [INFO] [stderr] 2 | use diesel::{associations::HasTable, dsl::insert_into, r2d2::ConnectionManager, ExpressionMethods, PgConnection, QueryDsl, RunQueryDsl, S... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_id_value` [INFO] [stderr] --> src/repositories/postgres/post_repository.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | user_id_value: i32, [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id_value` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variant `Email` is never constructed [INFO] [stderr] --> src/repositories/traits/user_repository.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 3 | pub enum UserIdentifier{ [INFO] [stderr] | -------------- variant in this enum [INFO] [stderr] 4 | Username(String), [INFO] [stderr] 5 | Email(String), [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `bio`, `background_picture`, `created_at`, and `updated_at` are never read [INFO] [stderr] --> src/models/user.rs:11:7 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct User { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 11 | pub bio: Option, [INFO] [stderr] | ^^^ [INFO] [stderr] 12 | pub profile_picture: Option, [INFO] [stderr] 13 | pub background_picture: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 14 | pub created_at: Option, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 15 | pub updated_at: Option, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Media` is never constructed [INFO] [stderr] --> src/models/media.rs:21:12 [INFO] [stderr] | [INFO] [stderr] 21 | pub struct Media { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PostMedia` is never constructed [INFO] [stderr] --> src/models/post_media.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct PostMedia { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `username` and `token` are never read [INFO] [stderr] --> src/extractors/auth_extractor.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct Authenticated { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] 6 | pub id: i32, [INFO] [stderr] 7 | pub username: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 8 | pub token: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `twitter-clone` (bin "twitter-clone" test) generated 8 warnings (run `cargo fix --bin "twitter-clone" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/twitter_clone-3a88ddc1a8970d93) [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" "aafb5cf67f18f6e969cd67afd8de341b10c6fe238e97977534f325740bba75c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aafb5cf67f18f6e969cd67afd8de341b10c6fe238e97977534f325740bba75c0", kill_on_drop: false }` [INFO] [stdout] aafb5cf67f18f6e969cd67afd8de341b10c6fe238e97977534f325740bba75c0