[INFO] cloning repository https://github.com/kotamat/rust_tutorial [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kotamat/rust_tutorial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkotamat%2Frust_tutorial", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkotamat%2Frust_tutorial'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bf3226407efe0da3edb393fb0babbde348c0bea3 [INFO] checking kotamat/rust_tutorial against master#74c3f5a146860c94ff4d179fc3bfa34f879adf41 for pr-120248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkotamat%2Frust_tutorial" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kotamat/rust_tutorial on toolchain 74c3f5a146860c94ff4d179fc3bfa34f879adf41 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+74c3f5a146860c94ff4d179fc3bfa34f879adf41" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kotamat/rust_tutorial [INFO] finished tweaking git repo https://github.com/kotamat/rust_tutorial [INFO] tweaked toml for git repo https://github.com/kotamat/rust_tutorial written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kotamat/rust_tutorial 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" "+74c3f5a146860c94ff4d179fc3bfa34f879adf41" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking kotamat/rust_tutorial against try#13cae6066db2d5e6c9bb508caceec8d34ca49980 for pr-120248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkotamat%2Frust_tutorial" "/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/kotamat/rust_tutorial on toolchain 13cae6066db2d5e6c9bb508caceec8d34ca49980 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+13cae6066db2d5e6c9bb508caceec8d34ca49980" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kotamat/rust_tutorial [INFO] finished tweaking git repo https://github.com/kotamat/rust_tutorial [INFO] tweaked toml for git repo https://github.com/kotamat/rust_tutorial written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/kotamat/rust_tutorial 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" "+13cae6066db2d5e6c9bb508caceec8d34ca49980" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+13cae6066db2d5e6c9bb508caceec8d34ca49980" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5aa43ddc799c5f709a1cde3f1c29f3242f875c8e266486af4c4d4fba606f9568 [INFO] running `Command { std: "docker" "start" "-a" "5aa43ddc799c5f709a1cde3f1c29f3242f875c8e266486af4c4d4fba606f9568", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5aa43ddc799c5f709a1cde3f1c29f3242f875c8e266486af4c4d4fba606f9568", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5aa43ddc799c5f709a1cde3f1c29f3242f875c8e266486af4c4d4fba606f9568", kill_on_drop: false }` [INFO] [stdout] 5aa43ddc799c5f709a1cde3f1c29f3242f875c8e266486af4c4d4fba606f9568 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+13cae6066db2d5e6c9bb508caceec8d34ca49980" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f35849b3e854a7de8161be677968b0433dd5a0c62d7e606de1673986914d100a [INFO] running `Command { std: "docker" "start" "-a" "f35849b3e854a7de8161be677968b0433dd5a0c62d7e606de1673986914d100a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking tests v0.1.0 (/opt/rustwide/workdir/tests) [INFO] [stderr] Checking restaurant v0.1.0 (/opt/rustwide/workdir/restaurant) [INFO] [stderr] Checking concurrency v0.1.0 (/opt/rustwide/workdir/concurrency) [INFO] [stderr] Checking variable v0.1.0 (/opt/rustwide/workdir/variable) [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> tests/src/lib.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn greeting(name: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> tests/src/lib.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> tests/src/lib.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 57 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 58 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> tests/src/lib.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 69 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two` is never used [INFO] [stdout] --> tests/src/test_organization.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn add_two(a: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `internal_adder` is never used [INFO] [stdout] --> tests/src/test_organization.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn internal_adder(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking smart_pointer v0.1.0 (/opt/rustwide/workdir/smart_pointer) [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> concurrency/src/shared_state.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::JoinHandle` [INFO] [stdout] --> concurrency/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::thread::JoinHandle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order1` [INFO] [stdout] --> restaurant/src/lib.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let order1 = Soup; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order2` [INFO] [stdout] --> restaurant/src/lib.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let order2 = Salad; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> restaurant/src/lib.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn serve_order() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fix_incorrect_order` is never used [INFO] [stdout] --> restaurant/src/lib.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn fix_incorrect_order() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cook_order` is never used [INFO] [stdout] --> restaurant/src/lib.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn cook_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `seasonal_fruit` is never read [INFO] [stdout] --> restaurant/src/lib.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Breakfast { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 18 | pub toast: String, [INFO] [stdout] 19 | seasonal_fruit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> tests/src/lib.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn greeting(name: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> tests/src/lib.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 69 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two` is never used [INFO] [stdout] --> tests/src/test_organization.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn add_two(a: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_in_spawn_thread` is never used [INFO] [stdout] --> concurrency/src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn move_in_spawn_thread() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_spawn_thread` is never used [INFO] [stdout] --> concurrency/src/main.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn handle_spawn_thread() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> concurrency/src/message_passing.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normal_messaging` is never used [INFO] [stdout] --> concurrency/src/message_passing.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn normal_messaging() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cons`, `Nil` [INFO] [stdout] --> smart_pointer/src/interior_mutability.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::interior_mutability::ListMutable::{Cons, Nil}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multi_producing` is never used [INFO] [stdout] --> concurrency/src/message_passing.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn multi_producing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> smart_pointer/src/reference_cycle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> smart_pointer/src/interior_mutability.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> smart_pointer/src/drop_.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking structs v0.1.0 (/opt/rustwide/workdir/structs) [INFO] [stderr] Checking macros v0.1.0 (/opt/rustwide/workdir/macros) [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> smart_pointer/src/rc_.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let b = Cons(3, Rc::clone(&a)); [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] --> smart_pointer/src/rc_.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let c = Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> smart_pointer/src/box_.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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] 29 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ListMutable` is never used [INFO] [stdout] --> smart_pointer/src/interior_mutability.rs:90:6 [INFO] [stdout] | [INFO] [stdout] 90 | enum ListMutable { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ListMutable` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> smart_pointer/src/rc_.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] 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((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> smart_pointer/src/reference_cycle.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | Cons(i32, RefCell>), [INFO] [stdout] | ---- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 | Cons((), RefCell>), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> smart_pointer/src/reference_cycle.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 52 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 53 | parent: RefCell>, [INFO] [stdout] 54 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking errors v0.1.0 (/opt/rustwide/workdir/errors) [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking pattern_match v0.1.0 (/opt/rustwide/workdir/pattern_match) [INFO] [stderr] Checking generics v0.1.0 (/opt/rustwide/workdir/generics) [INFO] [stdout] warning: unused variable: `user2` [INFO] [stdout] --> structs/src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let user2 = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `black` [INFO] [stdout] --> structs/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let black = Color(0, 0, 0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin` [INFO] [stdout] --> structs/src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let origin = Point(0, 0, 0); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sign_in_count` and `active` are never read [INFO] [stdout] --> structs/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 6 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 7 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> structs/src/main.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 37 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [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] 37 | struct Color((), (), ()); [INFO] [stdout] | ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> structs/src/main.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 38 | struct Point(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [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] 38 | struct Point((), (), ()); [INFO] [stdout] | ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking advanced_functions v0.1.0 (/opt/rustwide/workdir/advanced_functions) [INFO] [stderr] Checking function v0.1.0 (/opt/rustwide/workdir/function) [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> errors/src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Error, ErrorKind, Read}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::panic::panic_any` [INFO] [stdout] --> errors/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::panic::panic_any; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::largest` [INFO] [stdout] --> generics/src/lifetime.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::largest; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> errors/src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> pattern_match/src/pattern.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 89 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 90 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 91 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 92 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Rgb` is never constructed [INFO] [stdout] --> pattern_match/src/pattern.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 95 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 96 | Rgb(i32, i32, i32), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> pattern_match/src/pattern.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 99 | enum Message2 { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 100 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 101 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 102 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> errors/src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let f = File::open(file_name).unwrap_or_else(|error| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> errors/src/main.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let f = File::open("unwrap.txt").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> errors/src/main.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut secret_number: i32 = 0; [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: function `read_username_from_file` is never used [INFO] [stdout] --> errors/src/main.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file2` is never used [INFO] [stdout] --> errors/src/main.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn read_username_from_file2() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file3` is never used [INFO] [stdout] --> errors/src/main.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn read_username_from_file3() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `backtrace` is never used [INFO] [stdout] --> errors/src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn backtrace() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `file_read_or_create` is never used [INFO] [stdout] --> errors/src/main.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn file_read_or_create() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `file_read_or_create_closure` is never used [INFO] [stdout] --> errors/src/main.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn file_read_or_create_closure() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `file_read_unwrap` is never used [INFO] [stdout] --> errors/src/main.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn file_read_unwrap() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> generics/src/lifetime.rs:63:26 [INFO] [stdout] | [INFO] [stdout] 63 | fn pick1<'a>(x: &'a str, y: &str) -> &'a str { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking collections v0.1.0 (/opt/rustwide/workdir/collections) [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> generics/src/traits.rs:73:24 [INFO] [stdout] | [INFO] [stdout] 73 | fn some_function(t: &T, u: &U) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> generics/src/traits.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 73 | fn some_function(t: &T, u: &U) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking oop v0.1.0 (/opt/rustwide/workdir/oop) [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> generics/src/lifetime.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 80 | part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImportantExcerpt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> generics/src/lifetime.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn first_word(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `level` and `announce_and_return_part` are never used [INFO] [stdout] --> generics/src/lifetime.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 114 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] 115 | // 条件1 [INFO] [stdout] 116 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | fn announce_and_return_part(&self, announcement: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> generics/src/lifetime.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn longest_with_an_announcement<'a, T>(x: &'a str, y: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify2` is never used [INFO] [stdout] --> generics/src/traits.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn notify2(item: &T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function` is never used [INFO] [stdout] --> generics/src/traits.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn some_function(t: &T, u: &U) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rust_tutorial v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `list_of_statuses` [INFO] [stdout] --> advanced_functions/src/main.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let list_of_statuses: Vec = (0u32..20).map(Status::Value).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_of_statuses` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> advanced_functions/src/main.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | Value(u32), [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 17 | Value(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Stop` is never constructed [INFO] [stdout] --> advanced_functions/src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | enum Status { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 17 | Value(u32), [INFO] [stdout] 18 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_closure` is never used [INFO] [stdout] --> advanced_functions/src/main.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn returns_closure() -> Box i32> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> collections/src/hashmap.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking advanced_trait v0.1.0 (/opt/rustwide/workdir/advanced_trait) [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow` [INFO] [stdout] --> oop/src/oo_design_patterns.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::{Borrow, BorrowMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> errors/src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{Error, ErrorKind, Read}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::panic::panic_any` [INFO] [stdout] --> errors/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::panic::panic_any; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> errors/src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> errors/src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let f = File::open(file_name).unwrap_or_else(|error| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> errors/src/main.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let f = File::open("unwrap.txt").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> collections/src/strings.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let s = format!("{}-{}-{}", s1, s2, s3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> errors/src/main.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let mut secret_number: i32 = 0; [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: unused variable: `row` [INFO] [stdout] --> collections/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let row: Vec = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file` is never used [INFO] [stdout] --> errors/src/main.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file2` is never used [INFO] [stdout] --> errors/src/main.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn read_username_from_file2() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file3` is never used [INFO] [stdout] --> errors/src/main.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn read_username_from_file3() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `backtrace` is never used [INFO] [stdout] --> errors/src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn backtrace() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `file_read_or_create` is never used [INFO] [stdout] --> errors/src/main.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn file_read_or_create() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `file_read_or_create_closure` is never used [INFO] [stdout] --> errors/src/main.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn file_read_or_create_closure() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `file_read_unwrap` is never used [INFO] [stdout] --> errors/src/main.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn file_read_unwrap() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> oop/src/oo_design_patterns.rs:69:27 [INFO] [stdout] | [INFO] [stdout] 69 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> advanced_trait/src/main.rs:131:19 [INFO] [stdout] | [INFO] [stdout] 131 | fn generic(t: T) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> advanced_trait/src/main.rs:135:27 [INFO] [stdout] | [INFO] [stdout] 135 | fn generic1(t: T) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> advanced_trait/src/main.rs:138:28 [INFO] [stdout] | [INFO] [stdout] 138 | fn generic2(t: &T) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sized_type` is never used [INFO] [stdout] --> advanced_trait/src/main.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn sized_type() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ownership v0.1.0 (/opt/rustwide/workdir/ownership) [INFO] [stdout] warning: method `reject` is never used [INFO] [stdout] --> oop/src/oo_design_patterns.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Post { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn reject(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reject` is never used [INFO] [stdout] --> oop/src/oo_design_patterns.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 62 | trait State { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 68 | fn reject(self: Box) -> Box; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Screen2` is never constructed [INFO] [stdout] --> oop/src/trait_object.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | struct Screen2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `run` is never used [INFO] [stdout] --> oop/src/trait_object.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 43 | / impl Screen2 [INFO] [stdout] 44 | | where [INFO] [stdout] 45 | | T: Draw, [INFO] [stdout] | |____________- method in this implementation [INFO] [stdout] 46 | { [INFO] [stdout] 47 | pub fn run(&self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, and `options` are never read [INFO] [stdout] --> oop/src/trait_object.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 66 | struct SelectBox { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 67 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 68 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 69 | options: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user2` [INFO] [stdout] --> structs/src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let user2 = User { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `black` [INFO] [stdout] --> structs/src/main.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let black = Color(0, 0, 0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_black` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `origin` [INFO] [stdout] --> structs/src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let origin = Point(0, 0, 0); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sign_in_count` and `active` are never read [INFO] [stdout] --> structs/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 6 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 7 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking unsafe_rust v0.1.0 (/opt/rustwide/workdir/unsafe_rust) [INFO] [stdout] error[E0502]: cannot borrow `s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> ownership/src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | let word = first_word(&s); [INFO] [stdout] | -- immutable borrow occurs here [INFO] [stdout] 24 | s.clear(); [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 25 | println!("the first word is: {}", word); [INFO] [stdout] | ---- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ownership` (bin "ownership") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused imports: `Cons`, `Nil` [INFO] [stdout] --> smart_pointer/src/interior_mutability.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::interior_mutability::ListMutable::{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::borrow::BorrowMut` [INFO] [stdout] --> smart_pointer/src/interior_mutability.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> ownership/src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | let word = first_word(&s); [INFO] [stdout] | -- immutable borrow occurs here [INFO] [stdout] 24 | s.clear(); [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 25 | println!("the first word is: {}", word); [INFO] [stdout] | ---- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ownership` (bin "ownership" test) due to 2 previous errors [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> advanced_trait/src/main.rs:131:19 [INFO] [stdout] | [INFO] [stdout] 131 | fn generic(t: T) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> advanced_trait/src/main.rs:135:27 [INFO] [stdout] | [INFO] [stdout] 135 | fn generic1(t: T) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> advanced_trait/src/main.rs:138:28 [INFO] [stdout] | [INFO] [stdout] 138 | fn generic2(t: &T) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> smart_pointer/src/reference_cycle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sized_type` is never used [INFO] [stdout] --> advanced_trait/src/main.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn sized_type() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> smart_pointer/src/drop_.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> smart_pointer/src/rc_.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let b = Cons(3, Rc::clone(&a)); [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] --> smart_pointer/src/rc_.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let c = Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> pattern_match/src/pattern.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 89 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 90 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 91 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 92 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Rgb` is never constructed [INFO] [stdout] --> pattern_match/src/pattern.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 95 | enum Color { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 96 | Rgb(i32, i32, i32), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `Write` are never constructed [INFO] [stdout] --> pattern_match/src/pattern.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 99 | enum Message2 { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 100 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 101 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 102 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> smart_pointer/src/box_.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | Cons(i32, Box), [INFO] [stdout] | ---- ^^^ ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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] 29 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Messenger` is never used [INFO] [stdout] --> smart_pointer/src/interior_mutability.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait Messenger { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LimitTracker` is never constructed [INFO] [stdout] --> smart_pointer/src/interior_mutability.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct LimitTracker<'a, T: Messenger> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `set_value` are never used [INFO] [stdout] --> smart_pointer/src/interior_mutability.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 25 | / impl<'a, T> LimitTracker<'a, T> [INFO] [stdout] 26 | | where [INFO] [stdout] 27 | | T: Messenger, [INFO] [stdout] | |_________________- associated items in this implementation [INFO] [stdout] 28 | { [INFO] [stdout] 29 | pub fn new(messenger: &'a T, max: usize) -> LimitTracker<'a, T> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn set_value(&mut self, value: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ListMutable` is never used [INFO] [stdout] --> smart_pointer/src/interior_mutability.rs:90:6 [INFO] [stdout] | [INFO] [stdout] 90 | enum ListMutable { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ListMutable` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> smart_pointer/src/rc_.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] 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((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> smart_pointer/src/reference_cycle.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | Cons(i32, RefCell>), [INFO] [stdout] | ---- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 8 | Cons((), RefCell>), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> smart_pointer/src/reference_cycle.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 52 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 53 | parent: RefCell>, [INFO] [stdout] 54 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f35849b3e854a7de8161be677968b0433dd5a0c62d7e606de1673986914d100a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f35849b3e854a7de8161be677968b0433dd5a0c62d7e606de1673986914d100a", kill_on_drop: false }` [INFO] [stdout] f35849b3e854a7de8161be677968b0433dd5a0c62d7e606de1673986914d100a