[INFO] cloning repository https://github.com/linafedo/rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/linafedo/rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flinafedo%2Frust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flinafedo%2Frust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b759fcc3a1a2f969645e1a1fdcfc465ee076808d [INFO] building linafedo/rust against try#334963c956d25708feab489a3816ae63f639355d for pr-135216 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flinafedo%2Frust" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/linafedo/rust on toolchain 334963c956d25708feab489a3816ae63f639355d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/linafedo/rust [INFO] finished tweaking git repo https://github.com/linafedo/rust [INFO] tweaked toml for git repo https://github.com/linafedo/rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/linafedo/rust 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" "+334963c956d25708feab489a3816ae63f639355d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7ecd8c75fa60f0e9f7d2bc7f620e6b248adfb32e9f52d7a317fd0e6d1e32d411 [INFO] running `Command { std: "docker" "start" "-a" "7ecd8c75fa60f0e9f7d2bc7f620e6b248adfb32e9f52d7a317fd0e6d1e32d411", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ecd8c75fa60f0e9f7d2bc7f620e6b248adfb32e9f52d7a317fd0e6d1e32d411", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ecd8c75fa60f0e9f7d2bc7f620e6b248adfb32e9f52d7a317fd0e6d1e32d411", kill_on_drop: false }` [INFO] [stdout] 7ecd8c75fa60f0e9f7d2bc7f620e6b248adfb32e9f52d7a317fd0e6d1e32d411 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c4f9ee69ad6ffe8601b7f1770e769f9dd4e0cccc7c0501c2c5aec549043bc19 [INFO] running `Command { std: "docker" "start" "-a" "4c4f9ee69ad6ffe8601b7f1770e769f9dd4e0cccc7c0501c2c5aec549043bc19", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Inventory` and `ShirtColor` [INFO] [stdout] --> src/main.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::shirt_inventory::{Inventory, ShirtColor}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/vec.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/vec.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/vec.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Chars` [INFO] [stdout] --> src/vec.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::str::Chars; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hash_map::Department::Sales` [INFO] [stdout] --> src/hash_map.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::hash_map::Department::Sales; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::vec::vec` [INFO] [stdout] --> src/weak_reference.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::vec::vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/mutex.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/mutex.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/weak_reference.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vec.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut count = map.entry(item).or_insert(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: variable does not need to be mutable [INFO] [stdout] --> src/hash_map.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 28 | Some(mut vec) => { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guess_task` is never used [INFO] [stdout] --> src/guess_task.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn guess_task(run: bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUBTRAHEND` is never used [INFO] [stdout] --> src/convert_fahrenheit_to_celsius.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const SUBTRAHEND:i32 = 32; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIVIDER` is never used [INFO] [stdout] --> src/convert_fahrenheit_to_celsius.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const DIVIDER:f32 = 1.8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_fahrenheit_to_celsius` is never used [INFO] [stdout] --> src/convert_fahrenheit_to_celsius.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn convert_fahrenheit_to_celsius(item: f32, run: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_fibonacci_number` is never used [INFO] [stdout] --> src/fibonacci_number.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn get_fibonacci_number(index: u32, run: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Size` is never constructed [INFO] [stdout] --> src/structures.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Size { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Size` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `area` is never used [INFO] [stdout] --> src/structures.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Size { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 9 | fn area(&self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_area_for_size` is never used [INFO] [stdout] --> src/structures.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn print_area_for_size(size: &Size, run: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Car` is never used [INFO] [stdout] --> src/enums.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Car { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Car` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/enums.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `print_person_info` and `check_enums` are never used [INFO] [stdout] --> src/enums.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Person { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 18 | pub fn print_person_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn check_enums() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> src/enums.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CoinItem` is never constructed [INFO] [stdout] --> src/enums.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct CoinItem { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_value_in_cent` is never used [INFO] [stdout] --> src/enums.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl CoinItem { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 55 | pub fn get_value_in_cent(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_option` is never used [INFO] [stdout] --> src/enums.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn handle_option(item: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec` is never used [INFO] [stdout] --> src/vec.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn vec() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeForVector` is never used [INFO] [stdout] --> src/vec.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum TypeForVector { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vector` is never constructed [INFO] [stdout] --> src/vec.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Vector { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `create_vec` and `get_str` are never used [INFO] [stdout] --> src/vec.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl Vector { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 35 | fn create_vec() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_str() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `map` is never used [INFO] [stdout] --> src/vec.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn map() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mid_value` is never used [INFO] [stdout] --> src/vec.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn get_mid_value(vec: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mediana` is never used [INFO] [stdout] --> src/vec.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn get_mediana(vec: &mut Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mode_of_list` is never used [INFO] [stdout] --> src/vec.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_mode_of_list(vec: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pig_latin_transform` is never used [INFO] [stdout] --> src/vec.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn pig_latin_transform() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sales`, `Marketing`, and `Management` are never constructed [INFO] [stdout] --> src/hash_map.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Department { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 7 | Sales, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | Marketing, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | Management, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Department` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Employees` is never constructed [INFO] [stdout] --> src/hash_map.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Employees { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_employer`, `get_employers`, and `get_all_employees` are never used [INFO] [stdout] --> src/hash_map.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Employees { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new() -> Employees { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add_employer(&mut self, name: String, department: Department) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_employers(&self, from: Department) -> Option<&Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_all_employees(&mut self) -> Vec<&String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/rectangle.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub 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] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `can_hold`, and `is_square` are never used [INFO] [stdout] --> src/rectangle.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 8 | pub fn new(height:u32, weight: u32) -> Rectangle { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn can_hold(&self, rectangle: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn is_square(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Red` and `Blue` are never constructed [INFO] [stdout] --> src/shirt_inventory.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum ShirtColor { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 3 | Red, [INFO] [stdout] | ^^^ [INFO] [stdout] 4 | Blue, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShirtColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inventory` is never constructed [INFO] [stdout] --> src/shirt_inventory.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Inventory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `giveaway` and `most_stocked` are never used [INFO] [stdout] --> src/shirt_inventory.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Inventory { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 12 | pub fn giveaway(&self, user_preference: Option) -> ShirtColor { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn most_stocked(&self) -> ShirtColor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/ref_cell.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum List{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_ref_cell` is never used [INFO] [stdout] --> src/ref_cell.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn create_ref_cell() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/retain_cycle.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum List{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tail` is never used [INFO] [stdout] --> src/retain_cycle.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl List { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 12 | fn tail(&self) -> Option<&RefCell>> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `retain_cycle` is never used [INFO] [stdout] --> src/retain_cycle.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn retain_cycle() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/weak_reference.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_weak_ref` is never used [INFO] [stdout] --> src/weak_reference.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn use_weak_ref() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_new_thread` is never used [INFO] [stdout] --> src/thread.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn create_new_thread() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_prop` is never used [INFO] [stdout] --> src/thread.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn move_prop(){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_channel` is never used [INFO] [stdout] --> src/thread.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn create_channel() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.69s [INFO] running `Command { std: "docker" "inspect" "4c4f9ee69ad6ffe8601b7f1770e769f9dd4e0cccc7c0501c2c5aec549043bc19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c4f9ee69ad6ffe8601b7f1770e769f9dd4e0cccc7c0501c2c5aec549043bc19", kill_on_drop: false }` [INFO] [stdout] 4c4f9ee69ad6ffe8601b7f1770e769f9dd4e0cccc7c0501c2c5aec549043bc19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+334963c956d25708feab489a3816ae63f639355d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 66b993252d2fc16b99d4e8c36df10889ee826a8551772f0dbe4ad7d59d95501c [INFO] running `Command { std: "docker" "start" "-a" "66b993252d2fc16b99d4e8c36df10889ee826a8551772f0dbe4ad7d59d95501c", kill_on_drop: false }` [INFO] [stderr] Compiling rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Inventory` and `ShirtColor` [INFO] [stdout] --> src/main.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::shirt_inventory::{Inventory, ShirtColor}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/vec.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/vec.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/vec.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Chars` [INFO] [stdout] --> src/vec.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::str::Chars; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hash_map::Department::Sales` [INFO] [stdout] --> src/hash_map.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::hash_map::Department::Sales; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::vec::vec` [INFO] [stdout] --> src/weak_reference.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::vec::vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/mutex.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/mutex.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/weak_reference.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vec.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let mut count = map.entry(item).or_insert(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: variable does not need to be mutable [INFO] [stdout] --> src/hash_map.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 28 | Some(mut vec) => { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guess_task` is never used [INFO] [stdout] --> src/guess_task.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn guess_task(run: bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUBTRAHEND` is never used [INFO] [stdout] --> src/convert_fahrenheit_to_celsius.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const SUBTRAHEND:i32 = 32; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DIVIDER` is never used [INFO] [stdout] --> src/convert_fahrenheit_to_celsius.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const DIVIDER:f32 = 1.8; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_fahrenheit_to_celsius` is never used [INFO] [stdout] --> src/convert_fahrenheit_to_celsius.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn convert_fahrenheit_to_celsius(item: f32, run: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_fibonacci_number` is never used [INFO] [stdout] --> src/fibonacci_number.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn get_fibonacci_number(index: u32, run: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Size` is never constructed [INFO] [stdout] --> src/structures.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Size { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Size` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `area` is never used [INFO] [stdout] --> src/structures.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Size { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 9 | fn area(&self) -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_area_for_size` is never used [INFO] [stdout] --> src/structures.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn print_area_for_size(size: &Size, run: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Car` is never used [INFO] [stdout] --> src/enums.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Car { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Car` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Person` is never constructed [INFO] [stdout] --> src/enums.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Person { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `print_person_info` and `check_enums` are never used [INFO] [stdout] --> src/enums.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Person { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 18 | pub fn print_person_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn check_enums() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> src/enums.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CoinItem` is never constructed [INFO] [stdout] --> src/enums.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct CoinItem { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_value_in_cent` is never used [INFO] [stdout] --> src/enums.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl CoinItem { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 55 | pub fn get_value_in_cent(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_option` is never used [INFO] [stdout] --> src/enums.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn handle_option(item: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec` is never used [INFO] [stdout] --> src/vec.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn vec() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypeForVector` is never used [INFO] [stdout] --> src/vec.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum TypeForVector { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vector` is never constructed [INFO] [stdout] --> src/vec.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Vector { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `create_vec` and `get_str` are never used [INFO] [stdout] --> src/vec.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl Vector { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 35 | fn create_vec() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn get_str() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `map` is never used [INFO] [stdout] --> src/vec.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn map() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mid_value` is never used [INFO] [stdout] --> src/vec.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn get_mid_value(vec: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mediana` is never used [INFO] [stdout] --> src/vec.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn get_mediana(vec: &mut Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mode_of_list` is never used [INFO] [stdout] --> src/vec.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn get_mode_of_list(vec: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pig_latin_transform` is never used [INFO] [stdout] --> src/vec.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn pig_latin_transform() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sales`, `Marketing`, and `Management` are never constructed [INFO] [stdout] --> src/hash_map.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Department { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 7 | Sales, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | Marketing, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | Management, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Department` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Employees` is never constructed [INFO] [stdout] --> src/hash_map.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Employees { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_employer`, `get_employers`, and `get_all_employees` are never used [INFO] [stdout] --> src/hash_map.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Employees { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new() -> Employees { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add_employer(&mut self, name: String, department: Department) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_employers(&self, from: Department) -> Option<&Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_all_employees(&mut self) -> Vec<&String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Red` and `Blue` are never constructed [INFO] [stdout] --> src/shirt_inventory.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum ShirtColor { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 3 | Red, [INFO] [stdout] | ^^^ [INFO] [stdout] 4 | Blue, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShirtColor` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Inventory` is never constructed [INFO] [stdout] --> src/shirt_inventory.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Inventory { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `giveaway` and `most_stocked` are never used [INFO] [stdout] --> src/shirt_inventory.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Inventory { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 12 | pub fn giveaway(&self, user_preference: Option) -> ShirtColor { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn most_stocked(&self) -> ShirtColor { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/ref_cell.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum List{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_ref_cell` is never used [INFO] [stdout] --> src/ref_cell.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn create_ref_cell() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/retain_cycle.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum List{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tail` is never used [INFO] [stdout] --> src/retain_cycle.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl List { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 12 | fn tail(&self) -> Option<&RefCell>> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `retain_cycle` is never used [INFO] [stdout] --> src/retain_cycle.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn retain_cycle() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/weak_reference.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_weak_ref` is never used [INFO] [stdout] --> src/weak_reference.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn use_weak_ref() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_new_thread` is never used [INFO] [stdout] --> src/thread.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn create_new_thread() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_prop` is never used [INFO] [stdout] --> src/thread.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn move_prop(){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_channel` is never used [INFO] [stdout] --> src/thread.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn create_channel() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "66b993252d2fc16b99d4e8c36df10889ee826a8551772f0dbe4ad7d59d95501c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66b993252d2fc16b99d4e8c36df10889ee826a8551772f0dbe4ad7d59d95501c", kill_on_drop: false }` [INFO] [stdout] 66b993252d2fc16b99d4e8c36df10889ee826a8551772f0dbe4ad7d59d95501c