[INFO] fetching crate alloc-compose 0.5.0... [INFO] checking alloc-compose-0.5.0 against try#894d32a5432c6a6461bb2aac7c3d5f2e87dce83f for pr-77015 [INFO] extracting crate alloc-compose 0.5.0 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate alloc-compose 0.5.0 on toolchain 894d32a5432c6a6461bb2aac7c3d5f2e87dce83f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+894d32a5432c6a6461bb2aac7c3d5f2e87dce83f" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate alloc-compose 0.5.0 [INFO] finished tweaking crates.io crate alloc-compose 0.5.0 [INFO] tweaked toml for crates.io crate alloc-compose 0.5.0 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+894d32a5432c6a6461bb2aac7c3d5f2e87dce83f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+894d32a5432c6a6461bb2aac7c3d5f2e87dce83f" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+894d32a5432c6a6461bb2aac7c3d5f2e87dce83f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 630ab4c80cf62cbc250aea289331b1b371b1065ab72d11f97b88bd16b6c44e55 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "630ab4c80cf62cbc250aea289331b1b371b1065ab72d11f97b88bd16b6c44e55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "630ab4c80cf62cbc250aea289331b1b371b1065ab72d11f97b88bd16b6c44e55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "630ab4c80cf62cbc250aea289331b1b371b1065ab72d11f97b88bd16b6c44e55", kill_on_drop: false }` [INFO] [stdout] 630ab4c80cf62cbc250aea289331b1b371b1065ab72d11f97b88bd16b6c44e55 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+894d32a5432c6a6461bb2aac7c3d5f2e87dce83f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef13c13ca6819543ac8b742d8108e5f409084070321d6608784f97fe9653f14d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ef13c13ca6819543ac8b742d8108e5f409084070321d6608784f97fe9653f14d", kill_on_drop: false }` [INFO] [stderr] Checking alloc-compose v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0053]: method `alloc` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | fn alloc(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Affix, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Affix, Layout) -> core::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | fn alloc_zeroed(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Affix, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Affix, Layout) -> core::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | / unsafe fn grow( [INFO] [stdout] 12 | | &mut self, [INFO] [stdout] 13 | | ptr: NonNull, [INFO] [stdout] 14 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 24 | | ) [INFO] [stdout] 25 | | } [INFO] [stdout] | |_________^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Affix, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Affix, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | / unsafe fn grow_zeroed( [INFO] [stdout] 28 | | &mut self, [INFO] [stdout] 29 | | ptr: NonNull, [INFO] [stdout] 30 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 40 | | ) [INFO] [stdout] 41 | | } [INFO] [stdout] | |_________^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Affix, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Affix, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `shrink` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | / unsafe fn shrink( [INFO] [stdout] 44 | | &mut self, [INFO] [stdout] 45 | | ptr: NonNull, [INFO] [stdout] 46 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 52 | | }) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_________^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Affix, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Affix, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `dealloc` has an incompatible type for trait [INFO] [stdout] --> src/affix.rs:404:5 [INFO] [stdout] | [INFO] [stdout] 404 | unsafe fn dealloc(&mut self, ptr: NonNull, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Affix, NonNull<_>, Layout)` [INFO] [stdout] found fn pointer `unsafe fn(&mut Affix, NonNull<_>, Layout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | fn alloc(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Chunk, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Chunk, Layout) -> core::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | fn alloc_zeroed(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Chunk, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Chunk, Layout) -> core::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | / unsafe fn grow( [INFO] [stdout] 12 | | &mut self, [INFO] [stdout] 13 | | ptr: NonNull, [INFO] [stdout] 14 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 24 | | ) [INFO] [stdout] 25 | | } [INFO] [stdout] | |_________^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Chunk, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Chunk, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | / unsafe fn grow_zeroed( [INFO] [stdout] 28 | | &mut self, [INFO] [stdout] 29 | | ptr: NonNull, [INFO] [stdout] 30 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 40 | | ) [INFO] [stdout] 41 | | } [INFO] [stdout] | |_________^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Chunk, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Chunk, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `shrink` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | / unsafe fn shrink( [INFO] [stdout] 44 | | &mut self, [INFO] [stdout] 45 | | ptr: NonNull, [INFO] [stdout] 46 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 52 | | }) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_________^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Chunk, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Chunk, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `dealloc` has an incompatible type for trait [INFO] [stdout] --> src/chunk.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | unsafe fn dealloc(&mut self, ptr: NonNull, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Chunk, NonNull<_>, Layout)` [INFO] [stdout] found fn pointer `unsafe fn(&mut Chunk, NonNull<_>, Layout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc` has an incompatible type for trait [INFO] [stdout] --> src/fallback.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | fn alloc(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Fallback, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Fallback, Layout) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/fallback.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn alloc_zeroed(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Fallback, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Fallback, Layout) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `dealloc` has an incompatible type for trait [INFO] [stdout] --> src/fallback.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | unsafe fn dealloc(&mut self, ptr: NonNull, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Fallback, NonNull<_>, Layout)` [INFO] [stdout] found fn pointer `unsafe fn(&mut Fallback, NonNull<_>, Layout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow` has an incompatible type for trait [INFO] [stdout] --> src/fallback.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | / unsafe fn grow( [INFO] [stdout] 91 | | &mut self, [INFO] [stdout] 92 | | ptr: NonNull, [INFO] [stdout] 93 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 114 | | } [INFO] [stdout] 115 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Fallback, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Fallback, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/fallback.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | / unsafe fn grow_zeroed( [INFO] [stdout] 118 | | &mut self, [INFO] [stdout] 119 | | ptr: NonNull, [INFO] [stdout] 120 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 141 | | } [INFO] [stdout] 142 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Fallback, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Fallback, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `shrink` has an incompatible type for trait [INFO] [stdout] --> src/fallback.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | / unsafe fn shrink( [INFO] [stdout] 145 | | &mut self, [INFO] [stdout] 146 | | ptr: NonNull, [INFO] [stdout] 147 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 157 | | } [INFO] [stdout] 158 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Fallback, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Fallback, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc` has an incompatible type for trait [INFO] [stdout] --> src/null.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | fn alloc(&mut self, _layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Null, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Null, Layout) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/null.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | fn alloc_zeroed(&mut self, _layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Null, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Null, Layout) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `dealloc` has an incompatible type for trait [INFO] [stdout] --> src/null.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | unsafe fn dealloc(&mut self, _ptr: NonNull, _layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Null, NonNull<_>, Layout)` [INFO] [stdout] found fn pointer `unsafe fn(&mut Null, NonNull<_>, Layout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow` has an incompatible type for trait [INFO] [stdout] --> src/null.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | / unsafe fn grow( [INFO] [stdout] 55 | | &mut self, [INFO] [stdout] 56 | | _ptr: NonNull, [INFO] [stdout] 57 | | _layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 60 | | unreachable!("Null::grow must never be called as allocation always fails") [INFO] [stdout] 61 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Null, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Null, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/null.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | / unsafe fn grow_zeroed( [INFO] [stdout] 65 | | &mut self, [INFO] [stdout] 66 | | _ptr: NonNull, [INFO] [stdout] 67 | | _layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 70 | | unreachable!("Null::grow_zeroed must never be called as allocation always fails") [INFO] [stdout] 71 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Null, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Null, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `shrink` has an incompatible type for trait [INFO] [stdout] --> src/null.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | / unsafe fn shrink( [INFO] [stdout] 75 | | &mut self, [INFO] [stdout] 76 | | _ptr: NonNull, [INFO] [stdout] 77 | | _layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 80 | | unreachable!("Null::shrink must never be called as allocation always fails") [INFO] [stdout] 81 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Null, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Null, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc` has an incompatible type for trait [INFO] [stdout] --> src/proxy.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | fn alloc(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Proxy, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Proxy, Layout) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/proxy.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | fn alloc_zeroed(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Proxy, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Proxy, Layout) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `dealloc` has an incompatible type for trait [INFO] [stdout] --> src/proxy.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | unsafe fn dealloc(&mut self, ptr: NonNull, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Proxy, NonNull<_>, Layout)` [INFO] [stdout] found fn pointer `unsafe fn(&mut Proxy, NonNull<_>, Layout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow` has an incompatible type for trait [INFO] [stdout] --> src/proxy.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | / unsafe fn grow( [INFO] [stdout] 107 | | &mut self, [INFO] [stdout] 108 | | ptr: NonNull, [INFO] [stdout] 109 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 116 | | result [INFO] [stdout] 117 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Proxy, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Proxy, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/proxy.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | / unsafe fn grow_zeroed( [INFO] [stdout] 121 | | &mut self, [INFO] [stdout] 122 | | ptr: NonNull, [INFO] [stdout] 123 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 131 | | result [INFO] [stdout] 132 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Proxy, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Proxy, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `shrink` has an incompatible type for trait [INFO] [stdout] --> src/proxy.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | / unsafe fn shrink( [INFO] [stdout] 136 | | &mut self, [INFO] [stdout] 137 | | ptr: NonNull, [INFO] [stdout] 138 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 145 | | result [INFO] [stdout] 146 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Proxy, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Proxy, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc` has an incompatible type for trait [INFO] [stdout] --> src/region.rs:221:5 [INFO] [stdout] | [INFO] [stdout] 221 | fn alloc(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Region<'_>, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Region<'_>, Layout) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/region.rs:226:5 [INFO] [stdout] | [INFO] [stdout] 226 | fn alloc_zeroed(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Region<'_>, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Region<'_>, Layout) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `dealloc` has an incompatible type for trait [INFO] [stdout] --> src/region.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 231 | unsafe fn dealloc(&mut self, ptr: NonNull, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Region<'_>, NonNull<_>, Layout)` [INFO] [stdout] found fn pointer `unsafe fn(&mut Region<'_>, NonNull<_>, Layout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow` has an incompatible type for trait [INFO] [stdout] --> src/region.rs:246:5 [INFO] [stdout] | [INFO] [stdout] 246 | / unsafe fn grow( [INFO] [stdout] 247 | | &mut self, [INFO] [stdout] 248 | | ptr: NonNull, [INFO] [stdout] 249 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 258 | | ) [INFO] [stdout] 259 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Region<'_>, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Region<'_>, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/region.rs:262:5 [INFO] [stdout] | [INFO] [stdout] 262 | / unsafe fn grow_zeroed( [INFO] [stdout] 263 | | &mut self, [INFO] [stdout] 264 | | ptr: NonNull, [INFO] [stdout] 265 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 274 | | ) [INFO] [stdout] 275 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Region<'_>, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Region<'_>, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `shrink` has an incompatible type for trait [INFO] [stdout] --> src/region.rs:278:5 [INFO] [stdout] | [INFO] [stdout] 278 | / unsafe fn shrink( [INFO] [stdout] 279 | | &mut self, [INFO] [stdout] 280 | | ptr: NonNull, [INFO] [stdout] 281 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 284 | | self.shrink_impl(ptr, layout, new_size, ReallocPlacement::MayMove) [INFO] [stdout] 285 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Region<'_>, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Region<'_>, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc` has an incompatible type for trait [INFO] [stdout] --> src/segregate.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | fn alloc(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Segregate, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Segregate, Layout) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/segregate.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | fn alloc_zeroed(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Segregate, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Segregate, Layout) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `dealloc` has an incompatible type for trait [INFO] [stdout] --> src/segregate.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | unsafe fn dealloc(&mut self, ptr: NonNull, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Segregate, NonNull<_>, Layout)` [INFO] [stdout] found fn pointer `unsafe fn(&mut Segregate, NonNull<_>, Layout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow` has an incompatible type for trait [INFO] [stdout] --> src/segregate.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / unsafe fn grow( [INFO] [stdout] 60 | | &mut self, [INFO] [stdout] 61 | | ptr: NonNull, [INFO] [stdout] 62 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 81 | | } [INFO] [stdout] 82 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Segregate, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Segregate, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/segregate.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | / unsafe fn grow_zeroed( [INFO] [stdout] 85 | | &mut self, [INFO] [stdout] 86 | | ptr: NonNull, [INFO] [stdout] 87 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 106 | | } [INFO] [stdout] 107 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Segregate, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Segregate, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `shrink` has an incompatible type for trait [INFO] [stdout] --> src/segregate.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | / unsafe fn shrink( [INFO] [stdout] 110 | | &mut self, [INFO] [stdout] 111 | | ptr: NonNull, [INFO] [stdout] 112 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 124 | | } [INFO] [stdout] 125 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Segregate, NonNull<_>, Layout, Layout) -> core::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Segregate, NonNull<_>, Layout, usize) -> core::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:23:72 [INFO] [stdout] | [INFO] [stdout] 23 | |ptr, layout, new_size| self.$parent.grow(ptr, layout, new_size), [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:23:72 [INFO] [stdout] | [INFO] [stdout] 23 | |ptr, layout, new_size| self.$parent.grow(ptr, layout, new_size), [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:39:79 [INFO] [stdout] | [INFO] [stdout] 39 | |ptr, layout, new_size| self.$parent.grow_zeroed(ptr, layout, new_size), [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:39:79 [INFO] [stdout] | [INFO] [stdout] 39 | |ptr, layout, new_size| self.$parent.grow_zeroed(ptr, layout, new_size), [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:51:50 [INFO] [stdout] | [INFO] [stdout] 51 | self.$parent.shrink(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:51:50 [INFO] [stdout] | [INFO] [stdout] 51 | self.$parent.shrink(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | fn alloc(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&affix::Affix, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut affix::Affix, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | fn alloc_zeroed(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&affix::Affix, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut affix::Affix, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | / unsafe fn grow( [INFO] [stdout] 12 | | &mut self, [INFO] [stdout] 13 | | ptr: NonNull, [INFO] [stdout] 14 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 24 | | ) [INFO] [stdout] 25 | | } [INFO] [stdout] | |_________^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&affix::Affix, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut affix::Affix, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | / unsafe fn grow_zeroed( [INFO] [stdout] 28 | | &mut self, [INFO] [stdout] 29 | | ptr: NonNull, [INFO] [stdout] 30 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 40 | | ) [INFO] [stdout] 41 | | } [INFO] [stdout] | |_________^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&affix::Affix, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut affix::Affix, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `shrink` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | / unsafe fn shrink( [INFO] [stdout] 44 | | &mut self, [INFO] [stdout] 45 | | ptr: NonNull, [INFO] [stdout] 46 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 52 | | }) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_________^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&affix::Affix, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut affix::Affix, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `dealloc` has an incompatible type for trait [INFO] [stdout] --> src/affix.rs:404:5 [INFO] [stdout] | [INFO] [stdout] 404 | unsafe fn dealloc(&mut self, ptr: NonNull, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&affix::Affix, std::ptr::NonNull<_>, std::alloc::Layout)` [INFO] [stdout] found fn pointer `unsafe fn(&mut affix::Affix, std::ptr::NonNull<_>, std::alloc::Layout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | fn alloc(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Chunk, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Chunk, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | fn alloc_zeroed(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Chunk, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Chunk, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | / unsafe fn grow( [INFO] [stdout] 12 | | &mut self, [INFO] [stdout] 13 | | ptr: NonNull, [INFO] [stdout] 14 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 24 | | ) [INFO] [stdout] 25 | | } [INFO] [stdout] | |_________^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Chunk, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Chunk, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | / unsafe fn grow_zeroed( [INFO] [stdout] 28 | | &mut self, [INFO] [stdout] 29 | | ptr: NonNull, [INFO] [stdout] 30 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 40 | | ) [INFO] [stdout] 41 | | } [INFO] [stdout] | |_________^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Chunk, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Chunk, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `shrink` has an incompatible type for trait [INFO] [stdout] --> src/macros.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | / unsafe fn shrink( [INFO] [stdout] 44 | | &mut self, [INFO] [stdout] 45 | | ptr: NonNull, [INFO] [stdout] 46 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 52 | | }) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_________^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Chunk, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Chunk, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `dealloc` has an incompatible type for trait [INFO] [stdout] --> src/chunk.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | unsafe fn dealloc(&mut self, ptr: NonNull, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Chunk, std::ptr::NonNull<_>, std::alloc::Layout)` [INFO] [stdout] found fn pointer `unsafe fn(&mut Chunk, std::ptr::NonNull<_>, std::alloc::Layout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc` has an incompatible type for trait [INFO] [stdout] --> src/fallback.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | fn alloc(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Fallback, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Fallback, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/fallback.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn alloc_zeroed(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Fallback, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Fallback, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `dealloc` has an incompatible type for trait [INFO] [stdout] --> src/fallback.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | unsafe fn dealloc(&mut self, ptr: NonNull, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Fallback, std::ptr::NonNull<_>, std::alloc::Layout)` [INFO] [stdout] found fn pointer `unsafe fn(&mut Fallback, std::ptr::NonNull<_>, std::alloc::Layout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow` has an incompatible type for trait [INFO] [stdout] --> src/fallback.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | / unsafe fn grow( [INFO] [stdout] 91 | | &mut self, [INFO] [stdout] 92 | | ptr: NonNull, [INFO] [stdout] 93 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 114 | | } [INFO] [stdout] 115 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Fallback, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Fallback, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/fallback.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 117 | / unsafe fn grow_zeroed( [INFO] [stdout] 118 | | &mut self, [INFO] [stdout] 119 | | ptr: NonNull, [INFO] [stdout] 120 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 141 | | } [INFO] [stdout] 142 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Fallback, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Fallback, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `shrink` has an incompatible type for trait [INFO] [stdout] --> src/fallback.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | / unsafe fn shrink( [INFO] [stdout] 145 | | &mut self, [INFO] [stdout] 146 | | ptr: NonNull, [INFO] [stdout] 147 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 157 | | } [INFO] [stdout] 158 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Fallback, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Fallback, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc` has an incompatible type for trait [INFO] [stdout] --> src/null.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | fn alloc(&mut self, _layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&null::Null, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut null::Null, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/null.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | fn alloc_zeroed(&mut self, _layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&null::Null, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut null::Null, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `dealloc` has an incompatible type for trait [INFO] [stdout] --> src/null.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | unsafe fn dealloc(&mut self, _ptr: NonNull, _layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&null::Null, std::ptr::NonNull<_>, std::alloc::Layout)` [INFO] [stdout] found fn pointer `unsafe fn(&mut null::Null, std::ptr::NonNull<_>, std::alloc::Layout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow` has an incompatible type for trait [INFO] [stdout] --> src/null.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | / unsafe fn grow( [INFO] [stdout] 55 | | &mut self, [INFO] [stdout] 56 | | _ptr: NonNull, [INFO] [stdout] 57 | | _layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 60 | | unreachable!("Null::grow must never be called as allocation always fails") [INFO] [stdout] 61 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&null::Null, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut null::Null, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/null.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | / unsafe fn grow_zeroed( [INFO] [stdout] 65 | | &mut self, [INFO] [stdout] 66 | | _ptr: NonNull, [INFO] [stdout] 67 | | _layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 70 | | unreachable!("Null::grow_zeroed must never be called as allocation always fails") [INFO] [stdout] 71 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&null::Null, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut null::Null, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `shrink` has an incompatible type for trait [INFO] [stdout] --> src/null.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | / unsafe fn shrink( [INFO] [stdout] 75 | | &mut self, [INFO] [stdout] 76 | | _ptr: NonNull, [INFO] [stdout] 77 | | _layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 80 | | unreachable!("Null::shrink must never be called as allocation always fails") [INFO] [stdout] 81 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&null::Null, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut null::Null, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc` has an incompatible type for trait [INFO] [stdout] --> src/proxy.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | fn alloc(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Proxy, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Proxy, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/proxy.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | fn alloc_zeroed(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Proxy, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Proxy, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `dealloc` has an incompatible type for trait [INFO] [stdout] --> src/proxy.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | unsafe fn dealloc(&mut self, ptr: NonNull, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Proxy, std::ptr::NonNull<_>, std::alloc::Layout)` [INFO] [stdout] found fn pointer `unsafe fn(&mut Proxy, std::ptr::NonNull<_>, std::alloc::Layout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow` has an incompatible type for trait [INFO] [stdout] --> src/proxy.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | / unsafe fn grow( [INFO] [stdout] 107 | | &mut self, [INFO] [stdout] 108 | | ptr: NonNull, [INFO] [stdout] 109 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 116 | | result [INFO] [stdout] 117 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Proxy, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Proxy, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/proxy.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | / unsafe fn grow_zeroed( [INFO] [stdout] 121 | | &mut self, [INFO] [stdout] 122 | | ptr: NonNull, [INFO] [stdout] 123 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 131 | | result [INFO] [stdout] 132 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Proxy, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Proxy, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `shrink` has an incompatible type for trait [INFO] [stdout] --> src/proxy.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | / unsafe fn shrink( [INFO] [stdout] 136 | | &mut self, [INFO] [stdout] 137 | | ptr: NonNull, [INFO] [stdout] 138 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 145 | | result [INFO] [stdout] 146 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Proxy, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Proxy, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc` has an incompatible type for trait [INFO] [stdout] --> src/region.rs:221:5 [INFO] [stdout] | [INFO] [stdout] 221 | fn alloc(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(®ion::Region<'_>, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut region::Region<'_>, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/region.rs:226:5 [INFO] [stdout] | [INFO] [stdout] 226 | fn alloc_zeroed(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(®ion::Region<'_>, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut region::Region<'_>, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `dealloc` has an incompatible type for trait [INFO] [stdout] --> src/region.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 231 | unsafe fn dealloc(&mut self, ptr: NonNull, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(®ion::Region<'_>, std::ptr::NonNull<_>, std::alloc::Layout)` [INFO] [stdout] found fn pointer `unsafe fn(&mut region::Region<'_>, std::ptr::NonNull<_>, std::alloc::Layout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow` has an incompatible type for trait [INFO] [stdout] --> src/region.rs:246:5 [INFO] [stdout] | [INFO] [stdout] 246 | / unsafe fn grow( [INFO] [stdout] 247 | | &mut self, [INFO] [stdout] 248 | | ptr: NonNull, [INFO] [stdout] 249 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 258 | | ) [INFO] [stdout] 259 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(®ion::Region<'_>, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut region::Region<'_>, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/region.rs:262:5 [INFO] [stdout] | [INFO] [stdout] 262 | / unsafe fn grow_zeroed( [INFO] [stdout] 263 | | &mut self, [INFO] [stdout] 264 | | ptr: NonNull, [INFO] [stdout] 265 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 274 | | ) [INFO] [stdout] 275 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(®ion::Region<'_>, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut region::Region<'_>, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `shrink` has an incompatible type for trait [INFO] [stdout] --> src/region.rs:278:5 [INFO] [stdout] | [INFO] [stdout] 278 | / unsafe fn shrink( [INFO] [stdout] 279 | | &mut self, [INFO] [stdout] 280 | | ptr: NonNull, [INFO] [stdout] 281 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 284 | | self.shrink_impl(ptr, layout, new_size, ReallocPlacement::MayMove) [INFO] [stdout] 285 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(®ion::Region<'_>, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut region::Region<'_>, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc` has an incompatible type for trait [INFO] [stdout] --> src/segregate.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | fn alloc(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Segregate, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Segregate, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `alloc_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/segregate.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | fn alloc_zeroed(&mut self, layout: Layout) -> Result, AllocErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `fn(&Segregate, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `fn(&mut Segregate, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `dealloc` has an incompatible type for trait [INFO] [stdout] --> src/segregate.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | unsafe fn dealloc(&mut self, ptr: NonNull, layout: Layout) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Segregate, std::ptr::NonNull<_>, std::alloc::Layout)` [INFO] [stdout] found fn pointer `unsafe fn(&mut Segregate, std::ptr::NonNull<_>, std::alloc::Layout)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow` has an incompatible type for trait [INFO] [stdout] --> src/segregate.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / unsafe fn grow( [INFO] [stdout] 60 | | &mut self, [INFO] [stdout] 61 | | ptr: NonNull, [INFO] [stdout] 62 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 81 | | } [INFO] [stdout] 82 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Segregate, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Segregate, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `grow_zeroed` has an incompatible type for trait [INFO] [stdout] --> src/segregate.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | / unsafe fn grow_zeroed( [INFO] [stdout] 85 | | &mut self, [INFO] [stdout] 86 | | ptr: NonNull, [INFO] [stdout] 87 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 106 | | } [INFO] [stdout] 107 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Segregate, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Segregate, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0053]: method `shrink` has an incompatible type for trait [INFO] [stdout] --> src/segregate.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | / unsafe fn shrink( [INFO] [stdout] 110 | | &mut self, [INFO] [stdout] 111 | | ptr: NonNull, [INFO] [stdout] 112 | | layout: Layout, [INFO] [stdout] ... | [INFO] [stdout] 124 | | } [INFO] [stdout] 125 | | } [INFO] [stdout] | |_____^ types differ in mutability [INFO] [stdout] | [INFO] [stdout] = note: expected fn pointer `unsafe fn(&Segregate, std::ptr::NonNull<_>, std::alloc::Layout, std::alloc::Layout) -> std::result::Result<_, _>` [INFO] [stdout] found fn pointer `unsafe fn(&mut Segregate, std::ptr::NonNull<_>, std::alloc::Layout, usize) -> std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:100:64 [INFO] [stdout] | [INFO] [stdout] 100 | if let Ok(memory) = self.primary.grow(ptr, layout, new_size) { [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:113:46 [INFO] [stdout] | [INFO] [stdout] 113 | self.secondary.grow(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:127:71 [INFO] [stdout] | [INFO] [stdout] 127 | if let Ok(memory) = self.primary.grow_zeroed(ptr, layout, new_size) { [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:140:53 [INFO] [stdout] | [INFO] [stdout] 140 | self.secondary.grow_zeroed(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:154:46 [INFO] [stdout] | [INFO] [stdout] 154 | self.primary.shrink(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:156:48 [INFO] [stdout] | [INFO] [stdout] 156 | self.secondary.shrink(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/proxy.rs:114:51 [INFO] [stdout] | [INFO] [stdout] 114 | let result = self.alloc.grow(ptr, layout, new_size); [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/proxy.rs:128:58 [INFO] [stdout] | [INFO] [stdout] 128 | let result = self.alloc.grow_zeroed(ptr, layout, new_size); [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/proxy.rs:143:53 [INFO] [stdout] | [INFO] [stdout] 143 | let result = self.alloc.shrink(ptr, layout, new_size); [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/stats.rs:688:86 [INFO] [stdout] | [INFO] [stdout] 688 | .grow_zeroed(memory.as_non_null_ptr(), Layout::new::<[u8; 4]>(), 80,) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/stats.rs:698:79 [INFO] [stdout] | [INFO] [stdout] 698 | .grow(memory.as_non_null_ptr(), Layout::new::<[u8; 4]>(), 80,) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:76:59 [INFO] [stdout] | [INFO] [stdout] 76 | let memory = self.small.grow(ptr, layout, new_size)?; [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:80:42 [INFO] [stdout] | [INFO] [stdout] 80 | self.large.grow(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/stats.rs:707:82 [INFO] [stdout] | [INFO] [stdout] 707 | .grow_zeroed(memory.as_non_null_ptr(), Layout::new::<[u8; 4]>(), 8) [INFO] [stdout] | ^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:101:66 [INFO] [stdout] | [INFO] [stdout] 101 | let memory = self.small.grow_zeroed(ptr, layout, new_size)?; [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/stats.rs:710:75 [INFO] [stdout] | [INFO] [stdout] 710 | .grow(memory.as_non_null_ptr(), Layout::new::<[u8; 8]>(), 16) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:105:49 [INFO] [stdout] | [INFO] [stdout] 105 | self.large.grow_zeroed(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:116:57 [INFO] [stdout] | [INFO] [stdout] 116 | let memory = self.small.shrink(ptr, layout, new_size)?; [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/stats.rs:713:78 [INFO] [stdout] | [INFO] [stdout] 713 | .shrink(memory.as_non_null_ptr(), Layout::new::<[u8; 16]>(), 4) [INFO] [stdout] | ^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:123:44 [INFO] [stdout] | [INFO] [stdout] 123 | self.large.shrink(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 63 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stderr] error: could not compile `alloc-compose` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/helper.rs:314:89 [INFO] [stdout] | [INFO] [stdout] 314 | let _ = unsafe { alloc.grow(memory.as_non_null_ptr(), Layout::new::<[u8; 4]>(), 2) }; [INFO] [stdout] | ^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/helper.rs:328:17 [INFO] [stdout] | [INFO] [stdout] 328 | usize::MAX, [INFO] [stdout] | ^^^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/helper.rs:340:89 [INFO] [stdout] | [INFO] [stdout] 340 | let _ = unsafe { alloc.grow(memory.as_non_null_ptr(), Layout::new::<[u8; 2]>(), 10) }; [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/helper.rs:350:89 [INFO] [stdout] | [INFO] [stdout] 350 | let _ = unsafe { alloc.grow(memory.as_non_null_ptr(), Layout::new::<[u8; 2]>(), 10) }; [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/helper.rs:360:90 [INFO] [stdout] | [INFO] [stdout] 360 | let _ = unsafe { alloc.grow(memory.as_non_null_ptr(), Layout::new::<[u16; 2]>(), 10) }; [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/helper.rs:370:84 [INFO] [stdout] | [INFO] [stdout] 370 | let _ = unsafe { alloc.grow(NonNull::dangling(), Layout::new::<[u8; 4]>(), 10) }; [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:23:72 [INFO] [stdout] | [INFO] [stdout] 23 | |ptr, layout, new_size| self.$parent.grow(ptr, layout, new_size), [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:23:72 [INFO] [stdout] | [INFO] [stdout] 23 | |ptr, layout, new_size| self.$parent.grow(ptr, layout, new_size), [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:39:79 [INFO] [stdout] | [INFO] [stdout] 39 | |ptr, layout, new_size| self.$parent.grow_zeroed(ptr, layout, new_size), [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:39:79 [INFO] [stdout] | [INFO] [stdout] 39 | |ptr, layout, new_size| self.$parent.grow_zeroed(ptr, layout, new_size), [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:51:50 [INFO] [stdout] | [INFO] [stdout] 51 | self.$parent.shrink(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] | [INFO] [stdout] ::: src/affix.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | impl_alloc_ref!(parent); [INFO] [stdout] | ------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/macros.rs:51:50 [INFO] [stdout] | [INFO] [stdout] 51 | self.$parent.shrink(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] | [INFO] [stdout] ::: src/chunk.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | impl_alloc_ref!(0); [INFO] [stdout] | ------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/affix.rs:496:64 [INFO] [stdout] | [INFO] [stdout] 496 | .grow_zeroed(memory.as_non_null_ptr(), layout, memory.len() * 2) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/affix.rs:515:59 [INFO] [stdout] | [INFO] [stdout] 515 | .shrink(memory.as_non_null_ptr(), layout, layout.size()) [INFO] [stdout] | ^^^^^^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/chunk.rs:281:76 [INFO] [stdout] | [INFO] [stdout] 281 | .grow(memory.as_non_null_ptr(), Layout::new::<[u8; 64]>(), 65) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/chunk.rs:285:77 [INFO] [stdout] | [INFO] [stdout] 285 | .grow(memory.as_non_null_ptr(), Layout::new::<[u8; 100]>(), 512) [INFO] [stdout] | ^^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/chunk.rs:324:79 [INFO] [stdout] | [INFO] [stdout] 324 | .shrink(memory.as_non_null_ptr(), Layout::new::<[u8; 100]>(), 64) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:100:64 [INFO] [stdout] | [INFO] [stdout] 100 | if let Ok(memory) = self.primary.grow(ptr, layout, new_size) { [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:113:46 [INFO] [stdout] | [INFO] [stdout] 113 | self.secondary.grow(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:127:71 [INFO] [stdout] | [INFO] [stdout] 127 | if let Ok(memory) = self.primary.grow_zeroed(ptr, layout, new_size) { [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:140:53 [INFO] [stdout] | [INFO] [stdout] 140 | self.secondary.grow_zeroed(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:154:46 [INFO] [stdout] | [INFO] [stdout] 154 | self.primary.shrink(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:156:48 [INFO] [stdout] | [INFO] [stdout] 156 | self.secondary.shrink(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:218:76 [INFO] [stdout] | [INFO] [stdout] 218 | .grow(memory.as_non_null_ptr(), Layout::new::<[u8; 32]>(), 64) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:224:76 [INFO] [stdout] | [INFO] [stdout] 224 | .grow(memory.as_non_null_ptr(), Layout::new::<[u8; 64]>(), 80) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:229:76 [INFO] [stdout] | [INFO] [stdout] 229 | .grow(memory.as_non_null_ptr(), Layout::new::<[u8; 80]>(), 96) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:234:76 [INFO] [stdout] | [INFO] [stdout] 234 | .grow(memory.as_non_null_ptr(), Layout::new::<[u8; 96]>(), 128) [INFO] [stdout] | ^^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:257:78 [INFO] [stdout] | [INFO] [stdout] 257 | .shrink(memory.as_non_null_ptr(), Layout::new::<[u8; 64]>(), 32) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:262:76 [INFO] [stdout] | [INFO] [stdout] 262 | .grow(memory.as_non_null_ptr(), Layout::new::<[u8; 32]>(), 128) [INFO] [stdout] | ^^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/fallback.rs:267:79 [INFO] [stdout] | [INFO] [stdout] 267 | .shrink(memory.as_non_null_ptr(), Layout::new::<[u8; 128]>(), 96) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/null.rs:169:73 [INFO] [stdout] | [INFO] [stdout] 169 | let _ = Null.grow(NonNull::dangling(), Layout::new::<()>(), 0); [INFO] [stdout] | ^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/null.rs:177:80 [INFO] [stdout] | [INFO] [stdout] 177 | let _ = Null.grow_zeroed(NonNull::dangling(), Layout::new::<()>(), 0); [INFO] [stdout] | ^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/null.rs:201:75 [INFO] [stdout] | [INFO] [stdout] 201 | let _ = Null.shrink(NonNull::dangling(), Layout::new::<()>(), 0); [INFO] [stdout] | ^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/proxy.rs:114:51 [INFO] [stdout] | [INFO] [stdout] 114 | let result = self.alloc.grow(ptr, layout, new_size); [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/proxy.rs:128:58 [INFO] [stdout] | [INFO] [stdout] 128 | let result = self.alloc.grow_zeroed(ptr, layout, new_size); [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/proxy.rs:143:53 [INFO] [stdout] | [INFO] [stdout] 143 | let result = self.alloc.shrink(ptr, layout, new_size); [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `slice_get_ref` found for union `std::mem::MaybeUninit<_>` in the current scope [INFO] [stdout] --> src/region.rs:393:37 [INFO] [stdout] | [INFO] [stdout] 393 | assert_eq!(MaybeUninit::slice_get_ref(&data), &[1; 32][..]); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `std::mem::MaybeUninit<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `slice_get_ref` found for union `std::mem::MaybeUninit<_>` in the current scope [INFO] [stdout] --> src/region.rs:411:37 [INFO] [stdout] | [INFO] [stdout] 411 | assert_eq!(MaybeUninit::slice_get_ref(&data), &[0; 32][..]); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `std::mem::MaybeUninit<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `slice_get_ref` found for union `std::mem::MaybeUninit<_>` in the current scope [INFO] [stdout] --> src/region.rs:460:37 [INFO] [stdout] | [INFO] [stdout] 460 | assert_eq!(MaybeUninit::slice_get_ref(&data[0..16]), &[1; 16][..]); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `std::mem::MaybeUninit<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `slice_get_ref` found for union `std::mem::MaybeUninit<_>` in the current scope [INFO] [stdout] --> src/region.rs:461:37 [INFO] [stdout] | [INFO] [stdout] 461 | assert_eq!(MaybeUninit::slice_get_ref(&data[16..]), &[0; 16][..]); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `std::mem::MaybeUninit<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `slice_get_ref` found for union `std::mem::MaybeUninit<_>` in the current scope [INFO] [stdout] --> src/region.rs:476:37 [INFO] [stdout] | [INFO] [stdout] 476 | assert_eq!(MaybeUninit::slice_get_ref(&data), &[1; 32][..]); [INFO] [stdout] | ^^^^^^^^^^^^^ function or associated item not found in `std::mem::MaybeUninit<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/region.rs:557:57 [INFO] [stdout] | [INFO] [stdout] 557 | .grow(memory.as_non_null_ptr(), layout, 16) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/region.rs:573:78 [INFO] [stdout] | [INFO] [stdout] 573 | .shrink(memory.as_non_null_ptr(), Layout::new::<[u8; 16]>(), 8) [INFO] [stdout] | ^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:76:59 [INFO] [stdout] | [INFO] [stdout] 76 | let memory = self.small.grow(ptr, layout, new_size)?; [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:80:42 [INFO] [stdout] | [INFO] [stdout] 80 | self.large.grow(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:101:66 [INFO] [stdout] | [INFO] [stdout] 101 | let memory = self.small.grow_zeroed(ptr, layout, new_size)?; [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:105:49 [INFO] [stdout] | [INFO] [stdout] 105 | self.large.grow_zeroed(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:116:57 [INFO] [stdout] | [INFO] [stdout] 116 | let memory = self.small.shrink(ptr, layout, new_size)?; [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:123:44 [INFO] [stdout] | [INFO] [stdout] 123 | self.large.shrink(ptr, layout, new_size) [INFO] [stdout] | ^^^^^^^^ expected struct `std::alloc::Layout`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:279:72 [INFO] [stdout] | [INFO] [stdout] 279 | .grow(mem.as_non_null_ptr(), Layout::new::<[u8; 8]>(), 16) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:286:72 [INFO] [stdout] | [INFO] [stdout] 286 | .grow(mem.as_non_null_ptr(), Layout::new::<[u8; 8]>(), 32) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:293:73 [INFO] [stdout] | [INFO] [stdout] 293 | .grow(mem.as_non_null_ptr(), Layout::new::<[u8; 32]>(), 33) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/segregate.rs:301:73 [INFO] [stdout] | [INFO] [stdout] 301 | .grow(mem.as_non_null_ptr(), Layout::new::<[u8; 33]>(), 64) [INFO] [stdout] | ^^ expected struct `std::alloc::Layout`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 100 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0053, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0053`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "ef13c13ca6819543ac8b742d8108e5f409084070321d6608784f97fe9653f14d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef13c13ca6819543ac8b742d8108e5f409084070321d6608784f97fe9653f14d", kill_on_drop: false }` [INFO] [stdout] ef13c13ca6819543ac8b742d8108e5f409084070321d6608784f97fe9653f14d