[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] testing ryancinsight/RSNMalloc against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryancinsight%2FRSNMalloc" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 40% (1283/3166) Updating files: 41% (1299/3166) Updating files: 42% (1330/3166) Updating files: 43% (1362/3166) Updating files: 44% (1394/3166) Updating files: 45% (1425/3166) Updating files: 46% (1457/3166) Updating files: 47% (1489/3166) Updating files: 47% (1498/3166) Updating files: 48% (1520/3166) Updating files: 49% (1552/3166) Updating files: 50% (1583/3166) Updating files: 50% (1607/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: 57% (1815/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: 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: 88% (2816/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-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ryancinsight/RSNMalloc on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded test-log-macros v0.2.16 [INFO] [stderr] Downloaded sysconf v0.3.4 [INFO] [stderr] Downloaded test-log v0.2.16 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cabfc46edcbcbc74fac479c80e1728ef5a2cc0ee83d18c341bcd0e62650452f2 [INFO] running `Command { std: "docker" "start" "-a" "cabfc46edcbcbc74fac479c80e1728ef5a2cc0ee83d18c341bcd0e62650452f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cabfc46edcbcbc74fac479c80e1728ef5a2cc0ee83d18c341bcd0e62650452f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cabfc46edcbcbc74fac479c80e1728ef5a2cc0ee83d18c341bcd0e62650452f2", kill_on_drop: false }` [INFO] [stdout] cabfc46edcbcbc74fac479c80e1728ef5a2cc0ee83d18c341bcd0e62650452f2 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 89dfb9db6a0d6f3a6b30e0d721a3b271420a5737875ae2a7a7f9c22986a75c1a [INFO] running `Command { std: "docker" "start" "-a" "89dfb9db6a0d6f3a6b30e0d721a3b271420a5737875ae2a7a7f9c22986a75c1a", kill_on_drop: false }` [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.99 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling bumpalo v3.16.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.99 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.99 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.99 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.99 [INFO] [stderr] Compiling js-sys v0.3.76 [INFO] [stderr] Compiling web-sys v0.3.76 [INFO] [stderr] Compiling 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: 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: lifetime flowing from input to output with different syntax can be 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 lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 58 | pub unsafe fn get_raw(&self) -> AllocGuard<'_, G> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/allocators/generic_allocator.rs:68:34 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe fn ensure_initialized(&self) -> AllocGuard { [INFO] [stdout] | ^^^^^ ------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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)]` 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: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/blocklist/block_list.rs:227:17 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn iter(&self) -> BlockIter { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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 12.08s [INFO] running `Command { std: "docker" "inspect" "89dfb9db6a0d6f3a6b30e0d721a3b271420a5737875ae2a7a7f9c22986a75c1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89dfb9db6a0d6f3a6b30e0d721a3b271420a5737875ae2a7a7f9c22986a75c1a", kill_on_drop: false }` [INFO] [stdout] 89dfb9db6a0d6f3a6b30e0d721a3b271420a5737875ae2a7a7f9c22986a75c1a [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 22fa3bf5026da8563ea6a6a2d1e78ea614aa6de26d562ce44e1bfb5f23335a19 [INFO] running `Command { std: "docker" "start" "-a" "22fa3bf5026da8563ea6a6a2d1e78ea614aa6de26d562ce44e1bfb5f23335a19", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.168 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling test-log-macros v0.2.16 [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: lifetime flowing from input to output with different syntax can be 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 lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 58 | pub unsafe fn get_raw(&self) -> AllocGuard<'_, G> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/allocators/generic_allocator.rs:68:34 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe fn ensure_initialized(&self) -> AllocGuard { [INFO] [stdout] | ^^^^^ ------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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)]` 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: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/blocklist/block_list.rs:227:17 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn iter(&self) -> BlockIter { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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] Compiling env_filter v0.1.2 [INFO] [stderr] Compiling env_logger v0.11.5 [INFO] [stderr] Compiling test-log v0.2.16 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling 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: 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 `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: lifetime flowing from input to output with different syntax can be 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 lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 58 | pub unsafe fn get_raw(&self) -> AllocGuard<'_, G> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/allocators/generic_allocator.rs:68:34 [INFO] [stdout] | [INFO] [stdout] 68 | unsafe fn ensure_initialized(&self) -> AllocGuard { [INFO] [stdout] | ^^^^^ ------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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)]` 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: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/blocklist/block_list.rs:227:17 [INFO] [stdout] | [INFO] [stdout] 227 | pub fn iter(&self) -> BlockIter { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for 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 `test` profile [unoptimized + debuginfo] target(s) in 5.53s [INFO] running `Command { std: "docker" "inspect" "22fa3bf5026da8563ea6a6a2d1e78ea614aa6de26d562ce44e1bfb5f23335a19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "22fa3bf5026da8563ea6a6a2d1e78ea614aa6de26d562ce44e1bfb5f23335a19", kill_on_drop: false }` [INFO] [stdout] 22fa3bf5026da8563ea6a6a2d1e78ea614aa6de26d562ce44e1bfb5f23335a19 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] ff36a5ee5ba23acc8de65a52fcc5faa8b71b24b6f2d8e6a39ed6b00430be951e [INFO] running `Command { std: "docker" "start" "-a" "ff36a5ee5ba23acc8de65a52fcc5faa8b71b24b6f2d8e6a39ed6b00430be951e", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `mremap` [INFO] [stderr] --> src/mmap/mod.rs:11:33 [INFO] [stderr] | [INFO] [stderr] 11 | pub use platform::{mmap, munmap,mremap}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/allocators/heap_grower.rs:76:9 [INFO] [stderr] | [INFO] [stderr] 40 | return DEFAULT_PAGE_SIZE; [INFO] [stderr] | ------------------------ any code following this expression is unreachable [INFO] [stderr] ... [INFO] [stderr] 76 | / { [INFO] [stderr] 77 | | // Low-level Unix page size detection [INFO] [stderr] 78 | | unsafe { [INFO] [stderr] ... | [INFO] [stderr] 93 | | } [INFO] [stderr] | |_________^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `page_size` is never read [INFO] [stderr] --> src/allocators/heap_grower.rs:80:25 [INFO] [stderr] | [INFO] [stderr] 80 | let mut page_size: usize = 0; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `blocks` [INFO] [stderr] --> src/blocklist/block_list.rs:103:36 [INFO] [stderr] | [INFO] [stderr] 103 | unsafe fn process_batch(&self, blocks: &[FreeBlock]) -> Option> { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_blocks` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `min_size` [INFO] [stderr] --> src/blocklist/block_list.rs:317:13 [INFO] [stderr] | [INFO] [stderr] 317 | let min_size = size.wrapping_add(HEADER_SIZE); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_size` [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/blocklist/block_list.rs:321:30 [INFO] [stderr] | [INFO] [stderr] 321 | let first_size = unsafe { first.header_view().size.load(core::sync::atomic::Ordering::Relaxed) }; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `addr` [INFO] [stderr] --> src/mmap/platform/wasm/mod.rs:53:34 [INFO] [stderr] | [INFO] [stderr] 53 | pub(crate) unsafe fn wasm_munmap(addr: *mut u8, _len: usize) -> Result<(), MmapError> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stderr] [INFO] [stderr] warning: associated items `BATCH_SIZE`, `CACHE_LINE_SIZE`, and `process_batch` are never used [INFO] [stderr] --> src/blocklist/block_list.rs:92:11 [INFO] [stderr] | [INFO] [stderr] 90 | impl BlockList { [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] 91 | // Cache line size optimization [INFO] [stderr] 92 | const BATCH_SIZE: usize = 8; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 93 | const CACHE_LINE_SIZE: usize = 64; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 103 | unsafe fn process_batch(&self, blocks: &[FreeBlock]) -> Option> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated constant `BATCH_SIZE` is never used [INFO] [stderr] --> src/blocklist/free_block.rs:34:11 [INFO] [stderr] | [INFO] [stderr] 31 | impl FreeBlock { [INFO] [stderr] | -------------- associated constant in this implementation [INFO] [stderr] ... [INFO] [stderr] 34 | const BATCH_SIZE: usize = 8; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `SYS_MREMAP` is never used [INFO] [stderr] --> src/mmap/constants.rs:28:18 [INFO] [stderr] | [INFO] [stderr] 28 | pub(crate) const SYS_MREMAP: i64 = 25; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `MREMAP_MAYMOVE` is never used [INFO] [stderr] --> src/mmap/constants.rs:32:11 [INFO] [stderr] | [INFO] [stderr] 32 | pub const MREMAP_MAYMOVE: u64 = 1; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `MREMAP_FIXED` is never used [INFO] [stderr] --> src/mmap/constants.rs:39:11 [INFO] [stderr] | [INFO] [stderr] 39 | pub const MREMAP_FIXED: u64 = 2; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `mremap` is never used [INFO] [stderr] --> src/mmap/platform/mod.rs:32:15 [INFO] [stderr] | [INFO] [stderr] 32 | pub unsafe fn mremap( [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `syscall_mremap` is never used [INFO] [stderr] --> src/mmap/platform/unix/syscall.rs:66:22 [INFO] [stderr] | [INFO] [stderr] 66 | pub(crate) unsafe fn syscall_mremap( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `mremap` is never used [INFO] [stderr] --> src/mmap/platform/unix/linux.rs:22:22 [INFO] [stderr] | [INFO] [stderr] 22 | pub(crate) unsafe fn mremap( [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `wasm_mmap` is never used [INFO] [stderr] --> src/mmap/platform/wasm/mod.rs:7:22 [INFO] [stderr] | [INFO] [stderr] 7 | pub(crate) unsafe fn wasm_mmap( [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `wasm_munmap` is never used [INFO] [stderr] --> src/mmap/platform/wasm/mod.rs:53:22 [INFO] [stderr] | [INFO] [stderr] 53 | pub(crate) unsafe fn wasm_munmap(addr: *mut u8, _len: usize) -> Result<(), MmapError> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `mremap` is never used [INFO] [stderr] --> src/mmap/platform/wasm/mod.rs:58:22 [INFO] [stderr] | [INFO] [stderr] 58 | pub(crate) unsafe fn mremap( [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/allocators/generic_allocator.rs:58:27 [INFO] [stderr] | [INFO] [stderr] 58 | pub unsafe fn get_raw(&self) -> AllocGuard { [INFO] [stderr] | ^^^^^ ------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 58 | pub unsafe fn get_raw(&self) -> AllocGuard<'_, G> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/allocators/generic_allocator.rs:68:34 [INFO] [stderr] | [INFO] [stderr] 68 | unsafe fn ensure_initialized(&self) -> AllocGuard { [INFO] [stderr] | ^^^^^ ------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 68 | unsafe fn ensure_initialized(&self) -> AllocGuard<'_, G> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: unused return value of `FreeBlock::replace_next` that must be used [INFO] [stderr] --> src/blocklist/block_list.rs:142:25 [INFO] [stderr] | [INFO] [stderr] 142 | block.replace_next(first); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 142 | let _ = block.replace_next(first); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused return value of `FreeBlock::replace_next` that must be used [INFO] [stderr] --> src/blocklist/block_list.rs:190:21 [INFO] [stderr] | [INFO] [stderr] 190 | block.replace_next(next_block); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 190 | let _ = block.replace_next(next_block); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/blocklist/block_list.rs:227:17 [INFO] [stderr] | [INFO] [stderr] 227 | pub fn iter(&self) -> BlockIter { [INFO] [stderr] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 227 | pub fn iter(&self) -> BlockIter<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: unused return value of `FreeBlock::replace_next` that must be used [INFO] [stderr] --> src/blocklist/free_block.rs:193:13 [INFO] [stderr] | [INFO] [stderr] 193 | / self.next_mut() [INFO] [stderr] 194 | | .expect("Just set next, should exist") [INFO] [stderr] 195 | | .replace_next(next_next_block); [INFO] [stderr] | |______________________________________________^ [INFO] [stderr] | [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 193 | let _ = self.next_mut() [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: a dangling pointer will be produced because the temporary `Vec` will be dropped [INFO] [stderr] --> src/mmap/platform/wasm/mod.rs:35:37 [INFO] [stderr] | [INFO] [stderr] 35 | let buffer = vec![0u8; len].as_mut_ptr(); [INFO] [stderr] | -------------- ^^^^^^^^^^ this pointer will immediately be invalid [INFO] [stderr] | | [INFO] [stderr] | this `Vec` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = 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] [stderr] = help: in particular, if this pointer is returned from the current function, binding the `Vec` inside the function will not suffice [INFO] [stderr] = help: for more information, see [INFO] [stderr] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `basic_allocator` (lib) generated 25 warnings (run `cargo fix --lib -p basic_allocator` to apply 4 suggestions) [INFO] [stderr] warning: `basic_allocator` (lib test) generated 20 warnings (20 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/basic_allocator-7851d4250b6d436f) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test mmap::tests::test_mmap_failure ... ok [INFO] [stdout] test mmap::tests::test_mmap_success ... ok [INFO] [stdout] test allocators::raw_alloc::tests::test_size_rounding ... ok [INFO] [stdout] test mmap::tests::test_mremap ... ok [INFO] [stdout] test allocators::raw_alloc::tests::test_mixed_allocation_patterns ... ok [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/basic_allocator-7851d4250b6d436f` (signal: 11, SIGSEGV: invalid memory reference) [INFO] running `Command { std: "docker" "inspect" "ff36a5ee5ba23acc8de65a52fcc5faa8b71b24b6f2d8e6a39ed6b00430be951e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff36a5ee5ba23acc8de65a52fcc5faa8b71b24b6f2d8e6a39ed6b00430be951e", kill_on_drop: false }` [INFO] [stdout] ff36a5ee5ba23acc8de65a52fcc5faa8b71b24b6f2d8e6a39ed6b00430be951e