[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] b4ba249c290663beeced18c509ad3652efa9f68d [INFO] checking ryancinsight/RSNMalloc against try#969026c535f4240ff7866ef11207dfda18a26af6 for pr-146504 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryancinsight%2FRSNMalloc" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 45% (1449/3166) Updating files: 46% (1457/3166) Updating files: 47% (1489/3166) Updating files: 48% (1520/3166) Updating files: 49% (1552/3166) Updating files: 50% (1583/3166) Updating files: 50% (1614/3166) Updating files: 51% (1615/3166) Updating files: 52% (1647/3166) Updating files: 53% (1678/3166) Updating files: 54% (1710/3166) Updating files: 55% (1742/3166) Updating files: 56% (1773/3166) Updating files: 57% (1805/3166) Updating files: 58% (1837/3166) Updating files: 59% (1868/3166) Updating files: 60% (1900/3166) Updating files: 61% (1932/3166) Updating files: 62% (1963/3166) Updating files: 62% (1988/3166) Updating files: 63% (1995/3166) Updating files: 64% (2027/3166) Updating files: 65% (2058/3166) Updating files: 66% (2090/3166) Updating files: 67% (2122/3166) Updating files: 68% (2153/3166) Updating files: 69% (2185/3166) Updating files: 70% (2217/3166) Updating files: 71% (2248/3166) Updating files: 72% (2280/3166) Updating files: 73% (2312/3166) Updating files: 74% (2343/3166) Updating files: 75% (2375/3166) Updating files: 76% (2407/3166) Updating files: 77% (2438/3166) Updating files: 78% (2470/3166) Updating files: 79% (2502/3166) Updating files: 80% (2533/3166) Updating files: 81% (2565/3166) Updating files: 82% (2597/3166) Updating files: 83% (2628/3166) Updating files: 84% (2660/3166) Updating files: 85% (2692/3166) Updating files: 86% (2723/3166) Updating files: 87% (2755/3166) Updating files: 88% (2787/3166) Updating files: 89% (2818/3166) Updating files: 90% (2850/3166) Updating files: 91% (2882/3166) Updating files: 92% (2913/3166) Updating files: 93% (2945/3166) Updating files: 94% (2977/3166) Updating files: 95% (3008/3166) Updating files: 96% (3040/3166) Updating files: 97% (3072/3166) Updating files: 98% (3103/3166) Updating files: 99% (3135/3166) Updating files: 100% (3166/3166) Updating files: 100% (3166/3166), done. [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-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ryancinsight/RSNMalloc on toolchain 969026c535f4240ff7866ef11207dfda18a26af6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+969026c535f4240ff7866ef11207dfda18a26af6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+969026c535f4240ff7866ef11207dfda18a26af6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+969026c535f4240ff7866ef11207dfda18a26af6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c6b02ea4190d1d92f6c93e13d358176a78881c11971e311cb46df49c8de2c646 [INFO] running `Command { std: "docker" "start" "-a" "c6b02ea4190d1d92f6c93e13d358176a78881c11971e311cb46df49c8de2c646", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c6b02ea4190d1d92f6c93e13d358176a78881c11971e311cb46df49c8de2c646", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6b02ea4190d1d92f6c93e13d358176a78881c11971e311cb46df49c8de2c646", kill_on_drop: false }` [INFO] [stdout] c6b02ea4190d1d92f6c93e13d358176a78881c11971e311cb46df49c8de2c646 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+969026c535f4240ff7866ef11207dfda18a26af6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5eaca767f19e49b15af00d999148a55303c9c945c76c34e65f25896b553a22c [INFO] running `Command { std: "docker" "start" "-a" "d5eaca767f19e49b15af00d999148a55303c9c945c76c34e65f25896b553a22c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.99 [INFO] [stderr] Compiling libc v0.2.168 [INFO] [stderr] Compiling wasm-bindgen v0.2.99 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking env_filter v0.1.2 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking env_logger v0.11.5 [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 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] Compiling wasm-bindgen-macro v0.2.99 [INFO] [stderr] Checking rand_chacha v0.3.1 [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 317 | let _min_size = size.wrapping_add(HEADER_SIZE); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `HEADER_SIZE` [INFO] [stdout] | [INFO] [stdout] 317 - let min_size = size.wrapping_add(HEADER_SIZE); [INFO] [stdout] 317 + let blocklist::free_header::HEADER_SIZE = size.wrapping_add(HEADER_SIZE); [INFO] [stdout] | [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/allocators/generic_allocator.rs:58:27 [INFO] [stdout] | [INFO] [stdout] 58 | pub unsafe fn get_raw(&self) -> AllocGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 58 | pub unsafe fn get_raw(&self) -> AllocGuard<'_, G> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/allocators/generic_allocator.rs:68:34 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe fn ensure_initialized(&self) -> AllocGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 68 | unsafe fn ensure_initialized(&self) -> AllocGuard<'_, G> { [INFO] [stdout] | +++ [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blocklist/block_list.rs:227:17 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn iter(&self) -> BlockIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 227 | pub fn iter(&self) -> BlockIter<'_> { [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: you must make sure that the variable you bind the `Vec` to lives at least as long as the pointer returned by the call to `as_mut_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `Vec` inside the function will not suffice [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: 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] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 317 | let _min_size = size.wrapping_add(HEADER_SIZE); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `HEADER_SIZE` [INFO] [stdout] | [INFO] [stdout] 317 - let min_size = size.wrapping_add(HEADER_SIZE); [INFO] [stdout] 317 + let blocklist::free_header::HEADER_SIZE = size.wrapping_add(HEADER_SIZE); [INFO] [stdout] | [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/allocators/generic_allocator.rs:58:27 [INFO] [stdout] | [INFO] [stdout] 58 | pub unsafe fn get_raw(&self) -> AllocGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 58 | pub unsafe fn get_raw(&self) -> AllocGuard<'_, G> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/allocators/generic_allocator.rs:68:34 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe fn ensure_initialized(&self) -> AllocGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 68 | unsafe fn ensure_initialized(&self) -> AllocGuard<'_, G> { [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)]` (part of `#[warn(unused)]`) 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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/blocklist/block_list.rs:227:17 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn iter(&self) -> BlockIter { [INFO] [stdout] | ^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 227 | pub fn iter(&self) -> BlockIter<'_> { [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: you must make sure that the variable you bind the `Vec` to lives at least as long as the pointer returned by the call to `as_mut_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `Vec` inside the function will not suffice [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 11.74s [INFO] running `Command { std: "docker" "inspect" "d5eaca767f19e49b15af00d999148a55303c9c945c76c34e65f25896b553a22c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5eaca767f19e49b15af00d999148a55303c9c945c76c34e65f25896b553a22c", kill_on_drop: false }` [INFO] [stdout] d5eaca767f19e49b15af00d999148a55303c9c945c76c34e65f25896b553a22c