[INFO] cloning repository https://github.com/adityasupugade/memory-management-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/adityasupugade/memory-management-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadityasupugade%2Fmemory-management-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadityasupugade%2Fmemory-management-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6e8415e1c98daac8cde5770dda4ebf971e6f36c5 [INFO] checking adityasupugade/memory-management-rust/6e8415e1c98daac8cde5770dda4ebf971e6f36c5 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadityasupugade%2Fmemory-management-rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/adityasupugade/memory-management-rust on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/adityasupugade/memory-management-rust [INFO] finished tweaking git repo https://github.com/adityasupugade/memory-management-rust [INFO] tweaked toml for git repo https://github.com/adityasupugade/memory-management-rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/adityasupugade/memory-management-rust 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ac2fc8df7c6b71e7b79e0ee33f3ea5842f820062bdc944da1c8206fb3849ed6 [INFO] running `Command { std: "docker" "start" "-a" "9ac2fc8df7c6b71e7b79e0ee33f3ea5842f820062bdc944da1c8206fb3849ed6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ac2fc8df7c6b71e7b79e0ee33f3ea5842f820062bdc944da1c8206fb3849ed6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ac2fc8df7c6b71e7b79e0ee33f3ea5842f820062bdc944da1c8206fb3849ed6", kill_on_drop: false }` [INFO] [stdout] 9ac2fc8df7c6b71e7b79e0ee33f3ea5842f820062bdc944da1c8206fb3849ed6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 638fbbd80e1297064b0f4b62d26aaa5b174d37ad3e56fbe52e4cc3536ba12ffc [INFO] running `Command { std: "docker" "start" "-a" "638fbbd80e1297064b0f4b62d26aaa5b174d37ad3e56fbe52e4cc3536ba12ffc", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.133 [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling unicode-ident v1.0.4 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling syn v1.0.100 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking once_cell v1.14.0 [INFO] [stderr] Compiling tokio v1.21.1 [INFO] [stderr] Checking bytes v1.2.1 [INFO] [stderr] Checking tracing-core v0.1.29 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking socket2 v0.4.7 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling tracing-attributes v0.1.22 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Checking tracing v0.1.36 [INFO] [stderr] Checking memory-management-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Level` [INFO] [stdout] --> src/mem.rs:398:25 [INFO] [stdout] | [INFO] [stdout] 398 | use tracing::{self, Level}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RESERVE` is never used [INFO] [stdout] --> src/mem.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const RESERVE: u8 = 10; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRY_RESERVE` is never used [INFO] [stdout] --> src/mem.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const TRY_RESERVE: u8 = 20; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ALLOCATE` is never used [INFO] [stdout] --> src/mem.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const ALLOCATE: u8 = 30; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `child` is never read [INFO] [stdout] --> src/mem.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Block { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | child: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `as_ref_static`, `trim`, `chunk`, and `chunks` are never used [INFO] [stdout] --> src/mem.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Block { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 32 | pub fn as_ref_static(&self) -> &'static [u8] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn trim(&mut self, size: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn chunk(self, off: usize, blocksz: usize) -> ChunkIter { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn chunks(self, blocksz: usize) -> Vec<(usize, Block)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mem.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 68 | impl ChunkIter { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 69 | fn new(block: Block, pos: usize, blocksz: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ItemsAllocator` is never constructed [INFO] [stdout] --> src/mem.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct ItemsAllocator { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ItemsAllocator` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `reserve`, and `release_back` are never used [INFO] [stdout] --> src/mem.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 107 | / impl ItemsAllocator [INFO] [stdout] 108 | | where T: 'static+PartialEq+Hash+Eq+Send+Clone { [INFO] [stdout] | |_____________________________________________- associated items in this implementation [INFO] [stdout] 109 | pub fn new(limit: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub async fn reserve(&self, t: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub async fn release_back(&self, t: T, reason: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `limit` is never read [INFO] [stdout] --> src/mem.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 149 | pub struct Allocator { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 150 | inner: Arc, [INFO] [stdout] 151 | limit: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Allocator` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/mem.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl Allocator { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 155 | pub fn new(limit: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn with_callback(limit: usize, callback: AllocCallback) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | fn with_callback_opt(limit: usize, callback: Option) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub async fn alloc_vec(&self, sz: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub async fn alloc(&self, sz: usize) -> Buffer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub async fn alloc_block(&self, sz: usize) -> Block { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub fn empty_block(&self) -> Block { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn to_block(&self, ffibuf: Buffer) -> Block { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | pub fn try_reserve(&self, sz: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | pub async fn reserve(&self, sz: usize) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn free(&self, buf: Buffer) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub fn free_vec(&self, vec: Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `from_vec`, `from_string`, `alloc`, and `free` are never used [INFO] [stdout] --> src/mem.rs:314:12 [INFO] [stdout] | [INFO] [stdout] 313 | impl Buffer { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 314 | pub fn from_vec(mut v: Vec) -> Buffer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn from_string(s: String) -> Buffer { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 336 | pub fn alloc(sz: usize) -> Buffer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 341 | pub fn free(buf: Buffer) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ptr` and `len` are never read [INFO] [stdout] --> src/mem.rs:364:9 [INFO] [stdout] | [INFO] [stdout] 363 | pub struct GoBuffer { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 364 | pub ptr: *mut u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 365 | pub len: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GoBuffer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_ptr` and `incr_cpy` are never used [INFO] [stdout] --> src/mem.rs:381:12 [INFO] [stdout] | [INFO] [stdout] 380 | impl GoBuffer { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 381 | pub fn from_ptr(ptr: *mut u8, len: usize) -> GoBuffer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 385 | pub unsafe fn incr_cpy(&self, src: *const u8, count: usize) -> GoBuffer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `trim` is never used [INFO] [stdout] --> src/mem.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Block { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn trim(&mut self, size: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ItemsAllocator` is never constructed [INFO] [stdout] --> src/mem.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct ItemsAllocator { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ItemsAllocator` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `reserve`, and `release_back` are never used [INFO] [stdout] --> src/mem.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 107 | / impl ItemsAllocator [INFO] [stdout] 108 | | where T: 'static+PartialEq+Hash+Eq+Send+Clone { [INFO] [stdout] | |_____________________________________________- associated items in this implementation [INFO] [stdout] 109 | pub fn new(limit: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub async fn reserve(&self, t: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub async fn release_back(&self, t: T, reason: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `empty_block`, `reserve`, `free`, and `free_vec` are never used [INFO] [stdout] --> src/mem.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl Allocator { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 199 | pub fn empty_block(&self) -> Block { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | pub async fn reserve(&self, sz: usize) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn free(&self, buf: Buffer) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub fn free_vec(&self, vec: Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `alloc` is never used [INFO] [stdout] --> src/mem.rs:336:12 [INFO] [stdout] | [INFO] [stdout] 313 | impl Buffer { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 336 | pub fn alloc(sz: usize) -> Buffer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.99s [INFO] running `Command { std: "docker" "inspect" "638fbbd80e1297064b0f4b62d26aaa5b174d37ad3e56fbe52e4cc3536ba12ffc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "638fbbd80e1297064b0f4b62d26aaa5b174d37ad3e56fbe52e4cc3536ba12ffc", kill_on_drop: false }` [INFO] [stdout] 638fbbd80e1297064b0f4b62d26aaa5b174d37ad3e56fbe52e4cc3536ba12ffc