[INFO] cloning repository https://github.com/SchrodingerZhu/libc-free [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SchrodingerZhu/libc-free" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSchrodingerZhu%2Flibc-free", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSchrodingerZhu%2Flibc-free'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1b30d69303e047d1caaba159146ca158802524cc [INFO] checking SchrodingerZhu/libc-free against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSchrodingerZhu%2Flibc-free" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SchrodingerZhu/libc-free on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SchrodingerZhu/libc-free [INFO] finished tweaking git repo https://github.com/SchrodingerZhu/libc-free [INFO] tweaked toml for git repo https://github.com/SchrodingerZhu/libc-free written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/SchrodingerZhu/libc-free already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.0.60 [INFO] [stderr] Downloaded syscalls v0.3.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0d6e0c93ec58822de46f4050b59b791a31432536f1dee605e27c32968642202d [INFO] running `Command { std: "docker" "start" "-a" "0d6e0c93ec58822de46f4050b59b791a31432536f1dee605e27c32968642202d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0d6e0c93ec58822de46f4050b59b791a31432536f1dee605e27c32968642202d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d6e0c93ec58822de46f4050b59b791a31432536f1dee605e27c32968642202d", kill_on_drop: false }` [INFO] [stdout] 0d6e0c93ec58822de46f4050b59b791a31432536f1dee605e27c32968642202d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cc957285e4e36c97567cb30a46d5389fb1295076496ef1419f89987d11682d97 [INFO] running `Command { std: "docker" "start" "-a" "cc957285e4e36c97567cb30a46d5389fb1295076496ef1419f89987d11682d97", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling cc v1.0.60 [INFO] [stderr] Compiling syscalls v0.3.2 [INFO] [stderr] Checking untitled7 v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stderr] Fixed src/memory.rs (5 fixes) [INFO] [stdout] warning: use of deprecated macro `llvm_asm`: will be removed from the compiler, use asm! instead [INFO] [stdout] --> src/sync.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | llvm_asm!("xacquire; lock; cmpxchgq $2, $1" [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `llvm_asm`: will be removed from the compiler, use asm! instead [INFO] [stdout] --> src/sync.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | llvm_asm!("xrelease; lock; xaddq $2, $1" [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `llvm_asm`: will be removed from the compiler, use asm! instead [INFO] [stdout] --> src/thread.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | llvm_asm!( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `core::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | spin_loop_hint(); // CPU relaxation [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `core::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `core::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 237 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `core::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:245:21 [INFO] [stdout] | [INFO] [stdout] 245 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `core::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `core::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:270:25 [INFO] [stdout] | [INFO] [stdout] 270 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/memory.rs:136:22 [INFO] [stdout] | [INFO] [stdout] 136 | ALIGNED_BASE.compare_and_swap(hint + size, 4 << 40, Ordering::AcqRel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUMA_LIMIT` [INFO] [stdout] --> src/memory.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const NUMA_LIMIT : usize = 256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_MASK` [INFO] [stdout] --> src/memory.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | pub const SEGMENT_MASK : usize = 0xffffffffffc00000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_SHIFT` [INFO] [stdout] --> src/memory.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | pub const SEGMENT_SHIFT : usize = 22; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_SIZE` [INFO] [stdout] --> src/memory.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | pub const SEGMENT_SIZE : usize = 4194304; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SMALL_PAGE_SHIFT` [INFO] [stdout] --> src/memory.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | pub const SMALL_PAGE_SHIFT : usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SMALL_PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub const SMALL_PAGE_SIZE : usize = 65536; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MID_PAGE_SHIFT` [INFO] [stdout] --> src/memory.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | pub const MID_PAGE_SHIFT : usize = 19; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MID_PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | pub const MID_PAGE_SIZE : usize = 524288; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HUGE_PAGE_SHIFT` [INFO] [stdout] --> src/memory.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | pub const HUGE_PAGE_SHIFT : usize = 22; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HUGE_PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | pub const HUGE_PAGE_SIZE : usize = 4194304; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `PageType` [INFO] [stdout] --> src/memory.rs:90:6 [INFO] [stdout] | [INFO] [stdout] 90 | enum PageType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `LocalBlock` [INFO] [stdout] --> src/memory.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | struct LocalBlock { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Block` [INFO] [stdout] --> src/memory.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Page` [INFO] [stdout] --> src/memory.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | struct Page { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Segment` [INFO] [stdout] --> src/memory.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | struct Segment { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `address_hint` [INFO] [stdout] --> src/memory.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn address_hint(alignment: usize, size: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hinted_mmap` [INFO] [stdout] --> src/memory.rs:146:11 [INFO] [stdout] | [INFO] [stdout] 146 | unsafe fn hinted_mmap(addr: *mut u8, size: usize, alignment: usize, prot_flags: i64, map_flags: i64, fd: i64) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `munmap` [INFO] [stdout] --> src/memory.rs:162:11 [INFO] [stdout] | [INFO] [stdout] 162 | unsafe fn munmap(addr: *mut u8, size: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `numa_count` [INFO] [stdout] --> src/memory.rs:166:11 [INFO] [stdout] | [INFO] [stdout] 166 | unsafe fn numa_count() -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `current_numa_node` [INFO] [stdout] --> src/memory.rs:211:11 [INFO] [stdout] | [INFO] [stdout] 211 | unsafe fn current_numa_node() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Heap` [INFO] [stdout] --> src/memory.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | struct Heap { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ARCH_SET_GS` [INFO] [stdout] --> src/thread.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub const ARCH_SET_GS : u64 = 0x1001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ARCH_GET_FS` [INFO] [stdout] --> src/thread.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub const ARCH_GET_FS : u64 = 0x1003; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ARCH_GET_GS` [INFO] [stdout] --> src/thread.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub const ARCH_GET_GS : u64 = 0x1004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `llvm_asm`: will be removed from the compiler, use asm! instead [INFO] [stdout] --> src/sync.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | llvm_asm!("xacquire; lock; cmpxchgq $2, $1" [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `llvm_asm`: will be removed from the compiler, use asm! instead [INFO] [stdout] --> src/sync.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | llvm_asm!("xrelease; lock; xaddq $2, $1" [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `llvm_asm`: will be removed from the compiler, use asm! instead [INFO] [stdout] --> src/thread.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | llvm_asm!( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | spin_loop_hint(); // CPU relaxation [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 237 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:245:21 [INFO] [stdout] | [INFO] [stdout] 245 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:270:25 [INFO] [stdout] | [INFO] [stdout] 270 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/memory.rs:136:22 [INFO] [stdout] | [INFO] [stdout] 136 | ALIGNED_BASE.compare_and_swap(hint + size, 4 << 40, Ordering::AcqRel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `NAIVE_ALLOC` [INFO] [stdout] --> src/memory.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub static NAIVE_ALLOC: NaiveAllocator = NaiveAllocator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_MASK` [INFO] [stdout] --> src/memory.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | pub const SEGMENT_MASK : usize = 0xffffffffffc00000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_SHIFT` [INFO] [stdout] --> src/memory.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | pub const SEGMENT_SHIFT : usize = 22; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_SIZE` [INFO] [stdout] --> src/memory.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | pub const SEGMENT_SIZE : usize = 4194304; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SMALL_PAGE_SHIFT` [INFO] [stdout] --> src/memory.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | pub const SMALL_PAGE_SHIFT : usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SMALL_PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub const SMALL_PAGE_SIZE : usize = 65536; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MID_PAGE_SHIFT` [INFO] [stdout] --> src/memory.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | pub const MID_PAGE_SHIFT : usize = 19; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MID_PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | pub const MID_PAGE_SIZE : usize = 524288; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HUGE_PAGE_SHIFT` [INFO] [stdout] --> src/memory.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | pub const HUGE_PAGE_SHIFT : usize = 22; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HUGE_PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | pub const HUGE_PAGE_SIZE : usize = 4194304; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `PageType` [INFO] [stdout] --> src/memory.rs:90:6 [INFO] [stdout] | [INFO] [stdout] 90 | enum PageType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `LocalBlock` [INFO] [stdout] --> src/memory.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | struct LocalBlock { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Block` [INFO] [stdout] --> src/memory.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Page` [INFO] [stdout] --> src/memory.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | struct Page { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Segment` [INFO] [stdout] --> src/memory.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | struct Segment { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `address_hint` [INFO] [stdout] --> src/memory.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn address_hint(alignment: usize, size: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hinted_mmap` [INFO] [stdout] --> src/memory.rs:146:11 [INFO] [stdout] | [INFO] [stdout] 146 | unsafe fn hinted_mmap(addr: *mut u8, size: usize, alignment: usize, prot_flags: i64, map_flags: i64, fd: i64) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `munmap` [INFO] [stdout] --> src/memory.rs:162:11 [INFO] [stdout] | [INFO] [stdout] 162 | unsafe fn munmap(addr: *mut u8, size: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Heap` [INFO] [stdout] --> src/memory.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | struct Heap { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ARCH_SET_GS` [INFO] [stdout] --> src/thread.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub const ARCH_SET_GS : u64 = 0x1001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ARCH_SET_FS` [INFO] [stdout] --> src/thread.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub const ARCH_SET_FS : u64 = 0x1002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ARCH_GET_FS` [INFO] [stdout] --> src/thread.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub const ARCH_GET_FS : u64 = 0x1003; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ARCH_GET_GS` [INFO] [stdout] --> src/thread.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub const ARCH_GET_GS : u64 = 0x1004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Thread` [INFO] [stdout] --> src/thread.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Thread { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PaddedThread` [INFO] [stdout] --> src/thread.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct PaddedThread { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_main_thread` [INFO] [stdout] --> src/thread.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | pub unsafe fn init_main_thread() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `thread_self` [INFO] [stdout] --> src/thread.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | pub unsafe fn thread_self() -> &'static mut Thread { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `munmap_self` [INFO] [stdout] --> src/thread.rs:46:15 [INFO] [stdout] | [INFO] [stdout] 46 | pub unsafe fn munmap_self() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [optimized + debuginfo] target(s) in 7.06s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking untitled7 v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: use of deprecated macro `llvm_asm`: will be removed from the compiler, use asm! instead [INFO] [stdout] --> src/sync.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | llvm_asm!("xacquire; lock; cmpxchgq $2, $1" [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `llvm_asm`: will be removed from the compiler, use asm! instead [INFO] [stdout] --> src/sync.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | llvm_asm!("xrelease; lock; xaddq $2, $1" [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `llvm_asm`: will be removed from the compiler, use asm! instead [INFO] [stdout] --> src/thread.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | llvm_asm!( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `llvm_asm`: will be removed from the compiler, use asm! instead [INFO] [stdout] --> src/sync.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | llvm_asm!("xacquire; lock; cmpxchgq $2, $1" [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `llvm_asm`: will be removed from the compiler, use asm! instead [INFO] [stdout] --> src/sync.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | llvm_asm!("xrelease; lock; xaddq $2, $1" [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `llvm_asm`: will be removed from the compiler, use asm! instead [INFO] [stdout] --> src/thread.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | llvm_asm!( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `core::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | spin_loop_hint(); // CPU relaxation [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `core::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `core::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 237 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `core::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:245:21 [INFO] [stdout] | [INFO] [stdout] 245 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `core::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `core::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:270:25 [INFO] [stdout] | [INFO] [stdout] 270 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | spin_loop_hint(); // CPU relaxation [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:221:13 [INFO] [stdout] | [INFO] [stdout] 221 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 237 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:245:21 [INFO] [stdout] | [INFO] [stdout] 245 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::sync::atomic::spin_loop_hint`: use hint::spin_loop instead [INFO] [stdout] --> src/sync.rs:270:25 [INFO] [stdout] | [INFO] [stdout] 270 | spin_loop_hint(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `core::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/memory.rs:136:22 [INFO] [stdout] | [INFO] [stdout] 136 | ALIGNED_BASE.compare_and_swap(hint + size, 4 << 40, Ordering::AcqRel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicUsize::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/memory.rs:136:22 [INFO] [stdout] | [INFO] [stdout] 136 | ALIGNED_BASE.compare_and_swap(hint + size, 4 << 40, Ordering::AcqRel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NUMA_LIMIT` [INFO] [stdout] --> src/memory.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | const NUMA_LIMIT : usize = 256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_MASK` [INFO] [stdout] --> src/memory.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | pub const SEGMENT_MASK : usize = 0xffffffffffc00000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_SHIFT` [INFO] [stdout] --> src/memory.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | pub const SEGMENT_SHIFT : usize = 22; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_SIZE` [INFO] [stdout] --> src/memory.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | pub const SEGMENT_SIZE : usize = 4194304; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SMALL_PAGE_SHIFT` [INFO] [stdout] --> src/memory.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | pub const SMALL_PAGE_SHIFT : usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SMALL_PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub const SMALL_PAGE_SIZE : usize = 65536; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MID_PAGE_SHIFT` [INFO] [stdout] --> src/memory.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | pub const MID_PAGE_SHIFT : usize = 19; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MID_PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | pub const MID_PAGE_SIZE : usize = 524288; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HUGE_PAGE_SHIFT` [INFO] [stdout] --> src/memory.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | pub const HUGE_PAGE_SHIFT : usize = 22; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HUGE_PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | pub const HUGE_PAGE_SIZE : usize = 4194304; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `PageType` [INFO] [stdout] --> src/memory.rs:90:6 [INFO] [stdout] | [INFO] [stdout] 90 | enum PageType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `LocalBlock` [INFO] [stdout] --> src/memory.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | struct LocalBlock { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Block` [INFO] [stdout] --> src/memory.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Page` [INFO] [stdout] --> src/memory.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | struct Page { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Segment` [INFO] [stdout] --> src/memory.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | struct Segment { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `address_hint` [INFO] [stdout] --> src/memory.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn address_hint(alignment: usize, size: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hinted_mmap` [INFO] [stdout] --> src/memory.rs:146:11 [INFO] [stdout] | [INFO] [stdout] 146 | unsafe fn hinted_mmap(addr: *mut u8, size: usize, alignment: usize, prot_flags: i64, map_flags: i64, fd: i64) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `munmap` [INFO] [stdout] --> src/memory.rs:162:11 [INFO] [stdout] | [INFO] [stdout] 162 | unsafe fn munmap(addr: *mut u8, size: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `numa_count` [INFO] [stdout] --> src/memory.rs:166:11 [INFO] [stdout] | [INFO] [stdout] 166 | unsafe fn numa_count() -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `current_numa_node` [INFO] [stdout] --> src/memory.rs:211:11 [INFO] [stdout] | [INFO] [stdout] 211 | unsafe fn current_numa_node() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Heap` [INFO] [stdout] --> src/memory.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | struct Heap { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ARCH_SET_GS` [INFO] [stdout] --> src/thread.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub const ARCH_SET_GS : u64 = 0x1001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ARCH_GET_FS` [INFO] [stdout] --> src/thread.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub const ARCH_GET_FS : u64 = 0x1003; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ARCH_GET_GS` [INFO] [stdout] --> src/thread.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub const ARCH_GET_GS : u64 = 0x1004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `NAIVE_ALLOC` [INFO] [stdout] --> src/memory.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub static NAIVE_ALLOC: NaiveAllocator = NaiveAllocator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_MASK` [INFO] [stdout] --> src/memory.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | pub const SEGMENT_MASK : usize = 0xffffffffffc00000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_SHIFT` [INFO] [stdout] --> src/memory.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | pub const SEGMENT_SHIFT : usize = 22; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEGMENT_SIZE` [INFO] [stdout] --> src/memory.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | pub const SEGMENT_SIZE : usize = 4194304; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SMALL_PAGE_SHIFT` [INFO] [stdout] --> src/memory.rs:83:1 [INFO] [stdout] | [INFO] [stdout] 83 | pub const SMALL_PAGE_SHIFT : usize = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SMALL_PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | pub const SMALL_PAGE_SIZE : usize = 65536; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MID_PAGE_SHIFT` [INFO] [stdout] --> src/memory.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | pub const MID_PAGE_SHIFT : usize = 19; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MID_PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | pub const MID_PAGE_SIZE : usize = 524288; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HUGE_PAGE_SHIFT` [INFO] [stdout] --> src/memory.rs:87:1 [INFO] [stdout] | [INFO] [stdout] 87 | pub const HUGE_PAGE_SHIFT : usize = 22; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `HUGE_PAGE_SIZE` [INFO] [stdout] --> src/memory.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | pub const HUGE_PAGE_SIZE : usize = 4194304; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `PageType` [INFO] [stdout] --> src/memory.rs:90:6 [INFO] [stdout] | [INFO] [stdout] 90 | enum PageType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `LocalBlock` [INFO] [stdout] --> src/memory.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | struct LocalBlock { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Block` [INFO] [stdout] --> src/memory.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Page` [INFO] [stdout] --> src/memory.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | struct Page { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Segment` [INFO] [stdout] --> src/memory.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | struct Segment { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `address_hint` [INFO] [stdout] --> src/memory.rs:126:4 [INFO] [stdout] | [INFO] [stdout] 126 | fn address_hint(alignment: usize, size: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `hinted_mmap` [INFO] [stdout] --> src/memory.rs:146:11 [INFO] [stdout] | [INFO] [stdout] 146 | unsafe fn hinted_mmap(addr: *mut u8, size: usize, alignment: usize, prot_flags: i64, map_flags: i64, fd: i64) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `munmap` [INFO] [stdout] --> src/memory.rs:162:11 [INFO] [stdout] | [INFO] [stdout] 162 | unsafe fn munmap(addr: *mut u8, size: usize) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Heap` [INFO] [stdout] --> src/memory.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | struct Heap { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ARCH_SET_GS` [INFO] [stdout] --> src/thread.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub const ARCH_SET_GS : u64 = 0x1001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ARCH_SET_FS` [INFO] [stdout] --> src/thread.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub const ARCH_SET_FS : u64 = 0x1002; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ARCH_GET_FS` [INFO] [stdout] --> src/thread.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub const ARCH_GET_FS : u64 = 0x1003; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ARCH_GET_GS` [INFO] [stdout] --> src/thread.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub const ARCH_GET_GS : u64 = 0x1004; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Thread` [INFO] [stdout] --> src/thread.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Thread { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PaddedThread` [INFO] [stdout] --> src/thread.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct PaddedThread { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_main_thread` [INFO] [stdout] --> src/thread.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | pub unsafe fn init_main_thread() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `thread_self` [INFO] [stdout] --> src/thread.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 37 | pub unsafe fn thread_self() -> &'static mut Thread { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `munmap_self` [INFO] [stdout] --> src/thread.rs:46:15 [INFO] [stdout] | [INFO] [stdout] 46 | pub unsafe fn munmap_self() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [optimized + debuginfo] target(s) in 0.36s [INFO] running `Command { std: "docker" "inspect" "cc957285e4e36c97567cb30a46d5389fb1295076496ef1419f89987d11682d97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc957285e4e36c97567cb30a46d5389fb1295076496ef1419f89987d11682d97", kill_on_drop: false }` [INFO] [stdout] cc957285e4e36c97567cb30a46d5389fb1295076496ef1419f89987d11682d97