[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] testing marcwenz/shopper against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarcwenz%2Fshopper" "/workspace/builds/worker-90/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-90/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/marcwenz/shopper on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-90/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" "+1.60.0" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded arc-swap v0.4.6 [INFO] [stderr] Downloaded enumset_derive v0.4.4 [INFO] [stderr] Downloaded enumset v0.4.5 [INFO] [stderr] Downloaded array-macro v1.0.5 [INFO] [stderr] Downloaded const-random-macro v0.1.8 [INFO] [stderr] Downloaded ahash v0.2.18 [INFO] [stderr] Downloaded enum-map v0.6.2 [INFO] [stderr] Downloaded enum-map-derive v0.4.3 [INFO] [stderr] Downloaded const-random v0.1.8 [INFO] [stderr] Downloaded proc-macro2 v1.0.13 [INFO] [stderr] Downloaded quote v1.0.6 [INFO] [stderr] Downloaded ncurses v5.99.0 [INFO] [stderr] Downloaded num v0.2.1 [INFO] [stderr] Downloaded syn v1.0.22 [INFO] [stderr] Downloaded signal-hook v0.1.15 [INFO] [stderr] Downloaded xi-unicode v0.2.0 [INFO] [stderr] Downloaded cursive v0.14.1 [INFO] [stderr] Downloaded cc v1.0.53 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-90/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-90/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 01e851673f1e3062f1abb8f37e9d6aee8934c58e05859837c893e86b88868b24 [INFO] running `Command { std: "docker" "start" "-a" "01e851673f1e3062f1abb8f37e9d6aee8934c58e05859837c893e86b88868b24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "01e851673f1e3062f1abb8f37e9d6aee8934c58e05859837c893e86b88868b24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01e851673f1e3062f1abb8f37e9d6aee8934c58e05859837c893e86b88868b24", kill_on_drop: false }` [INFO] [stdout] 01e851673f1e3062f1abb8f37e9d6aee8934c58e05859837c893e86b88868b24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-90/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-90/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3b332166e3a44a133d889707011d346514a0229ed6d29318b14c67d036a9cef5 [INFO] running `Command { std: "docker" "start" "-a" "3b332166e3a44a133d889707011d346514a0229ed6d29318b14c67d036a9cef5", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling proc-macro2 v1.0.13 [INFO] [stderr] Compiling syn v1.0.22 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling strsim v0.9.3 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling proc-macro-hack v0.5.15 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling cc v1.0.53 [INFO] [stderr] Compiling arc-swap v0.4.6 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling array-macro v1.0.5 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling unicode-width v0.1.7 [INFO] [stderr] Compiling xi-unicode v0.2.0 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [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 maybe-uninit v2.0.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling owning_ref v0.4.1 [INFO] [stderr] Compiling crossbeam-channel v0.4.2 [INFO] [stderr] Compiling ncurses v5.99.0 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling term_size v0.3.2 [INFO] [stderr] Compiling signal-hook v0.1.15 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling const-random-macro v0.1.8 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling chrono v0.4.11 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling const-random v0.1.8 [INFO] [stderr] Compiling num v0.2.1 [INFO] [stderr] Compiling ahash v0.2.18 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling enum-map-derive v0.4.3 [INFO] [stderr] Compiling 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] Compiling enumset v0.4.5 [INFO] [stderr] Compiling cursive v0.14.1 [INFO] [stderr] Compiling 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 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:13 [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: 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] = note: `#[warn(dead_code)]` on by default [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] [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: field is never read: `name` [INFO] [stdout] --> src/structs.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Shop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/structs.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `inventory` [INFO] [stdout] --> src/structs.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | inventory: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Shop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/structs.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `basket_capacity` [INFO] [stdout] --> src/structs.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | basket_capacity: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Shop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/structs.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `name` [INFO] [stdout] --> src/structs.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Item` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/structs.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `cost` [INFO] [stdout] --> src/structs.rs:192:5 [INFO] [stdout] | [INFO] [stdout] 192 | cost: f32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Item` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/structs.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `size` [INFO] [stdout] --> src/structs.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | size: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Item` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/structs.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: 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: 57 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 56.61s [INFO] running `Command { std: "docker" "inspect" "3b332166e3a44a133d889707011d346514a0229ed6d29318b14c67d036a9cef5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b332166e3a44a133d889707011d346514a0229ed6d29318b14c67d036a9cef5", kill_on_drop: false }` [INFO] [stdout] 3b332166e3a44a133d889707011d346514a0229ed6d29318b14c67d036a9cef5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-90/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-90/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec532af82de723ed949e8e54df91a1c900e7d53f8cc5e7ebe758638b5ac3ab49 [INFO] running `Command { std: "docker" "start" "-a" "ec532af82de723ed949e8e54df91a1c900e7d53f8cc5e7ebe758638b5ac3ab49", kill_on_drop: false }` [INFO] [stderr] Compiling 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 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:13 [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: 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] = note: `#[warn(dead_code)]` on by default [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] [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: field is never read: `name` [INFO] [stdout] --> src/structs.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Shop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/structs.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `inventory` [INFO] [stdout] --> src/structs.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | inventory: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Shop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/structs.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `basket_capacity` [INFO] [stdout] --> src/structs.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | basket_capacity: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Shop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/structs.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `name` [INFO] [stdout] --> src/structs.rs:191:5 [INFO] [stdout] | [INFO] [stdout] 191 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Item` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/structs.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `cost` [INFO] [stdout] --> src/structs.rs:192:5 [INFO] [stdout] | [INFO] [stdout] 192 | cost: f32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Item` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/structs.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `size` [INFO] [stdout] --> src/structs.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | size: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Item` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/structs.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: 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: 57 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.76s [INFO] running `Command { std: "docker" "inspect" "ec532af82de723ed949e8e54df91a1c900e7d53f8cc5e7ebe758638b5ac3ab49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec532af82de723ed949e8e54df91a1c900e7d53f8cc5e7ebe758638b5ac3ab49", kill_on_drop: false }` [INFO] [stdout] ec532af82de723ed949e8e54df91a1c900e7d53f8cc5e7ebe758638b5ac3ab49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-90/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-90/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c29717e68c62fc154805cf29ad99324a445d70d153ee098e118a95db3c0895f9 [INFO] running `Command { std: "docker" "start" "-a" "c29717e68c62fc154805cf29ad99324a445d70d153ee098e118a95db3c0895f9", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `EventTrigger`, `MouseEvent` [INFO] [stderr] --> src/curses.rs:2:42 [INFO] [stderr] | [INFO] [stderr] 2 | use cursive::event::{Event, EventResult, EventTrigger, Key, MouseEvent}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `OnEventView` [INFO] [stderr] --> src/curses.rs:7:44 [INFO] [stderr] | [INFO] [stderr] 7 | use cursive::views::{Button, LinearLayout, OnEventView}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rng` [INFO] [stderr] --> src/shops.rs:220:13 [INFO] [stderr] | [INFO] [stderr] 220 | let mut rng = rand::thread_rng(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/shops.rs:220:9 [INFO] [stderr] | [INFO] [stderr] 220 | let mut rng = rand::thread_rng(); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `base_loop` [INFO] [stderr] --> src/main.rs:17:4 [INFO] [stderr] | [INFO] [stderr] 17 | fn base_loop(shopper: &mut Shopper, mall: &mut Mall) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `in_shop` [INFO] [stderr] --> src/main.rs:65:4 [INFO] [stderr] | [INFO] [stderr] 65 | fn in_shop<'a>( [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_idx` [INFO] [stderr] --> src/shops.rs:105:8 [INFO] [stderr] | [INFO] [stderr] 105 | fn get_idx(&self, i: usize) -> Option<&ShopType> { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `random_item` [INFO] [stderr] --> src/shops.rs:185:4 [INFO] [stderr] | [INFO] [stderr] 185 | fn random_item(name: &str, in_money: &f32, in_capacity: &u32) -> Item { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `main` [INFO] [stderr] --> src/shops.rs:219:8 [INFO] [stderr] | [INFO] [stderr] 219 | pub fn main() { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Mall` [INFO] [stderr] --> src/structs.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | pub struct Mall { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/structs.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub fn new(shops: Vec) -> Mall { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_shops` [INFO] [stderr] --> src/structs.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn get_shops(&self) -> &Vec { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_mut_shop` [INFO] [stderr] --> src/structs.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn get_mut_shop(&mut self, index: usize) -> Option<&mut Shop> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `find_shop` [INFO] [stderr] --> src/structs.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn find_shop(&self, sh_name: &str) -> Option<(&Shop, usize)> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Shopper` [INFO] [stderr] --> src/structs.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 30 | pub struct Shopper { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/structs.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn new(money: f32, capacity: u32) -> Shopper { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_money` [INFO] [stderr] --> src/structs.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn get_money(&self) -> &f32 { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_capacity` [INFO] [stderr] --> src/structs.rs:50:12 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn get_capacity(&self) -> &u32 { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `buy_basket` [INFO] [stderr] --> src/structs.rs:54:12 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn buy_basket(&mut self, basket: &mut Basket) -> Result<(), &str> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `update_inventory` [INFO] [stderr] --> src/structs.rs:77:12 [INFO] [stderr] | [INFO] [stderr] 77 | pub fn update_inventory( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cal_remaining_capacity` [INFO] [stderr] --> src/structs.rs:98:12 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn cal_remaining_capacity(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `cal_taken_capacity` [INFO] [stderr] --> src/structs.rs:102:12 [INFO] [stderr] | [INFO] [stderr] 102 | pub fn cal_taken_capacity(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `name` [INFO] [stderr] --> src/structs.rs:112:5 [INFO] [stderr] | [INFO] [stderr] 112 | name: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Shop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/structs.rs:110:10 [INFO] [stderr] | [INFO] [stderr] 110 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `inventory` [INFO] [stderr] --> src/structs.rs:113:5 [INFO] [stderr] | [INFO] [stderr] 113 | inventory: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Shop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/structs.rs:110:10 [INFO] [stderr] | [INFO] [stderr] 110 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `basket_capacity` [INFO] [stderr] --> src/structs.rs:114:5 [INFO] [stderr] | [INFO] [stderr] 114 | basket_capacity: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Shop` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/structs.rs:110:10 [INFO] [stderr] | [INFO] [stderr] 110 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/structs.rs:118:12 [INFO] [stderr] | [INFO] [stderr] 118 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_basket_capacity` [INFO] [stderr] --> src/structs.rs:130:12 [INFO] [stderr] | [INFO] [stderr] 130 | pub fn get_basket_capacity(&self) -> &u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_inventory` [INFO] [stderr] --> src/structs.rs:134:12 [INFO] [stderr] | [INFO] [stderr] 134 | pub fn get_inventory(&self) -> &Vec { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `take_item` [INFO] [stderr] --> src/structs.rs:138:12 [INFO] [stderr] | [INFO] [stderr] 138 | pub fn take_item( [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `put_item_back` [INFO] [stderr] --> src/structs.rs:161:12 [INFO] [stderr] | [INFO] [stderr] 161 | pub fn put_item_back(&mut self, item: &Item) -> Result<(), &str> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `put_amount_back` [INFO] [stderr] --> src/structs.rs:166:12 [INFO] [stderr] | [INFO] [stderr] 166 | pub fn put_amount_back( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_item` [INFO] [stderr] --> src/structs.rs:179:12 [INFO] [stderr] | [INFO] [stderr] 179 | pub fn get_item(&self, item_name: &str) -> Option<&Item> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `name` [INFO] [stderr] --> src/structs.rs:191:5 [INFO] [stderr] | [INFO] [stderr] 191 | name: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Item` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/structs.rs:189:10 [INFO] [stderr] | [INFO] [stderr] 189 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `cost` [INFO] [stderr] --> src/structs.rs:192:5 [INFO] [stderr] | [INFO] [stderr] 192 | cost: f32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Item` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/structs.rs:189:10 [INFO] [stderr] | [INFO] [stderr] 189 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `size` [INFO] [stderr] --> src/structs.rs:193:5 [INFO] [stderr] | [INFO] [stderr] 193 | size: u32, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Item` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/structs.rs:189:10 [INFO] [stderr] | [INFO] [stderr] 189 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/structs.rs:199:12 [INFO] [stderr] | [INFO] [stderr] 199 | pub fn new(name: String, cost: f32, size: u32, quantity: u32) -> Item { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_name` [INFO] [stderr] --> src/structs.rs:209:12 [INFO] [stderr] | [INFO] [stderr] 209 | pub fn get_name(&self) -> &str { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_size` [INFO] [stderr] --> src/structs.rs:213:12 [INFO] [stderr] | [INFO] [stderr] 213 | pub fn get_size(&self) -> &u32 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_quantity` [INFO] [stderr] --> src/structs.rs:217:12 [INFO] [stderr] | [INFO] [stderr] 217 | pub fn get_quantity(&self) -> &u32 { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_cost` [INFO] [stderr] --> src/structs.rs:221:12 [INFO] [stderr] | [INFO] [stderr] 221 | pub fn get_cost(&self) -> &f32 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_is_stolen` [INFO] [stderr] --> src/structs.rs:225:12 [INFO] [stderr] | [INFO] [stderr] 225 | pub fn get_is_stolen(&self) -> &bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Basket` [INFO] [stderr] --> src/structs.rs:230:12 [INFO] [stderr] | [INFO] [stderr] 230 | pub struct Basket { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/structs.rs:236:12 [INFO] [stderr] | [INFO] [stderr] 236 | pub fn new(basket_capacity: u32) -> Basket { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_basket_capacity` [INFO] [stderr] --> src/structs.rs:243:12 [INFO] [stderr] | [INFO] [stderr] 243 | pub fn get_basket_capacity(&self) -> &u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `add` [INFO] [stderr] --> src/structs.rs:247:12 [INFO] [stderr] | [INFO] [stderr] 247 | pub fn add(&mut self, item: Item) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `remove` [INFO] [stderr] --> src/structs.rs:251:12 [INFO] [stderr] | [INFO] [stderr] 251 | pub fn remove(&mut self, item_index: usize) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create_generic_shop` [INFO] [stderr] --> src/utils.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn create_generic_shop() -> Shop { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `create_generic_mall` [INFO] [stderr] --> src/utils.rs:15:8 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn create_generic_mall() -> Mall { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `find_item_in_inventory` [INFO] [stderr] --> src/utils.rs:22:8 [INFO] [stderr] | [INFO] [stderr] 22 | pub fn find_item_in_inventory<'b>( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_user_input` [INFO] [stderr] --> src/utils.rs:39:8 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn get_user_input(prompt: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `parse_f32` [INFO] [stderr] --> src/utils.rs:51:8 [INFO] [stderr] | [INFO] [stderr] 51 | pub fn parse_f32(prompt: &str) -> f32 { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `parse_u32` [INFO] [stderr] --> src/utils.rs:66:8 [INFO] [stderr] | [INFO] [stderr] 66 | pub fn parse_u32(prompt: &str) -> u32 { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `init_game` [INFO] [stderr] --> src/utils.rs:81:8 [INFO] [stderr] | [INFO] [stderr] 81 | pub fn init_game() -> (Shopper, Mall) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `return_basket` [INFO] [stderr] --> src/utils.rs:91:8 [INFO] [stderr] | [INFO] [stderr] 91 | pub fn return_basket(basket: &mut Basket, shop: &mut Shop) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `print_stolen` [INFO] [stderr] --> src/utils.rs:98:8 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn print_stolen(shopper: &Shopper) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `print_stats` [INFO] [stderr] --> src/utils.rs:124:8 [INFO] [stderr] | [INFO] [stderr] 124 | pub fn print_stats(shopper: &Shopper) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused return value of `std::mem::replace` that must be used [INFO] [stderr] --> src/curses.rs:210:13 [INFO] [stderr] | [INFO] [stderr] 210 | mem::replace(&mut texts[ll - 4], format!(" |{:7}| ", label)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stderr] [INFO] [stderr] warning: `shopper` (bin "shopper" test) generated 57 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 10.21s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/shopper-4a16901e064e115d) [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/shopper-c67f500bb2e6cb56) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests shopper [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c29717e68c62fc154805cf29ad99324a445d70d153ee098e118a95db3c0895f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c29717e68c62fc154805cf29ad99324a445d70d153ee098e118a95db3c0895f9", kill_on_drop: false }` [INFO] [stdout] c29717e68c62fc154805cf29ad99324a445d70d153ee098e118a95db3c0895f9