[INFO] fetching crate sharded_queue 2.0.1... [INFO] building sharded_queue-2.0.1 against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] extracting crate sharded_queue 2.0.1 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate sharded_queue 2.0.1 [INFO] finished tweaking crates.io crate sharded_queue 2.0.1 [INFO] tweaked toml for crates.io crate sharded_queue 2.0.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate sharded_queue 2.0.1 on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 75 packages to latest compatible versions [INFO] [stderr] Adding criterion v0.5.1 (available: v0.7.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d039fa21378df0932c9c32eeb65ab339ae67b21f3b0afbe31b5703f678cbae4 [INFO] running `Command { std: "docker" "start" "-a" "2d039fa21378df0932c9c32eeb65ab339ae67b21f3b0afbe31b5703f678cbae4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d039fa21378df0932c9c32eeb65ab339ae67b21f3b0afbe31b5703f678cbae4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d039fa21378df0932c9c32eeb65ab339ae67b21f3b0afbe31b5703f678cbae4", kill_on_drop: false }` [INFO] [stdout] 2d039fa21378df0932c9c32eeb65ab339ae67b21f3b0afbe31b5703f678cbae4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 46f60e93abe2c088a41966004485f613c0d72caddc3f0fc82a66c06579da963b [INFO] running `Command { std: "docker" "start" "-a" "46f60e93abe2c088a41966004485f613c0d72caddc3f0fc82a66c06579da963b", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling sharded_queue v2.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:303:13 [INFO] [stdout] | [INFO] [stdout] 303 | / /// SAFETY: [queue_index] can not be out of bounds, [INFO] [stdout] 304 | | /// because remainder of division can not be greater [INFO] [stdout] 305 | | /// than divided number [INFO] [stdout] | |___________________________________^ [INFO] [stdout] 306 | / self.unsafe_queue_and_is_locked_list [INFO] [stdout] 307 | | .get_unchecked(queue_index) [INFO] [stdout] | |___________________________________________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:310:9 [INFO] [stdout] | [INFO] [stdout] 310 | / /// Note that since we already incremented `head_index`, [INFO] [stdout] 311 | | /// it is important to complete operation. If we tried [INFO] [stdout] 312 | | /// to implement `try_remove_first`, we would need to somehow [INFO] [stdout] 313 | | /// balance our `head_index`, complexifying logic and [INFO] [stdout] 314 | | /// introducing overhead, and even if we need it, [INFO] [stdout] 315 | | /// we can just check length outside before calling this method [INFO] [stdout] | |_______________________________________________________________________^ [INFO] [stdout] 316 | let is_locked = &unsafe_queue_and_is_locked.1; [INFO] [stdout] | ---------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | / /// We don't use [std::sync::Mutex::lock], [INFO] [stdout] 319 | | /// because [std::sync::Mutex::lock] may block thread, which we want to avoid, [INFO] [stdout] 320 | | /// and queue operations under lock have complexity [INFO] [stdout] 321 | | /// amortized O(1), which is very fast and has little [INFO] [stdout] ... | [INFO] [stdout] 325 | | /// because replacing [std::sync::Mutex::try_lock] [INFO] [stdout] 326 | | /// with pure atomic gives ~2 times better performance [INFO] [stdout] | |__________________________________________________________________^ [INFO] [stdout] 327 | / if is_locked [INFO] [stdout] 328 | | .compare_exchange(false, true, Ordering::Acquire, Ordering::Relaxed) [INFO] [stdout] 329 | | .is_ok() [INFO] [stdout] ... | [INFO] [stdout] 354 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | / /// SAFETY: We do operations on [unsafe_queue_and_is_locked] only between [INFO] [stdout] 333 | | /// acquiring of [AtomicBool] with [Ordering::Acquire] and releasing with [INFO] [stdout] 334 | | /// [Ordering::Release], so it is synchronized [INFO] [stdout] 335 | | /// [INFO] [stdout] 336 | | /// [ShardedQueue] is [Send] only when [Item] is [Send], so it is safe [INFO] [stdout] 337 | | /// to send [Item] to other thread when [ShardedQueue] can be accessed [INFO] [stdout] 338 | | /// from other thread [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] 339 | &mut *unsafe_queue_and_is_locked.0.get() [INFO] [stdout] | ---------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:342:17 [INFO] [stdout] | [INFO] [stdout] 342 | / /// If we acquired lock after [ShardedQueue::push_back] and have [Item], [INFO] [stdout] 343 | | /// we can return [Item], otherwise we should unlock and restart [INFO] [stdout] 344 | | /// spinning, giving [ShardedQueue::push_back] chance to acquire lock [INFO] [stdout] | |_____________________________________________________________________________________^ [INFO] [stdout] 345 | / match queue.pop_front() { [INFO] [stdout] 346 | | None => { [INFO] [stdout] 347 | | is_locked.store(false, Ordering::Release); [INFO] [stdout] ... | [INFO] [stdout] 353 | | } [INFO] [stdout] | |_________________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:361:13 [INFO] [stdout] | [INFO] [stdout] 361 | / /// SAFETY: [queue_index] can not be out of bounds, [INFO] [stdout] 362 | | /// because remainder of division can not be greater [INFO] [stdout] 363 | | /// than divided number [INFO] [stdout] | |___________________________________^ [INFO] [stdout] 364 | / self.unsafe_queue_and_is_locked_list [INFO] [stdout] 365 | | .get_unchecked(queue_index) [INFO] [stdout] | |___________________________________________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:370:13 [INFO] [stdout] | [INFO] [stdout] 370 | / /// We don't use [std::sync::Mutex::lock], [INFO] [stdout] 371 | | /// because it may block thread, which we want to avoid, [INFO] [stdout] 372 | | /// and operation [VecDeque::push_back] under lock has complexity [INFO] [stdout] 373 | | /// amortized O(1), which is very fast [INFO] [stdout] ... | [INFO] [stdout] 376 | | /// because we achieved 2 times faster performance in benchmarks by using raw [INFO] [stdout] 377 | | /// [AtomicBool] [INFO] [stdout] | |____________________________^ [INFO] [stdout] 378 | / if is_locked [INFO] [stdout] 379 | | .compare_exchange(false, true, Ordering::Acquire, Ordering::Relaxed) [INFO] [stdout] 380 | | .is_ok() [INFO] [stdout] ... | [INFO] [stdout] 395 | | break; [INFO] [stdout] 396 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:383:21 [INFO] [stdout] | [INFO] [stdout] 383 | / /// SAFETY: We do operations on [unsafe_queue_and_is_locked] only between [INFO] [stdout] 384 | | /// acquiring of [AtomicBool] with [Ordering::Acquire] and releasing with [INFO] [stdout] 385 | | /// [Ordering::Release], so it is synchronized [INFO] [stdout] 386 | | /// [INFO] [stdout] 387 | | /// [ShardedQueue] is [Send] only when [Item] is [Send], so it is safe [INFO] [stdout] 388 | | /// to send [Item] to other thread when [ShardedQueue] can be accessed [INFO] [stdout] 389 | | /// from other thread [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] 390 | &mut *unsafe_queue_and_is_locked.0.get() [INFO] [stdout] | ---------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShardedQueueSendSyncImplementationsDocTests` is never constructed [INFO] [stdout] --> src/lib.rs:486:8 [INFO] [stdout] | [INFO] [stdout] 486 | struct ShardedQueueSendSyncImplementationsDocTests {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.91s [INFO] running `Command { std: "docker" "inspect" "46f60e93abe2c088a41966004485f613c0d72caddc3f0fc82a66c06579da963b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46f60e93abe2c088a41966004485f613c0d72caddc3f0fc82a66c06579da963b", kill_on_drop: false }` [INFO] [stdout] 46f60e93abe2c088a41966004485f613c0d72caddc3f0fc82a66c06579da963b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8b6d4a951a1fa457c4dbb050f0dea0a1217c542bd0140423ca9e4b0dc8b92fa3 [INFO] running `Command { std: "docker" "start" "-a" "8b6d4a951a1fa457c4dbb050f0dea0a1217c542bd0140423ca9e4b0dc8b92fa3", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling clap_builder v4.5.48 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling nameof v1.3.0 [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:303:13 [INFO] [stdout] | [INFO] [stdout] 303 | / /// SAFETY: [queue_index] can not be out of bounds, [INFO] [stdout] 304 | | /// because remainder of division can not be greater [INFO] [stdout] 305 | | /// than divided number [INFO] [stdout] | |___________________________________^ [INFO] [stdout] 306 | / self.unsafe_queue_and_is_locked_list [INFO] [stdout] 307 | | .get_unchecked(queue_index) [INFO] [stdout] | |___________________________________________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:310:9 [INFO] [stdout] | [INFO] [stdout] 310 | / /// Note that since we already incremented `head_index`, [INFO] [stdout] 311 | | /// it is important to complete operation. If we tried [INFO] [stdout] 312 | | /// to implement `try_remove_first`, we would need to somehow [INFO] [stdout] 313 | | /// balance our `head_index`, complexifying logic and [INFO] [stdout] 314 | | /// introducing overhead, and even if we need it, [INFO] [stdout] 315 | | /// we can just check length outside before calling this method [INFO] [stdout] | |_______________________________________________________________________^ [INFO] [stdout] 316 | let is_locked = &unsafe_queue_and_is_locked.1; [INFO] [stdout] | ---------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | / /// We don't use [std::sync::Mutex::lock], [INFO] [stdout] 319 | | /// because [std::sync::Mutex::lock] may block thread, which we want to avoid, [INFO] [stdout] 320 | | /// and queue operations under lock have complexity [INFO] [stdout] 321 | | /// amortized O(1), which is very fast and has little [INFO] [stdout] ... | [INFO] [stdout] 325 | | /// because replacing [std::sync::Mutex::try_lock] [INFO] [stdout] 326 | | /// with pure atomic gives ~2 times better performance [INFO] [stdout] | |__________________________________________________________________^ [INFO] [stdout] 327 | / if is_locked [INFO] [stdout] 328 | | .compare_exchange(false, true, Ordering::Acquire, Ordering::Relaxed) [INFO] [stdout] 329 | | .is_ok() [INFO] [stdout] ... | [INFO] [stdout] 354 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | / /// SAFETY: We do operations on [unsafe_queue_and_is_locked] only between [INFO] [stdout] 333 | | /// acquiring of [AtomicBool] with [Ordering::Acquire] and releasing with [INFO] [stdout] 334 | | /// [Ordering::Release], so it is synchronized [INFO] [stdout] 335 | | /// [INFO] [stdout] 336 | | /// [ShardedQueue] is [Send] only when [Item] is [Send], so it is safe [INFO] [stdout] 337 | | /// to send [Item] to other thread when [ShardedQueue] can be accessed [INFO] [stdout] 338 | | /// from other thread [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] 339 | &mut *unsafe_queue_and_is_locked.0.get() [INFO] [stdout] | ---------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:342:17 [INFO] [stdout] | [INFO] [stdout] 342 | / /// If we acquired lock after [ShardedQueue::push_back] and have [Item], [INFO] [stdout] 343 | | /// we can return [Item], otherwise we should unlock and restart [INFO] [stdout] 344 | | /// spinning, giving [ShardedQueue::push_back] chance to acquire lock [INFO] [stdout] | |_____________________________________________________________________________________^ [INFO] [stdout] 345 | / match queue.pop_front() { [INFO] [stdout] 346 | | None => { [INFO] [stdout] 347 | | is_locked.store(false, Ordering::Release); [INFO] [stdout] ... | [INFO] [stdout] 353 | | } [INFO] [stdout] | |_________________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:361:13 [INFO] [stdout] | [INFO] [stdout] 361 | / /// SAFETY: [queue_index] can not be out of bounds, [INFO] [stdout] 362 | | /// because remainder of division can not be greater [INFO] [stdout] 363 | | /// than divided number [INFO] [stdout] | |___________________________________^ [INFO] [stdout] 364 | / self.unsafe_queue_and_is_locked_list [INFO] [stdout] 365 | | .get_unchecked(queue_index) [INFO] [stdout] | |___________________________________________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:370:13 [INFO] [stdout] | [INFO] [stdout] 370 | / /// We don't use [std::sync::Mutex::lock], [INFO] [stdout] 371 | | /// because it may block thread, which we want to avoid, [INFO] [stdout] 372 | | /// and operation [VecDeque::push_back] under lock has complexity [INFO] [stdout] 373 | | /// amortized O(1), which is very fast [INFO] [stdout] ... | [INFO] [stdout] 376 | | /// because we achieved 2 times faster performance in benchmarks by using raw [INFO] [stdout] 377 | | /// [AtomicBool] [INFO] [stdout] | |____________________________^ [INFO] [stdout] 378 | / if is_locked [INFO] [stdout] 379 | | .compare_exchange(false, true, Ordering::Acquire, Ordering::Relaxed) [INFO] [stdout] 380 | | .is_ok() [INFO] [stdout] ... | [INFO] [stdout] 395 | | break; [INFO] [stdout] 396 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:383:21 [INFO] [stdout] | [INFO] [stdout] 383 | / /// SAFETY: We do operations on [unsafe_queue_and_is_locked] only between [INFO] [stdout] 384 | | /// acquiring of [AtomicBool] with [Ordering::Acquire] and releasing with [INFO] [stdout] 385 | | /// [Ordering::Release], so it is synchronized [INFO] [stdout] 386 | | /// [INFO] [stdout] 387 | | /// [ShardedQueue] is [Send] only when [Item] is [Send], so it is safe [INFO] [stdout] 388 | | /// to send [Item] to other thread when [ShardedQueue] can be accessed [INFO] [stdout] 389 | | /// from other thread [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] 390 | &mut *unsafe_queue_and_is_locked.0.get() [INFO] [stdout] | ---------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShardedQueueSendSyncImplementationsDocTests` is never constructed [INFO] [stdout] --> src/lib.rs:486:8 [INFO] [stdout] | [INFO] [stdout] 486 | struct ShardedQueueSendSyncImplementationsDocTests {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling clap v4.5.48 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling sharded_queue v2.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:303:13 [INFO] [stdout] | [INFO] [stdout] 303 | / /// SAFETY: [queue_index] can not be out of bounds, [INFO] [stdout] 304 | | /// because remainder of division can not be greater [INFO] [stdout] 305 | | /// than divided number [INFO] [stdout] | |___________________________________^ [INFO] [stdout] 306 | / self.unsafe_queue_and_is_locked_list [INFO] [stdout] 307 | | .get_unchecked(queue_index) [INFO] [stdout] | |___________________________________________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:310:9 [INFO] [stdout] | [INFO] [stdout] 310 | / /// Note that since we already incremented `head_index`, [INFO] [stdout] 311 | | /// it is important to complete operation. If we tried [INFO] [stdout] 312 | | /// to implement `try_remove_first`, we would need to somehow [INFO] [stdout] 313 | | /// balance our `head_index`, complexifying logic and [INFO] [stdout] 314 | | /// introducing overhead, and even if we need it, [INFO] [stdout] 315 | | /// we can just check length outside before calling this method [INFO] [stdout] | |_______________________________________________________________________^ [INFO] [stdout] 316 | let is_locked = &unsafe_queue_and_is_locked.1; [INFO] [stdout] | ---------------------------------------------- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | / /// We don't use [std::sync::Mutex::lock], [INFO] [stdout] 319 | | /// because [std::sync::Mutex::lock] may block thread, which we want to avoid, [INFO] [stdout] 320 | | /// and queue operations under lock have complexity [INFO] [stdout] 321 | | /// amortized O(1), which is very fast and has little [INFO] [stdout] ... | [INFO] [stdout] 325 | | /// because replacing [std::sync::Mutex::try_lock] [INFO] [stdout] 326 | | /// with pure atomic gives ~2 times better performance [INFO] [stdout] | |__________________________________________________________________^ [INFO] [stdout] 327 | / if is_locked [INFO] [stdout] 328 | | .compare_exchange(false, true, Ordering::Acquire, Ordering::Relaxed) [INFO] [stdout] 329 | | .is_ok() [INFO] [stdout] ... | [INFO] [stdout] 354 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:332:21 [INFO] [stdout] | [INFO] [stdout] 332 | / /// SAFETY: We do operations on [unsafe_queue_and_is_locked] only between [INFO] [stdout] 333 | | /// acquiring of [AtomicBool] with [Ordering::Acquire] and releasing with [INFO] [stdout] 334 | | /// [Ordering::Release], so it is synchronized [INFO] [stdout] 335 | | /// [INFO] [stdout] 336 | | /// [ShardedQueue] is [Send] only when [Item] is [Send], so it is safe [INFO] [stdout] 337 | | /// to send [Item] to other thread when [ShardedQueue] can be accessed [INFO] [stdout] 338 | | /// from other thread [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] 339 | &mut *unsafe_queue_and_is_locked.0.get() [INFO] [stdout] | ---------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:342:17 [INFO] [stdout] | [INFO] [stdout] 342 | / /// If we acquired lock after [ShardedQueue::push_back] and have [Item], [INFO] [stdout] 343 | | /// we can return [Item], otherwise we should unlock and restart [INFO] [stdout] 344 | | /// spinning, giving [ShardedQueue::push_back] chance to acquire lock [INFO] [stdout] | |_____________________________________________________________________________________^ [INFO] [stdout] 345 | / match queue.pop_front() { [INFO] [stdout] 346 | | None => { [INFO] [stdout] 347 | | is_locked.store(false, Ordering::Release); [INFO] [stdout] ... | [INFO] [stdout] 353 | | } [INFO] [stdout] | |_________________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:361:13 [INFO] [stdout] | [INFO] [stdout] 361 | / /// SAFETY: [queue_index] can not be out of bounds, [INFO] [stdout] 362 | | /// because remainder of division can not be greater [INFO] [stdout] 363 | | /// than divided number [INFO] [stdout] | |___________________________________^ [INFO] [stdout] 364 | / self.unsafe_queue_and_is_locked_list [INFO] [stdout] 365 | | .get_unchecked(queue_index) [INFO] [stdout] | |___________________________________________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:370:13 [INFO] [stdout] | [INFO] [stdout] 370 | / /// We don't use [std::sync::Mutex::lock], [INFO] [stdout] 371 | | /// because it may block thread, which we want to avoid, [INFO] [stdout] 372 | | /// and operation [VecDeque::push_back] under lock has complexity [INFO] [stdout] 373 | | /// amortized O(1), which is very fast [INFO] [stdout] ... | [INFO] [stdout] 376 | | /// because we achieved 2 times faster performance in benchmarks by using raw [INFO] [stdout] 377 | | /// [AtomicBool] [INFO] [stdout] | |____________________________^ [INFO] [stdout] 378 | / if is_locked [INFO] [stdout] 379 | | .compare_exchange(false, true, Ordering::Acquire, Ordering::Relaxed) [INFO] [stdout] 380 | | .is_ok() [INFO] [stdout] ... | [INFO] [stdout] 395 | | break; [INFO] [stdout] 396 | | } [INFO] [stdout] | |_____________- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/lib.rs:383:21 [INFO] [stdout] | [INFO] [stdout] 383 | / /// SAFETY: We do operations on [unsafe_queue_and_is_locked] only between [INFO] [stdout] 384 | | /// acquiring of [AtomicBool] with [Ordering::Acquire] and releasing with [INFO] [stdout] 385 | | /// [Ordering::Release], so it is synchronized [INFO] [stdout] 386 | | /// [INFO] [stdout] 387 | | /// [ShardedQueue] is [Send] only when [Item] is [Send], so it is safe [INFO] [stdout] 388 | | /// to send [Item] to other thread when [ShardedQueue] can be accessed [INFO] [stdout] 389 | | /// from other thread [INFO] [stdout] | |_________________________________________^ [INFO] [stdout] 390 | &mut *unsafe_queue_and_is_locked.0.get() [INFO] [stdout] | ---------------------------------------- rustdoc does not generate documentation for expressions [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShardedQueueSendSyncImplementationsDocTests` is never constructed [INFO] [stdout] --> src/lib.rs:486:8 [INFO] [stdout] | [INFO] [stdout] 486 | struct ShardedQueueSendSyncImplementationsDocTests {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 18.66s [INFO] running `Command { std: "docker" "inspect" "8b6d4a951a1fa457c4dbb050f0dea0a1217c542bd0140423ca9e4b0dc8b92fa3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b6d4a951a1fa457c4dbb050f0dea0a1217c542bd0140423ca9e4b0dc8b92fa3", kill_on_drop: false }` [INFO] [stdout] 8b6d4a951a1fa457c4dbb050f0dea0a1217c542bd0140423ca9e4b0dc8b92fa3