[INFO] cloning repository https://github.com/rysndavjd/simple_alloc
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rysndavjd/simple_alloc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frysndavjd%2Fsimple_alloc", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frysndavjd%2Fsimple_alloc'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] da937a6be9108662e4e31ba3638b6746e0ed3c8e
[INFO] testing rysndavjd/simple_alloc against try#0abe69e6c16114311cc2700e972492e64d69c28f for pr-154065-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frysndavjd%2Fsimple_alloc" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/rysndavjd/simple_alloc
[INFO] finished tweaking git repo https://github.com/rysndavjd/simple_alloc
[INFO] tweaked toml for git repo https://github.com/rysndavjd/simple_alloc written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/rysndavjd/simple_alloc on toolchain 0abe69e6c16114311cc2700e972492e64d69c28f
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/rysndavjd/simple_alloc already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 2cd3d5941716a536477d708302dbd48bd98a71f4a9305b31f7333b4bbe7c7b95
[INFO] running `Command { std: "docker" "start" "-a" "2cd3d5941716a536477d708302dbd48bd98a71f4a9305b31f7333b4bbe7c7b95", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2cd3d5941716a536477d708302dbd48bd98a71f4a9305b31f7333b4bbe7c7b95", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2cd3d5941716a536477d708302dbd48bd98a71f4a9305b31f7333b4bbe7c7b95", kill_on_drop: false }`
[INFO] [stdout] 2cd3d5941716a536477d708302dbd48bd98a71f4a9305b31f7333b4bbe7c7b95
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0bab091313250b4b7915ff6ce58cbac398b94d76c53b4b05f8eb6640aeb5bc47
[INFO] running `Command { std: "docker" "start" "-a" "0bab091313250b4b7915ff6ce58cbac398b94d76c53b4b05f8eb6640aeb5bc47", kill_on_drop: false }`
[INFO] [stderr]    Compiling spin v0.10.0
[INFO] [stderr]    Compiling simple_alloc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `ptr`
[INFO] [stdout]    --> src/ralloc/buddy.rs:232:31
[INFO] [stdout]     |
[INFO] [stdout] 232 |     fn deallocate_page(&self, ptr: NonNull<u8>, nr_pages: usize) {
[INFO] [stdout]     |                               ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `nr_pages`
[INFO] [stdout]    --> src/ralloc/buddy.rs:232:49
[INFO] [stdout]     |
[INFO] [stdout] 232 |     fn deallocate_page(&self, ptr: NonNull<u8>, nr_pages: usize) {
[INFO] [stdout]     |                                                 ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nr_pages`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `layout`
[INFO] [stdout]   --> src/ralloc.rs:87:24
[INFO] [stdout]    |
[INFO] [stdout] 87 |     fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocatorError> {
[INFO] [stdout]    |                        ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ptr`
[INFO] [stdout]   --> src/ralloc.rs:91:33
[INFO] [stdout]    |
[INFO] [stdout] 91 |     unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
[INFO] [stdout]    |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `layout`
[INFO] [stdout]   --> src/ralloc.rs:91:51
[INFO] [stdout]    |
[INFO] [stdout] 91 |     unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
[INFO] [stdout]    |                                                   ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `HEAP_NOT_POWER_TWO` is never used
[INFO] [stdout]   --> src/common.rs:14:11
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub const HEAP_NOT_POWER_TWO: &str = "Heap not a power of 2";
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Alignment` is never constructed
[INFO] [stdout]   --> src/common.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub enum AllocatorError {
[INFO] [stdout]    |          -------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 26 |     Alignment(Layout),
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `PAGE_SIZE` is never used
[INFO] [stdout]   --> src/ralloc.rs:11:11
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub const PAGE_SIZE: usize = 4096;
[INFO] [stdout]    |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `PAGE_SHIFT` is never used
[INFO] [stdout]   --> src/ralloc.rs:12:11
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub const PAGE_SHIFT: usize = 12;
[INFO] [stdout]    |           ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `SizeClass` is never used
[INFO] [stdout]   --> src/ralloc.rs:15:6
[INFO] [stdout]    |
[INFO] [stdout] 15 | enum SizeClass {
[INFO] [stdout]    |      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `NR_BINNED` is never used
[INFO] [stdout]   --> src/ralloc.rs:28:11
[INFO] [stdout]    |
[INFO] [stdout] 26 | impl SizeClass {
[INFO] [stdout]    | -------------- associated constant in this implementation
[INFO] [stdout] 27 |     /// Number of classes that has a bin for allocations
[INFO] [stdout] 28 |     const NR_BINNED: usize = 8;
[INFO] [stdout]    |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `AllocClass` is never used
[INFO] [stdout]   --> src/ralloc.rs:31:6
[INFO] [stdout]    |
[INFO] [stdout] 31 | enum AllocClass {
[INFO] [stdout]    |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `pages_needed` is never used
[INFO] [stdout]   --> src/ralloc.rs:38:8
[INFO] [stdout]    |
[INFO] [stdout] 37 | impl AllocClass {
[INFO] [stdout]    | --------------- associated function in this implementation
[INFO] [stdout] 38 |     fn pages_needed(size: usize) -> usize {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FreeSlot` is never constructed
[INFO] [stdout]   --> src/ralloc.rs:59:8
[INFO] [stdout]    |
[INFO] [stdout] 59 | struct FreeSlot {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FreePage` is never constructed
[INFO] [stdout]   --> src/ralloc.rs:67:8
[INFO] [stdout]    |
[INFO] [stdout] 67 | struct FreePage {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Bin` is never constructed
[INFO] [stdout]   --> src/ralloc.rs:75:8
[INFO] [stdout]    |
[INFO] [stdout] 75 | struct Bin {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ralloc` is never constructed
[INFO] [stdout]   --> src/ralloc.rs:81:8
[INFO] [stdout]    |
[INFO] [stdout] 81 | struct Ralloc<const NR_ORDER: usize> {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `allocate` and `deallocate` are never used
[INFO] [stdout]   --> src/ralloc.rs:87:8
[INFO] [stdout]    |
[INFO] [stdout] 86 | impl<const NR_ORDER: usize> Ralloc<NR_ORDER> {
[INFO] [stdout]    | -------------------------------------------- methods in this implementation
[INFO] [stdout] 87 |     fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocatorError> {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 91 |     unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
[INFO] [stdout]    |               ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `BuddyError` is never used
[INFO] [stdout]  --> src/ralloc/buddy.rs:9:6
[INFO] [stdout]   |
[INFO] [stdout] 9 | enum BuddyError {
[INFO] [stdout]   |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Chunk` is never constructed
[INFO] [stdout]   --> src/ralloc/buddy.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | struct Chunk {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `start_addr`, `end_addr`, and `buddy_addr` are never used
[INFO] [stdout]   --> src/ralloc/buddy.rs:23:14
[INFO] [stdout]    |
[INFO] [stdout] 22 | impl Chunk {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 23 |     const fn new() -> Self {
[INFO] [stdout]    |              ^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     fn start_addr(&self) -> usize {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 |     fn end_addr(&self, order: usize) -> usize {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     fn buddy_addr(&self, order: usize) -> usize {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Chunks` is never constructed
[INFO] [stdout]   --> src/ralloc/buddy.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | struct Chunks {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `push`, and `pop` are never used
[INFO] [stdout]   --> src/ralloc/buddy.rs:48:14
[INFO] [stdout]    |
[INFO] [stdout] 47 | impl Chunks {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 48 |     const fn new() -> Chunks {
[INFO] [stdout]    |              ^^^
[INFO] [stdout] ...
[INFO] [stdout] 55 |     fn push(&mut self, mut chunk: NonNull<Chunk>) {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 81 |     fn pop(&mut self) -> Option<NonNull<Chunk>> {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Buddy` is never constructed
[INFO] [stdout]   --> src/ralloc/buddy.rs:96:12
[INFO] [stdout]    |
[INFO] [stdout] 96 | pub struct Buddy<const NR_ORDER: usize> {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `size_align_pages`, `add_area`, `split_down`, `combine_up`, `allocate_page`, and `deallocate_page` are never used
[INFO] [stdout]    --> src/ralloc/buddy.rs:105:8
[INFO] [stdout]     |
[INFO] [stdout] 102 | impl<const NR_ORDER: usize> Buddy<NR_ORDER> {
[INFO] [stdout]     | ------------------------------------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 105 |     fn size_align_pages(layout: Layout) -> Result<usize, BuddyError> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 114 |     fn add_area(&mut self, addr: NonNull<u8>, order: usize) {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 130 |     fn split_down(&mut self, source_order: usize) -> Result<(), BuddyError> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 163 |     fn combine_up(&mut self, source_order: usize) -> Result<(), BuddyError> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 192 |     fn allocate_page(&mut self, nr_pages: usize) -> Result<NonNull<[u8]>, BuddyError> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 232 |     fn deallocate_page(&self, ptr: NonNull<u8>, nr_pages: usize) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.32s
[INFO] running `Command { std: "docker" "inspect" "0bab091313250b4b7915ff6ce58cbac398b94d76c53b4b05f8eb6640aeb5bc47", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0bab091313250b4b7915ff6ce58cbac398b94d76c53b4b05f8eb6640aeb5bc47", kill_on_drop: false }`
[INFO] [stdout] 0bab091313250b4b7915ff6ce58cbac398b94d76c53b4b05f8eb6640aeb5bc47
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] eb59c4ea87b733b2d7cd9c49cef88af456069b1891d3b2b4eaa9a003fdc5eaca
[INFO] running `Command { std: "docker" "start" "-a" "eb59c4ea87b733b2d7cd9c49cef88af456069b1891d3b2b4eaa9a003fdc5eaca", kill_on_drop: false }`
[INFO] [stdout] warning: unused variable: `ptr`
[INFO] [stdout]    --> src/ralloc/buddy.rs:232:31
[INFO] [stdout]     |
[INFO] [stdout] 232 |     fn deallocate_page(&self, ptr: NonNull<u8>, nr_pages: usize) {
[INFO] [stdout]     |                               ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling simple_alloc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `nr_pages`
[INFO] [stdout]    --> src/ralloc/buddy.rs:232:49
[INFO] [stdout]     |
[INFO] [stdout] 232 |     fn deallocate_page(&self, ptr: NonNull<u8>, nr_pages: usize) {
[INFO] [stdout]     |                                                 ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nr_pages`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `layout`
[INFO] [stdout]   --> src/ralloc.rs:87:24
[INFO] [stdout]    |
[INFO] [stdout] 87 |     fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocatorError> {
[INFO] [stdout]    |                        ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ptr`
[INFO] [stdout]   --> src/ralloc.rs:91:33
[INFO] [stdout]    |
[INFO] [stdout] 91 |     unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
[INFO] [stdout]    |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `layout`
[INFO] [stdout]   --> src/ralloc.rs:91:51
[INFO] [stdout]    |
[INFO] [stdout] 91 |     unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
[INFO] [stdout]    |                                                   ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `HEAP_NOT_POWER_TWO` is never used
[INFO] [stdout]   --> src/common.rs:14:11
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub const HEAP_NOT_POWER_TWO: &str = "Heap not a power of 2";
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Alignment` is never constructed
[INFO] [stdout]   --> src/common.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub enum AllocatorError {
[INFO] [stdout]    |          -------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 26 |     Alignment(Layout),
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `PAGE_SIZE` is never used
[INFO] [stdout]   --> src/ralloc.rs:11:11
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub const PAGE_SIZE: usize = 4096;
[INFO] [stdout]    |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `PAGE_SHIFT` is never used
[INFO] [stdout]   --> src/ralloc.rs:12:11
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub const PAGE_SHIFT: usize = 12;
[INFO] [stdout]    |           ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `SizeClass` is never used
[INFO] [stdout]   --> src/ralloc.rs:15:6
[INFO] [stdout]    |
[INFO] [stdout] 15 | enum SizeClass {
[INFO] [stdout]    |      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `NR_BINNED` is never used
[INFO] [stdout]   --> src/ralloc.rs:28:11
[INFO] [stdout]    |
[INFO] [stdout] 26 | impl SizeClass {
[INFO] [stdout]    | -------------- associated constant in this implementation
[INFO] [stdout] 27 |     /// Number of classes that has a bin for allocations
[INFO] [stdout] 28 |     const NR_BINNED: usize = 8;
[INFO] [stdout]    |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `AllocClass` is never used
[INFO] [stdout]   --> src/ralloc.rs:31:6
[INFO] [stdout]    |
[INFO] [stdout] 31 | enum AllocClass {
[INFO] [stdout]    |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `pages_needed` is never used
[INFO] [stdout]   --> src/ralloc.rs:38:8
[INFO] [stdout]    |
[INFO] [stdout] 37 | impl AllocClass {
[INFO] [stdout]    | --------------- associated function in this implementation
[INFO] [stdout] 38 |     fn pages_needed(size: usize) -> usize {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FreeSlot` is never constructed
[INFO] [stdout]   --> src/ralloc.rs:59:8
[INFO] [stdout]    |
[INFO] [stdout] 59 | struct FreeSlot {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FreePage` is never constructed
[INFO] [stdout]   --> src/ralloc.rs:67:8
[INFO] [stdout]    |
[INFO] [stdout] 67 | struct FreePage {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Bin` is never constructed
[INFO] [stdout]   --> src/ralloc.rs:75:8
[INFO] [stdout]    |
[INFO] [stdout] 75 | struct Bin {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ralloc` is never constructed
[INFO] [stdout]   --> src/ralloc.rs:81:8
[INFO] [stdout]    |
[INFO] [stdout] 81 | struct Ralloc<const NR_ORDER: usize> {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `allocate` and `deallocate` are never used
[INFO] [stdout]   --> src/ralloc.rs:87:8
[INFO] [stdout]    |
[INFO] [stdout] 86 | impl<const NR_ORDER: usize> Ralloc<NR_ORDER> {
[INFO] [stdout]    | -------------------------------------------- methods in this implementation
[INFO] [stdout] 87 |     fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocatorError> {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 91 |     unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
[INFO] [stdout]    |               ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `BuddyError` is never used
[INFO] [stdout]  --> src/ralloc/buddy.rs:9:6
[INFO] [stdout]   |
[INFO] [stdout] 9 | enum BuddyError {
[INFO] [stdout]   |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Chunk` is never constructed
[INFO] [stdout]   --> src/ralloc/buddy.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | struct Chunk {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `start_addr`, `end_addr`, and `buddy_addr` are never used
[INFO] [stdout]   --> src/ralloc/buddy.rs:23:14
[INFO] [stdout]    |
[INFO] [stdout] 22 | impl Chunk {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 23 |     const fn new() -> Self {
[INFO] [stdout]    |              ^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     fn start_addr(&self) -> usize {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 |     fn end_addr(&self, order: usize) -> usize {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     fn buddy_addr(&self, order: usize) -> usize {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Chunks` is never constructed
[INFO] [stdout]   --> src/ralloc/buddy.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | struct Chunks {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `push`, and `pop` are never used
[INFO] [stdout]   --> src/ralloc/buddy.rs:48:14
[INFO] [stdout]    |
[INFO] [stdout] 47 | impl Chunks {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 48 |     const fn new() -> Chunks {
[INFO] [stdout]    |              ^^^
[INFO] [stdout] ...
[INFO] [stdout] 55 |     fn push(&mut self, mut chunk: NonNull<Chunk>) {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 81 |     fn pop(&mut self) -> Option<NonNull<Chunk>> {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Buddy` is never constructed
[INFO] [stdout]   --> src/ralloc/buddy.rs:96:12
[INFO] [stdout]    |
[INFO] [stdout] 96 | pub struct Buddy<const NR_ORDER: usize> {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `size_align_pages`, `add_area`, `split_down`, `combine_up`, `allocate_page`, and `deallocate_page` are never used
[INFO] [stdout]    --> src/ralloc/buddy.rs:105:8
[INFO] [stdout]     |
[INFO] [stdout] 102 | impl<const NR_ORDER: usize> Buddy<NR_ORDER> {
[INFO] [stdout]     | ------------------------------------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 105 |     fn size_align_pages(layout: Layout) -> Result<usize, BuddyError> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 114 |     fn add_area(&mut self, addr: NonNull<u8>, order: usize) {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 130 |     fn split_down(&mut self, source_order: usize) -> Result<(), BuddyError> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 163 |     fn combine_up(&mut self, source_order: usize) -> Result<(), BuddyError> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 192 |     fn allocate_page(&mut self, nr_pages: usize) -> Result<NonNull<[u8]>, BuddyError> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 232 |     fn deallocate_page(&self, ptr: NonNull<u8>, nr_pages: usize) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ptr`
[INFO] [stdout]    --> src/ralloc/buddy.rs:232:31
[INFO] [stdout]     |
[INFO] [stdout] 232 |     fn deallocate_page(&self, ptr: NonNull<u8>, nr_pages: usize) {
[INFO] [stdout]     |                               ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `nr_pages`
[INFO] [stdout]    --> src/ralloc/buddy.rs:232:49
[INFO] [stdout]     |
[INFO] [stdout] 232 |     fn deallocate_page(&self, ptr: NonNull<u8>, nr_pages: usize) {
[INFO] [stdout]     |                                                 ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nr_pages`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `layout`
[INFO] [stdout]   --> src/ralloc.rs:87:24
[INFO] [stdout]    |
[INFO] [stdout] 87 |     fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocatorError> {
[INFO] [stdout]    |                        ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ptr`
[INFO] [stdout]   --> src/ralloc.rs:91:33
[INFO] [stdout]    |
[INFO] [stdout] 91 |     unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
[INFO] [stdout]    |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `layout`
[INFO] [stdout]   --> src/ralloc.rs:91:51
[INFO] [stdout]    |
[INFO] [stdout] 91 |     unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
[INFO] [stdout]    |                                                   ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `HEAP_NOT_POWER_TWO` is never used
[INFO] [stdout]   --> src/common.rs:14:11
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub const HEAP_NOT_POWER_TWO: &str = "Heap not a power of 2";
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Alignment` is never constructed
[INFO] [stdout]   --> src/common.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub enum AllocatorError {
[INFO] [stdout]    |          -------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 26 |     Alignment(Layout),
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `PAGE_SIZE` is never used
[INFO] [stdout]   --> src/ralloc.rs:11:11
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub const PAGE_SIZE: usize = 4096;
[INFO] [stdout]    |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `PAGE_SHIFT` is never used
[INFO] [stdout]   --> src/ralloc.rs:12:11
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub const PAGE_SHIFT: usize = 12;
[INFO] [stdout]    |           ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `SizeClass` is never used
[INFO] [stdout]   --> src/ralloc.rs:15:6
[INFO] [stdout]    |
[INFO] [stdout] 15 | enum SizeClass {
[INFO] [stdout]    |      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `NR_BINNED` is never used
[INFO] [stdout]   --> src/ralloc.rs:28:11
[INFO] [stdout]    |
[INFO] [stdout] 26 | impl SizeClass {
[INFO] [stdout]    | -------------- associated constant in this implementation
[INFO] [stdout] 27 |     /// Number of classes that has a bin for allocations
[INFO] [stdout] 28 |     const NR_BINNED: usize = 8;
[INFO] [stdout]    |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `AllocClass` is never used
[INFO] [stdout]   --> src/ralloc.rs:31:6
[INFO] [stdout]    |
[INFO] [stdout] 31 | enum AllocClass {
[INFO] [stdout]    |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `pages_needed` is never used
[INFO] [stdout]   --> src/ralloc.rs:38:8
[INFO] [stdout]    |
[INFO] [stdout] 37 | impl AllocClass {
[INFO] [stdout]    | --------------- associated function in this implementation
[INFO] [stdout] 38 |     fn pages_needed(size: usize) -> usize {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FreeSlot` is never constructed
[INFO] [stdout]   --> src/ralloc.rs:59:8
[INFO] [stdout]    |
[INFO] [stdout] 59 | struct FreeSlot {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `FreePage` is never constructed
[INFO] [stdout]   --> src/ralloc.rs:67:8
[INFO] [stdout]    |
[INFO] [stdout] 67 | struct FreePage {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Bin` is never constructed
[INFO] [stdout]   --> src/ralloc.rs:75:8
[INFO] [stdout]    |
[INFO] [stdout] 75 | struct Bin {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Ralloc` is never constructed
[INFO] [stdout]   --> src/ralloc.rs:81:8
[INFO] [stdout]    |
[INFO] [stdout] 81 | struct Ralloc<const NR_ORDER: usize> {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `allocate` and `deallocate` are never used
[INFO] [stdout]   --> src/ralloc.rs:87:8
[INFO] [stdout]    |
[INFO] [stdout] 86 | impl<const NR_ORDER: usize> Ralloc<NR_ORDER> {
[INFO] [stdout]    | -------------------------------------------- methods in this implementation
[INFO] [stdout] 87 |     fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocatorError> {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 91 |     unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
[INFO] [stdout]    |               ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `BuddyError` is never used
[INFO] [stdout]  --> src/ralloc/buddy.rs:9:6
[INFO] [stdout]   |
[INFO] [stdout] 9 | enum BuddyError {
[INFO] [stdout]   |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Chunk` is never constructed
[INFO] [stdout]   --> src/ralloc/buddy.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | struct Chunk {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `start_addr`, `end_addr`, and `buddy_addr` are never used
[INFO] [stdout]   --> src/ralloc/buddy.rs:23:14
[INFO] [stdout]    |
[INFO] [stdout] 22 | impl Chunk {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 23 |     const fn new() -> Self {
[INFO] [stdout]    |              ^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     fn start_addr(&self) -> usize {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 31 |     fn end_addr(&self, order: usize) -> usize {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     fn buddy_addr(&self, order: usize) -> usize {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Chunks` is never constructed
[INFO] [stdout]   --> src/ralloc/buddy.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | struct Chunks {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `push`, and `pop` are never used
[INFO] [stdout]   --> src/ralloc/buddy.rs:48:14
[INFO] [stdout]    |
[INFO] [stdout] 47 | impl Chunks {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 48 |     const fn new() -> Chunks {
[INFO] [stdout]    |              ^^^
[INFO] [stdout] ...
[INFO] [stdout] 55 |     fn push(&mut self, mut chunk: NonNull<Chunk>) {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 81 |     fn pop(&mut self) -> Option<NonNull<Chunk>> {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Buddy` is never constructed
[INFO] [stdout]   --> src/ralloc/buddy.rs:96:12
[INFO] [stdout]    |
[INFO] [stdout] 96 | pub struct Buddy<const NR_ORDER: usize> {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `size_align_pages`, `add_area`, `split_down`, `combine_up`, `allocate_page`, and `deallocate_page` are never used
[INFO] [stdout]    --> src/ralloc/buddy.rs:105:8
[INFO] [stdout]     |
[INFO] [stdout] 102 | impl<const NR_ORDER: usize> Buddy<NR_ORDER> {
[INFO] [stdout]     | ------------------------------------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 105 |     fn size_align_pages(layout: Layout) -> Result<usize, BuddyError> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 114 |     fn add_area(&mut self, addr: NonNull<u8>, order: usize) {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 130 |     fn split_down(&mut self, source_order: usize) -> Result<(), BuddyError> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 163 |     fn combine_up(&mut self, source_order: usize) -> Result<(), BuddyError> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 192 |     fn allocate_page(&mut self, nr_pages: usize) -> Result<NonNull<[u8]>, BuddyError> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 232 |     fn deallocate_page(&self, ptr: NonNull<u8>, nr_pages: usize) {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.42s
[INFO] running `Command { std: "docker" "inspect" "eb59c4ea87b733b2d7cd9c49cef88af456069b1891d3b2b4eaa9a003fdc5eaca", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "eb59c4ea87b733b2d7cd9c49cef88af456069b1891d3b2b4eaa9a003fdc5eaca", kill_on_drop: false }`
[INFO] [stdout] eb59c4ea87b733b2d7cd9c49cef88af456069b1891d3b2b4eaa9a003fdc5eaca
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0abe69e6c16114311cc2700e972492e64d69c28f" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 405a4555c9777c3fc0ab1c740519755b53763eb1bc41e8d19b60c56347018522
[INFO] running `Command { std: "docker" "start" "-a" "405a4555c9777c3fc0ab1c740519755b53763eb1bc41e8d19b60c56347018522", kill_on_drop: false }`
[INFO] [stderr] warning: unused variable: `ptr`
[INFO] [stderr]    --> src/ralloc/buddy.rs:232:31
[INFO] [stderr]     |
[INFO] [stderr] 232 |     fn deallocate_page(&self, ptr: NonNull<u8>, nr_pages: usize) {
[INFO] [stderr]     |                               ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `nr_pages`
[INFO] [stderr]    --> src/ralloc/buddy.rs:232:49
[INFO] [stderr]     |
[INFO] [stderr] 232 |     fn deallocate_page(&self, ptr: NonNull<u8>, nr_pages: usize) {
[INFO] [stderr]     |                                                 ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nr_pages`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `layout`
[INFO] [stderr]   --> src/ralloc.rs:87:24
[INFO] [stderr]    |
[INFO] [stderr] 87 |     fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocatorError> {
[INFO] [stderr]    |                        ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `ptr`
[INFO] [stderr]   --> src/ralloc.rs:91:33
[INFO] [stderr]    |
[INFO] [stderr] 91 |     unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
[INFO] [stderr]    |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `layout`
[INFO] [stderr]   --> src/ralloc.rs:91:51
[INFO] [stderr]    |
[INFO] [stderr] 91 |     unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
[INFO] [stderr]    |                                                   ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout`
[INFO] [stderr] 
[INFO] [stderr] warning: constant `HEAP_NOT_POWER_TWO` is never used
[INFO] [stderr]   --> src/common.rs:14:11
[INFO] [stderr]    |
[INFO] [stderr] 14 | pub const HEAP_NOT_POWER_TWO: &str = "Heap not a power of 2";
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variant `Alignment` is never constructed
[INFO] [stderr]   --> src/common.rs:26:5
[INFO] [stderr]    |
[INFO] [stderr] 22 | pub enum AllocatorError {
[INFO] [stderr]    |          -------------- variant in this enum
[INFO] [stderr] ...
[INFO] [stderr] 26 |     Alignment(Layout),
[INFO] [stderr]    |     ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `PAGE_SIZE` is never used
[INFO] [stderr]   --> src/ralloc.rs:11:11
[INFO] [stderr]    |
[INFO] [stderr] 11 | pub const PAGE_SIZE: usize = 4096;
[INFO] [stderr]    |           ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: constant `PAGE_SHIFT` is never used
[INFO] [stderr]   --> src/ralloc.rs:12:11
[INFO] [stderr]    |
[INFO] [stderr] 12 | pub const PAGE_SHIFT: usize = 12;
[INFO] [stderr]    |           ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `SizeClass` is never used
[INFO] [stderr]   --> src/ralloc.rs:15:6
[INFO] [stderr]    |
[INFO] [stderr] 15 | enum SizeClass {
[INFO] [stderr]    |      ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated constant `NR_BINNED` is never used
[INFO] [stderr]   --> src/ralloc.rs:28:11
[INFO] [stderr]    |
[INFO] [stderr] 26 | impl SizeClass {
[INFO] [stderr]    | -------------- associated constant in this implementation
[INFO] [stderr] 27 |     /// Number of classes that has a bin for allocations
[INFO] [stderr] 28 |     const NR_BINNED: usize = 8;
[INFO] [stderr]    |           ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `AllocClass` is never used
[INFO] [stderr]   --> src/ralloc.rs:31:6
[INFO] [stderr]    |
[INFO] [stderr] 31 | enum AllocClass {
[INFO] [stderr]    |      ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `pages_needed` is never used
[INFO] [stderr]   --> src/ralloc.rs:38:8
[INFO] [stderr]    |
[INFO] [stderr] 37 | impl AllocClass {
[INFO] [stderr]    | --------------- associated function in this implementation
[INFO] [stderr] 38 |     fn pages_needed(size: usize) -> usize {
[INFO] [stderr]    |        ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `FreeSlot` is never constructed
[INFO] [stderr]   --> src/ralloc.rs:59:8
[INFO] [stderr]    |
[INFO] [stderr] 59 | struct FreeSlot {
[INFO] [stderr]    |        ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `FreePage` is never constructed
[INFO] [stderr]   --> src/ralloc.rs:67:8
[INFO] [stderr]    |
[INFO] [stderr] 67 | struct FreePage {
[INFO] [stderr]    |        ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Bin` is never constructed
[INFO] [stderr]   --> src/ralloc.rs:75:8
[INFO] [stderr]    |
[INFO] [stderr] 75 | struct Bin {
[INFO] [stderr]    |        ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Ralloc` is never constructed
[INFO] [stderr]   --> src/ralloc.rs:81:8
[INFO] [stderr]    |
[INFO] [stderr] 81 | struct Ralloc<const NR_ORDER: usize> {
[INFO] [stderr]    |        ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `allocate` and `deallocate` are never used
[INFO] [stderr]   --> src/ralloc.rs:87:8
[INFO] [stderr]    |
[INFO] [stderr] 86 | impl<const NR_ORDER: usize> Ralloc<NR_ORDER> {
[INFO] [stderr]    | -------------------------------------------- methods in this implementation
[INFO] [stderr] 87 |     fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocatorError> {
[INFO] [stderr]    |        ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 91 |     unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
[INFO] [stderr]    |               ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `BuddyError` is never used
[INFO] [stderr]  --> src/ralloc/buddy.rs:9:6
[INFO] [stderr]   |
[INFO] [stderr] 9 | enum BuddyError {
[INFO] [stderr]   |      ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Chunk` is never constructed
[INFO] [stderr]   --> src/ralloc/buddy.rs:18:8
[INFO] [stderr]    |
[INFO] [stderr] 18 | struct Chunk {
[INFO] [stderr]    |        ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `start_addr`, `end_addr`, and `buddy_addr` are never used
[INFO] [stderr]   --> src/ralloc/buddy.rs:23:14
[INFO] [stderr]    |
[INFO] [stderr] 22 | impl Chunk {
[INFO] [stderr]    | ---------- associated items in this implementation
[INFO] [stderr] 23 |     const fn new() -> Self {
[INFO] [stderr]    |              ^^^
[INFO] [stderr] ...
[INFO] [stderr] 27 |     fn start_addr(&self) -> usize {
[INFO] [stderr]    |        ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 31 |     fn end_addr(&self, order: usize) -> usize {
[INFO] [stderr]    |        ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 35 |     fn buddy_addr(&self, order: usize) -> usize {
[INFO] [stderr]    |        ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Chunks` is never constructed
[INFO] [stderr]   --> src/ralloc/buddy.rs:42:8
[INFO] [stderr]    |
[INFO] [stderr] 42 | struct Chunks {
[INFO] [stderr]    |        ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `push`, and `pop` are never used
[INFO] [stderr]   --> src/ralloc/buddy.rs:48:14
[INFO] [stderr]    |
[INFO] [stderr] 47 | impl Chunks {
[INFO] [stderr]    | ----------- associated items in this implementation
[INFO] [stderr] 48 |     const fn new() -> Chunks {
[INFO] [stderr]    |              ^^^
[INFO] [stderr] ...
[INFO] [stderr] 55 |     fn push(&mut self, mut chunk: NonNull<Chunk>) {
[INFO] [stderr]    |        ^^^^
[INFO] [stderr] ...
[INFO] [stderr] 81 |     fn pop(&mut self) -> Option<NonNull<Chunk>> {
[INFO] [stderr]    |        ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Buddy` is never constructed
[INFO] [stderr]   --> src/ralloc/buddy.rs:96:12
[INFO] [stderr]    |
[INFO] [stderr] 96 | pub struct Buddy<const NR_ORDER: usize> {
[INFO] [stderr]    |            ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `size_align_pages`, `add_area`, `split_down`, `combine_up`, `allocate_page`, and `deallocate_page` are never used
[INFO] [stderr]    --> src/ralloc/buddy.rs:105:8
[INFO] [stderr]     |
[INFO] [stderr] 102 | impl<const NR_ORDER: usize> Buddy<NR_ORDER> {
[INFO] [stderr]     | ------------------------------------------- associated items in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 105 |     fn size_align_pages(layout: Layout) -> Result<usize, BuddyError> {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 114 |     fn add_area(&mut self, addr: NonNull<u8>, order: usize) {
[INFO] [stderr]     |        ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 130 |     fn split_down(&mut self, source_order: usize) -> Result<(), BuddyError> {
[INFO] [stderr]     |        ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 163 |     fn combine_up(&mut self, source_order: usize) -> Result<(), BuddyError> {
[INFO] [stderr]     |        ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 192 |     fn allocate_page(&mut self, nr_pages: usize) -> Result<NonNull<[u8]>, BuddyError> {
[INFO] [stderr]     |        ^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 232 |     fn deallocate_page(&self, ptr: NonNull<u8>, nr_pages: usize) {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `simple_alloc` (lib) generated 25 warnings (run `cargo fix --lib -p simple_alloc` to apply 5 suggestions)
[INFO] [stderr] warning: `simple_alloc` (lib test) generated 25 warnings (25 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/simple_alloc-c9c557e9824437d7)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests simple_alloc
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "405a4555c9777c3fc0ab1c740519755b53763eb1bc41e8d19b60c56347018522", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "405a4555c9777c3fc0ab1c740519755b53763eb1bc41e8d19b60c56347018522", kill_on_drop: false }`
[INFO] [stdout] 405a4555c9777c3fc0ab1c740519755b53763eb1bc41e8d19b60c56347018522
