[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#6619027b13a87a3597115f2c8231f107bf3a7a5f for pr-139624 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flafer-m%2Frust-practice" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lafer-m/rust-practice on toolchain 6619027b13a87a3597115f2c8231f107bf3a7a5f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-6-tc2/source/Cargo.toml [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" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "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#6619027b13a87a3597115f2c8231f107bf3a7a5f for pr-139624 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flafer-m%2Frust-practice" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lafer-m/rust-practice on toolchain 6619027b13a87a3597115f2c8231f107bf3a7a5f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-6-tc2/source/Cargo.toml [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" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "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 libc v0.2.118 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7fbf32a26acd58da94422ef404bb044712ad26ee095cfcd6c3bc34367ab6d5da [INFO] running `Command { std: "docker" "start" "-a" "7fbf32a26acd58da94422ef404bb044712ad26ee095cfcd6c3bc34367ab6d5da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7fbf32a26acd58da94422ef404bb044712ad26ee095cfcd6c3bc34367ab6d5da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7fbf32a26acd58da94422ef404bb044712ad26ee095cfcd6c3bc34367ab6d5da", kill_on_drop: false }` [INFO] [stdout] 7fbf32a26acd58da94422ef404bb044712ad26ee095cfcd6c3bc34367ab6d5da [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+6619027b13a87a3597115f2c8231f107bf3a7a5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c6827a2f0074282efeac64a473d878d9559afc5e06da4a2ce1a85866346086f7 [INFO] running `Command { std: "docker" "start" "-a" "c6827a2f0074282efeac64a473d878d9559afc5e06da4a2ce1a85866346086f7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.118 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [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 serde v1.0.185 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling serde_json v1.0.105 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Checking aho-corasick v1.0.2 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking os_str_bytes v6.0.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking getrandom v0.2.4 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking socket2 v0.4.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] Compiling syn v2.0.29 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.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 tokio-macros v1.7.0 [INFO] [stderr] Compiling clap_derive v3.1.4 [INFO] [stderr] Checking tokio v1.17.0 [INFO] [stderr] Checking clap v3.1.6 [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)]` 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)]` 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: 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)]` 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)]` 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: 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: 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)]` on by default [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)]` 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: method `draw` is never used [INFO] [stdout] --> src/datatypes/trait_object.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait Draw { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] 14 | fn draw(&self); [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: fields `a` and `b` are never read [INFO] [stdout] --> src/datatypes/trait_object.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Button { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 32 | a: u32, [INFO] [stdout] | ^ [INFO] [stdout] 33 | b: u32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `a` and `b` are never read [INFO] [stdout] --> src/datatypes/trait_object.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Select { // impl Draw trait [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 43 | a: u8, [INFO] [stdout] | ^ [INFO] [stdout] 44 | b: i8, [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 `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: 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)]` 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 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)]` on by default [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: 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)]` on by default [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)]` 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: 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: fields `a` and `b` are never read [INFO] [stdout] --> src/datatypes/trait_object.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Button { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 32 | a: u32, [INFO] [stdout] | ^ [INFO] [stdout] 33 | b: u32, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `a` and `b` are never read [INFO] [stdout] --> src/datatypes/trait_object.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Select { // impl Draw trait [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 43 | a: u8, [INFO] [stdout] | ^ [INFO] [stdout] 44 | b: i8, [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: fields `0` and `1` are never read [INFO] [stdout] --> src/smartpointer/smart_pointer.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 6 - Cons(i32, Box), [INFO] [stdout] 6 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/smartpointer/rc_t_ref.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 5 - Cons(i32, Rc), [INFO] [stdout] 5 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/concurrency/atomic.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | struct Mutex { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 12 | flag: AtomicBool, [INFO] [stdout] 13 | value: u32 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Mutex` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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: variable `sizeShoes` should have a snake case name [INFO] [stdout] --> src/closure/iterator.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let sizeShoes = find_shoe_size(shoes, 10); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `size_shoes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [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/6619027b13a87a3597115f2c8231f107bf3a7a5f/library/std/src/thread/mod.rs:723:1 [INFO] [stdout] [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/6619027b13a87a3597115f2c8231f107bf3a7a5f/library/std/src/thread/mod.rs:723:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [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)]` 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] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-practice` (bin "iptries" test) due to 1 previous error; 1 warning emitted [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c6827a2f0074282efeac64a473d878d9559afc5e06da4a2ce1a85866346086f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6827a2f0074282efeac64a473d878d9559afc5e06da4a2ce1a85866346086f7", kill_on_drop: false }` [INFO] [stdout] c6827a2f0074282efeac64a473d878d9559afc5e06da4a2ce1a85866346086f7