[INFO] cloning repository https://github.com/KirillKrutski/tokioexamples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KirillKrutski/tokioexamples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKirillKrutski%2Ftokioexamples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKirillKrutski%2Ftokioexamples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eb14c3e21fdfb9251115ea57ae4617af51fbc40a [INFO] checking KirillKrutski/tokioexamples against try#e5b0618d996a6a3941e423fd3e170737b8dbdc92 for pr-151822 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKirillKrutski%2Ftokioexamples" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/KirillKrutski/tokioexamples [INFO] finished tweaking git repo https://github.com/KirillKrutski/tokioexamples [INFO] tweaked toml for git repo https://github.com/KirillKrutski/tokioexamples written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/KirillKrutski/tokioexamples on toolchain e5b0618d996a6a3941e423fd3e170737b8dbdc92 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/KirillKrutski/tokioexamples 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" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "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] 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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3004a0c9eecc78b99738171dddc29904f097cee566700b8f167e281f0d61b948 [INFO] running `Command { std: "docker" "start" "-a" "3004a0c9eecc78b99738171dddc29904f097cee566700b8f167e281f0d61b948", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3004a0c9eecc78b99738171dddc29904f097cee566700b8f167e281f0d61b948", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3004a0c9eecc78b99738171dddc29904f097cee566700b8f167e281f0d61b948", kill_on_drop: false }` [INFO] [stdout] 3004a0c9eecc78b99738171dddc29904f097cee566700b8f167e281f0d61b948 [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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+e5b0618d996a6a3941e423fd3e170737b8dbdc92" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3e69024e66a49337032cfacd6f4e996c181349c63b378630b6714fa576ee1c94 [INFO] running `Command { std: "docker" "start" "-a" "3e69024e66a49337032cfacd6f4e996c181349c63b378630b6714fa576ee1c94", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking tokioexamples v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/main.rs:317:20 [INFO] [stdout] | [INFO] [stdout] 317 | return ( [INFO] [stdout] | ____________________^ [INFO] [stdout] 318 | | Point::dist(&self.a, &self.b) [INFO] [stdout] | |________________^ [INFO] [stdout] 319 | + Point::dist(&self.b, &self.c) [INFO] [stdout] 320 | + Point::dist(&self.c, &self.a) [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 321 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 317 ~ return Point::dist(&self.a, &self.b) [INFO] [stdout] 318 | + Point::dist(&self.b, &self.c) [INFO] [stdout] 319 ~ + Point::dist(&self.c, &self.a); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/main.rs:317:20 [INFO] [stdout] | [INFO] [stdout] 317 | return ( [INFO] [stdout] | ____________________^ [INFO] [stdout] 318 | | Point::dist(&self.a, &self.b) [INFO] [stdout] | |________________^ [INFO] [stdout] 319 | + Point::dist(&self.b, &self.c) [INFO] [stdout] 320 | + Point::dist(&self.c, &self.a) [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 321 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 317 ~ return Point::dist(&self.a, &self.b) [INFO] [stdout] 318 | + Point::dist(&self.b, &self.c) [INFO] [stdout] 319 ~ + Point::dist(&self.c, &self.a); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let mut my_vec3 = vec![6u64; capacity as usize]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elem` [INFO] [stdout] --> src/main.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | for mut elem in my_vec3 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_elem` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_vec4` [INFO] [stdout] --> src/main.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let my_vec4 = vec![0u64; capacity as usize]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_vec4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `value` is assigned to, but never used [INFO] [stdout] --> src/main.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let mut value = *tokio_protected_value.clone().lock().await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_value` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/main.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | value = 4; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `value` is assigned to, but never used [INFO] [stdout] --> src/main.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | let mut value = *protected_value.clone().lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_value` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/main.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | value = 4; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let mut tokio_protected_value = std::sync::Arc::new(tokio::sync::Mutex::new(0u64)); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Example2Struct` is never constructed [INFO] [stdout] --> src/main.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct Example2Struct { [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 `example2` is never used [INFO] [stdout] --> src/main.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn example2() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example3` is never used [INFO] [stdout] --> src/main.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn example3() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example4_async_mutex` is never used [INFO] [stdout] --> src/main.rs:158:10 [INFO] [stdout] | [INFO] [stdout] 158 | async fn example4_async_mutex(tokio_protected_value: std::sync::Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example4_std_mutex` is never used [INFO] [stdout] --> src/main.rs:165:10 [INFO] [stdout] | [INFO] [stdout] 165 | async fn example4_std_mutex(protected_value: std::sync::Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example4` is never used [INFO] [stdout] --> src/main.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn example4() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let mut my_vec3 = vec![6u64; capacity as usize]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elem` [INFO] [stdout] --> src/main.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | for mut elem in my_vec3 { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_elem` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_vec4` [INFO] [stdout] --> src/main.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | let my_vec4 = vec![0u64; capacity as usize]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_vec4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `value` is assigned to, but never used [INFO] [stdout] --> src/main.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let mut value = *tokio_protected_value.clone().lock().await; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_value` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/main.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | value = 4; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `value` is assigned to, but never used [INFO] [stdout] --> src/main.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | let mut value = *protected_value.clone().lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_value` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/main.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | value = 4; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let mut tokio_protected_value = std::sync::Arc::new(tokio::sync::Mutex::new(0u64)); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Example2Struct` is never constructed [INFO] [stdout] --> src/main.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct Example2Struct { [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 `example2` is never used [INFO] [stdout] --> src/main.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn example2() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example3` is never used [INFO] [stdout] --> src/main.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn example3() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example4_async_mutex` is never used [INFO] [stdout] --> src/main.rs:158:10 [INFO] [stdout] | [INFO] [stdout] 158 | async fn example4_async_mutex(tokio_protected_value: std::sync::Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example4_std_mutex` is never used [INFO] [stdout] --> src/main.rs:165:10 [INFO] [stdout] | [INFO] [stdout] 165 | async fn example4_std_mutex(protected_value: std::sync::Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example4` is never used [INFO] [stdout] --> src/main.rs:172:4 [INFO] [stdout] | [INFO] [stdout] 172 | fn example4() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.83s [INFO] running `Command { std: "docker" "inspect" "3e69024e66a49337032cfacd6f4e996c181349c63b378630b6714fa576ee1c94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e69024e66a49337032cfacd6f4e996c181349c63b378630b6714fa576ee1c94", kill_on_drop: false }` [INFO] [stdout] 3e69024e66a49337032cfacd6f4e996c181349c63b378630b6714fa576ee1c94