[INFO] cloning repository https://github.com/ticki/b [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ticki/b" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fticki%2Fb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fticki%2Fb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8b155633ed5c8e2dba46b1fceb52562df1c6cccd [INFO] checking ticki/b against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fticki%2Fb" "/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/ticki/b on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ticki/b [INFO] finished tweaking git repo https://github.com/ticki/b [INFO] tweaked toml for git repo https://github.com/ticki/b written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/ticki/b already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 007dcbb7d593a0b9b6e5fcd903b3eb7de565398863e70ca85cb6aa78a010a9f3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "007dcbb7d593a0b9b6e5fcd903b3eb7de565398863e70ca85cb6aa78a010a9f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "007dcbb7d593a0b9b6e5fcd903b3eb7de565398863e70ca85cb6aa78a010a9f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "007dcbb7d593a0b9b6e5fcd903b3eb7de565398863e70ca85cb6aa78a010a9f3", kill_on_drop: false }` [INFO] [stdout] 007dcbb7d593a0b9b6e5fcd903b3eb7de565398863e70ca85cb6aa78a010a9f3 [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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c8a1dccbd023ab10e5837795c4b1673b72b069a38817b696fea9884b35de2430 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c8a1dccbd023ab10e5837795c4b1673b72b069a38817b696fea9884b35de2430", 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] Checking jemalloc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `IndexMut`, `Index` [INFO] [stdout] --> src/memory.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use core::ops::{Index, IndexMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp`, `intrinsics` [INFO] [stdout] --> src/memory.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use core::{cmp, intrinsics, mem}; [INFO] [stdout] | ^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/memory.rs:119:30 [INFO] [stdout] | [INFO] [stdout] 119 | MemoryState::from_u8(((ptr::read_u8((self.ptr + byte) as *mut u8) >> bit) & 0b11)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IndexMut`, `Index` [INFO] [stdout] --> src/memory.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use core::ops::{Index, IndexMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp`, `intrinsics` [INFO] [stdout] --> src/memory.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use core::{cmp, intrinsics, mem}; [INFO] [stdout] | ^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/memory.rs:119:30 [INFO] [stdout] | [INFO] [stdout] 119 | MemoryState::from_u8(((ptr::read_u8((self.ptr + byte) as *mut u8) >> bit) & 0b11)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | let b = memory::alloc(i); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `size` is never read [INFO] [stdout] --> src/memory.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | size = (1 << order) * MT_ATOM; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/memory.rs:348:13 [INFO] [stdout] | [INFO] [stdout] 348 | for i in 0..delta { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> src/memory.rs:363:17 [INFO] [stdout] | [INFO] [stdout] 363 | let mut level = 0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `size` is never read [INFO] [stdout] --> src/memory.rs:366:13 [INFO] [stdout] | [INFO] [stdout] 366 | size = (1 << order) * MT_ATOM; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/memory.rs:372:21 [INFO] [stdout] | [INFO] [stdout] 372 | for i in 1..(-delta as usize) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/memory.rs:380:21 [INFO] [stdout] | [INFO] [stdout] 380 | for i in 1..delta { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/memory.rs:363:17 [INFO] [stdout] | [INFO] [stdout] 363 | let mut level = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/memory.rs:501:5 [INFO] [stdout] | [INFO] [stdout] 501 | MT.dealloc(b); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> src/memory.rs:408:5 [INFO] [stdout] | [INFO] [stdout] 408 | pub unsafe fn dealloc(&mut self, block: Block) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/memory.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / pub const MT: MemoryTree = MemoryTree { [INFO] [stdout] 27 | | tree: StateTree { [INFO] [stdout] 28 | | arr: StateArray { [INFO] [stdout] 29 | | ptr: MT_PTR, [INFO] [stdout] 30 | | } [INFO] [stdout] 31 | | }, [INFO] [stdout] 32 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/memory.rs:523:17 [INFO] [stdout] | [INFO] [stdout] 523 | if let Some(mut b) = MT.realloc(Block::from_ptr(ptr), size) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/memory.rs:552:9 [INFO] [stdout] | [INFO] [stdout] 552 | let mut ret = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/memory.rs:562:9 [INFO] [stdout] | [INFO] [stdout] 562 | let mut ret = 1024 * 1024; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:441:5 [INFO] [stdout] | [INFO] [stdout] 430 | pub unsafe fn alloc(size: usize) -> usize { [INFO] [stdout] | ----------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 441 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:467:5 [INFO] [stdout] | [INFO] [stdout] 459 | pub unsafe fn alloc_aligned(size: usize, align: usize) -> usize { [INFO] [stdout] | --------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 467 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:553:5 [INFO] [stdout] | [INFO] [stdout] 553 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:563:5 [INFO] [stdout] | [INFO] [stdout] 563 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MT_ROOT` [INFO] [stdout] --> src/memory.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub const MT_ROOT: usize = MT_LEAFS * MT_ATOM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read` [INFO] [stdout] --> src/memory.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | pub unsafe fn read(ptr: *const u8) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pos` [INFO] [stdout] --> src/memory.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn pos(&self, idx: usize, level: usize) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Left` [INFO] [stdout] --> src/memory.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 167 | Left = 0, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Right` [INFO] [stdout] --> src/memory.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | Right = 1, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sibl` [INFO] [stdout] --> src/memory.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn sibl(&self) -> Sibling { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parrent` [INFO] [stdout] --> src/memory.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn parrent(&self) -> Block { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `size` [INFO] [stdout] --> src/memory.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_pos` [INFO] [stdout] --> src/memory.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn from_pos(pos: usize) -> Block { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_ptr` [INFO] [stdout] --> src/memory.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 233 | pub fn from_ptr(ptr: usize) -> Block { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `alloc_align` [INFO] [stdout] --> src/memory.rs:314:19 [INFO] [stdout] | [INFO] [stdout] 314 | pub unsafe fn alloc_align(&self, mut size: usize, align: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `realloc` [INFO] [stdout] --> src/memory.rs:357:19 [INFO] [stdout] | [INFO] [stdout] 357 | pub unsafe fn realloc(&self, mut block: Block, mut size: usize) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dealloc` [INFO] [stdout] --> src/memory.rs:408:19 [INFO] [stdout] | [INFO] [stdout] 408 | pub unsafe fn dealloc(&mut self, block: Block) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `alloc_aligned` [INFO] [stdout] --> src/memory.rs:459:15 [INFO] [stdout] | [INFO] [stdout] 459 | pub unsafe fn alloc_aligned(size: usize, align: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `alloc_type` [INFO] [stdout] --> src/memory.rs:486:15 [INFO] [stdout] | [INFO] [stdout] 486 | pub unsafe fn alloc_type() -> *mut T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `alloc_size` [INFO] [stdout] --> src/memory.rs:491:15 [INFO] [stdout] | [INFO] [stdout] 491 | pub unsafe fn alloc_size(ptr: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dealloc` [INFO] [stdout] --> src/memory.rs:496:15 [INFO] [stdout] | [INFO] [stdout] 496 | pub unsafe fn dealloc(ptr: usize) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `realloc` [INFO] [stdout] --> src/memory.rs:513:15 [INFO] [stdout] | [INFO] [stdout] 513 | pub unsafe fn realloc(ptr: usize, size: usize) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `realloc_inplace` [INFO] [stdout] --> src/memory.rs:542:15 [INFO] [stdout] | [INFO] [stdout] 542 | pub unsafe fn realloc_inplace(ptr: usize, size: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `memory_used` [INFO] [stdout] --> src/memory.rs:551:8 [INFO] [stdout] | [INFO] [stdout] 551 | pub fn memory_used() -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `memory_free` [INFO] [stdout] --> src/memory.rs:561:8 [INFO] [stdout] | [INFO] [stdout] 561 | pub fn memory_free() -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `core` has been stable since 1.6.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(core)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | let b = memory::alloc(i); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `size` is never read [INFO] [stdout] --> src/memory.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | size = (1 << order) * MT_ATOM; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/memory.rs:348:13 [INFO] [stdout] | [INFO] [stdout] 348 | for i in 0..delta { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `level` [INFO] [stdout] --> src/memory.rs:363:17 [INFO] [stdout] | [INFO] [stdout] 363 | let mut level = 0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `size` is never read [INFO] [stdout] --> src/memory.rs:366:13 [INFO] [stdout] | [INFO] [stdout] 366 | size = (1 << order) * MT_ATOM; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/memory.rs:372:21 [INFO] [stdout] | [INFO] [stdout] 372 | for i in 1..(-delta as usize) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/memory.rs:380:21 [INFO] [stdout] | [INFO] [stdout] 380 | for i in 1..delta { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/memory.rs:363:17 [INFO] [stdout] | [INFO] [stdout] 363 | let mut level = 0; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: taking a mutable reference to a `const` item [INFO] [stdout] --> src/memory.rs:501:5 [INFO] [stdout] | [INFO] [stdout] 501 | MT.dealloc(b); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(const_item_mutation)]` on by default [INFO] [stdout] = note: each usage of a `const` item creates a new temporary [INFO] [stdout] = note: the mutable reference will refer to this temporary, not the original `const` item [INFO] [stdout] note: mutable reference created due to call to this method [INFO] [stdout] --> src/memory.rs:408:5 [INFO] [stdout] | [INFO] [stdout] 408 | pub unsafe fn dealloc(&mut self, block: Block) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `const` item defined here [INFO] [stdout] --> src/memory.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / pub const MT: MemoryTree = MemoryTree { [INFO] [stdout] 27 | | tree: StateTree { [INFO] [stdout] 28 | | arr: StateArray { [INFO] [stdout] 29 | | ptr: MT_PTR, [INFO] [stdout] 30 | | } [INFO] [stdout] 31 | | }, [INFO] [stdout] 32 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/memory.rs:523:17 [INFO] [stdout] | [INFO] [stdout] 523 | if let Some(mut b) = MT.realloc(Block::from_ptr(ptr), size) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/memory.rs:552:9 [INFO] [stdout] | [INFO] [stdout] 552 | let mut ret = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/memory.rs:562:9 [INFO] [stdout] | [INFO] [stdout] 562 | let mut ret = 1024 * 1024; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:441:5 [INFO] [stdout] | [INFO] [stdout] 430 | pub unsafe fn alloc(size: usize) -> usize { [INFO] [stdout] | ----------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 441 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:467:5 [INFO] [stdout] | [INFO] [stdout] 459 | pub unsafe fn alloc_aligned(size: usize, align: usize) -> usize { [INFO] [stdout] | --------------------------------------------------------------- because it's nested under this `unsafe` fn [INFO] [stdout] ... [INFO] [stdout] 467 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:553:5 [INFO] [stdout] | [INFO] [stdout] 553 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/memory.rs:563:5 [INFO] [stdout] | [INFO] [stdout] 563 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MT_ROOT` [INFO] [stdout] --> src/memory.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub const MT_ROOT: usize = MT_LEAFS * MT_ATOM; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read` [INFO] [stdout] --> src/memory.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | pub unsafe fn read(ptr: *const u8) -> u8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pos` [INFO] [stdout] --> src/memory.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn pos(&self, idx: usize, level: usize) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Left` [INFO] [stdout] --> src/memory.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 167 | Left = 0, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Right` [INFO] [stdout] --> src/memory.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | Right = 1, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sibl` [INFO] [stdout] --> src/memory.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn sibl(&self) -> Sibling { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parrent` [INFO] [stdout] --> src/memory.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn parrent(&self) -> Block { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `size` [INFO] [stdout] --> src/memory.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 216 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_pos` [INFO] [stdout] --> src/memory.rs:220:12 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn from_pos(pos: usize) -> Block { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_ptr` [INFO] [stdout] --> src/memory.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 233 | pub fn from_ptr(ptr: usize) -> Block { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `alloc_align` [INFO] [stdout] --> src/memory.rs:314:19 [INFO] [stdout] | [INFO] [stdout] 314 | pub unsafe fn alloc_align(&self, mut size: usize, align: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `realloc` [INFO] [stdout] --> src/memory.rs:357:19 [INFO] [stdout] | [INFO] [stdout] 357 | pub unsafe fn realloc(&self, mut block: Block, mut size: usize) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dealloc` [INFO] [stdout] --> src/memory.rs:408:19 [INFO] [stdout] | [INFO] [stdout] 408 | pub unsafe fn dealloc(&mut self, block: Block) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `alloc_aligned` [INFO] [stdout] --> src/memory.rs:459:15 [INFO] [stdout] | [INFO] [stdout] 459 | pub unsafe fn alloc_aligned(size: usize, align: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `alloc_type` [INFO] [stdout] --> src/memory.rs:486:15 [INFO] [stdout] | [INFO] [stdout] 486 | pub unsafe fn alloc_type() -> *mut T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `alloc_size` [INFO] [stdout] --> src/memory.rs:491:15 [INFO] [stdout] | [INFO] [stdout] 491 | pub unsafe fn alloc_size(ptr: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dealloc` [INFO] [stdout] --> src/memory.rs:496:15 [INFO] [stdout] | [INFO] [stdout] 496 | pub unsafe fn dealloc(ptr: usize) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `realloc` [INFO] [stdout] --> src/memory.rs:513:15 [INFO] [stdout] | [INFO] [stdout] 513 | pub unsafe fn realloc(ptr: usize, size: usize) -> usize { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `realloc_inplace` [INFO] [stdout] --> src/memory.rs:542:15 [INFO] [stdout] | [INFO] [stdout] 542 | pub unsafe fn realloc_inplace(ptr: usize, size: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `memory_used` [INFO] [stdout] --> src/memory.rs:551:8 [INFO] [stdout] | [INFO] [stdout] 551 | pub fn memory_used() -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `memory_free` [INFO] [stdout] --> src/memory.rs:561:8 [INFO] [stdout] | [INFO] [stdout] 561 | pub fn memory_free() -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `core` has been stable since 1.6.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(core)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jemalloc` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `rustc --crate-name jemalloc src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 -C metadata=eff230f1fcfe803e -C extra-filename=-eff230f1fcfe803e --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --cap-lints=forbid` (signal: 9, SIGKILL: kill) [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "c8a1dccbd023ab10e5837795c4b1673b72b069a38817b696fea9884b35de2430", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8a1dccbd023ab10e5837795c4b1673b72b069a38817b696fea9884b35de2430", kill_on_drop: false }` [INFO] [stdout] c8a1dccbd023ab10e5837795c4b1673b72b069a38817b696fea9884b35de2430