[INFO] cloning repository https://github.com/hobarak/rustdatastructures [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hobarak/rustdatastructures" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhobarak%2Frustdatastructures", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhobarak%2Frustdatastructures'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9c2d49596d650b84b5478d3471d82ba0010ab4de [INFO] checking hobarak/rustdatastructures against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhobarak%2Frustdatastructures" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hobarak/rustdatastructures on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hobarak/rustdatastructures [INFO] finished tweaking git repo https://github.com/hobarak/rustdatastructures [INFO] tweaked toml for git repo https://github.com/hobarak/rustdatastructures written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hobarak/rustdatastructures 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded threadpool v1.8.0 [INFO] [stderr] Downloaded syn v1.0.21 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c61cf71012f74fe8a5451d6c8012ede0a96e6da07ef36ee17e4d98b9fdab28db [INFO] running `Command { std: "docker" "start" "-a" "c61cf71012f74fe8a5451d6c8012ede0a96e6da07ef36ee17e4d98b9fdab28db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c61cf71012f74fe8a5451d6c8012ede0a96e6da07ef36ee17e4d98b9fdab28db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c61cf71012f74fe8a5451d6c8012ede0a96e6da07ef36ee17e4d98b9fdab28db", kill_on_drop: false }` [INFO] [stdout] c61cf71012f74fe8a5451d6c8012ede0a96e6da07ef36ee17e4d98b9fdab28db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8049172f96688e517467f46ff4276d05872fdf0278fc759289ae75cbc7120836 [INFO] running `Command { std: "docker" "start" "-a" "8049172f96688e517467f46ff4276d05872fdf0278fc759289ae75cbc7120836", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.12 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.21 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking arc-swap v0.4.6 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking pin-project-lite v0.1.5 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling quote v1.0.5 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking threadpool v1.8.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Checking tokio v0.2.21 [INFO] [stderr] Checking rustdatastructures v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `AtomicBool`, `AtomicUsize`, and `Ordering` [INFO] [stdout] --> src/artofmultiprocessor/ch10.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `UnsafeCell`, and `sync::Arc` [INFO] [stdout] --> src/artofmultiprocessor/ch10.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] 4 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch10.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell` and `sync::Arc` [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefCell` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | cell::{Cell, RefCell, UnsafeCell}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool`, `AtomicUsize`, and `Ordering` [INFO] [stdout] --> src/artofmultiprocessor/ch8.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `UnsafeCell`, and `sync::Arc` [INFO] [stdout] --> src/artofmultiprocessor/ch8.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] 4 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch8.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool`, `AtomicUsize`, and `Ordering` [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Cell`, and `UnsafeCell` [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | sync::{Arc, Mutex}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `realloc` [INFO] [stdout] --> src/pointers/simplebox.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::alloc::{alloc, dealloc, realloc, Layout}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Display` [INFO] [stdout] --> src/pointers/simplebox.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | fmt::Display, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `alloc`, `fmt::Display`, and `rc::Rc` [INFO] [stdout] --> src/pointers/simplerc.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | alloc::{alloc, dealloc, Layout}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | cell::Cell, [INFO] [stdout] 4 | fmt::Display, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefCell` [INFO] [stdout] --> src/pointers/simplerefcell.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | cell::{Cell, RefCell, UnsafeCell}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/datastructures/conslist.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Display, iter::FromIterator, ops::Deref, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::Display`, `iter::FromIterator`, and `ops::Deref` [INFO] [stdout] --> src/datastructures/stack.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Display, iter::FromIterator, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch2::*` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::artofmultiprocessor::ch2::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch7::*` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::artofmultiprocessor::ch7::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch8::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::artofmultiprocessor::ch8::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch9::*` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::artofmultiprocessor::ch9::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool`, `AtomicUsize`, and `Ordering` [INFO] [stdout] --> src/artofmultiprocessor/ch10.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `UnsafeCell`, and `sync::Arc` [INFO] [stdout] --> src/artofmultiprocessor/ch10.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] 4 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch10.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cell` [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefCell` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | cell::{Cell, RefCell, UnsafeCell}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool`, `AtomicUsize`, and `Ordering` [INFO] [stdout] --> src/artofmultiprocessor/ch8.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `UnsafeCell`, and `sync::Arc` [INFO] [stdout] --> src/artofmultiprocessor/ch8.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] 4 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch8.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool`, `AtomicUsize`, and `Ordering` [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell` and `UnsafeCell` [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/concurrent/mod.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `realloc` [INFO] [stdout] --> src/pointers/simplebox.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::alloc::{alloc, dealloc, realloc, Layout}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc` [INFO] [stdout] --> src/pointers/simplerc.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | alloc::{alloc, dealloc, Layout}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/datastructures/conslist.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Display, iter::FromIterator, ops::Deref, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::Display`, `iter::FromIterator`, and `ops::Deref` [INFO] [stdout] --> src/datastructures/stack.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Display, iter::FromIterator, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch2::*` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::artofmultiprocessor::ch2::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch7::*` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::artofmultiprocessor::ch7::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch8::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::artofmultiprocessor::ch8::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch9::*` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::artofmultiprocessor::ch9::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::intrinsics::drop_in_place`: no longer an intrinsic - use `ptr::drop_in_place` directly [INFO] [stdout] --> src/pointers/simplebox.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | intrinsics::drop_in_place, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::intrinsics::drop_in_place`: no longer an intrinsic - use `ptr::drop_in_place` directly [INFO] [stdout] --> src/pointers/simplebox.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | drop_in_place(self.0.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::intrinsics::drop_in_place`: no longer an intrinsic - use `ptr::drop_in_place` directly [INFO] [stdout] --> src/pointers/simplebox.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | intrinsics::drop_in_place, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::intrinsics::drop_in_place`: no longer an intrinsic - use `ptr::drop_in_place` directly [INFO] [stdout] --> src/pointers/simplebox.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | drop_in_place(self.0.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::sync::atomic::AtomicBool::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | if self.1.compare_and_swap(false, true, Ordering::SeqCst) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::sync::atomic::AtomicBool::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | if self.1.compare_and_swap(false, true, Ordering::SeqCst) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:96:22 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn new(a: T, size: usize) -> ALock { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [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/artofmultiprocessor/ch9.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | let mut rest = list.head.take(); [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: variable does not need to be mutable [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[Cell; 100]` does not permit being left uninitialized [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:97:52 [INFO] [stdout] | [INFO] [stdout] 97 | let mut arr: [Cell; 100] = unsafe { std::mem::MaybeUninit::uninit().assume_init() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mynode` should have an upper case name [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:160:18 [INFO] [stdout] | [INFO] [stdout] 160 | pub static mynode: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `MYNODE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mypred` should have an upper case name [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:161:18 [INFO] [stdout] | [INFO] [stdout] 161 | pub static mypred: Cell<&'static AtomicBool> = Cell::new(&falsenode); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `MYPRED` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `falsenode` should have an upper case name [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub static falsenode: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `FALSENODE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `sayHello` should have a snake case name [INFO] [stdout] --> src/pointers/simplerc.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn sayHello(&self); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `say_hello` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:96:22 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn new(a: T, size: usize) -> ALock { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [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/artofmultiprocessor/ch9.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | let mut rest = list.head.take(); [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: variable does not need to be mutable [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/pointers/simplebox.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let c: Box = k; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/pointers/simplebox.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let c = testhelper(b); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rc2` [INFO] [stdout] --> src/pointers/simplerc.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let rc2 = rc.clone(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rc2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asd` [INFO] [stdout] --> src/pointers/simplerc.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let asd = &*rc; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_asd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rc4` [INFO] [stdout] --> src/pointers/simplerc.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let rc4: Rc = rc3; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rc4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/pointers/simplerc.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let k = rc.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/pointers/simplerc.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | let a = rc.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/pointers/simplerc.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let k = SimpleRc::new(A(11)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/datastructures/conslist.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | if let Some((item, r)) = s1.uncons() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testPeterson` should have a snake case name [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:155:4 [INFO] [stdout] | [INFO] [stdout] 155 | fn testPeterson() { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `test_peterson` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[Cell; 100]` does not permit being left uninitialized [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:97:52 [INFO] [stdout] | [INFO] [stdout] 97 | let mut arr: [Cell; 100] = unsafe { std::mem::MaybeUninit::uninit().assume_init() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mynode` should have an upper case name [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:160:18 [INFO] [stdout] | [INFO] [stdout] 160 | pub static mynode: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `MYNODE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mypred` should have an upper case name [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:161:18 [INFO] [stdout] | [INFO] [stdout] 161 | pub static mypred: Cell<&'static AtomicBool> = Cell::new(&falsenode); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `MYPRED` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `falsenode` should have an upper case name [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub static falsenode: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `FALSENODE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `sayHello` should have a snake case name [INFO] [stdout] --> src/pointers/simplerc.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn sayHello(&self); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `say_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.43s [INFO] running `Command { std: "docker" "inspect" "8049172f96688e517467f46ff4276d05872fdf0278fc759289ae75cbc7120836", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8049172f96688e517467f46ff4276d05872fdf0278fc759289ae75cbc7120836", kill_on_drop: false }` [INFO] [stdout] 8049172f96688e517467f46ff4276d05872fdf0278fc759289ae75cbc7120836 [INFO] checking hobarak/rustdatastructures against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhobarak%2Frustdatastructures" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hobarak/rustdatastructures on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hobarak/rustdatastructures [INFO] finished tweaking git repo https://github.com/hobarak/rustdatastructures [INFO] tweaked toml for git repo https://github.com/hobarak/rustdatastructures written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/hobarak/rustdatastructures 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b3dfce8cd9320d7e8f9852ef36fb80bfbe0498fd72a94d21ace756d3859912ff [INFO] running `Command { std: "docker" "start" "-a" "b3dfce8cd9320d7e8f9852ef36fb80bfbe0498fd72a94d21ace756d3859912ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b3dfce8cd9320d7e8f9852ef36fb80bfbe0498fd72a94d21ace756d3859912ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3dfce8cd9320d7e8f9852ef36fb80bfbe0498fd72a94d21ace756d3859912ff", kill_on_drop: false }` [INFO] [stdout] b3dfce8cd9320d7e8f9852ef36fb80bfbe0498fd72a94d21ace756d3859912ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d0db9df62a545fa8de787d32e0829d4f7fc11eb7a2fc646af3f819c910bf64f8 [INFO] running `Command { std: "docker" "start" "-a" "d0db9df62a545fa8de787d32e0829d4f7fc11eb7a2fc646af3f819c910bf64f8", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.12 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.21 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking arc-swap v0.4.6 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Checking pin-project-lite v0.1.5 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Compiling quote v1.0.5 [INFO] [stderr] Checking threadpool v1.8.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Checking tokio v0.2.21 [INFO] [stderr] Checking rustdatastructures v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `AtomicBool`, `AtomicUsize`, and `Ordering` [INFO] [stdout] --> src/artofmultiprocessor/ch10.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `UnsafeCell`, and `sync::Arc` [INFO] [stdout] --> src/artofmultiprocessor/ch10.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] 4 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch10.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell` and `sync::Arc` [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefCell` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | cell::{Cell, RefCell, UnsafeCell}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool`, `AtomicUsize`, and `Ordering` [INFO] [stdout] --> src/artofmultiprocessor/ch8.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `UnsafeCell`, and `sync::Arc` [INFO] [stdout] --> src/artofmultiprocessor/ch8.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] 4 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch8.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool`, `AtomicUsize`, and `Ordering` [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Cell`, and `UnsafeCell` [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | sync::{Arc, Mutex}, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `realloc` [INFO] [stdout] --> src/pointers/simplebox.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::alloc::{alloc, dealloc, realloc, Layout}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Display` [INFO] [stdout] --> src/pointers/simplebox.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | fmt::Display, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `alloc`, `fmt::Display`, and `rc::Rc` [INFO] [stdout] --> src/pointers/simplerc.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | alloc::{alloc, dealloc, Layout}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 3 | cell::Cell, [INFO] [stdout] 4 | fmt::Display, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefCell` [INFO] [stdout] --> src/pointers/simplerefcell.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | cell::{Cell, RefCell, UnsafeCell}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/datastructures/conslist.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Display, iter::FromIterator, ops::Deref, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::Display`, `iter::FromIterator`, and `ops::Deref` [INFO] [stdout] --> src/datastructures/stack.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Display, iter::FromIterator, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch2::*` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::artofmultiprocessor::ch2::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch7::*` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::artofmultiprocessor::ch7::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch8::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::artofmultiprocessor::ch8::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch9::*` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::artofmultiprocessor::ch9::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool`, `AtomicUsize`, and `Ordering` [INFO] [stdout] --> src/artofmultiprocessor/ch10.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `UnsafeCell`, and `sync::Arc` [INFO] [stdout] --> src/artofmultiprocessor/ch10.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] 4 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch10.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cell` [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::prelude::*` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RefCell` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | cell::{Cell, RefCell, UnsafeCell}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool`, `AtomicUsize`, and `Ordering` [INFO] [stdout] --> src/artofmultiprocessor/ch8.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell`, `UnsafeCell`, and `sync::Arc` [INFO] [stdout] --> src/artofmultiprocessor/ch8.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] 4 | sync::Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch8.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool`, `AtomicUsize`, and `Ordering` [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell` and `UnsafeCell` [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | cell::{Cell, UnsafeCell}, [INFO] [stdout] | ^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread::JoinHandle` [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/concurrent/mod.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 12 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `realloc` [INFO] [stdout] --> src/pointers/simplebox.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::alloc::{alloc, dealloc, realloc, Layout}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc` [INFO] [stdout] --> src/pointers/simplerc.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | alloc::{alloc, dealloc, Layout}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Deref` [INFO] [stdout] --> src/datastructures/conslist.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Display, iter::FromIterator, ops::Deref, rc::Rc}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fmt::Display`, `iter::FromIterator`, and `ops::Deref` [INFO] [stdout] --> src/datastructures/stack.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Display, iter::FromIterator, ops::Deref}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch2::*` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::artofmultiprocessor::ch2::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch7::*` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::artofmultiprocessor::ch7::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch8::*` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::artofmultiprocessor::ch8::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::artofmultiprocessor::ch9::*` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::artofmultiprocessor::ch9::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::intrinsics::drop_in_place`: no longer an intrinsic - use `ptr::drop_in_place` directly [INFO] [stdout] --> src/pointers/simplebox.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | intrinsics::drop_in_place, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::intrinsics::drop_in_place`: no longer an intrinsic - use `ptr::drop_in_place` directly [INFO] [stdout] --> src/pointers/simplebox.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | drop_in_place(self.0.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::intrinsics::drop_in_place`: no longer an intrinsic - use `ptr::drop_in_place` directly [INFO] [stdout] --> src/pointers/simplebox.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | intrinsics::drop_in_place, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::intrinsics::drop_in_place`: no longer an intrinsic - use `ptr::drop_in_place` directly [INFO] [stdout] --> src/pointers/simplebox.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | drop_in_place(self.0.as_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::sync::atomic::AtomicBool::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | if self.1.compare_and_swap(false, true, Ordering::SeqCst) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::sync::atomic::AtomicBool::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | if self.1.compare_and_swap(false, true, Ordering::SeqCst) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:96:22 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn new(a: T, size: usize) -> ALock { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [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/artofmultiprocessor/ch9.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | let mut rest = list.head.take(); [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: variable does not need to be mutable [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(a: T) -> LockOne { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 35 | LockOne( [INFO] [stdout] 36 | UnsafeCell::new(a), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn new(a: T) -> LockTwo { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 92 | LockTwo(UnsafeCell::new(a), AtomicUsize::new(3)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:133:20 [INFO] [stdout] | [INFO] [stdout] 131 | fn new(a: T) -> Peterson { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 132 | Peterson { [INFO] [stdout] 133 | value: UnsafeCell::new(a), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:192:20 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn new(a: T, n: usize) -> FilterLock { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 192 | value: UnsafeCell::new(a), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:258:20 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn new(a: T, n: usize) -> Bakery { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 258 | value: UnsafeCell::new(a), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(a: T) -> TTASLock { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 13 | TTASLock(UnsafeCell::new(a), AtomicBool::new(false)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[Cell; 100]` does not permit being left uninitialized [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:97:52 [INFO] [stdout] | [INFO] [stdout] 97 | let mut arr: [Cell; 100] = unsafe { std::mem::MaybeUninit::uninit().assume_init() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mynode` should have an upper case name [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:160:18 [INFO] [stdout] | [INFO] [stdout] 160 | pub static mynode: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `MYNODE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mypred` should have an upper case name [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:161:18 [INFO] [stdout] | [INFO] [stdout] 161 | pub static mypred: Cell<&'static AtomicBool> = Cell::new(&falsenode); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `MYPRED` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `falsenode` should have an upper case name [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub static falsenode: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `FALSENODE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 168 | fn new(a: T) -> CLHLock { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 169 | CLHLock( [INFO] [stdout] 170 | UnsafeCell::new(a), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `sayHello` should have a snake case name [INFO] [stdout] --> src/pointers/simplerc.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn sayHello(&self); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `say_hello` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pointers/simplerefcell.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn new(value: T) -> SimpleRefCell { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 71 | SimpleRefCell { [INFO] [stdout] 72 | value: UnsafeCell::new(value), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/datastructures/conslist.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn cons(&self, a: T) -> Stack { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 12 | Stack(Some(Rc::new(Node(a, Stack(self.0.clone()))))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/datastructures/conslist.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | fn from_iter>(iter: I) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 50 | iter.into_iter().fold(Stack::new(), |s, i| s.cons(i)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/datastructures/conslist.rs:50:31 [INFO] [stdout] | [INFO] [stdout] 49 | fn from_iter>(iter: I) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 50 | iter.into_iter().fold(Stack::new(), |s, i| s.cons(i)) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:96:22 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn new(a: T, size: usize) -> ALock { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustdatastructures` (bin "rustdatastructures") due to 12 previous errors; 36 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | let mut rest = list.head.take(); [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: variable does not need to be mutable [INFO] [stdout] --> src/artofmultiprocessor/ch9.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut vec = vec![]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/pointers/simplebox.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let c: Box = k; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/pointers/simplebox.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let c = testhelper(b); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rc2` [INFO] [stdout] --> src/pointers/simplerc.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let rc2 = rc.clone(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rc2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asd` [INFO] [stdout] --> src/pointers/simplerc.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let asd = &*rc; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_asd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rc4` [INFO] [stdout] --> src/pointers/simplerc.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let rc4: Rc = rc3; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rc4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/pointers/simplerc.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | let k = rc.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/pointers/simplerc.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | let a = rc.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/pointers/simplerc.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let k = SimpleRc::new(A(11)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/datastructures/conslist.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | if let Some((item, r)) = s1.uncons() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn new(a: T) -> LockOne { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 35 | LockOne( [INFO] [stdout] 36 | UnsafeCell::new(a), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn new(a: T) -> LockTwo { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 92 | LockTwo(UnsafeCell::new(a), AtomicUsize::new(3)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:133:20 [INFO] [stdout] | [INFO] [stdout] 131 | fn new(a: T) -> Peterson { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 132 | Peterson { [INFO] [stdout] 133 | value: UnsafeCell::new(a), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testPeterson` should have a snake case name [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:155:4 [INFO] [stdout] | [INFO] [stdout] 155 | fn testPeterson() { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `test_peterson` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:192:20 [INFO] [stdout] | [INFO] [stdout] 182 | pub fn new(a: T, n: usize) -> FilterLock { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 192 | value: UnsafeCell::new(a), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/artofmultiprocessor/ch2.rs:258:20 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn new(a: T, n: usize) -> Bakery { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 258 | value: UnsafeCell::new(a), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(a: T) -> TTASLock { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 13 | TTASLock(UnsafeCell::new(a), AtomicBool::new(false)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[Cell; 100]` does not permit being left uninitialized [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:97:52 [INFO] [stdout] | [INFO] [stdout] 97 | let mut arr: [Cell; 100] = unsafe { std::mem::MaybeUninit::uninit().assume_init() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mynode` should have an upper case name [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:160:18 [INFO] [stdout] | [INFO] [stdout] 160 | pub static mynode: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `MYNODE` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mypred` should have an upper case name [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:161:18 [INFO] [stdout] | [INFO] [stdout] 161 | pub static mypred: Cell<&'static AtomicBool> = Cell::new(&falsenode); [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper case: `MYPRED` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `falsenode` should have an upper case name [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 164 | pub static falsenode: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `FALSENODE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 168 | fn new(a: T) -> CLHLock { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 169 | CLHLock( [INFO] [stdout] 170 | UnsafeCell::new(a), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `sayHello` should have a snake case name [INFO] [stdout] --> src/pointers/simplerc.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn sayHello(&self); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `say_hello` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/pointers/simplerefcell.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn new(value: T) -> SimpleRefCell { [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 71 | SimpleRefCell { [INFO] [stdout] 72 | value: UnsafeCell::new(value), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/datastructures/conslist.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn cons(&self, a: T) -> Stack { [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 12 | Stack(Some(Rc::new(Node(a, Stack(self.0.clone()))))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/datastructures/conslist.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | fn from_iter>(iter: I) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 50 | iter.into_iter().fold(Stack::new(), |s, i| s.cons(i)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/datastructures/conslist.rs:50:31 [INFO] [stdout] | [INFO] [stdout] 49 | fn from_iter>(iter: I) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 50 | iter.into_iter().fold(Stack::new(), |s, i| s.cons(i)) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustdatastructures` (bin "rustdatastructures" test) due to 12 previous errors; 44 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d0db9df62a545fa8de787d32e0829d4f7fc11eb7a2fc646af3f819c910bf64f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0db9df62a545fa8de787d32e0829d4f7fc11eb7a2fc646af3f819c910bf64f8", kill_on_drop: false }` [INFO] [stdout] d0db9df62a545fa8de787d32e0829d4f7fc11eb7a2fc646af3f819c910bf64f8