[INFO] cloning repository https://github.com/segfo/page_allocator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/segfo/page_allocator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsegfo%2Fpage_allocator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsegfo%2Fpage_allocator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 51b9c6b06bfac95754c995e4f43cbcc566dc2736 [INFO] checking segfo/page_allocator against master#1204400ab8da9830f6f77a5e40e7ad3ea459676a for pr-94295 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsegfo%2Fpage_allocator" "/workspace/builds/worker-90/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-90/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/segfo/page_allocator on toolchain 1204400ab8da9830f6f77a5e40e7ad3ea459676a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1204400ab8da9830f6f77a5e40e7ad3ea459676a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/segfo/page_allocator [INFO] finished tweaking git repo https://github.com/segfo/page_allocator [INFO] tweaked toml for git repo https://github.com/segfo/page_allocator written to /workspace/builds/worker-90/source/Cargo.toml [INFO] crate git repo https://github.com/segfo/page_allocator already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1204400ab8da9830f6f77a5e40e7ad3ea459676a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-90/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-90/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1204400ab8da9830f6f77a5e40e7ad3ea459676a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bdf4ae2eeb8fd12b50b05b3fe9a15e28e014bd2104ab3ba9a5d7c21ebffe8727 [INFO] running `Command { std: "docker" "start" "-a" "bdf4ae2eeb8fd12b50b05b3fe9a15e28e014bd2104ab3ba9a5d7c21ebffe8727", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bdf4ae2eeb8fd12b50b05b3fe9a15e28e014bd2104ab3ba9a5d7c21ebffe8727", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdf4ae2eeb8fd12b50b05b3fe9a15e28e014bd2104ab3ba9a5d7c21ebffe8727", kill_on_drop: false }` [INFO] [stdout] bdf4ae2eeb8fd12b50b05b3fe9a15e28e014bd2104ab3ba9a5d7c21ebffe8727 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-90/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-90/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1204400ab8da9830f6f77a5e40e7ad3ea459676a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 80bc47d0648bedb1310e72d8520a4a0a91c47fdbb13f3a423cc5ac01b16d3b6f [INFO] running `Command { std: "docker" "start" "-a" "80bc47d0648bedb1310e72d8520a4a0a91c47fdbb13f3a423cc5ac01b16d3b6f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking page_memory_allocator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `show_available_memory` [INFO] [stdout] --> src/main.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use memory::PageAllocator::{show_available_memory,memtranse,PageMemoryManager}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `show_available_memory` [INFO] [stdout] --> src/main.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | use memory::PageAllocator::{show_available_memory,memtranse,PageMemoryManager}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory/PageAllocator.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 69 | pub unsafe fn get_instance()->&'static mut Self{ [INFO] [stdout] | ----------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 74 | let entity = unsafe{MEM_MANAGER.get_entity()}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn` [INFO] [stdout] = note: `#[allow(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mem_total` [INFO] [stdout] --> src/memory/PageAllocator.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | mem_total:usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `PageMemoryManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/memory/PageAllocator.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `show_area` [INFO] [stdout] --> src/memory/PageAllocator.rs:225:4 [INFO] [stdout] | [INFO] [stdout] 225 | fn show_area(area:MemoryArea)->String{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `show_list` [INFO] [stdout] --> src/memory/PageAllocator.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn show_list(mlist:MemoryAreaPtr){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `show_available_memory` [INFO] [stdout] --> src/memory/PageAllocator.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn show_available_memory(manager:&PageMemoryManager){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `PageAllocator` should have a snake case name [INFO] [stdout] --> src/memory/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod PageAllocator; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `page_allocator` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory/PageAllocator.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 69 | pub unsafe fn get_instance()->&'static mut Self{ [INFO] [stdout] | ----------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 74 | let entity = unsafe{MEM_MANAGER.get_entity()}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] = note: this `unsafe` block does contain unsafe operations, but those are already allowed in an `unsafe fn` [INFO] [stdout] = note: `#[allow(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mem_total` [INFO] [stdout] --> src/memory/PageAllocator.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | mem_total:usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `PageMemoryManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/memory/PageAllocator.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `show_area` [INFO] [stdout] --> src/memory/PageAllocator.rs:225:4 [INFO] [stdout] | [INFO] [stdout] 225 | fn show_area(area:MemoryArea)->String{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `show_list` [INFO] [stdout] --> src/memory/PageAllocator.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn show_list(mlist:MemoryAreaPtr){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `show_available_memory` [INFO] [stdout] --> src/memory/PageAllocator.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn show_available_memory(manager:&PageMemoryManager){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `PageAllocator` should have a snake case name [INFO] [stdout] --> src/memory/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod PageAllocator; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `page_allocator` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.28s [INFO] running `Command { std: "docker" "inspect" "80bc47d0648bedb1310e72d8520a4a0a91c47fdbb13f3a423cc5ac01b16d3b6f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80bc47d0648bedb1310e72d8520a4a0a91c47fdbb13f3a423cc5ac01b16d3b6f", kill_on_drop: false }` [INFO] [stdout] 80bc47d0648bedb1310e72d8520a4a0a91c47fdbb13f3a423cc5ac01b16d3b6f