[INFO] fetching crate rsdisk 0.0.12... [INFO] building rsdisk-0.0.12 against try#4987e9d4227139400384ab59296ffee3b0fb1183 for pr-146237-2 [INFO] extracting crate rsdisk 0.0.12 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate rsdisk 0.0.12 [INFO] finished tweaking crates.io crate rsdisk 0.0.12 [INFO] tweaked toml for crates.io crate rsdisk 0.0.12 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rsdisk 0.0.12 on toolchain 4987e9d4227139400384ab59296ffee3b0fb1183 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rsdisk 0.0.12 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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 41a115f92f22542dcd94a12154df0ce37d5b2485b90c2db69d7dbb1140b814be [INFO] running `Command { std: "docker" "start" "-a" "41a115f92f22542dcd94a12154df0ce37d5b2485b90c2db69d7dbb1140b814be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41a115f92f22542dcd94a12154df0ce37d5b2485b90c2db69d7dbb1140b814be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41a115f92f22542dcd94a12154df0ce37d5b2485b90c2db69d7dbb1140b814be", kill_on_drop: false }` [INFO] [stdout] 41a115f92f22542dcd94a12154df0ce37d5b2485b90c2db69d7dbb1140b814be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 99b7e4236fbb523acfa32a668d0f972998917cc92874a042fb88a22425172ba1 [INFO] running `Command { std: "docker" "start" "-a" "99b7e4236fbb523acfa32a668d0f972998917cc92874a042fb88a22425172ba1", kill_on_drop: false }` [INFO] [stderr] Compiling rsdisk v0.0.12 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `rsdiskErrors` should have an upper camel case name [INFO] [stdout] --> src/errors.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum rsdiskErrors { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RsdiskErrors` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partition_id` [INFO] [stdout] --> src/partition_tables/gpt.rs:28:36 [INFO] [stdout] | [INFO] [stdout] 28 | fn delete_partition(&mut self, partition_id: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 28 | fn delete_partition(&mut self, _partition_id: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 28 - fn delete_partition(&mut self, partition_id: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] 28 + fn delete_partition(&mut self, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_sector` [INFO] [stdout] --> src/partition_tables/gpt.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | fn create_partition(&mut self, first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 31 | fn create_partition(&mut self, _first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 31 - fn create_partition(&mut self, first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] 31 + fn create_partition(&mut self, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size_in_sectors` [INFO] [stdout] --> src/partition_tables/gpt.rs:31:55 [INFO] [stdout] | [INFO] [stdout] 31 | fn create_partition(&mut self, first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 31 | fn create_partition(&mut self, first_sector: u64, _size_in_sectors: u64) -> Result { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 31 - fn create_partition(&mut self, first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] 31 + fn create_partition(&mut self, first_sector: u64, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/partition_tables/gpt.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | fn read(path: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `drive_path` [INFO] [stdout] --> src/partition_tables/gpt.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | fn write(&self, drive_path: &str) -> Result<(), rsdiskErrors> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_drive_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partition_id` [INFO] [stdout] --> src/partition_tables/gpt.rs:25:36 [INFO] [stdout] | [INFO] [stdout] 25 | fn resize_partition(&mut self, partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 25 | fn resize_partition(&mut self, _partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 25 - fn resize_partition(&mut self, partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] 25 + fn resize_partition(&mut self, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_size` [INFO] [stdout] --> src/partition_tables/gpt.rs:25:55 [INFO] [stdout] | [INFO] [stdout] 25 | fn resize_partition(&mut self, partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 25 | fn resize_partition(&mut self, partition_id: u64, _new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 25 - fn resize_partition(&mut self, partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] 25 + fn resize_partition(&mut self, partition_id: u64, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/partition_tables.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | Err(E) => Err(E) [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.69s [INFO] running `Command { std: "docker" "inspect" "99b7e4236fbb523acfa32a668d0f972998917cc92874a042fb88a22425172ba1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99b7e4236fbb523acfa32a668d0f972998917cc92874a042fb88a22425172ba1", kill_on_drop: false }` [INFO] [stdout] 99b7e4236fbb523acfa32a668d0f972998917cc92874a042fb88a22425172ba1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c90ebd72a337b7271276db479e44f8177fb478c815436602d640a2a91ddca99e [INFO] running `Command { std: "docker" "start" "-a" "c90ebd72a337b7271276db479e44f8177fb478c815436602d640a2a91ddca99e", kill_on_drop: false }` [INFO] [stdout] warning: type `rsdiskErrors` should have an upper camel case name [INFO] [stdout] --> src/errors.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum rsdiskErrors { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RsdiskErrors` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partition_id` [INFO] [stdout] --> src/partition_tables/gpt.rs:28:36 [INFO] [stdout] | [INFO] [stdout] 28 | fn delete_partition(&mut self, partition_id: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 28 | fn delete_partition(&mut self, _partition_id: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 28 - fn delete_partition(&mut self, partition_id: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] 28 + fn delete_partition(&mut self, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_sector` [INFO] [stdout] --> src/partition_tables/gpt.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | fn create_partition(&mut self, first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 31 | fn create_partition(&mut self, _first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 31 - fn create_partition(&mut self, first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] 31 + fn create_partition(&mut self, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size_in_sectors` [INFO] [stdout] --> src/partition_tables/gpt.rs:31:55 [INFO] [stdout] | [INFO] [stdout] 31 | fn create_partition(&mut self, first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 31 | fn create_partition(&mut self, first_sector: u64, _size_in_sectors: u64) -> Result { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 31 - fn create_partition(&mut self, first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] 31 + fn create_partition(&mut self, first_sector: u64, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/partition_tables/gpt.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | fn read(path: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `drive_path` [INFO] [stdout] --> src/partition_tables/gpt.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | fn write(&self, drive_path: &str) -> Result<(), rsdiskErrors> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_drive_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partition_id` [INFO] [stdout] --> src/partition_tables/gpt.rs:25:36 [INFO] [stdout] | [INFO] [stdout] 25 | fn resize_partition(&mut self, partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 25 | fn resize_partition(&mut self, _partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 25 - fn resize_partition(&mut self, partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] 25 + fn resize_partition(&mut self, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_size` [INFO] [stdout] --> src/partition_tables/gpt.rs:25:55 [INFO] [stdout] | [INFO] [stdout] 25 | fn resize_partition(&mut self, partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 25 | fn resize_partition(&mut self, partition_id: u64, _new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 25 - fn resize_partition(&mut self, partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] 25 + fn resize_partition(&mut self, partition_id: u64, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rsdisk v0.0.12 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/partition_tables.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | Err(E) => Err(E) [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/utils.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | mbr.create_partition(1024, 2048); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 43 | let _ = mbr.create_partition(1024, 2048); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/utils.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | mbr.write("tests/MBR_TEST"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 45 | let _ = mbr.write("tests/MBR_TEST"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `rsdiskErrors` should have an upper camel case name [INFO] [stdout] --> src/errors.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum rsdiskErrors { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RsdiskErrors` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_sector` [INFO] [stdout] --> src/partition_tables/gpt.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 31 | fn create_partition(&mut self, first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 31 | fn create_partition(&mut self, _first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 31 - fn create_partition(&mut self, first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] 31 + fn create_partition(&mut self, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size_in_sectors` [INFO] [stdout] --> src/partition_tables/gpt.rs:31:55 [INFO] [stdout] | [INFO] [stdout] 31 | fn create_partition(&mut self, first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 31 | fn create_partition(&mut self, first_sector: u64, _size_in_sectors: u64) -> Result { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 31 - fn create_partition(&mut self, first_sector: u64, size_in_sectors: u64) -> Result { [INFO] [stdout] 31 + fn create_partition(&mut self, first_sector: u64, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64) -> Result { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/partition_tables/gpt.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | fn read(path: &str) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `drive_path` [INFO] [stdout] --> src/partition_tables/gpt.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | fn write(&self, drive_path: &str) -> Result<(), rsdiskErrors> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_drive_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partition_id` [INFO] [stdout] --> src/partition_tables/gpt.rs:25:36 [INFO] [stdout] | [INFO] [stdout] 25 | fn resize_partition(&mut self, partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 25 | fn resize_partition(&mut self, _partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 25 - fn resize_partition(&mut self, partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] 25 + fn resize_partition(&mut self, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_size` [INFO] [stdout] --> src/partition_tables/gpt.rs:25:55 [INFO] [stdout] | [INFO] [stdout] 25 | fn resize_partition(&mut self, partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 25 | fn resize_partition(&mut self, partition_id: u64, _new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 25 - fn resize_partition(&mut self, partition_id: u64, new_size: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] 25 + fn resize_partition(&mut self, partition_id: u64, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partition_id` [INFO] [stdout] --> src/partition_tables/gpt.rs:28:36 [INFO] [stdout] | [INFO] [stdout] 28 | fn delete_partition(&mut self, partition_id: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 28 | fn delete_partition(&mut self, _partition_id: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `FIRST_PARTITION_ENTRY_OFFSET` [INFO] [stdout] | [INFO] [stdout] 28 - fn delete_partition(&mut self, partition_id: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] 28 + fn delete_partition(&mut self, partition_tables::mbr::FIRST_PARTITION_ENTRY_OFFSET: u64) -> Result<(), rsdiskErrors> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/partition_tables.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | Err(E) => Err(E) [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.78s [INFO] running `Command { std: "docker" "inspect" "c90ebd72a337b7271276db479e44f8177fb478c815436602d640a2a91ddca99e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c90ebd72a337b7271276db479e44f8177fb478c815436602d640a2a91ddca99e", kill_on_drop: false }` [INFO] [stdout] c90ebd72a337b7271276db479e44f8177fb478c815436602d640a2a91ddca99e