[INFO] cloning repository https://github.com/kingfree/readerwriterqueue [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kingfree/readerwriterqueue" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkingfree%2Freaderwriterqueue", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkingfree%2Freaderwriterqueue'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] defa33c455cff73c22b1d8928a0bc4a106859350 [INFO] building kingfree/readerwriterqueue against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkingfree%2Freaderwriterqueue" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kingfree/readerwriterqueue on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kingfree/readerwriterqueue [INFO] finished tweaking git repo https://github.com/kingfree/readerwriterqueue [INFO] tweaked toml for git repo https://github.com/kingfree/readerwriterqueue written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kingfree/readerwriterqueue 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a34ad62ebf6528deb9323c9aeaa48f94c0ebceeb24500abea5c671fe6f8b8246 [INFO] running `Command { std: "docker" "start" "-a" "a34ad62ebf6528deb9323c9aeaa48f94c0ebceeb24500abea5c671fe6f8b8246", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a34ad62ebf6528deb9323c9aeaa48f94c0ebceeb24500abea5c671fe6f8b8246", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a34ad62ebf6528deb9323c9aeaa48f94c0ebceeb24500abea5c671fe6f8b8246", kill_on_drop: false }` [INFO] [stdout] a34ad62ebf6528deb9323c9aeaa48f94c0ebceeb24500abea5c671fe6f8b8246 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cf7f3260cd49e4052e8016c2668594cdcaac3a81c59e1674ece312568d728227 [INFO] running `Command { std: "docker" "start" "-a" "cf7f3260cd49e4052e8016c2668594cdcaac3a81c59e1674ece312568d728227", kill_on_drop: false }` [INFO] [stderr] Compiling readerwriterqueue v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/queue.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use core::mem::{self, align_of, size_of}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/queue.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | for i in 0..initial_block_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/queue.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut b = Self::make_block(other.largest_block_size); [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: unused variable: `front_block_` [INFO] [stdout] --> src/queue.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | let front_block_ = self.front_block.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_front_block_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element` [INFO] [stdout] --> src/queue.rs:301:29 [INFO] [stdout] | [INFO] [stdout] 301 | fn inner_enqueue(&self, element: T, can_alloc: bool) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_alloc` [INFO] [stdout] --> src/queue.rs:301:41 [INFO] [stdout] | [INFO] [stdout] 301 | fn inner_enqueue(&self, element: T, can_alloc: bool) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_alloc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cacheline_filler` and `dequeuing` are never read [INFO] [stdout] --> src/queue.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct ReaderWriterQueue { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | cacheline_filler: [u8; CACHE_LINE_SIZE - size_of::>()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | dequeuing: AtomicBool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek` and `pop` are never used [INFO] [stdout] --> src/queue.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 49 | impl ReaderWriterQueue { [INFO] [stdout] | ------------------------------------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 211 | fn peek(&self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | fn pop(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cacheline_filler0`, `local_front`, and `cacheline_filler1` are never read [INFO] [stdout] --> src/queue.rs:350:5 [INFO] [stdout] | [INFO] [stdout] 347 | struct Block { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 350 | cacheline_filler0: [u8; CACHE_LINE_SIZE - size_of::() - size_of::()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | local_front: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 354 | cacheline_filler1: [u8; CACHE_LINE_SIZE - size_of::() - size_of::()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary allocation, use `&mut` instead [INFO] [stdout] --> src/queue.rs:317:9 [INFO] [stdout] | [INFO] [stdout] 317 | Box::new(Block::new(capacity, new_block_raw, new_block_data)).as_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_allocation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/queue.rs:337:13 [INFO] [stdout] | [INFO] [stdout] 337 | drop(block); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut Block` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 337 - drop(block); [INFO] [stdout] 337 + let _ = block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/queue.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | drop(raw_block); [INFO] [stdout] | ^^^^^---------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut u8` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 338 - drop(raw_block); [INFO] [stdout] 338 + let _ = raw_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] running `Command { std: "docker" "inspect" "cf7f3260cd49e4052e8016c2668594cdcaac3a81c59e1674ece312568d728227", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf7f3260cd49e4052e8016c2668594cdcaac3a81c59e1674ece312568d728227", kill_on_drop: false }` [INFO] [stdout] cf7f3260cd49e4052e8016c2668594cdcaac3a81c59e1674ece312568d728227 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 99862777b0b39b46046ddd5686be904a7b5ed018fa16374d3a3925710bfd0f49 [INFO] running `Command { std: "docker" "start" "-a" "99862777b0b39b46046ddd5686be904a7b5ed018fa16374d3a3925710bfd0f49", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/queue.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use core::mem::{self, align_of, size_of}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/queue.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | for i in 0..initial_block_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/queue.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut b = Self::make_block(other.largest_block_size); [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: unused variable: `front_block_` [INFO] [stdout] --> src/queue.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | let front_block_ = self.front_block.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_front_block_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element` [INFO] [stdout] --> src/queue.rs:301:29 [INFO] [stdout] | [INFO] [stdout] 301 | fn inner_enqueue(&self, element: T, can_alloc: bool) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_alloc` [INFO] [stdout] --> src/queue.rs:301:41 [INFO] [stdout] | [INFO] [stdout] 301 | fn inner_enqueue(&self, element: T, can_alloc: bool) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_alloc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cacheline_filler` and `dequeuing` are never read [INFO] [stdout] --> src/queue.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct ReaderWriterQueue { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | cacheline_filler: [u8; CACHE_LINE_SIZE - size_of::>()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | dequeuing: AtomicBool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek` and `pop` are never used [INFO] [stdout] --> src/queue.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 49 | impl ReaderWriterQueue { [INFO] [stdout] | ------------------------------------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 211 | fn peek(&self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | fn pop(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cacheline_filler0`, `local_front`, and `cacheline_filler1` are never read [INFO] [stdout] --> src/queue.rs:350:5 [INFO] [stdout] | [INFO] [stdout] 347 | struct Block { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 350 | cacheline_filler0: [u8; CACHE_LINE_SIZE - size_of::() - size_of::()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | local_front: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 354 | cacheline_filler1: [u8; CACHE_LINE_SIZE - size_of::() - size_of::()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary allocation, use `&mut` instead [INFO] [stdout] --> src/queue.rs:317:9 [INFO] [stdout] | [INFO] [stdout] 317 | Box::new(Block::new(capacity, new_block_raw, new_block_data)).as_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_allocation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/queue.rs:337:13 [INFO] [stdout] | [INFO] [stdout] 337 | drop(block); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut Block` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 337 - drop(block); [INFO] [stdout] 337 + let _ = block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/queue.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | drop(raw_block); [INFO] [stdout] | ^^^^^---------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut u8` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 338 - drop(raw_block); [INFO] [stdout] 338 + let _ = raw_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling getrandom v0.2.5 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling readerwriterqueue v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/queue.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use core::mem::{self, align_of, size_of}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/queue.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | for i in 0..initial_block_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/queue.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut b = Self::make_block(other.largest_block_size); [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: unused variable: `front_block_` [INFO] [stdout] --> src/queue.rs:160:17 [INFO] [stdout] | [INFO] [stdout] 160 | let front_block_ = self.front_block.load(Ordering::Relaxed); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_front_block_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element` [INFO] [stdout] --> src/queue.rs:301:29 [INFO] [stdout] | [INFO] [stdout] 301 | fn inner_enqueue(&self, element: T, can_alloc: bool) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_alloc` [INFO] [stdout] --> src/queue.rs:301:41 [INFO] [stdout] | [INFO] [stdout] 301 | fn inner_enqueue(&self, element: T, can_alloc: bool) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_alloc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cacheline_filler` and `dequeuing` are never read [INFO] [stdout] --> src/queue.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct ReaderWriterQueue { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 35 | cacheline_filler: [u8; CACHE_LINE_SIZE - size_of::>()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | dequeuing: AtomicBool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `peek` and `pop` are never used [INFO] [stdout] --> src/queue.rs:211:8 [INFO] [stdout] | [INFO] [stdout] 49 | impl ReaderWriterQueue { [INFO] [stdout] | ------------------------------------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 211 | fn peek(&self) -> Option<&T> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | fn pop(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cacheline_filler0`, `local_front`, and `cacheline_filler1` are never read [INFO] [stdout] --> src/queue.rs:350:5 [INFO] [stdout] | [INFO] [stdout] 347 | struct Block { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 350 | cacheline_filler0: [u8; CACHE_LINE_SIZE - size_of::() - size_of::()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | local_front: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 354 | cacheline_filler1: [u8; CACHE_LINE_SIZE - size_of::() - size_of::()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary allocation, use `&mut` instead [INFO] [stdout] --> src/queue.rs:317:9 [INFO] [stdout] | [INFO] [stdout] 317 | Box::new(Block::new(capacity, new_block_raw, new_block_data)).as_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_allocation)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/queue.rs:337:13 [INFO] [stdout] | [INFO] [stdout] 337 | drop(block); [INFO] [stdout] | ^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut Block` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 337 - drop(block); [INFO] [stdout] 337 + let _ = block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> src/queue.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | drop(raw_block); [INFO] [stdout] | ^^^^^---------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut u8` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 338 - drop(raw_block); [INFO] [stdout] 338 + let _ = raw_block; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/stabtest.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let mut q = ReaderWriterQueue::::with_size(n); [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: unused variable: `extra` [INFO] [stdout] --> tests/stabtest.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | fn unpredictable_delay(extra: usize) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_extra` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.17s [INFO] running `Command { std: "docker" "inspect" "99862777b0b39b46046ddd5686be904a7b5ed018fa16374d3a3925710bfd0f49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99862777b0b39b46046ddd5686be904a7b5ed018fa16374d3a3925710bfd0f49", kill_on_drop: false }` [INFO] [stdout] 99862777b0b39b46046ddd5686be904a7b5ed018fa16374d3a3925710bfd0f49