[INFO] cloning repository https://github.com/dthung1602/gistory [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dthung1602/gistory" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdthung1602%2Fgistory", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdthung1602%2Fgistory'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a176a605d300fd475be70c77df1fc6c05b2fda32 [INFO] testing dthung1602/gistory against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdthung1602%2Fgistory" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dthung1602/gistory [INFO] finished tweaking git repo https://github.com/dthung1602/gistory [INFO] tweaked toml for git repo https://github.com/dthung1602/gistory written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dthung1602/gistory on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dthung1602/gistory 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded validator_derive v0.20.0 [INFO] [stderr] Downloaded phf_shared v0.12.1 [INFO] [stderr] Downloaded phf v0.12.1 [INFO] [stderr] Downloaded avif-serialize v0.8.5 [INFO] [stderr] Downloaded av1-grain v0.2.4 [INFO] [stderr] Downloaded gif v0.13.3 [INFO] [stderr] Downloaded clap v4.5.43 [INFO] [stderr] Downloaded axum-core v0.5.2 [INFO] [stderr] Downloaded v_frame v0.3.9 [INFO] [stderr] Downloaded diesel_derives v2.2.7 [INFO] [stderr] Downloaded phf_generator v0.12.1 [INFO] [stderr] Downloaded axum-valid v0.24.0 [INFO] [stderr] Downloaded axum v0.8.4 [INFO] [stderr] Downloaded clap_builder v4.5.43 [INFO] [stderr] Downloaded phf_macros v0.12.1 [INFO] [stderr] Downloaded image-webp v0.2.3 [INFO] [stderr] Downloaded equator-macro v0.4.2 [INFO] [stderr] Downloaded aligned-vec v0.6.4 [INFO] [stderr] Downloaded zune-jpeg v0.4.20 [INFO] [stderr] Downloaded validator v0.20.0 [INFO] [stderr] Downloaded profiling v1.0.17 [INFO] [stderr] Downloaded equator v0.4.2 [INFO] [stderr] Downloaded profiling-procmacros v1.0.17 [INFO] [stderr] Downloaded rgb v0.8.52 [INFO] [stderr] Downloaded async-compression v0.4.27 [INFO] [stderr] Downloaded brotli v8.0.1 [INFO] [stderr] Downloaded jpeg-decoder v0.3.2 [INFO] [stderr] Downloaded diesel v2.2.12 [INFO] [stderr] Downloaded libsqlite3-sys v0.35.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 805422a9760f6cdb2c8ebb7c71851945f5a292dd39f6ce0a8c56ece7fa59b58b [INFO] running `Command { std: "docker" "start" "-a" "805422a9760f6cdb2c8ebb7c71851945f5a292dd39f6ce0a8c56ece7fa59b58b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "805422a9760f6cdb2c8ebb7c71851945f5a292dd39f6ce0a8c56ece7fa59b58b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "805422a9760f6cdb2c8ebb7c71851945f5a292dd39f6ce0a8c56ece7fa59b58b", kill_on_drop: false }` [INFO] [stdout] 805422a9760f6cdb2c8ebb7c71851945f5a292dd39f6ce0a8c56ece7fa59b58b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 20babc0f06bfbf7de314d860dcc8c604d76c467255979b66db5922a922210fe1 [INFO] running `Command { std: "docker" "start" "-a" "20babc0f06bfbf7de314d860dcc8c604d76c467255979b66db5922a922210fe1", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling built v0.7.7 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling cc v1.2.32 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling maybe-rayon v0.1.1 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling phf_shared v0.12.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling ptr_meta_derive v0.1.4 [INFO] [stderr] Compiling imgref v1.11.0 [INFO] [stderr] Compiling quick-error v2.0.1 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Compiling rkyv v0.7.45 [INFO] [stderr] Compiling bitstream-io v2.6.0 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling weezl v0.1.10 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling phf_generator v0.12.1 [INFO] [stderr] Compiling loop9 v0.1.5 [INFO] [stderr] Compiling ptr_meta v0.1.4 [INFO] [stderr] Compiling rkyv_derive v0.7.45 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling avif-serialize v0.8.5 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling equator-macro v0.4.2 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Compiling profiling v1.0.17 [INFO] [stderr] Compiling equator v0.4.2 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling aligned-vec v0.6.4 [INFO] [stderr] Compiling v_frame v0.3.9 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling av1-grain v0.2.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling byteorder-lite v0.1.0 [INFO] [stderr] Compiling jpeg-decoder v0.3.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling zune-core v0.4.12 [INFO] [stderr] Compiling seahash v4.1.0 [INFO] [stderr] Compiling bytemuck v1.23.2 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling rgb v0.8.52 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling gif v0.13.3 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling zune-jpeg v0.4.20 [INFO] [stderr] Compiling image-webp v0.2.3 [INFO] [stderr] Compiling exr v1.73.0 [INFO] [stderr] Compiling clap_builder v4.5.43 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling libsqlite3-sys v0.35.0 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling phf_macros v0.12.1 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling ravif v0.11.20 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling jiff v0.2.15 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling dsl_auto_type v0.1.3 [INFO] [stderr] Compiling image v0.25.6 [INFO] [stderr] Compiling clap v4.5.43 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling phf v0.12.1 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling brotli v8.0.1 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling validator_derive v0.20.0 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling diesel_derives v2.2.7 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling validator v0.20.0 [INFO] [stderr] Compiling gistory v0.1.0 (/opt/rustwide/workdir/gistory) [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> gistory/src/git/objects.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | async fn from_hex(hex: &str, repo: &Repo) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 25 - async fn from_hex(hex: &str, repo: &Repo) -> Result; [INFO] [stdout] 25 + fn from_hex(hex: &str, repo: &Repo) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> gistory/src/git/objects.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | async fn write_to_file(&self, repo: &Repo) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 27 - async fn write_to_file(&self, repo: &Repo) -> Result; [INFO] [stdout] 27 + fn write_to_file(&self, repo: &Repo) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling async-compression v0.4.27 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling diesel v2.2.12 [INFO] [stderr] Compiling axum-valid v0.24.0 [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/error.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | Git(GitError), [INFO] [stdout] | --- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 - Git(GitError), [INFO] [stdout] 13 + Git(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/error.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | Io(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 - Io(io::Error), [INFO] [stdout] 15 + Io(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/error.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | Utf8(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 - Utf8(String), [INFO] [stdout] 16 + Utf8(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/error.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | InvalidArg(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 - InvalidArg(String), [INFO] [stdout] 17 + InvalidArg(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/error.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | InvalidData(String), [INFO] [stdout] | ----------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 - InvalidData(String), [INFO] [stdout] 18 + InvalidData(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/error.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | Command(String), [INFO] [stdout] | ------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 19 - Command(String), [INFO] [stdout] 19 + Command(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/git/error.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | Io(std::io::Error), [INFO] [stdout] | -- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 - Io(std::io::Error), [INFO] [stdout] 13 + Io(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/git/error.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | Hex(FromHexError), [INFO] [stdout] | --- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 - Hex(FromHexError), [INFO] [stdout] 15 + Hex(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/git/error.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | InvalidObjectFormat(String), [INFO] [stdout] | ------------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 - InvalidObjectFormat(String), [INFO] [stdout] 18 + InvalidObjectFormat(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/git/error.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | InvalidRepoConfig(String), [INFO] [stdout] | ----------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 19 - InvalidRepoConfig(String), [INFO] [stdout] 19 + InvalidRepoConfig(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HEX_CONTENT_HASH_LEN` is never used [INFO] [stdout] --> gistory/src/git/hash.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const HEX_CONTENT_HASH_LEN: usize = CONTENT_HASH_LEN * 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_slice` is never used [INFO] [stdout] --> gistory/src/git/hash.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ContentHash { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 12 | pub fn from_slice(slice: &[u8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_hex` is never used [INFO] [stdout] --> gistory/src/git/objects.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait Object: Sized + PartialEq { [INFO] [stdout] | ------ associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 25 | async fn from_hex(hex: &str, repo: &Repo) -> Result; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Blob` is never constructed [INFO] [stdout] --> gistory/src/git/objects.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum ObjectType { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 32 | Blob, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObjectType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `READ_FILE_BUFFER_SIZE` is never used [INFO] [stdout] --> gistory/src/git/objects.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | const READ_FILE_BUFFER_SIZE: usize = 4096; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_obj_from_file` is never used [INFO] [stdout] --> gistory/src/git/objects.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | async fn read_obj_from_file(path: impl AsRef) -> Result<(ObjectType, Vec)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blob` is never constructed [INFO] [stdout] --> gistory/src/git/objects.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub struct Blob { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_content` are never used [INFO] [stdout] --> gistory/src/git/objects.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 161 | impl Blob { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 162 | pub fn new(content: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn get_content(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Regular`, `Executable`, and `Directory` are never constructed [INFO] [stdout] --> gistory/src/git/objects.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 206 | pub enum TreeNodeMode { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 207 | Regular, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 208 | Executable, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 209 | Directory, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TreeNodeMode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> gistory/src/git/objects.rs:215:8 [INFO] [stdout] | [INFO] [stdout] 214 | impl TreeNodeMode { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 215 | fn parse(content: &[u8]) -> Result<(Self, usize)> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_nodes`, `parse_nodes`, and `parse_node` are never used [INFO] [stdout] --> gistory/src/git/objects.rs:298:12 [INFO] [stdout] | [INFO] [stdout] 297 | impl Tree { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 298 | pub fn new(nodes: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn get_nodes(&self) -> &[TreeNode] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | fn parse_nodes(content: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 338 | fn parse_node(content: &[u8]) -> Result<(TreeNode, usize)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `parse_hash` and `parse_user` are never used [INFO] [stdout] --> gistory/src/git/objects.rs:495:8 [INFO] [stdout] | [INFO] [stdout] 473 | impl Commit { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 495 | fn parse_hash(header: &[u8], content: &[u8]) -> Result<(ContentHash, usize)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 518 | fn parse_user(header: &[u8], content: &[u8]) -> Result<(User, usize)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `obj_path_from_hex` is never used [INFO] [stdout] --> gistory/src/git/repo.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Repo { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn obj_path_from_hex(&self, hex: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_data` is never used [INFO] [stdout] --> gistory/src/visualizer/grid.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl CommitGrid { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 46 | pub fn get_data(&self) -> &[CommitCount] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling webserver v0.1.0 (/opt/rustwide/workdir/webserver) [INFO] [stdout] warning: field `timezone` is never read [INFO] [stdout] --> webserver/src/dto.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct CreateRepoDto { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | pub timezone: FixedOffset, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateRepoDto` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> webserver/src/error.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | Database(DieselError), [INFO] [stdout] | -------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 - Database(DieselError), [INFO] [stdout] 23 + Database(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> webserver/src/error.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | GistoryError(GistoryError), [INFO] [stdout] | ------------ ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 - GistoryError(GistoryError), [INFO] [stdout] 24 + GistoryError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> webserver/src/error.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | IO(IOError), [INFO] [stdout] | -- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 25 - IO(IOError), [INFO] [stdout] 25 + IO(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 43s [INFO] running `Command { std: "docker" "inspect" "20babc0f06bfbf7de314d860dcc8c604d76c467255979b66db5922a922210fe1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20babc0f06bfbf7de314d860dcc8c604d76c467255979b66db5922a922210fe1", kill_on_drop: false }` [INFO] [stdout] 20babc0f06bfbf7de314d860dcc8c604d76c467255979b66db5922a922210fe1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a8d966d5c5d30993573ba746013d07f8c1b0847105de8f9a9e97eb73d5ce2c62 [INFO] running `Command { std: "docker" "start" "-a" "a8d966d5c5d30993573ba746013d07f8c1b0847105de8f9a9e97eb73d5ce2c62", kill_on_drop: false }` [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> gistory/src/git/objects.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | async fn from_hex(hex: &str, repo: &Repo) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 25 - async fn from_hex(hex: &str, repo: &Repo) -> Result; [INFO] [stdout] 25 + fn from_hex(hex: &str, repo: &Repo) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> gistory/src/git/objects.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | async fn write_to_file(&self, repo: &Repo) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 27 - async fn write_to_file(&self, repo: &Repo) -> Result; [INFO] [stdout] 27 + fn write_to_file(&self, repo: &Repo) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling gistory v0.1.0 (/opt/rustwide/workdir/gistory) [INFO] [stderr] Compiling webserver v0.1.0 (/opt/rustwide/workdir/webserver) [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> gistory/src/git/objects.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | async fn from_hex(hex: &str, repo: &Repo) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 25 - async fn from_hex(hex: &str, repo: &Repo) -> Result; [INFO] [stdout] 25 + fn from_hex(hex: &str, repo: &Repo) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stdout] --> gistory/src/git/objects.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | async fn write_to_file(&self, repo: &Repo) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stdout] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stdout] | [INFO] [stdout] 27 - async fn write_to_file(&self, repo: &Repo) -> Result; [INFO] [stdout] 27 + fn write_to_file(&self, repo: &Repo) -> impl std::future::Future> + Send; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timezone` is never read [INFO] [stdout] --> webserver/src/dto.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct CreateRepoDto { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 34 | pub timezone: FixedOffset, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateRepoDto` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> webserver/src/error.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | Database(DieselError), [INFO] [stdout] | -------- ^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 23 - Database(DieselError), [INFO] [stdout] 23 + Database(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> webserver/src/error.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | GistoryError(GistoryError), [INFO] [stdout] | ------------ ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 - GistoryError(GistoryError), [INFO] [stdout] 24 + GistoryError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> webserver/src/error.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | IO(IOError), [INFO] [stdout] | -- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 25 - IO(IOError), [INFO] [stdout] 25 + IO(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/error.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | Git(GitError), [INFO] [stdout] | --- ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 - Git(GitError), [INFO] [stdout] 13 + Git(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/error.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | Io(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 - Io(io::Error), [INFO] [stdout] 15 + Io(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/error.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | Utf8(String), [INFO] [stdout] | ---- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 - Utf8(String), [INFO] [stdout] 16 + Utf8(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/error.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | InvalidArg(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 - InvalidArg(String), [INFO] [stdout] 17 + InvalidArg(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/error.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | InvalidData(String), [INFO] [stdout] | ----------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 - InvalidData(String), [INFO] [stdout] 18 + InvalidData(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/error.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | Command(String), [INFO] [stdout] | ------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 19 - Command(String), [INFO] [stdout] 19 + Command(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/git/error.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | Io(std::io::Error), [INFO] [stdout] | -- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 13 - Io(std::io::Error), [INFO] [stdout] 13 + Io(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/git/error.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | Hex(FromHexError), [INFO] [stdout] | --- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 15 - Hex(FromHexError), [INFO] [stdout] 15 + Hex(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/git/error.rs:18:25 [INFO] [stdout] | [INFO] [stdout] 18 | InvalidObjectFormat(String), [INFO] [stdout] | ------------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 - InvalidObjectFormat(String), [INFO] [stdout] 18 + InvalidObjectFormat(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> gistory/src/git/error.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | InvalidRepoConfig(String), [INFO] [stdout] | ----------------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 19 - InvalidRepoConfig(String), [INFO] [stdout] 19 + InvalidRepoConfig(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HEX_CONTENT_HASH_LEN` is never used [INFO] [stdout] --> gistory/src/git/hash.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const HEX_CONTENT_HASH_LEN: usize = CONTENT_HASH_LEN * 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_slice` is never used [INFO] [stdout] --> gistory/src/git/hash.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ContentHash { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 12 | pub fn from_slice(slice: &[u8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_hex` is never used [INFO] [stdout] --> gistory/src/git/objects.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait Object: Sized + PartialEq { [INFO] [stdout] | ------ associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 25 | async fn from_hex(hex: &str, repo: &Repo) -> Result; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Blob` is never constructed [INFO] [stdout] --> gistory/src/git/objects.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum ObjectType { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 32 | Blob, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObjectType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `READ_FILE_BUFFER_SIZE` is never used [INFO] [stdout] --> gistory/src/git/objects.rs:47:7 [INFO] [stdout] | [INFO] [stdout] 47 | const READ_FILE_BUFFER_SIZE: usize = 4096; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_obj_from_file` is never used [INFO] [stdout] --> gistory/src/git/objects.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | async fn read_obj_from_file(path: impl AsRef) -> Result<(ObjectType, Vec)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Blob` is never constructed [INFO] [stdout] --> gistory/src/git/objects.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub struct Blob { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_content` are never used [INFO] [stdout] --> gistory/src/git/objects.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 161 | impl Blob { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 162 | pub fn new(content: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn get_content(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Regular`, `Executable`, and `Directory` are never constructed [INFO] [stdout] --> gistory/src/git/objects.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 206 | pub enum TreeNodeMode { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 207 | Regular, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 208 | Executable, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 209 | Directory, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TreeNodeMode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `parse` is never used [INFO] [stdout] --> gistory/src/git/objects.rs:215:8 [INFO] [stdout] | [INFO] [stdout] 214 | impl TreeNodeMode { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 215 | fn parse(content: &[u8]) -> Result<(Self, usize)> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_nodes`, `parse_nodes`, and `parse_node` are never used [INFO] [stdout] --> gistory/src/git/objects.rs:298:12 [INFO] [stdout] | [INFO] [stdout] 297 | impl Tree { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 298 | pub fn new(nodes: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn get_nodes(&self) -> &[TreeNode] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | fn parse_nodes(content: &[u8]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 338 | fn parse_node(content: &[u8]) -> Result<(TreeNode, usize)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `parse_hash` and `parse_user` are never used [INFO] [stdout] --> gistory/src/git/objects.rs:495:8 [INFO] [stdout] | [INFO] [stdout] 473 | impl Commit { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 495 | fn parse_hash(header: &[u8], content: &[u8]) -> Result<(ContentHash, usize)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 518 | fn parse_user(header: &[u8], content: &[u8]) -> Result<(User, usize)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `obj_path_from_hex` is never used [INFO] [stdout] --> gistory/src/git/repo.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Repo { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn obj_path_from_hex(&self, hex: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_data` is never used [INFO] [stdout] --> gistory/src/visualizer/grid.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl CommitGrid { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 46 | pub fn get_data(&self) -> &[CommitCount] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.41s [INFO] running `Command { std: "docker" "inspect" "a8d966d5c5d30993573ba746013d07f8c1b0847105de8f9a9e97eb73d5ce2c62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8d966d5c5d30993573ba746013d07f8c1b0847105de8f9a9e97eb73d5ce2c62", kill_on_drop: false }` [INFO] [stdout] a8d966d5c5d30993573ba746013d07f8c1b0847105de8f9a9e97eb73d5ce2c62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8a61cb56e239cb8a8a941714df64acb237a179c7bcd87fa4bcb4ffec35dd08df [INFO] running `Command { std: "docker" "start" "-a" "8a61cb56e239cb8a8a941714df64acb237a179c7bcd87fa4bcb4ffec35dd08df", kill_on_drop: false }` [INFO] [stderr] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stderr] --> gistory/src/git/objects.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | async fn from_hex(hex: &str, repo: &Repo) -> Result; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stderr] = note: `#[warn(async_fn_in_trait)]` on by default [INFO] [stderr] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stderr] | [INFO] [stderr] 25 - async fn from_hex(hex: &str, repo: &Repo) -> Result; [INFO] [stderr] 25 + fn from_hex(hex: &str, repo: &Repo) -> impl std::future::Future> + Send; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified [INFO] [stderr] --> gistory/src/git/objects.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | async fn write_to_file(&self, repo: &Repo) -> Result; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future` [INFO] [stderr] help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change [INFO] [stderr] | [INFO] [stderr] 27 - async fn write_to_file(&self, repo: &Repo) -> Result; [INFO] [stderr] 27 + fn write_to_file(&self, repo: &Repo) -> impl std::future::Future> + Send; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `gistory` (lib) generated 2 warnings [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> gistory/src/error.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | Git(GitError), [INFO] [stderr] | --- ^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 13 - Git(GitError), [INFO] [stderr] 13 + Git(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> gistory/src/error.rs:15:8 [INFO] [stderr] | [INFO] [stderr] 15 | Io(io::Error), [INFO] [stderr] | -- ^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 15 - Io(io::Error), [INFO] [stderr] 15 + Io(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> gistory/src/error.rs:16:10 [INFO] [stderr] | [INFO] [stderr] 16 | Utf8(String), [INFO] [stderr] | ---- ^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 16 - Utf8(String), [INFO] [stderr] 16 + Utf8(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> gistory/src/error.rs:17:16 [INFO] [stderr] | [INFO] [stderr] 17 | InvalidArg(String), [INFO] [stderr] | ---------- ^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 17 - InvalidArg(String), [INFO] [stderr] 17 + InvalidArg(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> gistory/src/error.rs:18:17 [INFO] [stderr] | [INFO] [stderr] 18 | InvalidData(String), [INFO] [stderr] | ----------- ^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 18 - InvalidData(String), [INFO] [stderr] 18 + InvalidData(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> gistory/src/error.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | Command(String), [INFO] [stderr] | ------- ^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 19 - Command(String), [INFO] [stderr] 19 + Command(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> gistory/src/git/error.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | Io(std::io::Error), [INFO] [stderr] | -- ^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 13 - Io(std::io::Error), [INFO] [stderr] 13 + Io(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> gistory/src/git/error.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 15 | Hex(FromHexError), [INFO] [stderr] | --- ^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 15 - Hex(FromHexError), [INFO] [stderr] 15 + Hex(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> gistory/src/git/error.rs:18:25 [INFO] [stderr] | [INFO] [stderr] 18 | InvalidObjectFormat(String), [INFO] [stderr] | ------------------- ^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 18 - InvalidObjectFormat(String), [INFO] [stderr] 18 + InvalidObjectFormat(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> gistory/src/git/error.rs:19:23 [INFO] [stderr] | [INFO] [stderr] 19 | InvalidRepoConfig(String), [INFO] [stderr] | ----------------- ^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 19 - InvalidRepoConfig(String), [INFO] [stderr] 19 + InvalidRepoConfig(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: constant `HEX_CONTENT_HASH_LEN` is never used [INFO] [stderr] --> gistory/src/git/hash.rs:4:11 [INFO] [stderr] | [INFO] [stderr] 4 | pub const HEX_CONTENT_HASH_LEN: usize = CONTENT_HASH_LEN * 2; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_slice` is never used [INFO] [stderr] --> gistory/src/git/hash.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 11 | impl ContentHash { [INFO] [stderr] | ---------------- associated function in this implementation [INFO] [stderr] 12 | pub fn from_slice(slice: &[u8]) -> Self { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_hex` is never used [INFO] [stderr] --> gistory/src/git/objects.rs:25:14 [INFO] [stderr] | [INFO] [stderr] 22 | pub trait Object: Sized + PartialEq { [INFO] [stderr] | ------ associated function in this trait [INFO] [stderr] ... [INFO] [stderr] 25 | async fn from_hex(hex: &str, repo: &Repo) -> Result; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Blob` is never constructed [INFO] [stderr] --> gistory/src/git/objects.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 31 | pub enum ObjectType { [INFO] [stderr] | ---------- variant in this enum [INFO] [stderr] 32 | Blob, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ObjectType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: constant `READ_FILE_BUFFER_SIZE` is never used [INFO] [stderr] --> gistory/src/git/objects.rs:47:7 [INFO] [stderr] | [INFO] [stderr] 47 | const READ_FILE_BUFFER_SIZE: usize = 4096; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_obj_from_file` is never used [INFO] [stderr] --> gistory/src/git/objects.rs:49:10 [INFO] [stderr] | [INFO] [stderr] 49 | async fn read_obj_from_file(path: impl AsRef) -> Result<(ObjectType, Vec)> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Blob` is never constructed [INFO] [stderr] --> gistory/src/git/objects.rs:156:12 [INFO] [stderr] | [INFO] [stderr] 156 | pub struct Blob { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `get_content` are never used [INFO] [stderr] --> gistory/src/git/objects.rs:162:12 [INFO] [stderr] | [INFO] [stderr] 161 | impl Blob { [INFO] [stderr] | --------- associated items in this implementation [INFO] [stderr] 162 | pub fn new(content: Vec) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 167 | pub fn get_content(&self) -> &[u8] { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Regular`, `Executable`, and `Directory` are never constructed [INFO] [stderr] --> gistory/src/git/objects.rs:207:5 [INFO] [stderr] | [INFO] [stderr] 206 | pub enum TreeNodeMode { [INFO] [stderr] | ------------ variants in this enum [INFO] [stderr] 207 | Regular, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 208 | Executable, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 209 | Directory, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TreeNodeMode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated function `parse` is never used [INFO] [stderr] --> gistory/src/git/objects.rs:215:8 [INFO] [stderr] | [INFO] [stderr] 214 | impl TreeNodeMode { [INFO] [stderr] | ----------------- associated function in this implementation [INFO] [stderr] 215 | fn parse(content: &[u8]) -> Result<(Self, usize)> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `get_nodes`, `parse_nodes`, and `parse_node` are never used [INFO] [stderr] --> gistory/src/git/objects.rs:298:12 [INFO] [stderr] | [INFO] [stderr] 297 | impl Tree { [INFO] [stderr] | --------- associated items in this implementation [INFO] [stderr] 298 | pub fn new(nodes: Vec) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 304 | pub fn get_nodes(&self) -> &[TreeNode] { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 308 | fn parse_nodes(content: &[u8]) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 338 | fn parse_node(content: &[u8]) -> Result<(TreeNode, usize)> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `parse_hash` and `parse_user` are never used [INFO] [stderr] --> gistory/src/git/objects.rs:495:8 [INFO] [stderr] | [INFO] [stderr] 473 | impl Commit { [INFO] [stderr] | ----------- associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 495 | fn parse_hash(header: &[u8], content: &[u8]) -> Result<(ContentHash, usize)> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 518 | fn parse_user(header: &[u8], content: &[u8]) -> Result<(User, usize)> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `obj_path_from_hex` is never used [INFO] [stderr] --> gistory/src/git/repo.rs:55:12 [INFO] [stderr] | [INFO] [stderr] 24 | impl Repo { [INFO] [stderr] | --------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 55 | pub fn obj_path_from_hex(&self, hex: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `get_data` is never used [INFO] [stderr] --> gistory/src/visualizer/grid.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 45 | impl CommitGrid { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] 46 | pub fn get_data(&self) -> &[CommitCount] { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `gistory` (bin "gistory" test) generated 24 warnings [INFO] [stderr] warning: `gistory` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] warning: field `timezone` is never read [INFO] [stderr] --> webserver/src/dto.rs:34:9 [INFO] [stderr] | [INFO] [stderr] 24 | pub struct CreateRepoDto { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 34 | pub timezone: FixedOffset, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CreateRepoDto` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> webserver/src/error.rs:23:14 [INFO] [stderr] | [INFO] [stderr] 23 | Database(DieselError), [INFO] [stderr] | -------- ^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 23 - Database(DieselError), [INFO] [stderr] 23 + Database(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> webserver/src/error.rs:24:18 [INFO] [stderr] | [INFO] [stderr] 24 | GistoryError(GistoryError), [INFO] [stderr] | ------------ ^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 24 - GistoryError(GistoryError), [INFO] [stderr] 24 + GistoryError(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> webserver/src/error.rs:25:8 [INFO] [stderr] | [INFO] [stderr] 25 | IO(IOError), [INFO] [stderr] | -- ^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 25 - IO(IOError), [INFO] [stderr] 25 + IO(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `webserver` (bin "webserver" test) generated 4 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.61s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/gistory-e7b7f410321d1b59) [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] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/gistory-cd9fef61f9c65720) [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] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/webserver-5191ef9f996a7879) [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] [stderr] Doc-tests gistory [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" "8a61cb56e239cb8a8a941714df64acb237a179c7bcd87fa4bcb4ffec35dd08df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a61cb56e239cb8a8a941714df64acb237a179c7bcd87fa4bcb4ffec35dd08df", kill_on_drop: false }` [INFO] [stdout] 8a61cb56e239cb8a8a941714df64acb237a179c7bcd87fa4bcb4ffec35dd08df