[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] testing wfehrnstrom/rustgzip against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwfehrnstrom%2Frustgzip" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/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-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/wfehrnstrom/rustgzip on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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.27 [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.140 [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.2.0) [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded miniz_oxide v0.2.2 [INFO] [stderr] Downloaded utime v0.2.1 [INFO] [stderr] Downloaded num-complex v0.2.3 [INFO] [stderr] Downloaded num v0.2.0 [INFO] [stderr] Downloaded termion v1.5.3 [INFO] [stderr] Downloaded zip v0.5.13 [INFO] [stderr] Downloaded unicode-segmentation v1.3.0 [INFO] [stderr] Downloaded flate2 v1.0.9 [INFO] [stderr] Downloaded num-bigint v0.2.2 [INFO] [stderr] Downloaded syn v0.15.39 [INFO] [stderr] Downloaded miniz_oxide_c_api v0.2.2 [INFO] [stderr] Downloaded libz-sys v1.0.25 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5fa383f676810d4f09675b3b2916646a945f1edfec619a71dbfffb82c7a34749 [INFO] running `Command { std: "docker" "start" "-a" "5fa383f676810d4f09675b3b2916646a945f1edfec619a71dbfffb82c7a34749", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5fa383f676810d4f09675b3b2916646a945f1edfec619a71dbfffb82c7a34749", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fa383f676810d4f09675b3b2916646a945f1edfec619a71dbfffb82c7a34749", kill_on_drop: false }` [INFO] [stdout] 5fa383f676810d4f09675b3b2916646a945f1edfec619a71dbfffb82c7a34749 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 552ea106661c988a4b9e2ee4fbcac765335034bd2107976f04a0ffd4d146b187 [INFO] running `Command { std: "docker" "start" "-a" "552ea106661c988a4b9e2ee4fbcac765335034bd2107976f04a0ffd4d146b187", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling adler32 v1.0.3 [INFO] [stderr] Compiling num-bigint v0.2.2 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling syn v0.15.39 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling unicode-segmentation v1.3.0 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling miniz_oxide_c_api v0.2.2 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling miniz_oxide v0.2.2 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling libz-sys v1.0.25 [INFO] [stderr] Compiling bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling utime v0.2.1 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling bzip2 v0.4.4 [INFO] [stderr] Compiling num v0.2.0 [INFO] [stderr] Compiling structopt-derive v0.2.18 [INFO] [stderr] Compiling flate2 v1.0.9 [INFO] [stderr] Compiling structopt v0.2.18 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zip v0.5.13 [INFO] [stderr] Compiling 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 `Debug` and `Clone`, 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 11.95s [INFO] running `Command { std: "docker" "inspect" "552ea106661c988a4b9e2ee4fbcac765335034bd2107976f04a0ffd4d146b187", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "552ea106661c988a4b9e2ee4fbcac765335034bd2107976f04a0ffd4d146b187", kill_on_drop: false }` [INFO] [stdout] 552ea106661c988a4b9e2ee4fbcac765335034bd2107976f04a0ffd4d146b187 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 04c40d517d4674b29affda51511238e08ba47cd3815ed382d4c9c22f354a358a [INFO] running `Command { std: "docker" "start" "-a" "04c40d517d4674b29affda51511238e08ba47cd3815ed382d4c9c22f354a358a", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling escargot v0.3.1 [INFO] [stderr] Compiling float-cmp v0.8.0 [INFO] [stderr] Compiling termtree v0.5.1 [INFO] [stderr] Compiling normalize-line-endings v0.3.0 [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 `Debug` and `Clone`, 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] Compiling predicates-tree v1.0.12 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling predicates v1.0.8 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling assert_cmd v0.10.2 [INFO] [stderr] Compiling 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 `Debug` and `Clone`, 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 `test` profile [unoptimized + debuginfo] target(s) in 10.63s [INFO] running `Command { std: "docker" "inspect" "04c40d517d4674b29affda51511238e08ba47cd3815ed382d4c9c22f354a358a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04c40d517d4674b29affda51511238e08ba47cd3815ed382d4c9c22f354a358a", kill_on_drop: false }` [INFO] [stdout] 04c40d517d4674b29affda51511238e08ba47cd3815ed382d4c9c22f354a358a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 712d8b5fce270f4181026db962dbca6433e207d6742bf803ad5c76af044df6cf [INFO] running `Command { std: "docker" "start" "-a" "712d8b5fce270f4181026db962dbca6433e207d6742bf803ad5c76af044df6cf", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition name: `linux` [INFO] [stderr] --> src/util.rs:10:7 [INFO] [stderr] | [INFO] [stderr] 10 | #[cfg(linux)] [INFO] [stderr] | ^^^^^ help: found config with similar value: `target_os = "linux"` [INFO] [stderr] | [INFO] [stderr] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(linux)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(linux)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `linux` [INFO] [stderr] --> src/util.rs:144:49 [INFO] [stderr] | [INFO] [stderr] 144 | let file_checks = (!cfg!(unix) && !cfg!(linux)) || file_checks(f, opt)?; [INFO] [stderr] | ^^^^^ help: found config with similar value: `target_os = "linux"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(linux)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(linux)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around match arm expression [INFO] [stderr] --> src/util.rs:310:28 [INFO] [stderr] | [INFO] [stderr] 310 | Some(c) => (c == 'y' || c == 'Y'), [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 310 - Some(c) => (c == 'y' || c == 'Y'), [INFO] [stderr] 310 + Some(c) => c == 'y' || c == 'Y', [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `chrono::TimeZone::timestamp`: use `timestamp_opt()` instead [INFO] [stderr] --> src/formats/gz.rs:218:15 [INFO] [stderr] | [INFO] [stderr] 218 | Local.timestamp (self.mtime.into(), 0) [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `chrono::TimeZone::timestamp`: use `timestamp_opt()` instead [INFO] [stderr] --> src/formats/zip.rs:30:15 [INFO] [stderr] | [INFO] [stderr] 30 | Local.timestamp (self.get_header().mtime.into(), 0) [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `synchronous`, `rsyncable`, and `parallel` are never read [INFO] [stderr] --> src/main.rs:42:5 [INFO] [stderr] | [INFO] [stderr] 20 | pub struct Opt { [INFO] [stderr] | --- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 42 | synchronous: bool, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 58 | rsyncable: bool, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 59 | #[structopt(short="j", long, help="compress in parallel with THREADS number of threads", default_value="1")] [INFO] [stderr] 60 | parallel: u8, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Opt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `1` is never read [INFO] [stderr] --> src/util.rs:67:31 [INFO] [stderr] | [INFO] [stderr] 67 | pub struct Timespec (pub i64, pub i32); [INFO] [stderr] | -------- ^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this struct [INFO] [stderr] | [INFO] [stderr] = help: consider removing this field [INFO] [stderr] = note: `Timespec` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/formats/gz.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct GzFile { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] 18 | pub path: Option, [INFO] [stderr] 19 | compression_method: u8, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 22 | flag: GzFlags, [INFO] [stderr] | ^^^^ [INFO] [stderr] 23 | comment: Option, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 24 | os: u8, [INFO] [stderr] | ^^ [INFO] [stderr] 25 | data: Vec, [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 28 | hcrc16: Option, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 29 | xfield: Option<(u16, Vec)>, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `GzFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `ftext` is never read [INFO] [stderr] --> src/formats/gz.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 34 | struct GzFlags { [INFO] [stderr] | ------- field in this struct [INFO] [stderr] 35 | pub ftext: bool, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `GzFlags` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated function `compress_into` is never used [INFO] [stderr] --> src/formats/zip.rs:10:8 [INFO] [stderr] | [INFO] [stderr] 7 | pub trait Zip { [INFO] [stderr] | --- associated function in this trait [INFO] [stderr] ... [INFO] [stderr] 10 | fn compress_into (input: R, wdata: Option, opt: &Opt) -> Result, std::io::Error>; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `StreamHeader` is never constructed [INFO] [stderr] --> src/formats/zip.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct StreamHeader { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `Header` is never used [INFO] [stderr] --> src/formats/zip.rs:26:11 [INFO] [stderr] | [INFO] [stderr] 26 | pub trait Header { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/util.rs:39:55 [INFO] [stderr] | [INFO] [stderr] 39 | WrappedFile { path: self.path, file: self.file.clone()} [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] 39 - WrappedFile { path: self.path, file: self.file.clone()} [INFO] [stderr] 39 + WrappedFile { path: self.path, file: self.file} [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `rstzip` (bin "rstzip") generated 13 warnings (run `cargo fix --bin "rstzip"` to apply 2 suggestions) [INFO] [stderr] warning: `rstzip` (bin "rstzip" test) generated 13 warnings (13 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/rstzip-2c481612f9eee20e) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test treat::tests::test_check_for_stdin ... ok [INFO] [stdout] test util::tests::bit_set_test ... ok [INFO] [stdout] test util::tests::strip_leading_dot_test ... ok [INFO] [stdout] test util::tests::suffix_known_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running tests/cli.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/cli-c6d0853d7fb842f3) [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test keep ... FAILED [INFO] [stdout] test gzip_compat ... FAILED [INFO] [stdout] test test ... FAILED [INFO] [stdout] test name_and_no_name ... FAILED [INFO] [stdout] test list ... FAILED [INFO] [stdout] test dir ... FAILED [INFO] [stdout] test ascii_unsupported ... ok [INFO] [stdout] test file_doesnt_exist ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- keep stdout ---- [INFO] [stdout] Error: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" } [INFO] [stdout] [INFO] [stdout] ---- gzip_compat stdout ---- [INFO] [stdout] Error: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" } [INFO] [stdout] [INFO] [stdout] ---- test stdout ---- [INFO] [stdout] couldn't create file with error: Read-only file system (os error 30) [INFO] [stdout] Error: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" } [INFO] [stdout] [INFO] [stdout] ---- name_and_no_name stdout ---- [INFO] [stdout] Error: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" } [INFO] [stdout] [INFO] [stdout] ---- list stdout ---- [INFO] [stdout] Error: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" } [INFO] [stdout] [INFO] [stdout] ---- dir stdout ---- [INFO] [stdout] Error: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] dir [INFO] [stdout] gzip_compat [INFO] [stdout] keep [INFO] [stdout] list [INFO] [stdout] name_and_no_name [INFO] [stdout] test [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.27s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test cli` [INFO] running `Command { std: "docker" "inspect" "712d8b5fce270f4181026db962dbca6433e207d6742bf803ad5c76af044df6cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "712d8b5fce270f4181026db962dbca6433e207d6742bf803ad5c76af044df6cf", kill_on_drop: false }` [INFO] [stdout] 712d8b5fce270f4181026db962dbca6433e207d6742bf803ad5c76af044df6cf