[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] testing hobarak/rustdatastructures against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhobarak%2Frustdatastructures" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hobarak/rustdatastructures on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-0/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: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ae86c9256bd07ce7c117a6d4cdc7f15a99ce93cefbfeb05aa10e54f82b92125 [INFO] running `Command { std: "docker" "start" "-a" "8ae86c9256bd07ce7c117a6d4cdc7f15a99ce93cefbfeb05aa10e54f82b92125", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ae86c9256bd07ce7c117a6d4cdc7f15a99ce93cefbfeb05aa10e54f82b92125", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ae86c9256bd07ce7c117a6d4cdc7f15a99ce93cefbfeb05aa10e54f82b92125", kill_on_drop: false }` [INFO] [stdout] 8ae86c9256bd07ce7c117a6d4cdc7f15a99ce93cefbfeb05aa10e54f82b92125 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 65cab1edd98e5acb556f52b1a9956e3652b4b8606469efe52b6d9f176b3208f2 [INFO] running `Command { std: "docker" "start" "-a" "65cab1edd98e5acb556f52b1a9956e3652b4b8606469efe52b6d9f176b3208f2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.12 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling syn v1.0.21 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling arc-swap v0.4.6 [INFO] [stderr] Compiling futures-core v0.3.5 [INFO] [stderr] Compiling pin-project-lite v0.1.5 [INFO] [stderr] Compiling bytes v0.5.4 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.34 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling threadpool v1.8.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling quote v1.0.5 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling ordered-float v1.0.2 [INFO] [stderr] Compiling chrono v0.4.11 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling rustdatastructures v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `AtomicBool`, `AtomicUsize`, `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`, `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`, `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`, `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`, `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`, `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`, `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`, `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`, `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 associated function `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] error[E0597]: `lo` does not live long enough [INFO] [stdout] --> src/artofmultiprocessor/ch7.rs:152:34 [INFO] [stdout] | [INFO] [stdout] 152 | println!("value is {} {:?}", lo.lock().value, now.elapsed()) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | borrowed value does not live long enough [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] 153 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `lo` dropped here while still borrowed [INFO] [stdout] | ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `ALockGuard` [INFO] [stdout] | [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: aborting due to previous error; 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustdatastructures` due to 2 previous errors; 31 warnings emitted [INFO] running `Command { std: "docker" "inspect" "65cab1edd98e5acb556f52b1a9956e3652b4b8606469efe52b6d9f176b3208f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65cab1edd98e5acb556f52b1a9956e3652b4b8606469efe52b6d9f176b3208f2", kill_on_drop: false }` [INFO] [stdout] 65cab1edd98e5acb556f52b1a9956e3652b4b8606469efe52b6d9f176b3208f2