[INFO] cloning repository https://github.com/ryancinsight/RSNMalloc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ryancinsight/RSNMalloc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryancinsight%2FRSNMalloc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryancinsight%2FRSNMalloc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e7d5362127011687ae8e131572f6a5ee602874ff [INFO] checking ryancinsight/RSNMalloc against try#be699666730c5a1745838222e98e2d85019affdc for pr-134300 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryancinsight%2FRSNMalloc" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ryancinsight/RSNMalloc on toolchain be699666730c5a1745838222e98e2d85019affdc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+be699666730c5a1745838222e98e2d85019affdc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ryancinsight/RSNMalloc [INFO] finished tweaking git repo https://github.com/ryancinsight/RSNMalloc [INFO] tweaked toml for git repo https://github.com/ryancinsight/RSNMalloc written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ryancinsight/RSNMalloc 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" "+be699666730c5a1745838222e98e2d85019affdc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sysconf v0.3.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+be699666730c5a1745838222e98e2d85019affdc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 299c3aa44e2ed1a6cdd65c88ec40695918491732e20fbe6947cb208cdf7af2d8 [INFO] running `Command { std: "docker" "start" "-a" "299c3aa44e2ed1a6cdd65c88ec40695918491732e20fbe6947cb208cdf7af2d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "299c3aa44e2ed1a6cdd65c88ec40695918491732e20fbe6947cb208cdf7af2d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "299c3aa44e2ed1a6cdd65c88ec40695918491732e20fbe6947cb208cdf7af2d8", kill_on_drop: false }` [INFO] [stdout] 299c3aa44e2ed1a6cdd65c88ec40695918491732e20fbe6947cb208cdf7af2d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+be699666730c5a1745838222e98e2d85019affdc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5e8408a5348e0cf8fa4185da1d4ec291e1b553006207113fc4e611e72d04d143 [INFO] running `Command { std: "docker" "start" "-a" "5e8408a5348e0cf8fa4185da1d4ec291e1b553006207113fc4e611e72d04d143", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.99 [INFO] [stderr] Compiling libc v0.2.168 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling bumpalo v3.16.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.99 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking env_filter v0.1.2 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_logger v0.9.3 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.99 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling test-log-macros v0.2.16 [INFO] [stderr] Checking test-log v0.2.16 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.99 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.99 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking js-sys v0.3.76 [INFO] [stderr] Checking web-sys v0.3.76 [INFO] [stderr] Checking basic_allocator v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `mremap` [INFO] [stdout] --> src/mmap/mod.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | pub use platform::{mmap, munmap,mremap}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mremap` [INFO] [stdout] --> src/mmap/mod.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | pub use platform::{mmap, munmap,mremap}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/allocators/heap_grower.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 40 | return DEFAULT_PAGE_SIZE; [INFO] [stdout] | ------------------------ any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 76 | / { [INFO] [stdout] 77 | | // Low-level Unix page size detection [INFO] [stdout] 78 | | unsafe { [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `page_size` is never read [INFO] [stdout] --> src/allocators/heap_grower.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | let mut page_size: usize = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blocks` [INFO] [stdout] --> src/blocklist/block_list.rs:103:36 [INFO] [stdout] | [INFO] [stdout] 103 | unsafe fn process_batch(&self, blocks: &[FreeBlock]) -> Option> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_blocks` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_size` [INFO] [stdout] --> src/blocklist/block_list.rs:317:13 [INFO] [stdout] | [INFO] [stdout] 317 | let min_size = size.wrapping_add(HEADER_SIZE); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/blocklist/block_list.rs:321:30 [INFO] [stdout] | [INFO] [stdout] 321 | let first_size = unsafe { first.header_view().size.load(core::sync::atomic::Ordering::Relaxed) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/mmap/platform/wasm/mod.rs:53:34 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) unsafe fn wasm_munmap(addr: *mut u8, _len: usize) -> Result<(), MmapError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `BATCH_SIZE`, `CACHE_LINE_SIZE`, and `process_batch` are never used [INFO] [stdout] --> src/blocklist/block_list.rs:92:11 [INFO] [stdout] | [INFO] [stdout] 90 | impl BlockList { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 91 | // Cache line size optimization [INFO] [stdout] 92 | const BATCH_SIZE: usize = 8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 93 | const CACHE_LINE_SIZE: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | unsafe fn process_batch(&self, blocks: &[FreeBlock]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `BATCH_SIZE` is never used [INFO] [stdout] --> src/blocklist/free_block.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 31 | impl FreeBlock { [INFO] [stdout] | -------------- associated constant in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | const BATCH_SIZE: usize = 8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SYS_MREMAP` is never used [INFO] [stdout] --> src/mmap/constants.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) const SYS_MREMAP: i64 = 25; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MREMAP_MAYMOVE` is never used [INFO] [stdout] --> src/mmap/constants.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | pub const MREMAP_MAYMOVE: u64 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MREMAP_FIXED` is never used [INFO] [stdout] --> src/mmap/constants.rs:39:11 [INFO] [stdout] | [INFO] [stdout] 39 | pub const MREMAP_FIXED: u64 = 2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mremap` is never used [INFO] [stdout] --> src/mmap/platform/mod.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | pub unsafe fn mremap( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `syscall_mremap` is never used [INFO] [stdout] --> src/mmap/platform/unix/syscall.rs:66:22 [INFO] [stdout] | [INFO] [stdout] 66 | pub(crate) unsafe fn syscall_mremap( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mremap` is never used [INFO] [stdout] --> src/mmap/platform/unix/linux.rs:22:22 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) unsafe fn mremap( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wasm_mmap` is never used [INFO] [stdout] --> src/mmap/platform/wasm/mod.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) unsafe fn wasm_mmap( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wasm_munmap` is never used [INFO] [stdout] --> src/mmap/platform/wasm/mod.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) unsafe fn wasm_munmap(addr: *mut u8, _len: usize) -> Result<(), MmapError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mremap` is never used [INFO] [stdout] --> src/mmap/platform/wasm/mod.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) unsafe fn mremap( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/allocators/heap_grower.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 40 | return DEFAULT_PAGE_SIZE; [INFO] [stdout] | ------------------------ any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 76 | / { [INFO] [stdout] 77 | | // Low-level Unix page size detection [INFO] [stdout] 78 | | unsafe { [INFO] [stdout] ... | [INFO] [stdout] 93 | | } [INFO] [stdout] | |_________^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `FreeBlock::replace_next` that must be used [INFO] [stdout] --> src/blocklist/block_list.rs:142:25 [INFO] [stdout] | [INFO] [stdout] 142 | block.replace_next(first); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 142 | let _ = block.replace_next(first); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `FreeBlock::replace_next` that must be used [INFO] [stdout] --> src/blocklist/block_list.rs:190:21 [INFO] [stdout] | [INFO] [stdout] 190 | block.replace_next(next_block); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 190 | let _ = block.replace_next(next_block); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `FreeBlock::replace_next` that must be used [INFO] [stdout] --> src/blocklist/free_block.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | / self.next_mut() [INFO] [stdout] 194 | | .expect("Just set next, should exist") [INFO] [stdout] 195 | | .replace_next(next_next_block); [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 193 | let _ = self.next_mut() [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `Vec` will be dropped [INFO] [stdout] --> src/mmap/platform/wasm/mod.rs:35:37 [INFO] [stdout] | [INFO] [stdout] 35 | let buffer = vec![0u8; len].as_mut_ptr(); [INFO] [stdout] | -------------- ^^^^^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `Vec` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_mut_ptr` the `Vec` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `page_size` is never read [INFO] [stdout] --> src/allocators/heap_grower.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | let mut page_size: usize = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blocks` [INFO] [stdout] --> src/blocklist/block_list.rs:103:36 [INFO] [stdout] | [INFO] [stdout] 103 | unsafe fn process_batch(&self, blocks: &[FreeBlock]) -> Option> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_blocks` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_size` [INFO] [stdout] --> src/blocklist/block_list.rs:317:13 [INFO] [stdout] | [INFO] [stdout] 317 | let min_size = size.wrapping_add(HEADER_SIZE); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/blocklist/block_list.rs:321:30 [INFO] [stdout] | [INFO] [stdout] 321 | let first_size = unsafe { first.header_view().size.load(core::sync::atomic::Ordering::Relaxed) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/mmap/platform/wasm/mod.rs:53:34 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) unsafe fn wasm_munmap(addr: *mut u8, _len: usize) -> Result<(), MmapError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `BATCH_SIZE`, `CACHE_LINE_SIZE`, and `process_batch` are never used [INFO] [stdout] --> src/blocklist/block_list.rs:92:11 [INFO] [stdout] | [INFO] [stdout] 90 | impl BlockList { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 91 | // Cache line size optimization [INFO] [stdout] 92 | const BATCH_SIZE: usize = 8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 93 | const CACHE_LINE_SIZE: usize = 64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | unsafe fn process_batch(&self, blocks: &[FreeBlock]) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `BATCH_SIZE` is never used [INFO] [stdout] --> src/blocklist/free_block.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 31 | impl FreeBlock { [INFO] [stdout] | -------------- associated constant in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | const BATCH_SIZE: usize = 8; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MREMAP_FIXED` is never used [INFO] [stdout] --> src/mmap/constants.rs:39:11 [INFO] [stdout] | [INFO] [stdout] 39 | pub const MREMAP_FIXED: u64 = 2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wasm_mmap` is never used [INFO] [stdout] --> src/mmap/platform/wasm/mod.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) unsafe fn wasm_mmap( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wasm_munmap` is never used [INFO] [stdout] --> src/mmap/platform/wasm/mod.rs:53:22 [INFO] [stdout] | [INFO] [stdout] 53 | pub(crate) unsafe fn wasm_munmap(addr: *mut u8, _len: usize) -> Result<(), MmapError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mremap` is never used [INFO] [stdout] --> src/mmap/platform/wasm/mod.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | pub(crate) unsafe fn mremap( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `FreeBlock::replace_next` that must be used [INFO] [stdout] --> src/blocklist/block_list.rs:142:25 [INFO] [stdout] | [INFO] [stdout] 142 | block.replace_next(first); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 142 | let _ = block.replace_next(first); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `FreeBlock::replace_next` that must be used [INFO] [stdout] --> src/blocklist/block_list.rs:190:21 [INFO] [stdout] | [INFO] [stdout] 190 | block.replace_next(next_block); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 190 | let _ = block.replace_next(next_block); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `FreeBlock::replace_next` that must be used [INFO] [stdout] --> src/blocklist/free_block.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | / self.next_mut() [INFO] [stdout] 194 | | .expect("Just set next, should exist") [INFO] [stdout] 195 | | .replace_next(next_next_block); [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 193 | let _ = self.next_mut() [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `Vec` will be dropped [INFO] [stdout] --> src/mmap/platform/wasm/mod.rs:35:37 [INFO] [stdout] | [INFO] [stdout] 35 | let buffer = vec![0u8; len].as_mut_ptr(); [INFO] [stdout] | -------------- ^^^^^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `Vec` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_mut_ptr` the `Vec` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.20s [INFO] running `Command { std: "docker" "inspect" "5e8408a5348e0cf8fa4185da1d4ec291e1b553006207113fc4e611e72d04d143", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e8408a5348e0cf8fa4185da1d4ec291e1b553006207113fc4e611e72d04d143", kill_on_drop: false }` [INFO] [stdout] 5e8408a5348e0cf8fa4185da1d4ec291e1b553006207113fc4e611e72d04d143