[INFO] cloning repository https://github.com/lafer-m/rust-practice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lafer-m/rust-practice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flafer-m%2Frust-practice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flafer-m%2Frust-practice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5e9ed63702f92c67c93c47f16a37dee7c775d690 [INFO] checking lafer-m/rust-practice against try#9961e55b3687a6d0b2bab4af0e5e81494b09be81 for pr-139087-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flafer-m%2Frust-practice" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lafer-m/rust-practice [INFO] finished tweaking git repo https://github.com/lafer-m/rust-practice [INFO] tweaked toml for git repo https://github.com/lafer-m/rust-practice written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lafer-m/rust-practice on toolchain 9961e55b3687a6d0b2bab4af0e5e81494b09be81 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9961e55b3687a6d0b2bab4af0e5e81494b09be81" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lafer-m/rust-practice 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" "+9961e55b3687a6d0b2bab4af0e5e81494b09be81" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking lafer-m/rust-practice against try#9961e55b3687a6d0b2bab4af0e5e81494b09be81 for pr-139087-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flafer-m%2Frust-practice" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lafer-m/rust-practice [INFO] finished tweaking git repo https://github.com/lafer-m/rust-practice [INFO] tweaked toml for git repo https://github.com/lafer-m/rust-practice written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lafer-m/rust-practice on toolchain 9961e55b3687a6d0b2bab4af0e5e81494b09be81 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9961e55b3687a6d0b2bab4af0e5e81494b09be81" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lafer-m/rust-practice 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" "+9961e55b3687a6d0b2bab4af0e5e81494b09be81" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded parking_lot_core v0.9.2 [INFO] [stderr] Downloaded parking_lot v0.12.0 [INFO] [stderr] Downloaded clap_derive v3.1.4 [INFO] [stderr] Downloaded clap v3.1.6 [INFO] [stderr] Downloaded mio v0.8.2 [INFO] [stderr] Downloaded syn v1.0.89 [INFO] [stderr] Downloaded windows-sys v0.34.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9961e55b3687a6d0b2bab4af0e5e81494b09be81" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3efde2ed7b8fe8dba42819557d09cd42873deb6634d38edc768e0a9bc87f3cbc [INFO] running `Command { std: "docker" "start" "-a" "3efde2ed7b8fe8dba42819557d09cd42873deb6634d38edc768e0a9bc87f3cbc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3efde2ed7b8fe8dba42819557d09cd42873deb6634d38edc768e0a9bc87f3cbc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3efde2ed7b8fe8dba42819557d09cd42873deb6634d38edc768e0a9bc87f3cbc", kill_on_drop: false }` [INFO] [stdout] 3efde2ed7b8fe8dba42819557d09cd42873deb6634d38edc768e0a9bc87f3cbc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9961e55b3687a6d0b2bab4af0e5e81494b09be81" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0816791cbd4e885dcc3d833a7ad6bd987051260f83ff149a99f3084fcf46285d [INFO] running `Command { std: "docker" "start" "-a" "0816791cbd4e885dcc3d833a7ad6bd987051260f83ff149a99f3084fcf46285d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.118 [INFO] [stderr] Compiling syn v1.0.89 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling parking_lot_core v0.9.2 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Checking aho-corasick v1.0.2 [INFO] [stderr] Checking os_str_bytes v6.0.0 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling syn v2.0.29 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking getrandom v0.2.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking mio v0.8.2 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex-automata v0.3.3 [INFO] [stderr] Compiling serde_derive v1.0.185 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking regex v1.9.1 [INFO] [stderr] Compiling clap_derive v3.1.4 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Checking tokio v1.17.0 [INFO] [stderr] Checking serde v1.0.185 [INFO] [stderr] Checking clap v3.1.6 [INFO] [stderr] Checking serde_json v1.0.105 [INFO] [stderr] Checking rust-practice v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `user` should have an upper camel case name [INFO] [stdout] --> src/datatypes/structa.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct user { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `User` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/concurrency/tokio_work.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncBufReadExt` and `AsyncWriteExt` [INFO] [stdout] --> src/concurrency/tokio_work.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::io::{AsyncBufReadExt,AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/concurrency/atomic.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `user` should have an upper camel case name [INFO] [stdout] --> src/datatypes/structa.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct user { [INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case (notice the capitalization): `User` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cons` and `Nil` [INFO] [stdout] --> src/smartpointer/smart_pointer.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use List::{Cons,Nil}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::drop` [INFO] [stdout] --> src/smartpointer/drop_trait.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::mem::drop; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cons` and `Nil` [INFO] [stdout] --> src/smartpointer/rc_t_ref.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | use List::{Cons,Nil}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/concurrency/spawn_thread.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/concurrency/tokio_work.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncBufReadExt` and `AsyncWriteExt` [INFO] [stdout] --> src/concurrency/tokio_work.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::io::{AsyncBufReadExt,AsyncWriteExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/concurrency/atomic.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Add` [INFO] [stdout] --> src/unsafely/unsafely.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{slice, ops::Add}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_borrowed` found for enum `Cow<'_, str>` in the current scope [INFO] [stdout] --> src/smartpointer/cow.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | assert!(bor.is_borrowed()); // borrowed [INFO] [stdout] | ^^^^^^^^^^^ this is an associated function, not a method [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] = note: the candidate is defined in an impl for the type `Cow<'_, B>` [INFO] [stdout] help: use associated function syntax instead [INFO] [stdout] | [INFO] [stdout] 13 - assert!(bor.is_borrowed()); // borrowed [INFO] [stdout] 13 + assert!(Cow::<'_, str>::is_borrowed(&bor)); // borrowed [INFO] [stdout] | [INFO] [stdout] help: there is a method `borrow` with a similar name [INFO] [stdout] | [INFO] [stdout] 13 - assert!(bor.is_borrowed()); // borrowed [INFO] [stdout] 13 + assert!(bor.borrow()); // borrowed [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/datatypes/array.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | fn type_limit(a: &T) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_borrowed` found for enum `Cow<'_, str>` in the current scope [INFO] [stdout] --> src/smartpointer/cow.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | assert!(owned.is_borrowed()); [INFO] [stdout] | ^^^^^^^^^^^ this is an associated function, not a method [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] = note: the candidate is defined in an impl for the type `Cow<'_, B>` [INFO] [stdout] help: use associated function syntax instead [INFO] [stdout] | [INFO] [stdout] 15 - assert!(owned.is_borrowed()); [INFO] [stdout] 15 + assert!(Cow::<'_, str>::is_borrowed(&owned)); [INFO] [stdout] | [INFO] [stdout] help: there is a method `borrow` with a similar name [INFO] [stdout] | [INFO] [stdout] 15 - assert!(owned.is_borrowed()); [INFO] [stdout] 15 + assert!(owned.borrow()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> src/concurrency/future.rs:8:35 [INFO] [stdout] | [INFO] [stdout] 8 | fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/oop/state_change.rs:71:28 [INFO] [stdout] | [INFO] [stdout] 71 | fn contents<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/oop/state_change.rs:84:28 [INFO] [stdout] | [INFO] [stdout] 84 | fn contents<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/errors/errhandlers.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `readusername` is never used [INFO] [stdout] --> src/errors/errhandlers.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn readusername() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username` is never used [INFO] [stdout] --> src/errors/errhandlers.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn read_username() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handler_error` is never used [INFO] [stdout] --> src/errors/errhandlers.rs:50:4 [INFO] [stdout] | [INFO] [stdout] 50 | fn handler_error() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `type_limit` is never used [INFO] [stdout] --> src/datatypes/array.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn type_limit(a: &T) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `user` is never constructed [INFO] [stdout] --> src/datatypes/structa.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct user { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `area` is never used [INFO] [stdout] --> src/datatypes/structa.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn area(angle: &Rectangle) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Draw` is never used [INFO] [stdout] --> src/datatypes/trait_object.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait Draw { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Screen` is never constructed [INFO] [stdout] --> src/datatypes/trait_object.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Screen { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `run` is never used [INFO] [stdout] --> src/datatypes/trait_object.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Screen { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 23 | pub fn run(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Button` is never constructed [INFO] [stdout] --> src/datatypes/trait_object.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Button { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Select` is never constructed [INFO] [stdout] --> src/datatypes/trait_object.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Select { // impl Draw trait [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cacher` is never constructed [INFO] [stdout] --> src/closure/cacher.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Cacher [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> src/closure/iterator.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_shoe_size` is never used [INFO] [stdout] --> src/closure/iterator.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn find_shoe_size(shoes: Vec, size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/closure/iterator_self_define.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/closure/iterator_self_define.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Counter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 7 | fn new() ->Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/smartpointer/smart_pointer.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mybox` is never constructed [INFO] [stdout] --> src/smartpointer/deref_trait.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Mybox(T); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/smartpointer/deref_trait.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | impl Mybox { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 6 | fn new(v: T) -> Mybox { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello` is never used [INFO] [stdout] --> src/smartpointer/deref_trait.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn hello(s: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Custom` is never constructed [INFO] [stdout] --> src/smartpointer/drop_trait.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Custom { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/smartpointer/rc_t_ref.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mutex` is never constructed [INFO] [stdout] --> src/concurrency/atomic.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Mutex { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `lock`, and `unlock` are never used [INFO] [stdout] --> src/concurrency/atomic.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Mutex { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 17 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn lock(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn unlock(&self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lock_test` is never used [INFO] [stdout] --> src/concurrency/atomic.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | async fn lock_test( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyFuture` is never constructed [INFO] [stdout] --> src/concurrency/future.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct MyFuture {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Post` is never constructed [INFO] [stdout] --> src/oop/state_change.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Post { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_text`, `request_review`, `approve`, and `contents` are never used [INFO] [stdout] --> src/oop/state_change.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Post { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 28 | pub fn new() -> Post { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn add_text(&mut self,s: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn request_review(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn approve(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn contents(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `State` is never used [INFO] [stdout] --> src/oop/state_change.rs:56:7 [INFO] [stdout] | [INFO] [stdout] 56 | trait State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Draft` is never constructed [INFO] [stdout] --> src/oop/state_change.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | struct Draft {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Review` is never constructed [INFO] [stdout] --> src/oop/state_change.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | struct Review {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Published` is never constructed [INFO] [stdout] --> src/oop/state_change.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | struct Published {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `split_slice` is never used [INFO] [stdout] --> src/unsafely/unsafely.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn split_slice(slice: &mut [i32], mid: usize) -> (&mut [i32], &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unsafefunc` is never used [INFO] [stdout] --> src/unsafely/unsafely.rs:38:11 [INFO] [stdout] | [INFO] [stdout] 38 | unsafe fn unsafefunc() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `opt_t` is never used [INFO] [stdout] --> src/macros/macrose.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn opt_t() -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Add` [INFO] [stdout] --> src/unsafely/unsafely.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{slice, ops::Add}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: feature `cow_is_borrowed` is declared but not used [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(cow_is_borrowed)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/datatypes/array.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | fn type_limit(a: &T) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/smartpointer/rc_t_ref.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let b = Rc::new(Cons(0, Rc::clone(&a))); // Rc::clone only increments the reference count, no deep-copy happened [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/smartpointer/rc_t_ref.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let c = Rc::new(Cons(-1, Rc::clone(&a))); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> src/concurrency/future.rs:8:35 [INFO] [stdout] | [INFO] [stdout] 8 | fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/oop/state_change.rs:71:28 [INFO] [stdout] | [INFO] [stdout] 71 | fn contents<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/oop/state_change.rs:84:28 [INFO] [stdout] | [INFO] [stdout] 84 | fn contents<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/bin/iptries.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-practice` (lib test) due to 2 previous errors; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `Mutex` [INFO] [stdout] --> src/bin/iptries.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-practice` (bin "iptries") due to 1 previous error; 1 warning emitted [INFO] [stderr] error: could not compile `rust-practice` (bin "iptries" test) due to 1 previous error; 1 warning emitted [INFO] [stdout] error[E0277]: `RefCell` cannot be shared between threads safely [INFO] [stdout] --> src/bin/iptries.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | thread::spawn(move || { [INFO] [stdout] | _____-------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 34 | | b_clone.borrow_mut().value = 70; [INFO] [stdout] 35 | | }) [INFO] [stdout] | |_____^ `RefCell` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `RefCell` [INFO] [stdout] = note: if you want to do aliasing and mutation between multiple threads, use `std::sync::RwLock` instead [INFO] [stdout] = note: required for `Arc>` to implement `Send` [INFO] [stdout] note: required because it's used within this closure [INFO] [stdout] --> src/bin/iptries.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required by a bound in `spawn` [INFO] [stdout] --> /rustc/9961e55b3687a6d0b2bab4af0e5e81494b09be81/library/std/src/thread/functions.rs:125:0 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: `RefCell` cannot be shared between threads safely [INFO] [stdout] --> src/bin/iptries.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | thread::spawn(move || { [INFO] [stdout] | _____-------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 34 | | b_clone.borrow_mut().value = 70; [INFO] [stdout] 35 | | }) [INFO] [stdout] | |_____^ `RefCell` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `RefCell` [INFO] [stdout] = note: if you want to do aliasing and mutation between multiple threads, use `std::sync::RwLock` instead [INFO] [stdout] = note: required for `Arc>` to implement `Send` [INFO] [stdout] note: required because it's used within this closure [INFO] [stdout] --> src/bin/iptries.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required by a bound in `spawn` [INFO] [stdout] --> /rustc/9961e55b3687a6d0b2bab4af0e5e81494b09be81/library/std/src/thread/functions.rs:125:0 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bin/token.rs:162:24 [INFO] [stdout] | [INFO] [stdout] 162 | fn get_field_value<'a>(input: &'a str, field: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bin/token.rs:162:24 [INFO] [stdout] | [INFO] [stdout] 162 | fn get_field_value<'a>(input: &'a str, field: &'a str) -> &'a str { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0816791cbd4e885dcc3d833a7ad6bd987051260f83ff149a99f3084fcf46285d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0816791cbd4e885dcc3d833a7ad6bd987051260f83ff149a99f3084fcf46285d", kill_on_drop: false }` [INFO] [stdout] 0816791cbd4e885dcc3d833a7ad6bd987051260f83ff149a99f3084fcf46285d