[INFO] fetching crate pk2 0.2.0... [INFO] testing pk2-0.2.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate pk2 0.2.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate pk2 0.2.0 [INFO] finished tweaking crates.io crate pk2 0.2.0 [INFO] tweaked toml for crates.io crate pk2 0.2.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate pk2 0.2.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 4 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7248ade3d0b60c96fbe5cad108650ee1ed010f32396f5e1c8734e3f61677d2b3 [INFO] running `Command { std: "docker" "start" "-a" "7248ade3d0b60c96fbe5cad108650ee1ed010f32396f5e1c8734e3f61677d2b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7248ade3d0b60c96fbe5cad108650ee1ed010f32396f5e1c8734e3f61677d2b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7248ade3d0b60c96fbe5cad108650ee1ed010f32396f5e1c8734e3f61677d2b3", kill_on_drop: false }` [INFO] [stdout] 7248ade3d0b60c96fbe5cad108650ee1ed010f32396f5e1c8734e3f61677d2b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cfc32684b5b347a8a07826dad791c91083cb0a9e9aebd6acf86176b31e986e3a [INFO] running `Command { std: "docker" "start" "-a" "cfc32684b5b347a8a07826dad791c91083cb0a9e9aebd6acf86176b31e986e3a", kill_on_drop: false }` [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling pk2 v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `signature`, `version`, `encrypted`, `verify`, and `reserved` are never read [INFO] [stdout] --> src/constants.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct RawPackHeader { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 28 | pub signature: [u8; 30], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | pub version: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 30 | pub encrypted: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | pub verify: [u8; 16], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 32 | pub reserved: [u8; 205], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/constants.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct RawPackFileEntry { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 38 | pub ty: u8, //0 = Empty, 1 = Directory, 2 = File [INFO] [stdout] | ^^ [INFO] [stdout] 39 | pub name: [u8; 81], [INFO] [stdout] | ^^^^ [INFO] [stdout] 40 | pub access: FILETIME, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | pub create: FILETIME, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | pub modify: FILETIME, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | pub position: u64, // Position of data for files, position of children for directorys [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 44 | pub size: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 45 | pub next_block: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawPackFileEntry` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/raw/block_chain.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn entries(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 155 | pub fn entries(&self) -> std::slice::Iter<'_, PackEntry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/raw/block_chain.rs:159:24 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn entries_mut(&mut self) -> std::slice::IterMut { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 159 | pub fn entries_mut(&mut self) -> std::slice::IterMut<'_, PackEntry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:185:38 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn open_file>(&self, path: P) -> ChainLookupResult> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 185 | pub fn open_file>(&self, path: P) -> ChainLookupResult> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:191:43 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn open_directory>(&self, path: P) -> ChainLookupResult> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 191 | pub fn open_directory>(&self, path: P) -> ChainLookupResult> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:206:26 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn open_root_dir(&self) -> Directory { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 206 | pub fn open_root_dir(&self) -> Directory<'_, B, L> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:240:42 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn open_file_mut>(&mut self, path: P) -> ChainLookupResult> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 240 | pub fn open_file_mut>(&mut self, path: P) -> ChainLookupResult> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:266:40 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn create_file>(&mut self, path: P) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 266 | pub fn create_file>(&mut self, path: P) -> io::Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.61s [INFO] running `Command { std: "docker" "inspect" "cfc32684b5b347a8a07826dad791c91083cb0a9e9aebd6acf86176b31e986e3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfc32684b5b347a8a07826dad791c91083cb0a9e9aebd6acf86176b31e986e3a", kill_on_drop: false }` [INFO] [stdout] cfc32684b5b347a8a07826dad791c91083cb0a9e9aebd6acf86176b31e986e3a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c8b0e55b039605c1fa33b35d9c9e7db25140ff987536d8db7ed4968561453a75 [INFO] running `Command { std: "docker" "start" "-a" "c8b0e55b039605c1fa33b35d9c9e7db25140ff987536d8db7ed4968561453a75", kill_on_drop: false }` [INFO] [stderr] Compiling bytemuck v1.23.2 [INFO] [stdout] warning: fields `signature`, `version`, `encrypted`, `verify`, and `reserved` are never read [INFO] [stdout] --> src/constants.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct RawPackHeader { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 28 | pub signature: [u8; 30], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | pub version: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 30 | pub encrypted: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | pub verify: [u8; 16], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 32 | pub reserved: [u8; 205], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/constants.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct RawPackFileEntry { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 38 | pub ty: u8, //0 = Empty, 1 = Directory, 2 = File [INFO] [stdout] | ^^ [INFO] [stdout] 39 | pub name: [u8; 81], [INFO] [stdout] | ^^^^ [INFO] [stdout] 40 | pub access: FILETIME, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | pub create: FILETIME, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | pub modify: FILETIME, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | pub position: u64, // Position of data for files, position of children for directorys [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 44 | pub size: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 45 | pub next_block: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawPackFileEntry` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/raw/block_chain.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn entries(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 155 | pub fn entries(&self) -> std::slice::Iter<'_, PackEntry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/raw/block_chain.rs:159:24 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn entries_mut(&mut self) -> std::slice::IterMut { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 159 | pub fn entries_mut(&mut self) -> std::slice::IterMut<'_, PackEntry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:185:38 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn open_file>(&self, path: P) -> ChainLookupResult> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 185 | pub fn open_file>(&self, path: P) -> ChainLookupResult> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:191:43 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn open_directory>(&self, path: P) -> ChainLookupResult> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 191 | pub fn open_directory>(&self, path: P) -> ChainLookupResult> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:206:26 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn open_root_dir(&self) -> Directory { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 206 | pub fn open_root_dir(&self) -> Directory<'_, B, L> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:240:42 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn open_file_mut>(&mut self, path: P) -> ChainLookupResult> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 240 | pub fn open_file_mut>(&mut self, path: P) -> ChainLookupResult> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:266:40 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn create_file>(&mut self, path: P) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 266 | pub fn create_file>(&mut self, path: P) -> io::Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling pk2 v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `signature`, `version`, `encrypted`, `verify`, and `reserved` are never read [INFO] [stdout] --> src/constants.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct RawPackHeader { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 28 | pub signature: [u8; 30], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | pub version: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 30 | pub encrypted: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 31 | pub verify: [u8; 16], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 32 | pub reserved: [u8; 205], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/constants.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct RawPackFileEntry { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 38 | pub ty: u8, //0 = Empty, 1 = Directory, 2 = File [INFO] [stdout] | ^^ [INFO] [stdout] 39 | pub name: [u8; 81], [INFO] [stdout] 40 | pub access: FILETIME, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | pub create: FILETIME, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | pub modify: FILETIME, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | pub position: u64, // Position of data for files, position of children for directorys [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 44 | pub size: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 45 | pub next_block: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawPackFileEntry` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/raw/block_chain.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | pub fn entries(&self) -> std::slice::Iter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 155 | pub fn entries(&self) -> std::slice::Iter<'_, PackEntry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/raw/block_chain.rs:159:24 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn entries_mut(&mut self) -> std::slice::IterMut { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 159 | pub fn entries_mut(&mut self) -> std::slice::IterMut<'_, PackEntry> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:185:38 [INFO] [stdout] | [INFO] [stdout] 185 | pub fn open_file>(&self, path: P) -> ChainLookupResult> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 185 | pub fn open_file>(&self, path: P) -> ChainLookupResult> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:191:43 [INFO] [stdout] | [INFO] [stdout] 191 | pub fn open_directory>(&self, path: P) -> ChainLookupResult> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 191 | pub fn open_directory>(&self, path: P) -> ChainLookupResult> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:206:26 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn open_root_dir(&self) -> Directory { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 206 | pub fn open_root_dir(&self) -> Directory<'_, B, L> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:240:42 [INFO] [stdout] | [INFO] [stdout] 240 | pub fn open_file_mut>(&mut self, path: P) -> ChainLookupResult> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 240 | pub fn open_file_mut>(&mut self, path: P) -> ChainLookupResult> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/archive.rs:266:40 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn create_file>(&mut self, path: P) -> io::Result> { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 266 | pub fn create_file>(&mut self, path: P) -> io::Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.27s [INFO] running `Command { std: "docker" "inspect" "c8b0e55b039605c1fa33b35d9c9e7db25140ff987536d8db7ed4968561453a75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8b0e55b039605c1fa33b35d9c9e7db25140ff987536d8db7ed4968561453a75", kill_on_drop: false }` [INFO] [stdout] c8b0e55b039605c1fa33b35d9c9e7db25140ff987536d8db7ed4968561453a75 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 97047eece860cab4e5f9c52f94412d5ae83b49d77159b33f378dbc3cbed1f00e [INFO] running `Command { std: "docker" "start" "-a" "97047eece860cab4e5f9c52f94412d5ae83b49d77159b33f378dbc3cbed1f00e", kill_on_drop: false }` [INFO] [stderr] warning: fields `signature`, `version`, `encrypted`, `verify`, and `reserved` are never read [INFO] [stderr] --> src/constants.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 27 | pub struct RawPackHeader { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] 28 | pub signature: [u8; 30], [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 29 | pub version: u32, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 30 | pub encrypted: u8, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 31 | pub verify: [u8; 16], [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 32 | pub reserved: [u8; 205], [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/constants.rs:38:9 [INFO] [stderr] | [INFO] [stderr] 37 | pub struct RawPackFileEntry { [INFO] [stderr] | ---------------- fields in this struct [INFO] [stderr] 38 | pub ty: u8, //0 = Empty, 1 = Directory, 2 = File [INFO] [stderr] | ^^ [INFO] [stderr] 39 | pub name: [u8; 81], [INFO] [stderr] | ^^^^ [INFO] [stderr] 40 | pub access: FILETIME, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 41 | pub create: FILETIME, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 42 | pub modify: FILETIME, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 43 | pub position: u64, // Position of data for files, position of children for directorys [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 44 | pub size: u32, [INFO] [stderr] | ^^^^ [INFO] [stderr] 45 | pub next_block: u64, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RawPackFileEntry` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/raw/block_chain.rs:155:20 [INFO] [stderr] | [INFO] [stderr] 155 | pub fn entries(&self) -> std::slice::Iter { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 155 | pub fn entries(&self) -> std::slice::Iter<'_, PackEntry> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/raw/block_chain.rs:159:24 [INFO] [stderr] | [INFO] [stderr] 159 | pub fn entries_mut(&mut self) -> std::slice::IterMut { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 159 | pub fn entries_mut(&mut self) -> std::slice::IterMut<'_, PackEntry> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/archive.rs:185:38 [INFO] [stderr] | [INFO] [stderr] 185 | pub fn open_file>(&self, path: P) -> ChainLookupResult> { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 185 | pub fn open_file>(&self, path: P) -> ChainLookupResult> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/archive.rs:191:43 [INFO] [stderr] | [INFO] [stderr] 191 | pub fn open_directory>(&self, path: P) -> ChainLookupResult> { [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 191 | pub fn open_directory>(&self, path: P) -> ChainLookupResult> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/archive.rs:206:26 [INFO] [stderr] | [INFO] [stderr] 206 | pub fn open_root_dir(&self) -> Directory { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 206 | pub fn open_root_dir(&self) -> Directory<'_, B, L> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/archive.rs:240:42 [INFO] [stderr] | [INFO] [stderr] 240 | pub fn open_file_mut>(&mut self, path: P) -> ChainLookupResult> { [INFO] [stderr] | ^^^^^^^^^ the lifetime is elided here ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 240 | pub fn open_file_mut>(&mut self, path: P) -> ChainLookupResult> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/archive.rs:266:40 [INFO] [stderr] | [INFO] [stderr] 266 | pub fn create_file>(&mut self, path: P) -> io::Result> { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 266 | pub fn create_file>(&mut self, path: P) -> io::Result> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `pk2` (lib) generated 9 warnings (run `cargo fix --lib -p pk2` to apply 7 suggestions) [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/constants.rs:38:9 [INFO] [stderr] | [INFO] [stderr] 37 | pub struct RawPackFileEntry { [INFO] [stderr] | ---------------- fields in this struct [INFO] [stderr] 38 | pub ty: u8, //0 = Empty, 1 = Directory, 2 = File [INFO] [stderr] | ^^ [INFO] [stderr] 39 | pub name: [u8; 81], [INFO] [stderr] 40 | pub access: FILETIME, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 41 | pub create: FILETIME, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 42 | pub modify: FILETIME, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 43 | pub position: u64, // Position of data for files, position of children for directorys [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 44 | pub size: u32, [INFO] [stderr] | ^^^^ [INFO] [stderr] 45 | pub next_block: u64, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RawPackFileEntry` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `pk2` (lib test) generated 9 warnings (8 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/pk2-beea2303e1c0c53a) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test filetime::test_convert_roundtrip ... ok [INFO] [stdout] test raw::entry::test::pack_entry_read_empty ... ok [INFO] [stdout] test raw::entry::test::pack_entry_read_file ... ok [INFO] [stdout] test raw::entry::test::pack_entry_read_directory ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests pk2 [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/lib.rs - (line 5) - compile ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.14s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "97047eece860cab4e5f9c52f94412d5ae83b49d77159b33f378dbc3cbed1f00e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97047eece860cab4e5f9c52f94412d5ae83b49d77159b33f378dbc3cbed1f00e", kill_on_drop: false }` [INFO] [stdout] 97047eece860cab4e5f9c52f94412d5ae83b49d77159b33f378dbc3cbed1f00e