[INFO] cloning repository https://github.com/tamurashingo/fat-image-reader [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tamurashingo/fat-image-reader" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftamurashingo%2Ffat-image-reader", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftamurashingo%2Ffat-image-reader'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] abcc8a2611d20c908d964be00a9891de00327599 [INFO] testing tamurashingo/fat-image-reader against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftamurashingo%2Ffat-image-reader" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tamurashingo/fat-image-reader [INFO] finished tweaking git repo https://github.com/tamurashingo/fat-image-reader [INFO] tweaked toml for git repo https://github.com/tamurashingo/fat-image-reader written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tamurashingo/fat-image-reader on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tamurashingo/fat-image-reader 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a432c928ef4fe9f2f289bfa7bfb282513458a526a8c2ab891783cf4cb642d39a [INFO] running `Command { std: "docker" "start" "-a" "a432c928ef4fe9f2f289bfa7bfb282513458a526a8c2ab891783cf4cb642d39a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a432c928ef4fe9f2f289bfa7bfb282513458a526a8c2ab891783cf4cb642d39a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a432c928ef4fe9f2f289bfa7bfb282513458a526a8c2ab891783cf4cb642d39a", kill_on_drop: false }` [INFO] [stdout] a432c928ef4fe9f2f289bfa7bfb282513458a526a8c2ab891783cf4cb642d39a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c57badcd70d9e5388922b53b964bcc6d338eca4f4e3bec869857adc7715261d6 [INFO] running `Command { std: "docker" "start" "-a" "c57badcd70d9e5388922b53b964bcc6d338eca4f4e3bec869857adc7715261d6", kill_on_drop: false }` [INFO] [stderr] Compiling encoding_rs v0.8.32 [INFO] [stderr] Compiling fat_image_reader v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `encoding_used` [INFO] [stdout] --> src/dir.rs:215:15 [INFO] [stdout] | [INFO] [stdout] 215 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoding_used` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `had_errors` [INFO] [stdout] --> src/dir.rs:215:30 [INFO] [stdout] | [INFO] [stdout] 215 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_had_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoding_used` [INFO] [stdout] --> src/dir.rs:200:15 [INFO] [stdout] | [INFO] [stdout] 200 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoding_used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `had_errors` [INFO] [stdout] --> src/dir.rs:200:30 [INFO] [stdout] | [INFO] [stdout] 200 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_had_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/fat.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | _ => "unknown" [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/fat.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 12 | FatType::FAT12 => "FAT12", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 13 | FatType::FAT16 => "FAT16", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 14 | FatType::FAT32 => "FAT32", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 15 | _ => "unknown" [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isReadOnly` should have a snake case name [INFO] [stdout] --> src/dir.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn isReadOnly(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `is_read_only` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isHidden` should have a snake case name [INFO] [stdout] --> src/dir.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn isHidden(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_hidden` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isSystem` should have a snake case name [INFO] [stdout] --> src/dir.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn isSystem(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_system` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isVolume` should have a snake case name [INFO] [stdout] --> src/dir.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn isVolume(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_volume` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isDirectory` should have a snake case name [INFO] [stdout] --> src/dir.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn isDirectory(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_directory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isArchive` should have a snake case name [INFO] [stdout] --> src/dir.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn isArchive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `is_archive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dir.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn filename(&self) -> Cow { [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] 188 | pub fn filename(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dir.rs:204:20 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn extension(&self) -> Cow { [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] 204 | pub fn extension(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoding_used` [INFO] [stdout] --> src/dir.rs:215:15 [INFO] [stdout] | [INFO] [stdout] 215 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoding_used` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `had_errors` [INFO] [stdout] --> src/dir.rs:215:30 [INFO] [stdout] | [INFO] [stdout] 215 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_had_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoding_used` [INFO] [stdout] --> src/dir.rs:200:15 [INFO] [stdout] | [INFO] [stdout] 200 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoding_used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `had_errors` [INFO] [stdout] --> src/dir.rs:200:30 [INFO] [stdout] | [INFO] [stdout] 200 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_had_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/fat.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | _ => "unknown" [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/fat.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 12 | FatType::FAT12 => "FAT12", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 13 | FatType::FAT16 => "FAT16", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 14 | FatType::FAT32 => "FAT32", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 15 | _ => "unknown" [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isReadOnly` should have a snake case name [INFO] [stdout] --> src/dir.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn isReadOnly(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `is_read_only` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isHidden` should have a snake case name [INFO] [stdout] --> src/dir.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn isHidden(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_hidden` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isSystem` should have a snake case name [INFO] [stdout] --> src/dir.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn isSystem(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_system` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isVolume` should have a snake case name [INFO] [stdout] --> src/dir.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn isVolume(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_volume` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isDirectory` should have a snake case name [INFO] [stdout] --> src/dir.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn isDirectory(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_directory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isArchive` should have a snake case name [INFO] [stdout] --> src/dir.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn isArchive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `is_archive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dir.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn filename(&self) -> Cow { [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] 188 | pub fn filename(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dir.rs:204:20 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn extension(&self) -> Cow { [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] 204 | pub fn extension(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `media_descriptor`, `slice_reserved_sectors`, and `reserved_sector_size` are never used [INFO] [stdout] --> src/bootsector.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 10 | impl FirstSector { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn media_descriptor(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn slice_reserved_sectors(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn reserved_sector_size(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fat_start_sector`, `fat_sector_size`, `data_start_sector`, `data_sector_size`, and `fat_type` are never read [INFO] [stdout] --> src/fat.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Region { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 21 | pub fat_start_sector: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub fat_sector_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub data_start_sector: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub data_sector_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | [INFO] [stdout] 30 | pub fat_type: FatType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `attribute` is never read [INFO] [stdout] --> src/dir.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct FileAttribute { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 5 | attribute: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `isReadOnly`, `isHidden`, `isSystem`, `isVolume`, `isDirectory`, and `isArchive` are never used [INFO] [stdout] --> src/dir.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 8 | impl FileAttribute { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn isReadOnly(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn isHidden(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn isSystem(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn isVolume(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn isDirectory(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn isArchive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_attribute` and `deleted` are never read [INFO] [stdout] --> src/dir.rs:133:3 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct DirectoryEntry { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 132 | pub bytes: Vec, //&'a [u8; 32], [INFO] [stdout] 133 | file_attribute: FileAttribute, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub deleted: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `file_attribute` is never used [INFO] [stdout] --> src/dir.rs:219:10 [INFO] [stdout] | [INFO] [stdout] 142 | impl DirectoryEntry { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 219 | pub fn file_attribute(&self) -> &FileAttribute { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.08s [INFO] running `Command { std: "docker" "inspect" "c57badcd70d9e5388922b53b964bcc6d338eca4f4e3bec869857adc7715261d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c57badcd70d9e5388922b53b964bcc6d338eca4f4e3bec869857adc7715261d6", kill_on_drop: false }` [INFO] [stdout] c57badcd70d9e5388922b53b964bcc6d338eca4f4e3bec869857adc7715261d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 29f6fbe62ab0dddc90c0ebf44f6fc56b72efdbd9393a2ab1dfcf327cbb508a97 [INFO] running `Command { std: "docker" "start" "-a" "29f6fbe62ab0dddc90c0ebf44f6fc56b72efdbd9393a2ab1dfcf327cbb508a97", kill_on_drop: false }` [INFO] [stderr] Compiling fat_image_reader v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `encoding_used` [INFO] [stdout] --> src/dir.rs:215:15 [INFO] [stdout] | [INFO] [stdout] 215 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoding_used` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `had_errors` [INFO] [stdout] --> src/dir.rs:215:30 [INFO] [stdout] | [INFO] [stdout] 215 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_had_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoding_used` [INFO] [stdout] --> src/dir.rs:200:15 [INFO] [stdout] | [INFO] [stdout] 200 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoding_used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `had_errors` [INFO] [stdout] --> src/dir.rs:200:30 [INFO] [stdout] | [INFO] [stdout] 200 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_had_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/fat.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | _ => "unknown" [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/fat.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 12 | FatType::FAT12 => "FAT12", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 13 | FatType::FAT16 => "FAT16", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 14 | FatType::FAT32 => "FAT32", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 15 | _ => "unknown" [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isReadOnly` should have a snake case name [INFO] [stdout] --> src/dir.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn isReadOnly(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `is_read_only` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isHidden` should have a snake case name [INFO] [stdout] --> src/dir.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn isHidden(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_hidden` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isSystem` should have a snake case name [INFO] [stdout] --> src/dir.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn isSystem(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_system` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isVolume` should have a snake case name [INFO] [stdout] --> src/dir.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn isVolume(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_volume` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isDirectory` should have a snake case name [INFO] [stdout] --> src/dir.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn isDirectory(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_directory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isArchive` should have a snake case name [INFO] [stdout] --> src/dir.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn isArchive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `is_archive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dir.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn filename(&self) -> Cow { [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] 188 | pub fn filename(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dir.rs:204:20 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn extension(&self) -> Cow { [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] 204 | pub fn extension(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoding_used` [INFO] [stdout] --> src/dir.rs:215:15 [INFO] [stdout] | [INFO] [stdout] 215 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoding_used` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `had_errors` [INFO] [stdout] --> src/dir.rs:215:30 [INFO] [stdout] | [INFO] [stdout] 215 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_had_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoding_used` [INFO] [stdout] --> src/dir.rs:200:15 [INFO] [stdout] | [INFO] [stdout] 200 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoding_used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `had_errors` [INFO] [stdout] --> src/dir.rs:200:30 [INFO] [stdout] | [INFO] [stdout] 200 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_had_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/fat.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | _ => "unknown" [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/fat.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 12 | FatType::FAT12 => "FAT12", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 13 | FatType::FAT16 => "FAT16", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 14 | FatType::FAT32 => "FAT32", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 15 | _ => "unknown" [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isReadOnly` should have a snake case name [INFO] [stdout] --> src/dir.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn isReadOnly(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `is_read_only` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isHidden` should have a snake case name [INFO] [stdout] --> src/dir.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn isHidden(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_hidden` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isSystem` should have a snake case name [INFO] [stdout] --> src/dir.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn isSystem(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_system` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isVolume` should have a snake case name [INFO] [stdout] --> src/dir.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn isVolume(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_volume` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isDirectory` should have a snake case name [INFO] [stdout] --> src/dir.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn isDirectory(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_directory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isArchive` should have a snake case name [INFO] [stdout] --> src/dir.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn isArchive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `is_archive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dir.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn filename(&self) -> Cow { [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] 188 | pub fn filename(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dir.rs:204:20 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn extension(&self) -> Cow { [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] 204 | pub fn extension(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoding_used` [INFO] [stdout] --> src/dir.rs:215:15 [INFO] [stdout] | [INFO] [stdout] 215 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoding_used` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `had_errors` [INFO] [stdout] --> src/dir.rs:215:30 [INFO] [stdout] | [INFO] [stdout] 215 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_had_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `encoding_used` [INFO] [stdout] --> src/dir.rs:200:15 [INFO] [stdout] | [INFO] [stdout] 200 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoding_used` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `had_errors` [INFO] [stdout] --> src/dir.rs:200:30 [INFO] [stdout] | [INFO] [stdout] 200 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_had_errors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/fat.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | _ => "unknown" [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/fat.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 12 | FatType::FAT12 => "FAT12", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 13 | FatType::FAT16 => "FAT16", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 14 | FatType::FAT32 => "FAT32", [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 15 | _ => "unknown" [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `media_descriptor`, `slice_reserved_sectors`, and `reserved_sector_size` are never used [INFO] [stdout] --> src/bootsector.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 10 | impl FirstSector { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn media_descriptor(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn slice_reserved_sectors(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn reserved_sector_size(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `fat_start_sector`, `fat_sector_size`, `data_start_sector`, `data_sector_size`, and `fat_type` are never read [INFO] [stdout] --> src/fat.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Region { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 21 | pub fat_start_sector: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pub fat_sector_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub data_start_sector: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 28 | pub data_sector_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | [INFO] [stdout] 30 | pub fat_type: FatType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `attribute` is never read [INFO] [stdout] --> src/dir.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct FileAttribute { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 5 | attribute: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `isReadOnly`, `isHidden`, `isSystem`, `isVolume`, `isDirectory`, and `isArchive` are never used [INFO] [stdout] --> src/dir.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 8 | impl FileAttribute { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn isReadOnly(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn isHidden(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn isSystem(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn isVolume(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn isDirectory(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn isArchive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `file_attribute` and `deleted` are never read [INFO] [stdout] --> src/dir.rs:133:3 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct DirectoryEntry { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 132 | pub bytes: Vec, //&'a [u8; 32], [INFO] [stdout] 133 | file_attribute: FileAttribute, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub deleted: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `file_attribute` is never used [INFO] [stdout] --> src/dir.rs:219:10 [INFO] [stdout] | [INFO] [stdout] 142 | impl DirectoryEntry { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 219 | pub fn file_attribute(&self) -> &FileAttribute { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isReadOnly` should have a snake case name [INFO] [stdout] --> src/dir.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn isReadOnly(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `is_read_only` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isHidden` should have a snake case name [INFO] [stdout] --> src/dir.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn isHidden(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_hidden` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isSystem` should have a snake case name [INFO] [stdout] --> src/dir.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn isSystem(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_system` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isVolume` should have a snake case name [INFO] [stdout] --> src/dir.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn isVolume(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_volume` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isDirectory` should have a snake case name [INFO] [stdout] --> src/dir.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn isDirectory(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_directory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `isArchive` should have a snake case name [INFO] [stdout] --> src/dir.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn isArchive(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `is_archive` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dir.rs:188:19 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn filename(&self) -> Cow { [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] 188 | pub fn filename(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/dir.rs:204:20 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn extension(&self) -> Cow { [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] 204 | pub fn extension(&self) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.76s [INFO] running `Command { std: "docker" "inspect" "29f6fbe62ab0dddc90c0ebf44f6fc56b72efdbd9393a2ab1dfcf327cbb508a97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29f6fbe62ab0dddc90c0ebf44f6fc56b72efdbd9393a2ab1dfcf327cbb508a97", kill_on_drop: false }` [INFO] [stdout] 29f6fbe62ab0dddc90c0ebf44f6fc56b72efdbd9393a2ab1dfcf327cbb508a97 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fa9c59969f2feeef7eaaf7359a51025790e69d5e6b049f7783b5004ac095fa5b [INFO] running `Command { std: "docker" "start" "-a" "fa9c59969f2feeef7eaaf7359a51025790e69d5e6b049f7783b5004ac095fa5b", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `encoding_used` [INFO] [stderr] --> src/dir.rs:215:15 [INFO] [stderr] | [INFO] [stderr] 215 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoding_used` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `had_errors` [INFO] [stderr] --> src/dir.rs:215:30 [INFO] [stderr] | [INFO] [stderr] 215 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_had_errors` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `encoding_used` [INFO] [stderr] --> src/dir.rs:200:15 [INFO] [stderr] | [INFO] [stderr] 200 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_encoding_used` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `had_errors` [INFO] [stderr] --> src/dir.rs:200:30 [INFO] [stderr] | [INFO] [stderr] 200 | let (cow, encoding_used, had_errors) = SHIFT_JIS.decode(&mem); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_had_errors` [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/fat.rs:15:7 [INFO] [stderr] | [INFO] [stderr] 15 | _ => "unknown" [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/fat.rs:15:7 [INFO] [stderr] | [INFO] [stderr] 12 | FatType::FAT12 => "FAT12", [INFO] [stderr] | -------------- matches some of the same values [INFO] [stderr] 13 | FatType::FAT16 => "FAT16", [INFO] [stderr] | -------------- matches some of the same values [INFO] [stderr] 14 | FatType::FAT32 => "FAT32", [INFO] [stderr] | -------------- matches some of the same values [INFO] [stderr] 15 | _ => "unknown" [INFO] [stderr] | ^ collectively making this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `isReadOnly` should have a snake case name [INFO] [stderr] --> src/dir.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 13 | pub fn isReadOnly(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ help: convert the identifier to snake case: `is_read_only` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `isHidden` should have a snake case name [INFO] [stderr] --> src/dir.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn isHidden(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `is_hidden` [INFO] [stderr] [INFO] [stderr] warning: method `isSystem` should have a snake case name [INFO] [stderr] --> src/dir.rs:21:10 [INFO] [stderr] | [INFO] [stderr] 21 | pub fn isSystem(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `is_system` [INFO] [stderr] [INFO] [stderr] warning: method `isVolume` should have a snake case name [INFO] [stderr] --> src/dir.rs:25:10 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn isVolume(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `is_volume` [INFO] [stderr] [INFO] [stderr] warning: method `isDirectory` should have a snake case name [INFO] [stderr] --> src/dir.rs:29:10 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn isDirectory(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_directory` [INFO] [stderr] [INFO] [stderr] warning: method `isArchive` should have a snake case name [INFO] [stderr] --> src/dir.rs:33:10 [INFO] [stderr] | [INFO] [stderr] 33 | pub fn isArchive(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `is_archive` [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/dir.rs:188:19 [INFO] [stderr] | [INFO] [stderr] 188 | pub fn filename(&self) -> Cow { [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] 188 | pub fn filename(&self) -> Cow<'_, str> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/dir.rs:204:20 [INFO] [stderr] | [INFO] [stderr] 204 | pub fn extension(&self) -> Cow { [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] 204 | pub fn extension(&self) -> Cow<'_, str> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `fat_image_reader` (lib) generated 13 warnings (run `cargo fix --lib -p fat_image_reader` to apply 2 suggestions) [INFO] [stderr] warning: methods `media_descriptor`, `slice_reserved_sectors`, and `reserved_sector_size` are never used [INFO] [stderr] --> src/bootsector.rs:61:10 [INFO] [stderr] | [INFO] [stderr] 10 | impl FirstSector { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 61 | pub fn media_descriptor(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 77 | pub fn slice_reserved_sectors(&self) -> &[u8] { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 84 | pub fn reserved_sector_size(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `fat_start_sector`, `fat_sector_size`, `data_start_sector`, `data_sector_size`, and `fat_type` are never read [INFO] [stderr] --> src/fat.rs:21:7 [INFO] [stderr] | [INFO] [stderr] 20 | pub struct Region { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] 21 | pub fat_start_sector: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 22 | pub fat_sector_size: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 27 | pub data_start_sector: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 28 | pub data_sector_size: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 29 | [INFO] [stderr] 30 | pub fat_type: FatType, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `attribute` is never read [INFO] [stderr] --> src/dir.rs:5:3 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct FileAttribute { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] 5 | attribute: u8, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `isReadOnly`, `isHidden`, `isSystem`, `isVolume`, `isDirectory`, and `isArchive` are never used [INFO] [stderr] --> src/dir.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 8 | impl FileAttribute { [INFO] [stderr] | ------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 13 | pub fn isReadOnly(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 17 | pub fn isHidden(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 21 | pub fn isSystem(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 25 | pub fn isVolume(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 29 | pub fn isDirectory(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 33 | pub fn isArchive(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `file_attribute` and `deleted` are never read [INFO] [stderr] --> src/dir.rs:133:3 [INFO] [stderr] | [INFO] [stderr] 131 | pub struct DirectoryEntry { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] 132 | pub bytes: Vec, //&'a [u8; 32], [INFO] [stderr] 133 | file_attribute: FileAttribute, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 139 | pub deleted: bool, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `file_attribute` is never used [INFO] [stderr] --> src/dir.rs:219:10 [INFO] [stderr] | [INFO] [stderr] 142 | impl DirectoryEntry { [INFO] [stderr] | ------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 219 | pub fn file_attribute(&self) -> &FileAttribute { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `fat_image_reader` (bin "fat_image_reader" test) generated 19 warnings (13 duplicates) [INFO] [stderr] warning: `fat_image_reader` (lib test) generated 13 warnings (13 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/fat_image_reader-4b5e0ec17689869a) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/fat_image_reader-9fd4c8a6849a7658) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests fat_image_reader [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/dir.rs - dir::Time::hour (line 47) ... ok [INFO] [stdout] test src/dir.rs - dir::Time::minute (line 57) ... ok [INFO] [stdout] test src/dir.rs - dir::Time::second (line 67) ... ok [INFO] [stdout] test src/dir.rs - dir::Date::year (line 93) ... ok [INFO] [stdout] test src/dir.rs - dir::Date::day (line 113) ... ok [INFO] [stdout] test src/dir.rs - dir::Date::month (line 103) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.59s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fa9c59969f2feeef7eaaf7359a51025790e69d5e6b049f7783b5004ac095fa5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa9c59969f2feeef7eaaf7359a51025790e69d5e6b049f7783b5004ac095fa5b", kill_on_drop: false }` [INFO] [stdout] fa9c59969f2feeef7eaaf7359a51025790e69d5e6b049f7783b5004ac095fa5b