[INFO] cloning repository https://github.com/albertisaac12/Learn-Rust-4 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/albertisaac12/Learn-Rust-4" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falbertisaac12%2FLearn-Rust-4", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falbertisaac12%2FLearn-Rust-4'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 78d130f8d9451f21667baa42fa1bd1a6698fae48 [INFO] checking albertisaac12/Learn-Rust-4 against master#040e2f8b9ff2d76fbe2146d6003e297ed4532088 for pr-143619 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falbertisaac12%2FLearn-Rust-4" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/albertisaac12/Learn-Rust-4 [INFO] finished tweaking git repo https://github.com/albertisaac12/Learn-Rust-4 [INFO] tweaked toml for git repo https://github.com/albertisaac12/Learn-Rust-4 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/albertisaac12/Learn-Rust-4 on toolchain 040e2f8b9ff2d76fbe2146d6003e297ed4532088 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+040e2f8b9ff2d76fbe2146d6003e297ed4532088" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/albertisaac12/Learn-Rust-4 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" "+040e2f8b9ff2d76fbe2146d6003e297ed4532088" "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-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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" "+040e2f8b9ff2d76fbe2146d6003e297ed4532088" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a8ea19f6b4f0412f04d85a5f52e63eac3f818fdaf1d8991cca016683f60c94bc [INFO] running `Command { std: "docker" "start" "-a" "a8ea19f6b4f0412f04d85a5f52e63eac3f818fdaf1d8991cca016683f60c94bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a8ea19f6b4f0412f04d85a5f52e63eac3f818fdaf1d8991cca016683f60c94bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8ea19f6b4f0412f04d85a5f52e63eac3f818fdaf1d8991cca016683f60c94bc", kill_on_drop: false }` [INFO] [stdout] a8ea19f6b4f0412f04d85a5f52e63eac3f818fdaf1d8991cca016683f60c94bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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" "+040e2f8b9ff2d76fbe2146d6003e297ed4532088" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5cbfc3a58fd40bc88d442c04f86d476181f15b4547492be6484f27016b152a6b [INFO] running `Command { std: "docker" "start" "-a" "5cbfc3a58fd40bc88d442c04f86d476181f15b4547492be6484f27016b152a6b", kill_on_drop: false }` [INFO] [stderr] Checking rust-4 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/traits2.rs:2:39 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, fmt::{format, Display}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Rev` [INFO] [stdout] --> src/recursion.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter::Rev; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rg` [INFO] [stdout] --> src/rangeType.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let rg = 1..32; // include 1 and exclude 32 [1,32) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rgi` [INFO] [stdout] --> src/rangeType.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let rgi = 1..=32; // both inclusive of 1 and 32 [1,32] [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rgi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/recursion.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let sum = rec(5); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/traitObjects.rs:2:39 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashMap, fmt::{format, Display}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bc` [INFO] [stdout] --> src/arrayTupleOwnership.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let bc = arr[1]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `File` [INFO] [stdout] --> src/errorHandling.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::{self, File}; [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/errorHandling.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{stdin,Read,self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/errorHandling.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a1` [INFO] [stdout] --> src/arrayTupleOwnership.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let a1 = arr[0].clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_a1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/traitObjects.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mc` [INFO] [stdout] --> src/arrayTupleOwnership.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mc = abc.2.clone(); // method 1 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_mc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mc` [INFO] [stdout] --> src/arrayTupleOwnership.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let mc = &abc.2; // method 2 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_mc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genres` [INFO] [stdout] --> src/stringOp.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let genres= music.split(", ").collect::>(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_genres` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `unit_struct` should have an upper camel case name [INFO] [stdout] --> src/structsAndImpl.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct unit_struct; // unit struct is used when one wants to implement a trait on some type but don't want any data. [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `UnitStruct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `rectangle` should have an upper camel case name [INFO] [stdout] --> src/structsAndImpl.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct rectangle { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `Rectangle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hotel` [INFO] [stdout] --> src/traits2.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let hotel = Hotel::new(String::from("The Luxe")); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hotel` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/lifetime.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let a = 1; [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: `bc` [INFO] [stdout] --> src/ownership.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let bc = mc.clone(); // the String type implements the Clone trait [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/lifetime.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let b = 2; // life time of this scope [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_integer_reference` [INFO] [stdout] --> src/ownership.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let my_integer_reference = &my_stack_value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_integer_reference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_pet` [INFO] [stdout] --> src/lifetime.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let my_pet = &dog; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_pet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fav` [INFO] [stdout] --> src/lifetime.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let fav = &cities[0..2]; // lifetime begins and end here [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fav` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `same_cities` [INFO] [stdout] --> src/lifetime.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let same_cities = cities; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_same_cities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `airbnb` [INFO] [stdout] --> src/traits2.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | let airbnb = AirBnB::new("Peter"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_airbnb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Accommodation` is never used [INFO] [stdout] --> src/traits2.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | trait Accommodation { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reservations` is never read [INFO] [stdout] --> src/traits2.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct Hotel { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 26 | name: T, [INFO] [stdout] 27 | reservations: HashMap [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Hotel` 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 `guests` is never read [INFO] [stdout] --> src/traits2.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | struct AirBnB { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 50 | host: String, [INFO] [stdout] 51 | guests: Vec<(String,u32)> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AirBnB` 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 `add_fries_mut` is never used [INFO] [stdout] --> src/ownership.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn add_fries_mut(meal: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mix_and_match` is never used [INFO] [stdout] --> src/traits2.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn mix_and_match(first: &mut T, second: &mut U,guest: &str) { // here both first and second are of bot... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::str::::trim` that must be used [INFO] [stdout] --> src/stringOp.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | icon.trim(); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this returns the trimmed string as a slice, without modifying the original [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 26 | let _ = icon.trim(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/exercise7.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | struct File { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 51 | name: String [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `File` 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: field `name` is never read [INFO] [stdout] --> src/exercise7.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 55 | struct Folder { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 56 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Folder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-4` (bin "recursion"); 2 warnings emitted [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] No space left on device (os error 28) [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] failed to parse process output: `/opt/rustwide/rustup-home/toolchains/040e2f8b9ff2d76fbe2146d6003e297ed4532088/bin/rustc --crate-name recursion --edition=2024 src/recursion.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,metadata -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=3170e37d38bcc1a8 -C extra-filename=-35cd7adedd35dcab --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --cap-lints=forbid` (exit status: 0) [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `hotel3` [INFO] [stdout] --> src/traitsContd.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let mut hotel3 = choose_best_place_to_stay(); // observe this the type is impl Accommodation + Description and Hotel type [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_hotel3` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h3` [INFO] [stdout] --> src/traitsContd.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | let h3 = Hotel::new( vec![1,2,3]); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_h3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/slices.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut myslice = &mut my_array[2..4]; [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: `user2` [INFO] [stdout] --> src/structsAndImpl.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | 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: `p1` [INFO] [stdout] --> src/structsAndImpl.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let p1 = Point(1, 1, 1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/structsAndImpl.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let r2 = rectangle::square(5); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `username` is never read [INFO] [stdout] --> src/structsAndImpl.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 4 | active: bool, [INFO] [stdout] 5 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` 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: variable does not need to be mutable [INFO] [stdout] --> src/traitsContd.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let mut hotel3 = choose_best_place_to_stay(); // observe this the type is impl Accommodation + Description and Hotel type [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 `mix_and_match_with_generics` is never used [INFO] [stdout] --> src/traitsContd.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn mix_and_match_with_generics (first: &mut T, second: &mut T, guest: &str) { // here both the types T are the same mea... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mix_and_match_with_generics_fix_with_multiple_trait_bounds` is never used [INFO] [stdout] --> src/traitsContd.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn mix_and_match_with_generics_fix_with_multiple_trait_bounds (first: &mut T, second: &... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mix_and_match_with_generics_fix_with_multiple_trait_bounds_with_where` is never used [INFO] [stdout] --> src/traitsContd.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn mix_and_match_with_generics_fix_with_multiple_trait_bounds_with_where (first: &mut T, second: &mut U, guest: &str) where T: Acc... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `airBnB` should have a snake case name [INFO] [stdout] --> src/traitsContd.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | let mut airBnB = AirBnB::new("Peter"); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `air_bn_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `airBnB2` should have a snake case name [INFO] [stdout] --> src/traitsContd.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | let mut airBnB2 = AirBnB::new("Peter"); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `air_bn_b2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Accommodation` is never used [INFO] [stdout] --> src/traitObjects.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | trait Accommodation { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reservations` is never read [INFO] [stdout] --> src/traitObjects.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct Hotel { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 27 | name: T, [INFO] [stdout] 28 | reservations: HashMap [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Hotel` 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 `guests` is never read [INFO] [stdout] --> src/traitObjects.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 53 | struct AirBnB { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 54 | host: String, [INFO] [stdout] 55 | guests: Vec<(String,u32)> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AirBnB` 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`, `1`, and `2` are never read [INFO] [stdout] --> src/structsAndImpl.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | struct Point(i32, i32, i32); // Tuple Structs are use full when one wants to give an entire tuple a name [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `unit_struct` is never constructed [INFO] [stdout] --> src/structsAndImpl.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct unit_struct; // unit struct is used when one wants to implement a trait on some type but don't want any data. [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `buildUser` should have a snake case name [INFO] [stdout] --> src/structsAndImpl.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn buildUser(email: String, username: String) -> User { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `build_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/exercise11.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{format, Debug, Display, Formatter}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stats` is never used [INFO] [stdout] --> src/exercise11.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | trait Drinkable { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn stats(&self) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Whole` is never constructed [INFO] [stdout] --> src/exercise11.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | enum Milk { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 13 | Whole, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Milk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5cbfc3a58fd40bc88d442c04f86d476181f15b4547492be6484f27016b152a6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cbfc3a58fd40bc88d442c04f86d476181f15b4547492be6484f27016b152a6b", kill_on_drop: false }` [INFO] [stdout] 5cbfc3a58fd40bc88d442c04f86d476181f15b4547492be6484f27016b152a6b