[INFO] cloning repository https://github.com/marcwenz/shopper [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/marcwenz/shopper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarcwenz%2Fshopper", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarcwenz%2Fshopper'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a4ca596547ea9a89bfee921c2e0d3f2c3b17b898 [INFO] checking marcwenz/shopper against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarcwenz%2Fshopper" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/marcwenz/shopper on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/marcwenz/shopper [INFO] finished tweaking git repo https://github.com/marcwenz/shopper [INFO] tweaked toml for git repo https://github.com/marcwenz/shopper written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/marcwenz/shopper already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e24ff1e0707947f8fd3a4fb40c3df1fd245c0a017d2f36df043bc72267914f77 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e24ff1e0707947f8fd3a4fb40c3df1fd245c0a017d2f36df043bc72267914f77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e24ff1e0707947f8fd3a4fb40c3df1fd245c0a017d2f36df043bc72267914f77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e24ff1e0707947f8fd3a4fb40c3df1fd245c0a017d2f36df043bc72267914f77", kill_on_drop: false }` [INFO] [stdout] e24ff1e0707947f8fd3a4fb40c3df1fd245c0a017d2f36df043bc72267914f77 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4488676dd60767e24bb9695eb646ea90ae7e609884907500d5842cf54bbd3a0a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4488676dd60767e24bb9695eb646ea90ae7e609884907500d5842cf54bbd3a0a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling proc-macro2 v1.0.13 [INFO] [stderr] Compiling syn v1.0.22 [INFO] [stderr] Checking arc-swap v0.4.6 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking unicode-segmentation v1.6.0 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling ncurses v5.99.0 [INFO] [stderr] Checking owning_ref v0.4.1 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking term_size v0.3.2 [INFO] [stderr] Compiling const-random-macro v0.1.8 [INFO] [stderr] Checking signal-hook v0.1.15 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking const-random v0.1.8 [INFO] [stderr] Checking ahash v0.2.18 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling enum-map-derive v0.4.3 [INFO] [stderr] Checking enum-map v0.6.2 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling enumset_derive v0.4.4 [INFO] [stderr] Checking enumset v0.4.5 [INFO] [stderr] Checking cursive v0.14.1 [INFO] [stderr] Checking shopper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `EventTrigger`, `MouseEvent` [INFO] [stdout] --> src/curses.rs:2:42 [INFO] [stdout] | [INFO] [stdout] 2 | use cursive::event::{Event, EventResult, EventTrigger, Key, MouseEvent}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EventTrigger`, `MouseEvent` [INFO] [stdout] --> src/curses.rs:2:42 [INFO] [stdout] | [INFO] [stdout] 2 | use cursive::event::{Event, EventResult, EventTrigger, Key, MouseEvent}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OnEventView` [INFO] [stdout] --> src/curses.rs:7:44 [INFO] [stdout] | [INFO] [stdout] 7 | use cursive::views::{Button, LinearLayout, OnEventView}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OnEventView` [INFO] [stdout] --> src/curses.rs:7:44 [INFO] [stdout] | [INFO] [stdout] 7 | use cursive::views::{Button, LinearLayout, OnEventView}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/shops.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/shops.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [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/shops.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | let mut rng = rand::thread_rng(); [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: associated function is never used: `get_idx` [INFO] [stdout] --> src/shops.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | fn get_idx(&self, i: usize) -> Option<&ShopType> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_item` [INFO] [stdout] --> src/shops.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn random_item(name: &str, in_money: &f32, in_capacity: &u32) -> Item { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/shops.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Mall` [INFO] [stdout] --> src/structs.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Mall { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(shops: Vec) -> Mall { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_shops` [INFO] [stdout] --> src/structs.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn get_shops(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_mut_shop` [INFO] [stdout] --> src/structs.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn get_mut_shop(&mut self, index: usize) -> Option<&mut Shop> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_shop` [INFO] [stdout] --> src/structs.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn find_shop(&self, sh_name: &str) -> Option<(&Shop, usize)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Shopper` [INFO] [stdout] --> src/structs.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Shopper { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new(money: f32, capacity: u32) -> Shopper { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_money` [INFO] [stdout] --> src/structs.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn get_money(&self) -> &f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_capacity` [INFO] [stdout] --> src/structs.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn get_capacity(&self) -> &u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `buy_basket` [INFO] [stdout] --> src/structs.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn buy_basket(&mut self, basket: &mut Basket) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_inventory` [INFO] [stdout] --> src/structs.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn update_inventory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cal_remaining_capacity` [INFO] [stdout] --> src/structs.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn cal_remaining_capacity(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cal_taken_capacity` [INFO] [stdout] --> src/structs.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn cal_taken_capacity(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_basket_capacity` [INFO] [stdout] --> src/structs.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn get_basket_capacity(&self) -> &u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_inventory` [INFO] [stdout] --> src/structs.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn get_inventory(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `take_item` [INFO] [stdout] --> src/structs.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn take_item( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put_item_back` [INFO] [stdout] --> src/structs.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn put_item_back(&mut self, item: &Item) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put_amount_back` [INFO] [stdout] --> src/structs.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn put_amount_back( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/shops.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | let mut rng = rand::thread_rng(); [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: associated function is never used: `get_item` [INFO] [stdout] --> src/structs.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn get_item(&self, item_name: &str) -> Option<&Item> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn new(name: String, cost: f32, size: u32, quantity: u32) -> Item { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_name` [INFO] [stdout] --> src/structs.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn get_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_size` [INFO] [stdout] --> src/structs.rs:213:12 [INFO] [stdout] | [INFO] [stdout] 213 | pub fn get_size(&self) -> &u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_quantity` [INFO] [stdout] --> src/structs.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn get_quantity(&self) -> &u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cost` [INFO] [stdout] --> src/structs.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn get_cost(&self) -> &f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_is_stolen` [INFO] [stdout] --> src/structs.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn get_is_stolen(&self) -> &bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Basket` [INFO] [stdout] --> src/structs.rs:230:12 [INFO] [stdout] | [INFO] [stdout] 230 | pub struct Basket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs.rs:236:12 [INFO] [stdout] | [INFO] [stdout] 236 | pub fn new(basket_capacity: u32) -> Basket { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_basket_capacity` [INFO] [stdout] --> src/structs.rs:243:12 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn get_basket_capacity(&self) -> &u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/structs.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 247 | pub fn add(&mut self, item: Item) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/structs.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 251 | pub fn remove(&mut self, item_index: usize) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_generic_shop` [INFO] [stdout] --> src/utils.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn create_generic_shop() -> Shop { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_generic_mall` [INFO] [stdout] --> src/utils.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn create_generic_mall() -> Mall { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_item_in_inventory` [INFO] [stdout] --> src/utils.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn find_item_in_inventory<'b>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_user_input` [INFO] [stdout] --> src/utils.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn get_user_input(prompt: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_f32` [INFO] [stdout] --> src/utils.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn parse_f32(prompt: &str) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_u32` [INFO] [stdout] --> src/utils.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn parse_u32(prompt: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_game` [INFO] [stdout] --> src/utils.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn init_game() -> (Shopper, Mall) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `return_basket` [INFO] [stdout] --> src/utils.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn return_basket(basket: &mut Basket, shop: &mut Shop) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_stolen` [INFO] [stdout] --> src/utils.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn print_stolen(shopper: &Shopper) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_stats` [INFO] [stdout] --> src/utils.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn print_stats(shopper: &Shopper) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `base_loop` [INFO] [stdout] --> src/main.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn base_loop(shopper: &mut Shopper, mall: &mut Mall) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `in_shop` [INFO] [stdout] --> src/main.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn in_shop<'a>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_idx` [INFO] [stdout] --> src/shops.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | fn get_idx(&self, i: usize) -> Option<&ShopType> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_item` [INFO] [stdout] --> src/shops.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn random_item(name: &str, in_money: &f32, in_capacity: &u32) -> Item { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/shops.rs:219:8 [INFO] [stdout] | [INFO] [stdout] 219 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Mall` [INFO] [stdout] --> src/structs.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Mall { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(shops: Vec) -> Mall { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_shops` [INFO] [stdout] --> src/structs.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn get_shops(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_mut_shop` [INFO] [stdout] --> src/structs.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn get_mut_shop(&mut self, index: usize) -> Option<&mut Shop> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_shop` [INFO] [stdout] --> src/structs.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn find_shop(&self, sh_name: &str) -> Option<(&Shop, usize)> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Shopper` [INFO] [stdout] --> src/structs.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Shopper { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn new(money: f32, capacity: u32) -> Shopper { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_money` [INFO] [stdout] --> src/structs.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn get_money(&self) -> &f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_capacity` [INFO] [stdout] --> src/structs.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn get_capacity(&self) -> &u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `buy_basket` [INFO] [stdout] --> src/structs.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn buy_basket(&mut self, basket: &mut Basket) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_inventory` [INFO] [stdout] --> src/structs.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn update_inventory( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cal_remaining_capacity` [INFO] [stdout] --> src/structs.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn cal_remaining_capacity(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cal_taken_capacity` [INFO] [stdout] --> src/structs.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn cal_taken_capacity(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_basket_capacity` [INFO] [stdout] --> src/structs.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn get_basket_capacity(&self) -> &u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_inventory` [INFO] [stdout] --> src/structs.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn get_inventory(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `take_item` [INFO] [stdout] --> src/structs.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn take_item( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put_item_back` [INFO] [stdout] --> src/structs.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn put_item_back(&mut self, item: &Item) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put_amount_back` [INFO] [stdout] --> src/structs.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 166 | pub fn put_amount_back( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_item` [INFO] [stdout] --> src/structs.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 179 | pub fn get_item(&self, item_name: &str) -> Option<&Item> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs.rs:199:12 [INFO] [stdout] | [INFO] [stdout] 199 | pub fn new(name: String, cost: f32, size: u32, quantity: u32) -> Item { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_name` [INFO] [stdout] --> src/structs.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn get_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_size` [INFO] [stdout] --> src/structs.rs:213:12 [INFO] [stdout] | [INFO] [stdout] 213 | pub fn get_size(&self) -> &u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_quantity` [INFO] [stdout] --> src/structs.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 217 | pub fn get_quantity(&self) -> &u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_cost` [INFO] [stdout] --> src/structs.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn get_cost(&self) -> &f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_is_stolen` [INFO] [stdout] --> src/structs.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 225 | pub fn get_is_stolen(&self) -> &bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Basket` [INFO] [stdout] --> src/structs.rs:230:12 [INFO] [stdout] | [INFO] [stdout] 230 | pub struct Basket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/structs.rs:236:12 [INFO] [stdout] | [INFO] [stdout] 236 | pub fn new(basket_capacity: u32) -> Basket { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_basket_capacity` [INFO] [stdout] --> src/structs.rs:243:12 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn get_basket_capacity(&self) -> &u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/structs.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 247 | pub fn add(&mut self, item: Item) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `remove` [INFO] [stdout] --> src/structs.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 251 | pub fn remove(&mut self, item_index: usize) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_generic_shop` [INFO] [stdout] --> src/utils.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn create_generic_shop() -> Shop { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_generic_mall` [INFO] [stdout] --> src/utils.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn create_generic_mall() -> Mall { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `find_item_in_inventory` [INFO] [stdout] --> src/utils.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn find_item_in_inventory<'b>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_user_input` [INFO] [stdout] --> src/utils.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn get_user_input(prompt: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_f32` [INFO] [stdout] --> src/utils.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn parse_f32(prompt: &str) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_u32` [INFO] [stdout] --> src/utils.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn parse_u32(prompt: &str) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_game` [INFO] [stdout] --> src/utils.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn init_game() -> (Shopper, Mall) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `return_basket` [INFO] [stdout] --> src/utils.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn return_basket(basket: &mut Basket, shop: &mut Shop) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_stolen` [INFO] [stdout] --> src/utils.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn print_stolen(shopper: &Shopper) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_stats` [INFO] [stdout] --> src/utils.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn print_stats(shopper: &Shopper) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `base_loop` [INFO] [stdout] --> src/main.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn base_loop(shopper: &mut Shopper, mall: &mut Mall) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `in_shop` [INFO] [stdout] --> src/main.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn in_shop<'a>( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/curses.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | mem::replace(&mut texts[ll - 4], format!(" |{:7}| ", label)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/curses.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | mem::replace(&mut texts[ll - 4], format!(" |{:7}| ", label)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 56.52s [INFO] running `Command { std: "docker" "inspect" "4488676dd60767e24bb9695eb646ea90ae7e609884907500d5842cf54bbd3a0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4488676dd60767e24bb9695eb646ea90ae7e609884907500d5842cf54bbd3a0a", kill_on_drop: false }` [INFO] [stdout] 4488676dd60767e24bb9695eb646ea90ae7e609884907500d5842cf54bbd3a0a