[INFO] fetching crate bitcoinleveldb-log 0.1.12-alpha.0... [INFO] checking bitcoinleveldb-log-0.1.12-alpha.0 against master#53709aedba198874ee50769f19f1e9ab00798bb5 for pr-108221 [INFO] extracting crate bitcoinleveldb-log 0.1.12-alpha.0 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate bitcoinleveldb-log 0.1.12-alpha.0 on toolchain 53709aedba198874ee50769f19f1e9ab00798bb5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53709aedba198874ee50769f19f1e9ab00798bb5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate bitcoinleveldb-log 0.1.12-alpha.0 [INFO] finished tweaking crates.io crate bitcoinleveldb-log 0.1.12-alpha.0 [INFO] tweaked toml for crates.io crate bitcoinleveldb-log 0.1.12-alpha.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly" "/workspace/cargo-home/bin/cargo" "+53709aedba198874ee50769f19f1e9ab00798bb5" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53709aedba198874ee50769f19f1e9ab00798bb5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:542af8c9c691278ea8427c9f55ce1005b509eeebcbbcbc893145cd6832507671" "/opt/rustwide/cargo-home/bin/cargo" "+53709aedba198874ee50769f19f1e9ab00798bb5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b8c55219feb30a630a8895d2b16a6fcdca32ba71d8aa86b611c110f73e35dbfa [INFO] running `Command { std: "docker" "start" "-a" "b8c55219feb30a630a8895d2b16a6fcdca32ba71d8aa86b611c110f73e35dbfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b8c55219feb30a630a8895d2b16a6fcdca32ba71d8aa86b611c110f73e35dbfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8c55219feb30a630a8895d2b16a6fcdca32ba71d8aa86b611c110f73e35dbfa", kill_on_drop: false }` [INFO] [stdout] b8c55219feb30a630a8895d2b16a6fcdca32ba71d8aa86b611c110f73e35dbfa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:542af8c9c691278ea8427c9f55ce1005b509eeebcbbcbc893145cd6832507671" "/opt/rustwide/cargo-home/bin/cargo" "+53709aedba198874ee50769f19f1e9ab00798bb5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e5782fa46157b4933ddf0ae2116fb69aff9646abbeda97980f4c98f172197630 [INFO] running `Command { std: "docker" "start" "-a" "e5782fa46157b4933ddf0ae2116fb69aff9646abbeda97980f4c98f172197630", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling termcolor v1.2.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling gimli v0.27.2 [INFO] [stderr] Compiling backtrace v0.3.67 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling serde_json v1.0.93 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling term v0.4.6 [INFO] [stderr] Compiling cpp_common v0.5.7 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling term-painter v0.2.4 [INFO] [stderr] Compiling pathdiff v0.1.0 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling object v0.30.3 [INFO] [stderr] Compiling dunce v1.0.3 [INFO] [stderr] Compiling shell-words v0.1.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling semver v1.0.16 [INFO] [stderr] Compiling sqlite3-src v0.2.12 [INFO] [stderr] Compiling os_str_bytes v6.4.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling openssl-sys v0.9.80 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling textwrap v0.16.0 [INFO] [stderr] Compiling bindgen v0.60.1 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling clang-sys v1.6.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling which v4.4.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling shlex v1.1.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling crossbeam-queue v0.3.8 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling cpp_macros v0.5.7 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling qt_macros v0.1.1 [INFO] [stderr] Compiling atomic v0.5.1 [INFO] [stderr] Compiling libc-stdhandle v0.1.0 [INFO] [stderr] Compiling priority-queue v1.3.1 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling addr2line v0.19.0 [INFO] [stderr] Compiling modular-bitfield-impl v0.11.2 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling cpp_build v0.5.7 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling clap v3.2.23 [INFO] [stderr] Compiling phf_macros v0.10.0 [INFO] [stderr] Compiling qmetaobject_impl v0.2.7 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling cpp v0.5.7 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling sqlite3-sys v0.12.0 [INFO] [stderr] Compiling cpp_core v0.6.0 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-complex v0.4.3 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling raw-cpuid v10.6.1 [INFO] [stderr] Compiling delegate v0.7.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling try-catch v0.2.2 [INFO] [stderr] Compiling poison v0.1.0 [INFO] [stderr] Compiling time-core v0.1.0 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling shared-mutex v0.3.1 [INFO] [stderr] Compiling modular-bitfield v0.11.2 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling crossbeam v0.8.2 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling qttypes v0.2.8 [INFO] [stderr] Compiling qmetaobject v0.2.7 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling sqlite3 v0.24.0 [INFO] [stderr] Compiling sqlite v0.25.3 [INFO] [stderr] Compiling quanta v0.9.3 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling errno v0.2.8 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling pnet_sys v0.31.0 [INFO] [stderr] Compiling multiset v0.0.5 [INFO] [stderr] Compiling float-ord v0.3.2 [INFO] [stderr] Compiling const-default v1.0.0 [INFO] [stderr] Compiling integer-encoding v3.0.4 [INFO] [stderr] Compiling time-point v0.1.1 [INFO] [stderr] Compiling atomic_float v0.1.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling bitset v0.1.2 [INFO] [stderr] Compiling comparator v0.3.0 [INFO] [stderr] Compiling atomic-take v1.1.0 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling time v0.3.19 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling serde-big-array v0.4.1 [INFO] [stderr] Compiling ritual_common v0.4.0 [INFO] [stderr] Compiling qt_ritual_common v0.4.0 [INFO] [stderr] Compiling ritual_build v0.4.0 [INFO] [stderr] Compiling qt_ritual_build v0.5.0 [INFO] [stderr] Compiling libevent-sys v0.2.5 [INFO] [stderr] Compiling qt_core v0.5.0 [INFO] [stderr] Compiling qt_gui v0.5.0 [INFO] [stderr] Checking libevent v0.1.0 [INFO] [stderr] Checking bitcoin-imports v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-cfg v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoin-derive v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-slice v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-status v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-util v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-comparator v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-filter v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-key v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-rand v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-file v0.1.12-alpha.0 [INFO] [stderr] Compiling bitcoinleveldb-log v0.1.12-alpha.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bitcoin_derive::*` [INFO] [stdout] --> src/imports.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) use bitcoin_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/reader.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | / /** [INFO] [stdout] 22 | | | Extend record types with the following [INFO] [stdout] 23 | | | special values [INFO] [stdout] 24 | | | [INFO] [stdout] 25 | | */ [INFO] [stdout] | |____^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bitcoin_derive::*` [INFO] [stdout] --> src/imports.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) use bitcoin_derive::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/reader.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | / /** [INFO] [stdout] 22 | | | Extend record types with the following [INFO] [stdout] 23 | | | special values [INFO] [stdout] 24 | | | [INFO] [stdout] 25 | | */ [INFO] [stdout] | |____^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_string` [INFO] [stdout] --> src/test.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | partial_string: &String, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_string` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/test.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | n: usize) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/test.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | fn number_string(n: i32) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/test.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | i: i32, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rnd` [INFO] [stdout] --> src/test.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | rnd: *mut Random) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/test.rs:112:30 [INFO] [stdout] | [INFO] [stdout] 112 | fn append(&mut self, slice: &Slice) -> crate::Status { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/test.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | n: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/test.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 159 | result: *mut Slice, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scratch` [INFO] [stdout] --> src/test.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | scratch: *mut u8) -> crate::Status { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scratch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/test.rs:185:28 [INFO] [stdout] | [INFO] [stdout] 185 | fn skip(&mut self, n: u64) -> crate::Status { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/test.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | bytes: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> src/test.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | status: &Status) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/test.rs:313:29 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn write(&mut self, msg: &String) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/test.rs:349:9 [INFO] [stdout] | [INFO] [stdout] 349 | offset: i32, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/test.rs:350:9 [INFO] [stdout] | [INFO] [stdout] 350 | delta: i32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/test.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | offset: i32, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_byte` [INFO] [stdout] --> src/test.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | new_byte: u8) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/test.rs:368:35 [INFO] [stdout] | [INFO] [stdout] 368 | pub fn shrink_size(&mut self, bytes: i32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header_offset` [INFO] [stdout] --> src/test.rs:377:9 [INFO] [stdout] | [INFO] [stdout] 377 | header_offset: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_header_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/test.rs:378:9 [INFO] [stdout] | [INFO] [stdout] 378 | len: i32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/test.rs:418:31 [INFO] [stdout] | [INFO] [stdout] 418 | pub fn match_error(&self, msg: &String) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_offset` [INFO] [stdout] --> src/test.rs:442:40 [INFO] [stdout] | [INFO] [stdout] 442 | pub fn start_reading_at(&mut self, initial_offset: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset_past_end` [INFO] [stdout] --> src/test.rs:451:64 [INFO] [stdout] | [INFO] [stdout] 451 | pub fn check_offset_past_end_returns_no_records(&mut self, offset_past_end: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset_past_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_offset` [INFO] [stdout] --> src/test.rs:468:9 [INFO] [stdout] | [INFO] [stdout] 468 | initial_offset: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected_record_offset` [INFO] [stdout] --> src/test.rs:469:9 [INFO] [stdout] | [INFO] [stdout] 469 | expected_record_offset: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected_record_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `argc` [INFO] [stdout] --> src/test.rs:987:9 [INFO] [stdout] | [INFO] [stdout] 987 | argc: i32, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_argc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `argv` [INFO] [stdout] --> src/test.rs:988:9 [INFO] [stdout] | [INFO] [stdout] 988 | argv: *mut *mut u8) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_argv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `padding` [INFO] [stdout] --> src/logging_test.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let padding: &str = padding.unwrap_or(""); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_padding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/logging_test.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | number: u64, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input_string` [INFO] [stdout] --> src/logging_test.rs:108:41 [INFO] [stdout] | [INFO] [stdout] 108 | fn consume_decimal_number_overflow_test(input_string: &String) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input_string` [INFO] [stdout] --> src/logging_test.rs:144:42 [INFO] [stdout] | [INFO] [stdout] 144 | fn consume_decimal_number_no_digits_test(input_string: &String) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `argc` [INFO] [stdout] --> src/logging_test.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | argc: i32, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_argc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `argv` [INFO] [stdout] --> src/logging_test.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | argv: *mut *mut u8) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_argv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_` [INFO] [stdout] --> src/logging.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | str_: *mut String, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/logging.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | num: u64) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_` [INFO] [stdout] --> src/logging.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | str_: *mut String, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/logging.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | value: &Slice) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/logging.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn number_to_string(num: u64) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/logging.rs:98:22 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn escape_string(value: &Slice) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_` [INFO] [stdout] --> src/logging.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | in_: *mut Slice, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/logging.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | val: *mut u64) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_crc` [INFO] [stdout] --> src/writer.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn init_type_crc(type_crc: *mut u32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_crc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/writer.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | dest: Rc>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_length` [INFO] [stdout] --> src/writer.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | dest_length: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/writer.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn add_record(&mut self, slice: &Slice) -> crate::Status { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/writer.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | t: LogRecordType, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/writer.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | ptr: *const u8, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/writer.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | length: usize) -> Status { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format` [INFO] [stdout] --> src/posix_logger.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | format: *const u8, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/posix_logger.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | arguments: &[&str]) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fp` [INFO] [stdout] --> src/posix_logger.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn new(fp: *mut libc::FILE) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/reader.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | file: Rc>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reporter` [INFO] [stdout] --> src/reader.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | reporter: Rc>, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reporter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checksum` [INFO] [stdout] --> src/reader.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | checksum: bool, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checksum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_offset` [INFO] [stdout] --> src/reader.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | initial_offset: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record` [INFO] [stdout] --> src/reader.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | record: *mut Slice, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_record` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scratch` [INFO] [stdout] --> src/reader.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | scratch: *mut String) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scratch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/reader.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | bytes: u64, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/reader.rs:343:9 [INFO] [stdout] | [INFO] [stdout] 343 | reason: *const u8) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/reader.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 352 | bytes: u64, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/reader.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | reason: &Status) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/reader.rs:369:44 [INFO] [stdout] | [INFO] [stdout] 369 | pub fn read_physical_record(&mut self, result: *mut Slice) -> u32 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_string` [INFO] [stdout] --> src/test.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | partial_string: &String, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_string` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/test.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | n: usize) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/test.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | fn number_string(n: i32) -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/test.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | i: i32, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rnd` [INFO] [stdout] --> src/test.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | rnd: *mut Random) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/test.rs:112:30 [INFO] [stdout] | [INFO] [stdout] 112 | fn append(&mut self, slice: &Slice) -> crate::Status { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/test.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | n: usize, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/test.rs:159:13 [INFO] [stdout] | [INFO] [stdout] 159 | result: *mut Slice, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scratch` [INFO] [stdout] --> src/test.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | scratch: *mut u8) -> crate::Status { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scratch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/test.rs:185:28 [INFO] [stdout] | [INFO] [stdout] 185 | fn skip(&mut self, n: u64) -> crate::Status { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/test.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | bytes: usize, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> src/test.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | status: &Status) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/test.rs:313:29 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn write(&mut self, msg: &String) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/test.rs:349:9 [INFO] [stdout] | [INFO] [stdout] 349 | offset: i32, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta` [INFO] [stdout] --> src/test.rs:350:9 [INFO] [stdout] | [INFO] [stdout] 350 | delta: i32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_delta` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/test.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | offset: i32, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_byte` [INFO] [stdout] --> src/test.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | new_byte: u8) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/test.rs:368:35 [INFO] [stdout] | [INFO] [stdout] 368 | pub fn shrink_size(&mut self, bytes: i32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header_offset` [INFO] [stdout] --> src/test.rs:377:9 [INFO] [stdout] | [INFO] [stdout] 377 | header_offset: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_header_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/test.rs:378:9 [INFO] [stdout] | [INFO] [stdout] 378 | len: i32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/test.rs:418:31 [INFO] [stdout] | [INFO] [stdout] 418 | pub fn match_error(&self, msg: &String) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_offset` [INFO] [stdout] --> src/test.rs:442:40 [INFO] [stdout] | [INFO] [stdout] 442 | pub fn start_reading_at(&mut self, initial_offset: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset_past_end` [INFO] [stdout] --> src/test.rs:451:64 [INFO] [stdout] | [INFO] [stdout] 451 | pub fn check_offset_past_end_returns_no_records(&mut self, offset_past_end: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset_past_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_offset` [INFO] [stdout] --> src/test.rs:468:9 [INFO] [stdout] | [INFO] [stdout] 468 | initial_offset: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expected_record_offset` [INFO] [stdout] --> src/test.rs:469:9 [INFO] [stdout] | [INFO] [stdout] 469 | expected_record_offset: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected_record_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `argc` [INFO] [stdout] --> src/test.rs:987:9 [INFO] [stdout] | [INFO] [stdout] 987 | argc: i32, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_argc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `argv` [INFO] [stdout] --> src/test.rs:988:9 [INFO] [stdout] | [INFO] [stdout] 988 | argv: *mut *mut u8) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_argv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `padding` [INFO] [stdout] --> src/logging_test.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let padding: &str = padding.unwrap_or(""); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_padding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/logging_test.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | number: u64, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input_string` [INFO] [stdout] --> src/logging_test.rs:108:41 [INFO] [stdout] | [INFO] [stdout] 108 | fn consume_decimal_number_overflow_test(input_string: &String) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input_string` [INFO] [stdout] --> src/logging_test.rs:144:42 [INFO] [stdout] | [INFO] [stdout] 144 | fn consume_decimal_number_no_digits_test(input_string: &String) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `argc` [INFO] [stdout] --> src/logging_test.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | argc: i32, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_argc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `argv` [INFO] [stdout] --> src/logging_test.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | argv: *mut *mut u8) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_argv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_` [INFO] [stdout] --> src/logging.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | str_: *mut String, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/logging.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | num: u64) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_` [INFO] [stdout] --> src/logging.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | str_: *mut String, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/logging.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | value: &Slice) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/logging.rs:82:25 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn number_to_string(num: u64) -> String { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/logging.rs:98:22 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn escape_string(value: &Slice) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `in_` [INFO] [stdout] --> src/logging.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | in_: *mut Slice, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_in_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/logging.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | val: *mut u64) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `type_crc` [INFO] [stdout] --> src/writer.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn init_type_crc(type_crc: *mut u32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_type_crc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest` [INFO] [stdout] --> src/writer.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | dest: Rc>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_dest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dest_length` [INFO] [stdout] --> src/writer.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | dest_length: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dest_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/writer.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn add_record(&mut self, slice: &Slice) -> crate::Status { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/writer.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | t: LogRecordType, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ptr` [INFO] [stdout] --> src/writer.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | ptr: *const u8, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> src/writer.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | length: usize) -> Status { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `format` [INFO] [stdout] --> src/posix_logger.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | format: *const u8, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_format` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arguments` [INFO] [stdout] --> src/posix_logger.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | arguments: &[&str]) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_arguments` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fp` [INFO] [stdout] --> src/posix_logger.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn new(fp: *mut libc::FILE) -> Self { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_fp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/reader.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | file: Rc>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reporter` [INFO] [stdout] --> src/reader.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | reporter: Rc>, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reporter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checksum` [INFO] [stdout] --> src/reader.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | checksum: bool, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checksum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_offset` [INFO] [stdout] --> src/reader.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | initial_offset: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `record` [INFO] [stdout] --> src/reader.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | record: *mut Slice, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_record` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scratch` [INFO] [stdout] --> src/reader.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | scratch: *mut String) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scratch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/reader.rs:342:9 [INFO] [stdout] | [INFO] [stdout] 342 | bytes: u64, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/reader.rs:343:9 [INFO] [stdout] | [INFO] [stdout] 343 | reason: *const u8) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/reader.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 352 | bytes: u64, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reason` [INFO] [stdout] --> src/reader.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | reason: &Status) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/reader.rs:369:44 [INFO] [stdout] | [INFO] [stdout] 369 | pub fn read_physical_record(&mut self, result: *mut Slice) -> u32 { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `big_string` is never used [INFO] [stdout] --> src/test.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn big_string( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_string` is never used [INFO] [stdout] --> src/test.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn number_string(n: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_skewed_string` is never used [INFO] [stdout] --> src/test.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn random_skewed_string( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dest`, `source`, `report`, `reading`, `writer`, and `reader` are never read [INFO] [stdout] --> src/test.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 55 | struct LogTest { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 56 | dest: log_test::StringDest, [INFO] [stdout] | ^^^^ [INFO] [stdout] 57 | source: log_test::StringSource, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 58 | report: log_test::ReportCollector, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 59 | reading: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 60 | writer: *mut LogWriter, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 61 | reader: *mut LogReader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `logtest_main` is never used [INFO] [stdout] --> src/test.rs:986:4 [INFO] [stdout] | [INFO] [stdout] 986 | fn logtest_main ( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `reopen_for_append` is never used [INFO] [stdout] --> src/test.rs:304:12 [INFO] [stdout] | [INFO] [stdout] 304 | pub fn reopen_for_append(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `write` is never used [INFO] [stdout] --> src/test.rs:313:12 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn write(&mut self, msg: &String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `written_bytes` is never used [INFO] [stdout] --> src/test.rs:322:12 [INFO] [stdout] | [INFO] [stdout] 322 | pub fn written_bytes(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read` is never used [INFO] [stdout] --> src/test.rs:330:12 [INFO] [stdout] | [INFO] [stdout] 330 | pub fn read(&mut self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `increment_byte` is never used [INFO] [stdout] --> src/test.rs:348:12 [INFO] [stdout] | [INFO] [stdout] 348 | pub fn increment_byte(&mut self, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `set_byte` is never used [INFO] [stdout] --> src/test.rs:358:12 [INFO] [stdout] | [INFO] [stdout] 358 | pub fn set_byte(&mut self, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `shrink_size` is never used [INFO] [stdout] --> src/test.rs:368:12 [INFO] [stdout] | [INFO] [stdout] 368 | pub fn shrink_size(&mut self, bytes: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `fix_checksum` is never used [INFO] [stdout] --> src/test.rs:376:12 [INFO] [stdout] | [INFO] [stdout] 376 | pub fn fix_checksum(&mut self, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `force_error` is never used [INFO] [stdout] --> src/test.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 389 | pub fn force_error(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `dropped_bytes` is never used [INFO] [stdout] --> src/test.rs:397:12 [INFO] [stdout] | [INFO] [stdout] 397 | pub fn dropped_bytes(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `report_message` is never used [INFO] [stdout] --> src/test.rs:405:12 [INFO] [stdout] | [INFO] [stdout] 405 | pub fn report_message(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `match_error` is never used [INFO] [stdout] --> src/test.rs:418:12 [INFO] [stdout] | [INFO] [stdout] 418 | pub fn match_error(&self, msg: &String) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `write_initial_offset_log` is never used [INFO] [stdout] --> src/test.rs:430:12 [INFO] [stdout] | [INFO] [stdout] 430 | pub fn write_initial_offset_log(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `start_reading_at` is never used [INFO] [stdout] --> src/test.rs:442:12 [INFO] [stdout] | [INFO] [stdout] 442 | pub fn start_reading_at(&mut self, initial_offset: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_offset_past_end_returns_no_records` is never used [INFO] [stdout] --> src/test.rs:451:12 [INFO] [stdout] | [INFO] [stdout] 451 | pub fn check_offset_past_end_returns_no_records(&mut self, offset_past_end: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_initial_offset_record` is never used [INFO] [stdout] --> src/test.rs:467:12 [INFO] [stdout] | [INFO] [stdout] 467 | pub fn check_initial_offset_record(&mut self, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `contents` is never read [INFO] [stdout] --> src/test.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct StringDest { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 70 | contents: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `contents`, `force_error`, and `returned_partial` are never read [INFO] [stdout] --> src/test.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct StringSource { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 135 | contents: Slice, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 136 | force_error: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 137 | returned_partial: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dropped_bytes` and `message` are never read [INFO] [stdout] --> src/test.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 213 | pub struct ReportCollector { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 214 | dropped_bytes: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 215 | message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Logging` is never constructed [INFO] [stdout] --> src/logging_test.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Logging {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `consume_decimal_number_roundtrip_test` is never used [INFO] [stdout] --> src/logging_test.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn consume_decimal_number_roundtrip_test( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `consume_decimal_number_overflow_test` is never used [INFO] [stdout] --> src/logging_test.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn consume_decimal_number_overflow_test(input_string: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `consume_decimal_number_no_digits_test` is never used [INFO] [stdout] --> src/logging_test.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn consume_decimal_number_no_digits_test(input_string: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testlogging_test_main` is never used [INFO] [stdout] --> src/logging_test.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn testlogging_test_main ( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dest`, `block_offset`, and `type_crc` are never read [INFO] [stdout] --> src/writer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct LogWriter { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 18 | [INFO] [stdout] 19 | dest: Rc>, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | block_offset: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | type_crc: [u32; LOG_MAX_RECORD_TYPE as usize + 1], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fp` is never read [INFO] [stdout] --> src/posix_logger.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct PosixLogger { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 15 | fp: *const libc::FILE, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/reader.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct LogReader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 55 | [INFO] [stdout] 56 | file: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] 57 | reporter: Box, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 58 | checksum: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | backing_store: *const u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 60 | buffer: Slice, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | eof: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | last_record_offset: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | end_of_buffer_offset: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | initial_offset: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | resyncing: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Eof` should have an upper case name [INFO] [stdout] --> src/reader.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | const Eof = LOG_MAX_RECORD_TYPE as i32 + 1; [INFO] [stdout] | ^^^ help: convert the identifier to upper case (notice the capitalization): `EOF` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `BadRecord` should have an upper case name [INFO] [stdout] --> src/reader.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | const BadRecord = LOG_MAX_RECORD_TYPE as i32 + 2; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `BAD_RECORD` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `big_string` is never used [INFO] [stdout] --> src/test.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn big_string( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_string` is never used [INFO] [stdout] --> src/test.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn number_string(n: i32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_skewed_string` is never used [INFO] [stdout] --> src/test.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn random_skewed_string( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dest`, `source`, `report`, `reading`, `writer`, and `reader` are never read [INFO] [stdout] --> src/test.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 55 | struct LogTest { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 56 | dest: log_test::StringDest, [INFO] [stdout] | ^^^^ [INFO] [stdout] 57 | source: log_test::StringSource, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 58 | report: log_test::ReportCollector, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 59 | reading: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 60 | writer: *mut LogWriter, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 61 | reader: *mut LogReader, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `logtest_main` is never used [INFO] [stdout] --> src/test.rs:986:4 [INFO] [stdout] | [INFO] [stdout] 986 | fn logtest_main ( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `reopen_for_append` is never used [INFO] [stdout] --> src/test.rs:304:12 [INFO] [stdout] | [INFO] [stdout] 304 | pub fn reopen_for_append(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `write` is never used [INFO] [stdout] --> src/test.rs:313:12 [INFO] [stdout] | [INFO] [stdout] 313 | pub fn write(&mut self, msg: &String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `written_bytes` is never used [INFO] [stdout] --> src/test.rs:322:12 [INFO] [stdout] | [INFO] [stdout] 322 | pub fn written_bytes(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `read` is never used [INFO] [stdout] --> src/test.rs:330:12 [INFO] [stdout] | [INFO] [stdout] 330 | pub fn read(&mut self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `increment_byte` is never used [INFO] [stdout] --> src/test.rs:348:12 [INFO] [stdout] | [INFO] [stdout] 348 | pub fn increment_byte(&mut self, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `set_byte` is never used [INFO] [stdout] --> src/test.rs:358:12 [INFO] [stdout] | [INFO] [stdout] 358 | pub fn set_byte(&mut self, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `shrink_size` is never used [INFO] [stdout] --> src/test.rs:368:12 [INFO] [stdout] | [INFO] [stdout] 368 | pub fn shrink_size(&mut self, bytes: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `fix_checksum` is never used [INFO] [stdout] --> src/test.rs:376:12 [INFO] [stdout] | [INFO] [stdout] 376 | pub fn fix_checksum(&mut self, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `force_error` is never used [INFO] [stdout] --> src/test.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 389 | pub fn force_error(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `dropped_bytes` is never used [INFO] [stdout] --> src/test.rs:397:12 [INFO] [stdout] | [INFO] [stdout] 397 | pub fn dropped_bytes(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `report_message` is never used [INFO] [stdout] --> src/test.rs:405:12 [INFO] [stdout] | [INFO] [stdout] 405 | pub fn report_message(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `match_error` is never used [INFO] [stdout] --> src/test.rs:418:12 [INFO] [stdout] | [INFO] [stdout] 418 | pub fn match_error(&self, msg: &String) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `write_initial_offset_log` is never used [INFO] [stdout] --> src/test.rs:430:12 [INFO] [stdout] | [INFO] [stdout] 430 | pub fn write_initial_offset_log(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `start_reading_at` is never used [INFO] [stdout] --> src/test.rs:442:12 [INFO] [stdout] | [INFO] [stdout] 442 | pub fn start_reading_at(&mut self, initial_offset: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_offset_past_end_returns_no_records` is never used [INFO] [stdout] --> src/test.rs:451:12 [INFO] [stdout] | [INFO] [stdout] 451 | pub fn check_offset_past_end_returns_no_records(&mut self, offset_past_end: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_initial_offset_record` is never used [INFO] [stdout] --> src/test.rs:467:12 [INFO] [stdout] | [INFO] [stdout] 467 | pub fn check_initial_offset_record(&mut self, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `contents` is never read [INFO] [stdout] --> src/test.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct StringDest { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 70 | contents: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `contents`, `force_error`, and `returned_partial` are never read [INFO] [stdout] --> src/test.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct StringSource { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 135 | contents: Slice, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 136 | force_error: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 137 | returned_partial: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dropped_bytes` and `message` are never read [INFO] [stdout] --> src/test.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 213 | pub struct ReportCollector { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 214 | dropped_bytes: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 215 | message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Logging` is never constructed [INFO] [stdout] --> src/logging_test.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Logging {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `consume_decimal_number_roundtrip_test` is never used [INFO] [stdout] --> src/logging_test.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn consume_decimal_number_roundtrip_test( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `consume_decimal_number_overflow_test` is never used [INFO] [stdout] --> src/logging_test.rs:108:4 [INFO] [stdout] | [INFO] [stdout] 108 | fn consume_decimal_number_overflow_test(input_string: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `consume_decimal_number_no_digits_test` is never used [INFO] [stdout] --> src/logging_test.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn consume_decimal_number_no_digits_test(input_string: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testlogging_test_main` is never used [INFO] [stdout] --> src/logging_test.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 173 | fn testlogging_test_main ( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dest`, `block_offset`, and `type_crc` are never read [INFO] [stdout] --> src/writer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct LogWriter { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 18 | [INFO] [stdout] 19 | dest: Rc>, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | block_offset: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | type_crc: [u32; LOG_MAX_RECORD_TYPE as usize + 1], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fp` is never read [INFO] [stdout] --> src/posix_logger.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct PosixLogger { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 15 | fp: *const libc::FILE, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/reader.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct LogReader { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 55 | [INFO] [stdout] 56 | file: Box, [INFO] [stdout] | ^^^^ [INFO] [stdout] 57 | reporter: Box, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 58 | checksum: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | backing_store: *const u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 60 | buffer: Slice, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | eof: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | last_record_offset: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | end_of_buffer_offset: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | initial_offset: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | resyncing: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `Eof` should have an upper case name [INFO] [stdout] --> src/reader.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | const Eof = LOG_MAX_RECORD_TYPE as i32 + 1; [INFO] [stdout] | ^^^ help: convert the identifier to upper case (notice the capitalization): `EOF` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `BadRecord` should have an upper case name [INFO] [stdout] --> src/reader.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | const BadRecord = LOG_MAX_RECORD_TYPE as i32 + 2; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `BAD_RECORD` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 98 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 98 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 55.35s [INFO] running `Command { std: "docker" "inspect" "e5782fa46157b4933ddf0ae2116fb69aff9646abbeda97980f4c98f172197630", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5782fa46157b4933ddf0ae2116fb69aff9646abbeda97980f4c98f172197630", kill_on_drop: false }` [INFO] [stdout] e5782fa46157b4933ddf0ae2116fb69aff9646abbeda97980f4c98f172197630