[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 master#9c3064e131f4939cc95a29bb11413c49bbda1491 for pr-144098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwfehrnstrom%2Frustgzip" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [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-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/wfehrnstrom/rustgzip on toolchain 9c3064e131f4939cc95a29bb11413c49bbda1491 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 58 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.17) [INFO] [stderr] Adding bumpalo v3.19.0 [INFO] [stderr] Adding byteorder v1.5.0 [INFO] [stderr] Adding bzip2 v0.4.4 [INFO] [stderr] Adding bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Updating cc v1.0.37 -> v1.2.30 [INFO] [stderr] Adding cfg-if v1.0.1 [INFO] [stderr] Adding chrono v0.4.41 [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.63 [INFO] [stderr] Adding iana-time-zone-haiku v0.1.2 [INFO] [stderr] Adding itoa v1.0.15 [INFO] [stderr] Adding js-sys v0.3.77 [INFO] [stderr] Updating libc v0.2.58 -> v0.2.174 [INFO] [stderr] Adding log v0.4.27 [INFO] [stderr] Adding memchr v2.7.5 [INFO] [stderr] Adding normalize-line-endings v0.3.0 [INFO] [stderr] Adding once_cell v1.21.3 [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.95 [INFO] [stderr] Adding quote v1.0.40 [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.21 [INFO] [stderr] Adding ryu v1.0.20 [INFO] [stderr] Adding serde v1.0.219 [INFO] [stderr] Adding serde_derive v1.0.219 [INFO] [stderr] Adding serde_json v1.0.141 [INFO] [stderr] Adding shlex v1.3.0 [INFO] [stderr] Adding syn v2.0.104 [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.18 [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.61.2 [INFO] [stderr] Adding windows-implement v0.60.0 [INFO] [stderr] Adding windows-interface v0.59.1 [INFO] [stderr] Adding windows-link v0.1.3 [INFO] [stderr] Adding windows-result v0.3.4 [INFO] [stderr] Adding windows-strings v0.4.2 [INFO] [stderr] Adding zip v0.5.13 (available: v4.3.0) [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 067d3086940297a4dea25a7fecb7494058d29ff5e40b4b6f79d97a9047cf9cc8 [INFO] running `Command { std: "docker" "start" "-a" "067d3086940297a4dea25a7fecb7494058d29ff5e40b4b6f79d97a9047cf9cc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "067d3086940297a4dea25a7fecb7494058d29ff5e40b4b6f79d97a9047cf9cc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "067d3086940297a4dea25a7fecb7494058d29ff5e40b4b6f79d97a9047cf9cc8", kill_on_drop: false }` [INFO] [stdout] 067d3086940297a4dea25a7fecb7494058d29ff5e40b4b6f79d97a9047cf9cc8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5e5c01a694dc3964dbbeebc5449e55e1a028a8f352ddbb1f0ae069e5c7eb7834 [INFO] running `Command { std: "docker" "start" "-a" "5e5c01a694dc3964dbbeebc5449e55e1a028a8f352ddbb1f0ae069e5c7eb7834", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Compiling crc32fast v1.2.0 [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 serde v1.0.219 [INFO] [stderr] Compiling num-bigint v0.2.2 [INFO] [stderr] Compiling syn v0.15.39 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking adler32 v1.0.3 [INFO] [stderr] Checking miniz_oxide v0.2.2 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling unicode-segmentation v1.3.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Compiling escargot v0.3.1 [INFO] [stderr] Checking predicates-core v1.0.9 [INFO] [stderr] Compiling bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling miniz_oxide_c_api v0.2.2 [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 time v0.1.45 [INFO] [stderr] Checking float-cmp v0.8.0 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking termtree v0.5.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking predicates-tree v1.0.12 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking bzip2 v0.4.4 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking utime v0.2.1 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking num v0.2.0 [INFO] [stderr] Compiling structopt-derive v0.2.18 [INFO] [stderr] Checking structopt v0.2.18 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking predicates v1.0.8 [INFO] [stderr] Checking zip v0.5.13 [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: `docsrs`, `feature`, and `test` and 31 more [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: `docsrs`, `feature`, and `test` and 31 more [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.99s [INFO] running `Command { std: "docker" "inspect" "5e5c01a694dc3964dbbeebc5449e55e1a028a8f352ddbb1f0ae069e5c7eb7834", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e5c01a694dc3964dbbeebc5449e55e1a028a8f352ddbb1f0ae069e5c7eb7834", kill_on_drop: false }` [INFO] [stdout] 5e5c01a694dc3964dbbeebc5449e55e1a028a8f352ddbb1f0ae069e5c7eb7834