[INFO] cloning repository https://github.com/wfehrnstrom/rustgzip [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wfehrnstrom/rustgzip" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwfehrnstrom%2Frustgzip", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwfehrnstrom%2Frustgzip'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 85058c0197562620747561b72c459ebee21ba423 [INFO] checking wfehrnstrom/rustgzip against try#5cafabc9f16561d7796554d5d241c3068e2bd97f for pr-135852 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwfehrnstrom%2Frustgzip" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wfehrnstrom/rustgzip on toolchain 5cafabc9f16561d7796554d5d241c3068e2bd97f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5cafabc9f16561d7796554d5d241c3068e2bd97f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/wfehrnstrom/rustgzip [INFO] finished tweaking git repo https://github.com/wfehrnstrom/rustgzip [INFO] tweaked toml for git repo https://github.com/wfehrnstrom/rustgzip written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/wfehrnstrom/rustgzip 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" "+5cafabc9f16561d7796554d5d241c3068e2bd97f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 62 packages to latest compatible versions [INFO] [stderr] Adding aho-corasick v1.1.3 [INFO] [stderr] Adding android-tzdata v0.1.1 [INFO] [stderr] Adding android_system_properties v0.1.5 [INFO] [stderr] Adding assert_cmd v0.10.2 (available: v2.0.16) [INFO] [stderr] Adding bumpalo v3.16.0 [INFO] [stderr] Adding byteorder v1.5.0 [INFO] [stderr] Adding bzip2 v0.4.4 [INFO] [stderr] Adding bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Updating cc v1.0.37 -> v1.2.10 [INFO] [stderr] Adding cfg-if v1.0.0 [INFO] [stderr] Adding chrono v0.4.39 [INFO] [stderr] Adding core-foundation-sys v0.8.7 [INFO] [stderr] Adding difference v2.0.0 [INFO] [stderr] Adding escargot v0.3.1 [INFO] [stderr] Adding float-cmp v0.8.0 [INFO] [stderr] Adding iana-time-zone v0.1.61 [INFO] [stderr] Adding iana-time-zone-haiku v0.1.2 [INFO] [stderr] Adding itoa v1.0.14 [INFO] [stderr] Adding js-sys v0.3.77 [INFO] [stderr] Updating libc v0.2.58 -> v0.2.169 [INFO] [stderr] Adding log v0.4.25 [INFO] [stderr] Adding memchr v2.7.4 [INFO] [stderr] Adding normalize-line-endings v0.3.0 [INFO] [stderr] Adding once_cell v1.20.2 [INFO] [stderr] Adding predicates v1.0.8 (available: v3.1.3) [INFO] [stderr] Adding predicates-core v1.0.9 [INFO] [stderr] Adding predicates-tree v1.0.12 [INFO] [stderr] Adding proc-macro2 v1.0.93 [INFO] [stderr] Adding quote v1.0.38 [INFO] [stderr] Adding regex v1.11.1 [INFO] [stderr] Adding regex-automata v0.4.9 [INFO] [stderr] Adding regex-syntax v0.8.5 [INFO] [stderr] Adding remove_dir_all v0.5.3 (available: v1.0.0) [INFO] [stderr] Adding rustversion v1.0.19 [INFO] [stderr] Adding ryu v1.0.18 [INFO] [stderr] Adding serde v1.0.217 [INFO] [stderr] Adding serde_derive v1.0.217 [INFO] [stderr] Adding serde_json v1.0.137 [INFO] [stderr] Adding shlex v1.3.0 [INFO] [stderr] Adding syn v2.0.96 [INFO] [stderr] Adding termtree v0.5.1 [INFO] [stderr] Adding thiserror v1.0.69 [INFO] [stderr] Adding thiserror-impl v1.0.69 [INFO] [stderr] Adding time v0.1.45 [INFO] [stderr] Adding unicode-ident v1.0.15 [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (available: v0.10.2+wasi-snapshot-preview1) [INFO] [stderr] Adding wasm-bindgen v0.2.100 [INFO] [stderr] Adding wasm-bindgen-backend v0.2.100 [INFO] [stderr] Adding wasm-bindgen-macro v0.2.100 [INFO] [stderr] Adding wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Adding wasm-bindgen-shared v0.2.100 [INFO] [stderr] Adding windows-core v0.52.0 [INFO] [stderr] Adding windows-targets v0.52.6 [INFO] [stderr] Adding windows_aarch64_gnullvm v0.52.6 [INFO] [stderr] Adding windows_aarch64_msvc v0.52.6 [INFO] [stderr] Adding windows_i686_gnu v0.52.6 [INFO] [stderr] Adding windows_i686_gnullvm v0.52.6 [INFO] [stderr] Adding windows_i686_msvc v0.52.6 [INFO] [stderr] Adding windows_x86_64_gnu v0.52.6 [INFO] [stderr] Adding windows_x86_64_gnullvm v0.52.6 [INFO] [stderr] Adding windows_x86_64_msvc v0.52.6 [INFO] [stderr] Adding zip v0.5.13 (available: v2.2.2) [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+5cafabc9f16561d7796554d5d241c3068e2bd97f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a1dcbfc2b149bdb9a069389fb65972abee82467939896cdfc8d7619c2f3aa6be [INFO] running `Command { std: "docker" "start" "-a" "a1dcbfc2b149bdb9a069389fb65972abee82467939896cdfc8d7619c2f3aa6be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a1dcbfc2b149bdb9a069389fb65972abee82467939896cdfc8d7619c2f3aa6be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1dcbfc2b149bdb9a069389fb65972abee82467939896cdfc8d7619c2f3aa6be", kill_on_drop: false }` [INFO] [stdout] a1dcbfc2b149bdb9a069389fb65972abee82467939896cdfc8d7619c2f3aa6be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+5cafabc9f16561d7796554d5d241c3068e2bd97f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ffbf10f46cbd4972e3cfdddb2e1d1a1d35b079a43e533adb60fe62e00022ba67 [INFO] running `Command { std: "docker" "start" "-a" "ffbf10f46cbd4972e3cfdddb2e1d1a1d35b079a43e533adb60fe62e00022ba67", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.15 [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling cc v1.2.10 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling syn v0.15.39 [INFO] [stderr] Compiling num-bigint v0.2.2 [INFO] [stderr] Checking adler32 v1.0.3 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Checking miniz_oxide v0.2.2 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling unicode-segmentation v1.3.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling serde_json v1.0.137 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling miniz_oxide_c_api v0.2.2 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling escargot v0.3.1 [INFO] [stderr] Checking predicates-core v1.0.9 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking flate2 v1.0.9 [INFO] [stderr] Checking float-cmp v0.8.0 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking termtree v0.5.1 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking predicates-tree v1.0.12 [INFO] [stderr] Checking chrono v0.4.39 [INFO] [stderr] Checking num v0.2.0 [INFO] [stderr] Checking utime v0.2.1 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking bzip2 v0.4.4 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling structopt-derive v0.2.18 [INFO] [stderr] Checking structopt v0.2.18 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking zip v0.5.13 [INFO] [stderr] Checking predicates v1.0.8 [INFO] [stderr] Checking rstzip v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `linux` [INFO] [stdout] --> src/util.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(linux)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `target_os = "linux"` [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(linux)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(linux)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `linux` [INFO] [stdout] --> src/util.rs:144:49 [INFO] [stdout] | [INFO] [stdout] 144 | let file_checks = (!cfg!(unix) && !cfg!(linux)) || file_checks(f, opt)?; [INFO] [stdout] | ^^^^^ help: found config with similar value: `target_os = "linux"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(linux)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(linux)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/util.rs:310:28 [INFO] [stdout] | [INFO] [stdout] 310 | Some(c) => (c == 'y' || c == 'Y'), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 310 - Some(c) => (c == 'y' || c == 'Y'), [INFO] [stdout] 310 + Some(c) => c == 'y' || c == 'Y', [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::timestamp`: use `timestamp_opt()` instead [INFO] [stdout] --> src/formats/gz.rs:218:15 [INFO] [stdout] | [INFO] [stdout] 218 | Local.timestamp (self.mtime.into(), 0) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::timestamp`: use `timestamp_opt()` instead [INFO] [stdout] --> src/formats/zip.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | Local.timestamp (self.get_header().mtime.into(), 0) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `synchronous`, `rsyncable`, and `parallel` are never read [INFO] [stdout] --> src/main.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Opt { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 42 | synchronous: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | rsyncable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 59 | #[structopt(short="j", long, help="compress in parallel with THREADS number of threads", default_value="1")] [INFO] [stdout] 60 | parallel: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Opt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/util.rs:67:31 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Timespec (pub i64, pub i32); [INFO] [stdout] | -------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Timespec` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/formats/gz.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct GzFile { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 18 | pub path: Option, [INFO] [stdout] 19 | compression_method: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | flag: GzFlags, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | comment: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 24 | os: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 25 | data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | hcrc16: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 29 | xfield: Option<(u16, Vec)>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GzFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ftext` is never read [INFO] [stdout] --> src/formats/gz.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | struct GzFlags { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 35 | pub ftext: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GzFlags` 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 `compress_into` is never used [INFO] [stdout] --> src/formats/zip.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Zip { [INFO] [stdout] | --- associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 10 | fn compress_into (input: R, wdata: Option, opt: &Opt) -> Result, std::io::Error>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StreamHeader` is never constructed [INFO] [stdout] --> src/formats/zip.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct StreamHeader { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Header` is never used [INFO] [stdout] --> src/formats/zip.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait Header { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/util.rs:39:55 [INFO] [stdout] | [INFO] [stdout] 39 | WrappedFile { path: self.path, file: self.file.clone()} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `File` does not implement `Clone`, so calling `clone` on `&File` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 39 - WrappedFile { path: self.path, file: self.file.clone()} [INFO] [stdout] 39 + WrappedFile { path: self.path, file: self.file} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking assert_cmd v0.10.2 [INFO] [stdout] warning: unexpected `cfg` condition name: `linux` [INFO] [stdout] --> src/util.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[cfg(linux)] [INFO] [stdout] | ^^^^^ help: found config with similar value: `target_os = "linux"` [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(linux)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(linux)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `linux` [INFO] [stdout] --> src/util.rs:144:49 [INFO] [stdout] | [INFO] [stdout] 144 | let file_checks = (!cfg!(unix) && !cfg!(linux)) || file_checks(f, opt)?; [INFO] [stdout] | ^^^^^ help: found config with similar value: `target_os = "linux"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(linux)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(linux)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/util.rs:310:28 [INFO] [stdout] | [INFO] [stdout] 310 | Some(c) => (c == 'y' || c == 'Y'), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 310 - Some(c) => (c == 'y' || c == 'Y'), [INFO] [stdout] 310 + Some(c) => c == 'y' || c == 'Y', [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::timestamp`: use `timestamp_opt()` instead [INFO] [stdout] --> src/formats/gz.rs:218:15 [INFO] [stdout] | [INFO] [stdout] 218 | Local.timestamp (self.mtime.into(), 0) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::TimeZone::timestamp`: use `timestamp_opt()` instead [INFO] [stdout] --> src/formats/zip.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | Local.timestamp (self.get_header().mtime.into(), 0) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `synchronous`, `rsyncable`, and `parallel` are never read [INFO] [stdout] --> src/main.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Opt { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 42 | synchronous: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | rsyncable: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 59 | #[structopt(short="j", long, help="compress in parallel with THREADS number of threads", default_value="1")] [INFO] [stdout] 60 | parallel: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Opt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/util.rs:67:31 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct Timespec (pub i64, pub i32); [INFO] [stdout] | -------- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `Timespec` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/formats/gz.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct GzFile { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 18 | pub path: Option, [INFO] [stdout] 19 | compression_method: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | flag: GzFlags, [INFO] [stdout] | ^^^^ [INFO] [stdout] 23 | comment: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 24 | os: u8, [INFO] [stdout] | ^^ [INFO] [stdout] 25 | data: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | hcrc16: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 29 | xfield: Option<(u16, Vec)>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GzFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ftext` is never read [INFO] [stdout] --> src/formats/gz.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | struct GzFlags { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 35 | pub ftext: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GzFlags` 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 `compress_into` is never used [INFO] [stdout] --> src/formats/zip.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Zip { [INFO] [stdout] | --- associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 10 | fn compress_into (input: R, wdata: Option, opt: &Opt) -> Result, std::io::Error>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StreamHeader` is never constructed [INFO] [stdout] --> src/formats/zip.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct StreamHeader { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Header` is never used [INFO] [stdout] --> src/formats/zip.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait Header { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/util.rs:39:55 [INFO] [stdout] | [INFO] [stdout] 39 | WrappedFile { path: self.path, file: self.file.clone()} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `File` does not implement `Clone`, so calling `clone` on `&File` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 39 - WrappedFile { path: self.path, file: self.file.clone()} [INFO] [stdout] 39 + WrappedFile { path: self.path, file: self.file} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 35.10s [INFO] running `Command { std: "docker" "inspect" "ffbf10f46cbd4972e3cfdddb2e1d1a1d35b079a43e533adb60fe62e00022ba67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffbf10f46cbd4972e3cfdddb2e1d1a1d35b079a43e533adb60fe62e00022ba67", kill_on_drop: false }` [INFO] [stdout] ffbf10f46cbd4972e3cfdddb2e1d1a1d35b079a43e533adb60fe62e00022ba67