[INFO] cloning repository https://github.com/joxer/Oggetto [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/joxer/Oggetto" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoxer%2FOggetto", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoxer%2FOggetto'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 572fbcf18188728fb1efc6197f40fee2f98762f8 [INFO] testing joxer/Oggetto against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoxer%2FOggetto" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/joxer/Oggetto [INFO] finished tweaking git repo https://github.com/joxer/Oggetto [INFO] tweaked toml for git repo https://github.com/joxer/Oggetto written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/joxer/Oggetto on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/joxer/Oggetto already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded reed-solomon-erasure v4.0.2 [INFO] [stderr] Downloaded crc32c v0.4.0 [INFO] [stderr] Downloaded bincode v1.2.1 [INFO] [stderr] Downloaded hermit-abi v0.1.13 [INFO] [stderr] Downloaded smallvec v1.4.0 [INFO] [stderr] Downloaded serde_json v1.0.53 [INFO] [stderr] Downloaded serde v1.0.111 [INFO] [stderr] Downloaded syn v1.0.29 [INFO] [stderr] Downloaded serde_derive v1.0.111 [INFO] [stderr] Downloaded data-encoding v2.2.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.17 [INFO] [stderr] Downloaded quote v1.0.6 [INFO] [stderr] Downloaded clap v2.33.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aec9313bf93bace597b93ecb38512084ebedd15920de365834dbbc8f407cfeb8 [INFO] running `Command { std: "docker" "start" "-a" "aec9313bf93bace597b93ecb38512084ebedd15920de365834dbbc8f407cfeb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aec9313bf93bace597b93ecb38512084ebedd15920de365834dbbc8f407cfeb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aec9313bf93bace597b93ecb38512084ebedd15920de365834dbbc8f407cfeb8", kill_on_drop: false }` [INFO] [stdout] aec9313bf93bace597b93ecb38512084ebedd15920de365834dbbc8f407cfeb8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] f6ce79182722cd6f15dcafd7d72057938720192571c774c157d972993136eab0 [INFO] running `Command { std: "docker" "start" "-a" "f6ce79182722cd6f15dcafd7d72057938720192571c774c157d972993136eab0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling proc-macro2 v1.0.17 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.29 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling serde v1.0.111 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.8 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling unicode-width v0.1.7 [INFO] [stderr] Compiling crc32c v0.4.0 [INFO] [stderr] Compiling reed-solomon-erasure v4.0.2 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling sha1 v0.6.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling smallvec v1.4.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling clap v2.33.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling data-encoding v2.2.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling serde_derive v1.0.111 [INFO] [stderr] Compiling bincode v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.53 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling oggetto v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::data_encoding::HEXUPPER` [INFO] [stdout] --> src/chunk.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::data_encoding::HEXUPPER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::serde::ser::SerializeSeq` [INFO] [stdout] --> src/chunk.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::serde::ser::SerializeSeq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::serde::Serializer` [INFO] [stdout] --> src/chunk.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::serde::Serializer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/chunk.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/chunk.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/chunk.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/chunk.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SerializeSeq` and `Serializer` [INFO] [stdout] --> src/redundant_file.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | use serde::ser::{SerializeSeq, Serializer}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Layout`, `alloc`, and `dealloc` [INFO] [stdout] --> src/redundant_file.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | use std::alloc::{alloc, dealloc, Layout}; [INFO] [stdout] | ^^^^^ ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/redundant_file.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/redundant_file.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/volume_manager.rs:424:9 [INFO] [stdout] | [INFO] [stdout] 374 | / match self { [INFO] [stdout] 375 | | FileVolumeManager::MetaData { [INFO] [stdout] 376 | | path, [INFO] [stdout] 377 | | file, [INFO] [stdout] ... | [INFO] [stdout] 423 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 424 | Ok(0u64) [INFO] [stdout] | ^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/chunk.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/redundant_file.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let mut v = [0u8; BLOCK_SIZE]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/chunk.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/chunk.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | for i in 0..(PARITY + (BLOCKS - vecs.len())) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_chunks` [INFO] [stdout] --> src/chunk.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | n_chunks: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_chunks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let file = RedundantFile::rebuild(id, self, writer); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/volume.rs:110:34 [INFO] [stdout] | [INFO] [stdout] 110 | fn get_redundant_file(&self, id: UUID) -> Result, VolumeError> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/volume.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | fn get_chunk(&self, id: UUID) -> Result, VolumeError> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/volume.rs:120:25 [INFO] [stdout] | [INFO] [stdout] 120 | fn get_block(&self, id: UUID) -> Result, VolumeError> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:318:17 [INFO] [stdout] | [INFO] [stdout] 318 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:344:17 [INFO] [stdout] | [INFO] [stdout] 344 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:376:17 [INFO] [stdout] | [INFO] [stdout] 376 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume_manager.rs:377:17 [INFO] [stdout] | [INFO] [stdout] 377 | file, [INFO] [stdout] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:400:17 [INFO] [stdout] | [INFO] [stdout] 400 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume_manager.rs:401:17 [INFO] [stdout] | [INFO] [stdout] 401 | file, [INFO] [stdout] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:430:17 [INFO] [stdout] | [INFO] [stdout] 430 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_block` [INFO] [stdout] --> src/volume_manager.rs:432:17 [INFO] [stdout] | [INFO] [stdout] 432 | super_block, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_vector` [INFO] [stdout] --> src/volume_manager.rs:433:17 [INFO] [stdout] | [INFO] [stdout] 433 | file_vector, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `file_vector: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:450:17 [INFO] [stdout] | [INFO] [stdout] 450 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume_manager.rs:451:17 [INFO] [stdout] | [INFO] [stdout] 451 | file, [INFO] [stdout] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_block` [INFO] [stdout] --> src/volume_manager.rs:452:17 [INFO] [stdout] | [INFO] [stdout] 452 | super_block, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chunk_vector` [INFO] [stdout] --> src/volume_manager.rs:453:17 [INFO] [stdout] | [INFO] [stdout] 453 | chunk_vector, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `chunk_vector: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:467:17 [INFO] [stdout] | [INFO] [stdout] 467 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_block` [INFO] [stdout] --> src/volume_manager.rs:469:17 [INFO] [stdout] | [INFO] [stdout] 469 | super_block, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_vector` [INFO] [stdout] --> src/volume_manager.rs:470:17 [INFO] [stdout] | [INFO] [stdout] 470 | file_vector, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `file_vector: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:487:17 [INFO] [stdout] | [INFO] [stdout] 487 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume_manager.rs:488:17 [INFO] [stdout] | [INFO] [stdout] 488 | file, [INFO] [stdout] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_block` [INFO] [stdout] --> src/volume_manager.rs:489:17 [INFO] [stdout] | [INFO] [stdout] 489 | super_block, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chunk_vector` [INFO] [stdout] --> src/volume_manager.rs:490:17 [INFO] [stdout] | [INFO] [stdout] 490 | chunk_vector, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `chunk_vector: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bin_vec` is never used [INFO] [stdout] --> src/redundant_file.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl ChunkIndirection { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 42 | fn to_bin_vec(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Block` [INFO] [stdout] 9 | pub struct Block { [INFO] [stdout] | ----- `Block` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Block` [INFO] [stdout] 9 | pub struct Block { [INFO] [stdout] | ----- `Block` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/block.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | seq.serialize_element(o_chunk); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = seq.serialize_element(o_chunk); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/chunk.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Chunk` [INFO] [stdout] 21 | pub struct Chunk { [INFO] [stdout] | ----- `Chunk` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/chunk.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Chunk` [INFO] [stdout] 21 | pub struct Chunk { [INFO] [stdout] | ----- `Chunk` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/chunk.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | chunk.inner_rebuild(data_manager, writer); [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] 82 | let _ = chunk.inner_rebuild(data_manager, writer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/chunk.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | writer.write(&data[..]); [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] 113 | let _ = writer.write(&data[..]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/redundant_file.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Serialize, Deserialize, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_RedundantFile` [INFO] [stdout] 17 | pub struct RedundantFile { [INFO] [stdout] | ------------- `RedundantFile` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/redundant_file.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Serialize, Deserialize, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_RedundantFile` [INFO] [stdout] 17 | pub struct RedundantFile { [INFO] [stdout] | ------------- `RedundantFile` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/redundant_file.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Serialize, Deserialize, Copy, Clone, PartialEq, Eq, PartialOrd)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_ChunkIndirection` [INFO] [stdout] 29 | pub struct ChunkIndirection { [INFO] [stdout] | ---------------- `ChunkIndirection` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/redundant_file.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Serialize, Deserialize, Copy, Clone, PartialEq, Eq, PartialOrd)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ChunkIndirection` [INFO] [stdout] 29 | pub struct ChunkIndirection { [INFO] [stdout] | ---------------- `ChunkIndirection` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/volume.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | writer.flush(); [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] 104 | let _ = writer.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/volume.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | self.restruct(id, &mut file); [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] 135 | let _ = self.restruct(id, &mut file); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `file_vector_size` should have an upper case name [INFO] [stdout] --> src/volume_manager.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const file_vector_size: usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FILE_VECTOR_SIZE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.63s [INFO] running `Command { std: "docker" "inspect" "f6ce79182722cd6f15dcafd7d72057938720192571c774c157d972993136eab0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6ce79182722cd6f15dcafd7d72057938720192571c774c157d972993136eab0", kill_on_drop: false }` [INFO] [stdout] f6ce79182722cd6f15dcafd7d72057938720192571c774c157d972993136eab0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] cc6981a89cb3b87c082da1135619d553fa453f3444e3442772472eff23d7db49 [INFO] running `Command { std: "docker" "start" "-a" "cc6981a89cb3b87c082da1135619d553fa453f3444e3442772472eff23d7db49", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `crate::data_encoding::HEXUPPER` [INFO] [stdout] --> src/chunk.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::data_encoding::HEXUPPER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::serde::ser::SerializeSeq` [INFO] [stdout] --> src/chunk.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::serde::ser::SerializeSeq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::serde::Serializer` [INFO] [stdout] --> src/chunk.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::serde::Serializer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/chunk.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/chunk.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/chunk.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/chunk.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SerializeSeq` and `Serializer` [INFO] [stdout] --> src/redundant_file.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | use serde::ser::{SerializeSeq, Serializer}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Layout`, `alloc`, and `dealloc` [INFO] [stdout] --> src/redundant_file.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | use std::alloc::{alloc, dealloc, Layout}; [INFO] [stdout] | ^^^^^ ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/redundant_file.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/redundant_file.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/volume_manager.rs:424:9 [INFO] [stdout] | [INFO] [stdout] 374 | / match self { [INFO] [stdout] 375 | | FileVolumeManager::MetaData { [INFO] [stdout] 376 | | path, [INFO] [stdout] 377 | | file, [INFO] [stdout] ... | [INFO] [stdout] 423 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 424 | Ok(0u64) [INFO] [stdout] | ^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/chunk.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/redundant_file.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let mut v = [0u8; BLOCK_SIZE]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/chunk.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/chunk.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | for i in 0..(PARITY + (BLOCKS - vecs.len())) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_chunks` [INFO] [stdout] --> src/chunk.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | n_chunks: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_chunks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let file = RedundantFile::rebuild(id, self, writer); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/volume.rs:110:34 [INFO] [stdout] | [INFO] [stdout] 110 | fn get_redundant_file(&self, id: UUID) -> Result, VolumeError> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/volume.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | fn get_chunk(&self, id: UUID) -> Result, VolumeError> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/volume.rs:120:25 [INFO] [stdout] | [INFO] [stdout] 120 | fn get_block(&self, id: UUID) -> Result, VolumeError> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:318:17 [INFO] [stdout] | [INFO] [stdout] 318 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:344:17 [INFO] [stdout] | [INFO] [stdout] 344 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:376:17 [INFO] [stdout] | [INFO] [stdout] 376 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume_manager.rs:377:17 [INFO] [stdout] | [INFO] [stdout] 377 | file, [INFO] [stdout] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:400:17 [INFO] [stdout] | [INFO] [stdout] 400 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume_manager.rs:401:17 [INFO] [stdout] | [INFO] [stdout] 401 | file, [INFO] [stdout] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:430:17 [INFO] [stdout] | [INFO] [stdout] 430 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_block` [INFO] [stdout] --> src/volume_manager.rs:432:17 [INFO] [stdout] | [INFO] [stdout] 432 | super_block, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_vector` [INFO] [stdout] --> src/volume_manager.rs:433:17 [INFO] [stdout] | [INFO] [stdout] 433 | file_vector, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `file_vector: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:450:17 [INFO] [stdout] | [INFO] [stdout] 450 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume_manager.rs:451:17 [INFO] [stdout] | [INFO] [stdout] 451 | file, [INFO] [stdout] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_block` [INFO] [stdout] --> src/volume_manager.rs:452:17 [INFO] [stdout] | [INFO] [stdout] 452 | super_block, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chunk_vector` [INFO] [stdout] --> src/volume_manager.rs:453:17 [INFO] [stdout] | [INFO] [stdout] 453 | chunk_vector, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `chunk_vector: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:467:17 [INFO] [stdout] | [INFO] [stdout] 467 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_block` [INFO] [stdout] --> src/volume_manager.rs:469:17 [INFO] [stdout] | [INFO] [stdout] 469 | super_block, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_vector` [INFO] [stdout] --> src/volume_manager.rs:470:17 [INFO] [stdout] | [INFO] [stdout] 470 | file_vector, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `file_vector: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:487:17 [INFO] [stdout] | [INFO] [stdout] 487 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume_manager.rs:488:17 [INFO] [stdout] | [INFO] [stdout] 488 | file, [INFO] [stdout] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_block` [INFO] [stdout] --> src/volume_manager.rs:489:17 [INFO] [stdout] | [INFO] [stdout] 489 | super_block, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chunk_vector` [INFO] [stdout] --> src/volume_manager.rs:490:17 [INFO] [stdout] | [INFO] [stdout] 490 | chunk_vector, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `chunk_vector: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bin_vec` is never used [INFO] [stdout] --> src/redundant_file.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl ChunkIndirection { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 42 | fn to_bin_vec(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Block` [INFO] [stdout] 9 | pub struct Block { [INFO] [stdout] | ----- `Block` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling oggetto v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Block` [INFO] [stdout] 9 | pub struct Block { [INFO] [stdout] | ----- `Block` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/block.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | seq.serialize_element(o_chunk); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = seq.serialize_element(o_chunk); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/chunk.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Chunk` [INFO] [stdout] 21 | pub struct Chunk { [INFO] [stdout] | ----- `Chunk` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/chunk.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Chunk` [INFO] [stdout] 21 | pub struct Chunk { [INFO] [stdout] | ----- `Chunk` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/chunk.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | chunk.inner_rebuild(data_manager, writer); [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] 82 | let _ = chunk.inner_rebuild(data_manager, writer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/chunk.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | writer.write(&data[..]); [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] 113 | let _ = writer.write(&data[..]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/redundant_file.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Serialize, Deserialize, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_RedundantFile` [INFO] [stdout] 17 | pub struct RedundantFile { [INFO] [stdout] | ------------- `RedundantFile` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/redundant_file.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Serialize, Deserialize, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_RedundantFile` [INFO] [stdout] 17 | pub struct RedundantFile { [INFO] [stdout] | ------------- `RedundantFile` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/redundant_file.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Serialize, Deserialize, Copy, Clone, PartialEq, Eq, PartialOrd)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_ChunkIndirection` [INFO] [stdout] 29 | pub struct ChunkIndirection { [INFO] [stdout] | ---------------- `ChunkIndirection` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/redundant_file.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Serialize, Deserialize, Copy, Clone, PartialEq, Eq, PartialOrd)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ChunkIndirection` [INFO] [stdout] 29 | pub struct ChunkIndirection { [INFO] [stdout] | ---------------- `ChunkIndirection` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/volume.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | writer.flush(); [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] 104 | let _ = writer.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/volume.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | self.restruct(id, &mut file); [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] 135 | let _ = self.restruct(id, &mut file); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `file_vector_size` should have an upper case name [INFO] [stdout] --> src/volume_manager.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const file_vector_size: usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FILE_VECTOR_SIZE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::data_encoding::HEXUPPER` [INFO] [stdout] --> src/chunk.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::data_encoding::HEXUPPER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::serde::ser::SerializeSeq` [INFO] [stdout] --> src/chunk.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::serde::ser::SerializeSeq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::serde::Serializer` [INFO] [stdout] --> src/chunk.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::serde::Serializer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/chunk.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/chunk.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/chunk.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/chunk.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SerializeSeq` and `Serializer` [INFO] [stdout] --> src/redundant_file.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | use serde::ser::{SerializeSeq, Serializer}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Layout`, `alloc`, and `dealloc` [INFO] [stdout] --> src/redundant_file.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | use std::alloc::{alloc, dealloc, Layout}; [INFO] [stdout] | ^^^^^ ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/redundant_file.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/redundant_file.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/volume_manager.rs:424:9 [INFO] [stdout] | [INFO] [stdout] 374 | / match self { [INFO] [stdout] 375 | | FileVolumeManager::MetaData { [INFO] [stdout] 376 | | path, [INFO] [stdout] 377 | | file, [INFO] [stdout] ... | [INFO] [stdout] 423 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 424 | Ok(0u64) [INFO] [stdout] | ^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/chunk.rs:15:21 [INFO] [stdout] | [INFO] [stdout] 15 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/redundant_file.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/block.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let mut v = [0u8; BLOCK_SIZE]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/chunk.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/chunk.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 190 | for i in 0..(PARITY + (BLOCKS - vecs.len())) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_chunks` [INFO] [stdout] --> src/chunk.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | n_chunks: usize, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_chunks` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let file = RedundantFile::rebuild(id, self, writer); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/volume.rs:110:34 [INFO] [stdout] | [INFO] [stdout] 110 | fn get_redundant_file(&self, id: UUID) -> Result, VolumeError> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/volume.rs:115:25 [INFO] [stdout] | [INFO] [stdout] 115 | fn get_chunk(&self, id: UUID) -> Result, VolumeError> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/volume.rs:120:25 [INFO] [stdout] | [INFO] [stdout] 120 | fn get_block(&self, id: UUID) -> Result, VolumeError> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:318:17 [INFO] [stdout] | [INFO] [stdout] 318 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:344:17 [INFO] [stdout] | [INFO] [stdout] 344 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:376:17 [INFO] [stdout] | [INFO] [stdout] 376 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume_manager.rs:377:17 [INFO] [stdout] | [INFO] [stdout] 377 | file, [INFO] [stdout] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:400:17 [INFO] [stdout] | [INFO] [stdout] 400 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume_manager.rs:401:17 [INFO] [stdout] | [INFO] [stdout] 401 | file, [INFO] [stdout] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:430:17 [INFO] [stdout] | [INFO] [stdout] 430 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_block` [INFO] [stdout] --> src/volume_manager.rs:432:17 [INFO] [stdout] | [INFO] [stdout] 432 | super_block, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_vector` [INFO] [stdout] --> src/volume_manager.rs:433:17 [INFO] [stdout] | [INFO] [stdout] 433 | file_vector, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `file_vector: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:450:17 [INFO] [stdout] | [INFO] [stdout] 450 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume_manager.rs:451:17 [INFO] [stdout] | [INFO] [stdout] 451 | file, [INFO] [stdout] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_block` [INFO] [stdout] --> src/volume_manager.rs:452:17 [INFO] [stdout] | [INFO] [stdout] 452 | super_block, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chunk_vector` [INFO] [stdout] --> src/volume_manager.rs:453:17 [INFO] [stdout] | [INFO] [stdout] 453 | chunk_vector, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `chunk_vector: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:467:17 [INFO] [stdout] | [INFO] [stdout] 467 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_block` [INFO] [stdout] --> src/volume_manager.rs:469:17 [INFO] [stdout] | [INFO] [stdout] 469 | super_block, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_vector` [INFO] [stdout] --> src/volume_manager.rs:470:17 [INFO] [stdout] | [INFO] [stdout] 470 | file_vector, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `file_vector: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/volume_manager.rs:487:17 [INFO] [stdout] | [INFO] [stdout] 487 | path, [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/volume_manager.rs:488:17 [INFO] [stdout] | [INFO] [stdout] 488 | file, [INFO] [stdout] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_block` [INFO] [stdout] --> src/volume_manager.rs:489:17 [INFO] [stdout] | [INFO] [stdout] 489 | super_block, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chunk_vector` [INFO] [stdout] --> src/volume_manager.rs:490:17 [INFO] [stdout] | [INFO] [stdout] 490 | chunk_vector, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `chunk_vector: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bin_vec` is never used [INFO] [stdout] --> src/redundant_file.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl ChunkIndirection { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 42 | fn to_bin_vec(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Block` [INFO] [stdout] 9 | pub struct Block { [INFO] [stdout] | ----- `Block` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/block.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Block` [INFO] [stdout] 9 | pub struct Block { [INFO] [stdout] | ----- `Block` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/block.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | seq.serialize_element(o_chunk); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = seq.serialize_element(o_chunk); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/chunk.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Chunk` [INFO] [stdout] 21 | pub struct Chunk { [INFO] [stdout] | ----- `Chunk` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/chunk.rs:20:21 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Chunk` [INFO] [stdout] 21 | pub struct Chunk { [INFO] [stdout] | ----- `Chunk` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/chunk.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | chunk.inner_rebuild(data_manager, writer); [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] 82 | let _ = chunk.inner_rebuild(data_manager, writer); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/chunk.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | writer.write(&data[..]); [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] 113 | let _ = writer.write(&data[..]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/redundant_file.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Serialize, Deserialize, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_RedundantFile` [INFO] [stdout] 17 | pub struct RedundantFile { [INFO] [stdout] | ------------- `RedundantFile` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/redundant_file.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | #[derive(Serialize, Deserialize, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_RedundantFile` [INFO] [stdout] 17 | pub struct RedundantFile { [INFO] [stdout] | ------------- `RedundantFile` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/redundant_file.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Serialize, Deserialize, Copy, Clone, PartialEq, Eq, PartialOrd)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_ChunkIndirection` [INFO] [stdout] 29 | pub struct ChunkIndirection { [INFO] [stdout] | ---------------- `ChunkIndirection` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/redundant_file.rs:28:21 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Serialize, Deserialize, Copy, Clone, PartialEq, Eq, PartialOrd)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ChunkIndirection` [INFO] [stdout] 29 | pub struct ChunkIndirection { [INFO] [stdout] | ---------------- `ChunkIndirection` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/volume.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | writer.flush(); [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] 104 | let _ = writer.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/volume.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | self.restruct(id, &mut file); [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] 135 | let _ = self.restruct(id, &mut file); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `file_vector_size` should have an upper case name [INFO] [stdout] --> src/volume_manager.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const file_vector_size: usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FILE_VECTOR_SIZE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.70s [INFO] running `Command { std: "docker" "inspect" "cc6981a89cb3b87c082da1135619d553fa453f3444e3442772472eff23d7db49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc6981a89cb3b87c082da1135619d553fa453f3444e3442772472eff23d7db49", kill_on_drop: false }` [INFO] [stdout] cc6981a89cb3b87c082da1135619d553fa453f3444e3442772472eff23d7db49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 7286158a51e11c054fe4e50f49170233b325fa348fd706263639a5d33f6eaaa7 [INFO] running `Command { std: "docker" "start" "-a" "7286158a51e11c054fe4e50f49170233b325fa348fd706263639a5d33f6eaaa7", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `crate::data_encoding::HEXUPPER` [INFO] [stderr] --> src/chunk.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::data_encoding::HEXUPPER; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::serde::ser::SerializeSeq` [INFO] [stderr] --> src/chunk.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::serde::ser::SerializeSeq; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::serde::Serializer` [INFO] [stderr] --> src/chunk.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::serde::Serializer; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fmt::Debug` [INFO] [stderr] --> src/chunk.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use std::fmt::Debug; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fs::File` [INFO] [stderr] --> src/chunk.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use std::fs::File; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Read` [INFO] [stderr] --> src/chunk.rs:15:15 [INFO] [stderr] | [INFO] [stderr] 15 | use std::io::{Read, Write}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::path::PathBuf` [INFO] [stderr] --> src/chunk.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use std::path::PathBuf; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `SerializeSeq` and `Serializer` [INFO] [stderr] --> src/redundant_file.rs:10:18 [INFO] [stderr] | [INFO] [stderr] 10 | use serde::ser::{SerializeSeq, Serializer}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Layout`, `alloc`, and `dealloc` [INFO] [stderr] --> src/redundant_file.rs:11:18 [INFO] [stderr] | [INFO] [stderr] 11 | use std::alloc::{alloc, dealloc, Layout}; [INFO] [stderr] | ^^^^^ ^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fs::File` [INFO] [stderr] --> src/redundant_file.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use std::fs::File; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::path::Path` [INFO] [stderr] --> src/redundant_file.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use std::path::Path; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/volume_manager.rs:424:9 [INFO] [stderr] | [INFO] [stderr] 374 | / match self { [INFO] [stderr] 375 | | FileVolumeManager::MetaData { [INFO] [stderr] 376 | | path, [INFO] [stderr] 377 | | file, [INFO] [stderr] ... | [INFO] [stderr] 423 | | } [INFO] [stderr] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stderr] 424 | Ok(0u64) [INFO] [stderr] | ^^^^^^^^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Write` [INFO] [stderr] --> src/chunk.rs:15:21 [INFO] [stderr] | [INFO] [stderr] 15 | use std::io::{Read, Write}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Read` [INFO] [stderr] --> src/redundant_file.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use std::io::Read; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/block.rs:85:13 [INFO] [stderr] | [INFO] [stderr] 85 | let mut v = [0u8; BLOCK_SIZE]; [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `err` [INFO] [stderr] --> src/chunk.rs:96:21 [INFO] [stderr] | [INFO] [stderr] 96 | Err(err) => { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/chunk.rs:190:13 [INFO] [stderr] | [INFO] [stderr] 190 | for i in 0..(PARITY + (BLOCKS - vecs.len())) { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n_chunks` [INFO] [stderr] --> src/chunk.rs:172:9 [INFO] [stderr] | [INFO] [stderr] 172 | n_chunks: usize, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_chunks` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file` [INFO] [stderr] --> src/volume.rs:103:13 [INFO] [stderr] | [INFO] [stderr] 103 | let file = RedundantFile::rebuild(id, self, writer); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/volume.rs:110:34 [INFO] [stderr] | [INFO] [stderr] 110 | fn get_redundant_file(&self, id: UUID) -> Result, VolumeError> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/volume.rs:115:25 [INFO] [stderr] | [INFO] [stderr] 115 | fn get_chunk(&self, id: UUID) -> Result, VolumeError> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/volume.rs:120:25 [INFO] [stderr] | [INFO] [stderr] 120 | fn get_block(&self, id: UUID) -> Result, VolumeError> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/volume_manager.rs:318:17 [INFO] [stderr] | [INFO] [stderr] 318 | path, [INFO] [stderr] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/volume_manager.rs:344:17 [INFO] [stderr] | [INFO] [stderr] 344 | path, [INFO] [stderr] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/volume_manager.rs:376:17 [INFO] [stderr] | [INFO] [stderr] 376 | path, [INFO] [stderr] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file` [INFO] [stderr] --> src/volume_manager.rs:377:17 [INFO] [stderr] | [INFO] [stderr] 377 | file, [INFO] [stderr] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/volume_manager.rs:400:17 [INFO] [stderr] | [INFO] [stderr] 400 | path, [INFO] [stderr] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file` [INFO] [stderr] --> src/volume_manager.rs:401:17 [INFO] [stderr] | [INFO] [stderr] 401 | file, [INFO] [stderr] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/volume_manager.rs:430:17 [INFO] [stderr] | [INFO] [stderr] 430 | path, [INFO] [stderr] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `super_block` [INFO] [stderr] --> src/volume_manager.rs:432:17 [INFO] [stderr] | [INFO] [stderr] 432 | super_block, [INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file_vector` [INFO] [stderr] --> src/volume_manager.rs:433:17 [INFO] [stderr] | [INFO] [stderr] 433 | file_vector, [INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `file_vector: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/volume_manager.rs:450:17 [INFO] [stderr] | [INFO] [stderr] 450 | path, [INFO] [stderr] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file` [INFO] [stderr] --> src/volume_manager.rs:451:17 [INFO] [stderr] | [INFO] [stderr] 451 | file, [INFO] [stderr] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `super_block` [INFO] [stderr] --> src/volume_manager.rs:452:17 [INFO] [stderr] | [INFO] [stderr] 452 | super_block, [INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `chunk_vector` [INFO] [stderr] --> src/volume_manager.rs:453:17 [INFO] [stderr] | [INFO] [stderr] 453 | chunk_vector, [INFO] [stderr] | ^^^^^^^^^^^^ help: try ignoring the field: `chunk_vector: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/volume_manager.rs:467:17 [INFO] [stderr] | [INFO] [stderr] 467 | path, [INFO] [stderr] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `super_block` [INFO] [stderr] --> src/volume_manager.rs:469:17 [INFO] [stderr] | [INFO] [stderr] 469 | super_block, [INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file_vector` [INFO] [stderr] --> src/volume_manager.rs:470:17 [INFO] [stderr] | [INFO] [stderr] 470 | file_vector, [INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `file_vector: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/volume_manager.rs:487:17 [INFO] [stderr] | [INFO] [stderr] 487 | path, [INFO] [stderr] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file` [INFO] [stderr] --> src/volume_manager.rs:488:17 [INFO] [stderr] | [INFO] [stderr] 488 | file, [INFO] [stderr] | ^^^^ help: try ignoring the field: `file: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `super_block` [INFO] [stderr] --> src/volume_manager.rs:489:17 [INFO] [stderr] | [INFO] [stderr] 489 | super_block, [INFO] [stderr] | ^^^^^^^^^^^ help: try ignoring the field: `super_block: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `chunk_vector` [INFO] [stderr] --> src/volume_manager.rs:490:17 [INFO] [stderr] | [INFO] [stderr] 490 | chunk_vector, [INFO] [stderr] | ^^^^^^^^^^^^ help: try ignoring the field: `chunk_vector: _` [INFO] [stderr] [INFO] [stderr] warning: method `to_bin_vec` is never used [INFO] [stderr] --> src/redundant_file.rs:42:8 [INFO] [stderr] | [INFO] [stderr] 41 | impl ChunkIndirection { [INFO] [stderr] | --------------------- method in this implementation [INFO] [stderr] 42 | fn to_bin_vec(self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/block.rs:8:10 [INFO] [stderr] | [INFO] [stderr] 8 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Block` [INFO] [stderr] 9 | pub struct Block { [INFO] [stderr] | ----- `Block` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/block.rs:8:21 [INFO] [stderr] | [INFO] [stderr] 8 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Block` [INFO] [stderr] 9 | pub struct Block { [INFO] [stderr] | ----- `Block` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/block.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 40 | seq.serialize_element(o_chunk); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 40 | let _ = seq.serialize_element(o_chunk); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/chunk.rs:20:10 [INFO] [stderr] | [INFO] [stderr] 20 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Chunk` [INFO] [stderr] 21 | pub struct Chunk { [INFO] [stderr] | ----- `Chunk` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/chunk.rs:20:21 [INFO] [stderr] | [INFO] [stderr] 20 | #[derive(Serialize, Deserialize, Copy, Clone)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Chunk` [INFO] [stderr] 21 | pub struct Chunk { [INFO] [stderr] | ----- `Chunk` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/chunk.rs:82:9 [INFO] [stderr] | [INFO] [stderr] 82 | chunk.inner_rebuild(data_manager, writer); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 82 | let _ = chunk.inner_rebuild(data_manager, writer); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/chunk.rs:113:9 [INFO] [stderr] | [INFO] [stderr] 113 | writer.write(&data[..]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 113 | let _ = writer.write(&data[..]); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/redundant_file.rs:16:10 [INFO] [stderr] | [INFO] [stderr] 16 | #[derive(Serialize, Deserialize, Clone)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_RedundantFile` [INFO] [stderr] 17 | pub struct RedundantFile { [INFO] [stderr] | ------------- `RedundantFile` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/redundant_file.rs:16:21 [INFO] [stderr] | [INFO] [stderr] 16 | #[derive(Serialize, Deserialize, Clone)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_RedundantFile` [INFO] [stderr] 17 | pub struct RedundantFile { [INFO] [stderr] | ------------- `RedundantFile` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/redundant_file.rs:28:10 [INFO] [stderr] | [INFO] [stderr] 28 | #[derive(Serialize, Deserialize, Copy, Clone, PartialEq, Eq, PartialOrd)] [INFO] [stderr] | ^-------- [INFO] [stderr] | | [INFO] [stderr] | `Serialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_ChunkIndirection` [INFO] [stderr] 29 | pub struct ChunkIndirection { [INFO] [stderr] | ---------------- `ChunkIndirection` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/redundant_file.rs:28:21 [INFO] [stderr] | [INFO] [stderr] 28 | #[derive(Serialize, Deserialize, Copy, Clone, PartialEq, Eq, PartialOrd)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ChunkIndirection` [INFO] [stderr] 29 | pub struct ChunkIndirection { [INFO] [stderr] | ---------------- `ChunkIndirection` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/volume.rs:104:9 [INFO] [stderr] | [INFO] [stderr] 104 | writer.flush(); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 104 | let _ = writer.flush(); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/volume.rs:135:9 [INFO] [stderr] | [INFO] [stderr] 135 | self.restruct(id, &mut file); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 135 | let _ = self.restruct(id, &mut file); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: constant `file_vector_size` should have an upper case name [INFO] [stderr] --> src/volume_manager.rs:9:7 [INFO] [stderr] | [INFO] [stderr] 9 | const file_vector_size: usize = 16; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `FILE_VECTOR_SIZE` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `oggetto` (lib) generated 57 warnings (run `cargo fix --lib -p oggetto` to apply 12 suggestions) [INFO] [stderr] warning: `oggetto` (lib test) generated 57 warnings (57 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/oggetto-b70734d68e42fb4e) [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/x86_64-unknown-linux-musl/debug/deps/oggetto-80934b4cfcc66a0f) [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] running `Command { std: "docker" "inspect" "7286158a51e11c054fe4e50f49170233b325fa348fd706263639a5d33f6eaaa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7286158a51e11c054fe4e50f49170233b325fa348fd706263639a5d33f6eaaa7", kill_on_drop: false }` [INFO] [stdout] 7286158a51e11c054fe4e50f49170233b325fa348fd706263639a5d33f6eaaa7