[INFO] cloning repository https://github.com/JoelGRod/Rust-Basics [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JoelGRod/Rust-Basics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoelGRod%2FRust-Basics", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoelGRod%2FRust-Basics'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c5c40f7ca8e810d84fc869bbc442a16b00e14988 [INFO] checking JoelGRod/Rust-Basics against try#e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837 for pr-143619 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoelGRod%2FRust-Basics" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JoelGRod/Rust-Basics [INFO] finished tweaking git repo https://github.com/JoelGRod/Rust-Basics [INFO] tweaked toml for git repo https://github.com/JoelGRod/Rust-Basics written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JoelGRod/Rust-Basics on toolchain e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/JoelGRod/Rust-Basics 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" "+e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d0c6ddee0a2846f96f906f116c1c7a6603df8ad101ef2dc5a33e2167d96d2d4a [INFO] running `Command { std: "docker" "start" "-a" "d0c6ddee0a2846f96f906f116c1c7a6603df8ad101ef2dc5a33e2167d96d2d4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d0c6ddee0a2846f96f906f116c1c7a6603df8ad101ef2dc5a33e2167d96d2d4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0c6ddee0a2846f96f906f116c1c7a6603df8ad101ef2dc5a33e2167d96d2d4a", kill_on_drop: false }` [INFO] [stdout] d0c6ddee0a2846f96f906f116c1c7a6603df8ad101ef2dc5a33e2167d96d2d4a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+e784c10fc2dd34bf2bb7b1e51117e35d3f9c5837" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5fb732b981819126a88b0673a41343fae0fb086c229b0f45bef79eca5ed3a4e9 [INFO] running `Command { std: "docker" "start" "-a" "5fb732b981819126a88b0673a41343fae0fb086c229b0f45bef79eca5ed3a4e9", kill_on_drop: false }` [INFO] [stderr] Checking basics_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/basics/main/errors/app/errors_main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/basics/main/errors/app/errors_main.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `another_classifier` [INFO] [stdout] --> src/basics/main/collections/infrastructure/hashmap.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut another_classifier: HashMap = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another_classifier` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `another_classifier` [INFO] [stdout] --> src/basics/main/collections/infrastructure/hashmap.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut another_classifier: HashMap = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another_classifier` [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] --> src/basics/main/collections/infrastructure/hashmap.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut another_classifier: HashMap = [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: `string_4` [INFO] [stdout] --> src/basics/main/collections/infrastructure/string.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let string_4: String = "this is a String".into(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_5` [INFO] [stdout] --> src/basics/main/collections/infrastructure/string.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let string_5: String = String::from("this is a String"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_6` [INFO] [stdout] --> src/basics/main/collections/infrastructure/string.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let string_6: String = format!("{}", "this is a String"); // Worst way [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/basics/main/collections/infrastructure/hashmap.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut another_classifier: HashMap = [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: `string_4` [INFO] [stdout] --> src/basics/main/collections/infrastructure/string.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let string_4: String = "this is a String".into(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_5` [INFO] [stdout] --> src/basics/main/collections/infrastructure/string.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let string_5: String = String::from("this is a String"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string_6` [INFO] [stdout] --> src/basics/main/collections/infrastructure/string.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let string_6: String = format!("{}", "this is a String"); // Worst way [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/basics/main/errors/app/errors_main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let f: Result = File::open("src/output/hello.txt"); [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] --> src/basics/main/errors/app/errors_main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let f = File::open("src/output/hello.txt").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] --> src/basics/main/errors/app/errors_main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let f: Result = File::open("src/output/hello.txt"); [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] --> src/basics/main/errors/app/errors_main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let f = File::open("src/output/hello.txt").unwrap_or_else(|error| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `turn_green` is never used [INFO] [stdout] --> src/basics/main/structs/domain/structs/traffic_light.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl TrafficLight { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn turn_green(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/basics/main/structs/domain/structs/guess.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 2 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Yellow` and `Green` are never constructed [INFO] [stdout] --> src/basics/main/structs/domain/enums/traffic_light_color.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum TrafficLightColor { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 5 | Red, [INFO] [stdout] 6 | Yellow, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrafficLightColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/basics/main/traits_generics/domain/structs/news_article.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `content`, `reply`, and `retweet` are never read [INFO] [stdout] --> src/basics/main/traits_generics/domain/structs/tweet.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | pub username: String, [INFO] [stdout] 5 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> src/basics/main/traits_generics/domain/structs/generics.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Point { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 10 | pub fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two` is never used [INFO] [stdout] --> src/basics/main/functions/infrastructure/helpers.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn add_two(digit: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `greeting` is never used [INFO] [stdout] --> src/basics/main/functions/infrastructure/helpers.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn greeting(name: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `turn_green` is never used [INFO] [stdout] --> src/basics/main/structs/domain/structs/traffic_light.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl TrafficLight { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn turn_green(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/basics/main/structs/domain/structs/rectangle.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `can_hold` are never used [INFO] [stdout] --> src/basics/main/structs/domain/structs/rectangle.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 8 | pub fn new(width: i32, height:i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guess` is never constructed [INFO] [stdout] --> src/basics/main/structs/domain/structs/guess.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Guess { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/basics/main/structs/domain/structs/guess.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Guess { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 6 | pub fn new(value: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Yellow` and `Green` are never constructed [INFO] [stdout] --> src/basics/main/structs/domain/enums/traffic_light_color.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum TrafficLightColor { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 5 | Red, [INFO] [stdout] 6 | Yellow, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TrafficLightColor` 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 `read_username_from_file` is never used [INFO] [stdout] --> src/basics/main/errors/app/errors_main.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/basics/main/traits_generics/domain/structs/news_article.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `content`, `reply`, and `retweet` are never read [INFO] [stdout] --> src/basics/main/traits_generics/domain/structs/tweet.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 4 | pub username: String, [INFO] [stdout] 5 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> src/basics/main/traits_generics/domain/structs/generics.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Point { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 10 | pub fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "5fb732b981819126a88b0673a41343fae0fb086c229b0f45bef79eca5ed3a4e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fb732b981819126a88b0673a41343fae0fb086c229b0f45bef79eca5ed3a4e9", kill_on_drop: false }` [INFO] [stdout] 5fb732b981819126a88b0673a41343fae0fb086c229b0f45bef79eca5ed3a4e9