[INFO] fetching crate myest 0.1.0... [INFO] checking myest-0.1.0 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate myest 0.1.0 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate myest 0.1.0 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate myest 0.1.0 [INFO] finished tweaking crates.io crate myest 0.1.0 [INFO] tweaked toml for crates.io crate myest 0.1.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate crates.io crate myest 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6401ad9c015d9245c65288ed76ded9a8faa34dcbce2acba5f478cb5dfdccfbe6 [INFO] running `Command { std: "docker" "start" "-a" "6401ad9c015d9245c65288ed76ded9a8faa34dcbce2acba5f478cb5dfdccfbe6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6401ad9c015d9245c65288ed76ded9a8faa34dcbce2acba5f478cb5dfdccfbe6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6401ad9c015d9245c65288ed76ded9a8faa34dcbce2acba5f478cb5dfdccfbe6", kill_on_drop: false }` [INFO] [stdout] 6401ad9c015d9245c65288ed76ded9a8faa34dcbce2acba5f478cb5dfdccfbe6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e09f604f2264a3d728795aa97f1e1efeedf125ee255c979551956bc75638758 [INFO] running `Command { std: "docker" "start" "-a" "0e09f604f2264a3d728795aa97f1e1efeedf125ee255c979551956bc75638758", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking myest v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::mod_clouser::simulated_expensive_calculation` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::mod_clouser::simulated_expensive_calculation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mod_clouser::simulated_expensive_calculation` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::mod_clouser::simulated_expensive_calculation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `shoes_in_my_size` [INFO] [stdout] --> src/lib.rs:77:30 [INFO] [stdout] | [INFO] [stdout] 77 | use crate::mod_clouser::{shoes_in_my_size, Counter}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/mod_error_deal.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let f = match f{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/mod_error_deal.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let f = match f{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/mod_template.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn old(&self, value: &T){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/mod_template.rs:27:23 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn old(&self, value: &T){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_sentence` [INFO] [stdout] --> src/mod_template.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let first_sentence = novel.split('.').next().expect("no ."); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_sentence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `announcement` [INFO] [stdout] --> src/mod_template.rs:58:40 [INFO] [stdout] | [INFO] [stdout] 58 | fn announce_and_return_part(&self, announcement: &str) -> &str{ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_announcement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_sentence` [INFO] [stdout] --> src/mod_template.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let first_sentence = novel.split('.').next().expect("no ."); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_sentence` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `announcement` [INFO] [stdout] --> src/mod_template.rs:58:40 [INFO] [stdout] | [INFO] [stdout] 58 | fn announce_and_return_part(&self, announcement: &str) -> &str{ [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_announcement` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/lib.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | let a = private_run()?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> src/front_of_house/hosting.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn seat_at_table(){} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> src/front_of_house/serving.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn take_order(){} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> src/front_of_house/serving.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn serve_order(){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> src/front_of_house/hosting.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn seat_at_table(){} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> src/front_of_house/serving.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn take_payment(){} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `seasonal_fruit` is never read [INFO] [stdout] --> src/front_of_house/serving/back_of_house.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Breakfast{ [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 2 | pub toast: String, [INFO] [stdout] 3 | seasonal_fruit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fix_incorrect_order` is never used [INFO] [stdout] --> src/front_of_house/serving/back_of_house.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn fix_incorrect_order(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cook_order` is never used [INFO] [stdout] --> src/front_of_house/serving/back_of_house.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn cook_order(){} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> src/front_of_house/serving.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn take_order(){} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_new` is never used [INFO] [stdout] --> src/mod_error_deal.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn read_username_from_file_new() -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guess` is never constructed [INFO] [stdout] --> src/mod_error_deal.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Guess{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/mod_error_deal.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Guess{ [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 48 | pub fn new(value: i32) -> Guess{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn value(&self) -> i32{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcept` is never constructed [INFO] [stdout] --> src/mod_template.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct ImportantExcept<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve_order` is never used [INFO] [stdout] --> src/front_of_house/serving.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn serve_order(){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `announce_and_return_part` is never used [INFO] [stdout] --> src/mod_template.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 57 | impl<'a> ImportantExcept<'a>{ [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] 58 | fn announce_and_return_part(&self, announcement: &str) -> &str{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulated_expensive_calculation` is never used [INFO] [stdout] --> src/mod_clouser.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn simulated_expensive_calculation(intensity: u32) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> src/front_of_house/serving.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn take_payment(){} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `seasonal_fruit` is never read [INFO] [stdout] --> src/front_of_house/serving/back_of_house.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Breakfast{ [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 2 | pub toast: String, [INFO] [stdout] 3 | seasonal_fruit: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fix_incorrect_order` is never used [INFO] [stdout] --> src/front_of_house/serving/back_of_house.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn fix_incorrect_order(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cook_order` is never used [INFO] [stdout] --> src/front_of_house/serving/back_of_house.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn cook_order(){} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file_new` is never used [INFO] [stdout] --> src/mod_error_deal.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn read_username_from_file_new() -> Result{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Guess` is never constructed [INFO] [stdout] --> src/mod_error_deal.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct Guess{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/mod_error_deal.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Guess{ [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 48 | pub fn new(value: i32) -> Guess{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn value(&self) -> i32{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ImportantExcept` is never constructed [INFO] [stdout] --> src/mod_template.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct ImportantExcept<'a>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `announce_and_return_part` is never used [INFO] [stdout] --> src/mod_template.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 57 | impl<'a> ImportantExcept<'a>{ [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] 58 | fn announce_and_return_part(&self, announcement: &str) -> &str{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simulated_expensive_calculation` is never used [INFO] [stdout] --> src/mod_clouser.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn simulated_expensive_calculation(intensity: u32) -> u32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mod_clouser.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl Shoe{ [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 42 | pub fn new(size: u32, style: String) -> Shoe{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shoes_in_my_size` is never used [INFO] [stdout] --> src/mod_clouser.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn shoes_in_my_size(shoes: Vec, shoe_size: u32) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mod_clouser.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl Counter{ [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 56 | pub fn new() -> Counter{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/bin/main.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `myest::mod_trait::Summary` [INFO] [stdout] --> src/bin/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use myest::mod_trait::Summary; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/bin/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/bin/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/main.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 190 | return n; [INFO] [stdout] | -------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 196 | 0 [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let x = &mut v; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v` is never read [INFO] [stdout] --> src/bin/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | v = 3; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/bin/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let s = data.to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/main.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | let (x, y, z) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/bin/main.rs:87:16 [INFO] [stdout] | [INFO] [stdout] 87 | let (x, y, z) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/bin/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let number = if condition{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dihang` [INFO] [stdout] --> src/bin/main.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let dihang = loop{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dihang` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user1` [INFO] [stdout] --> src/bin/main.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let user1 = User{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sq` [INFO] [stdout] --> src/bin/main.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let sq = Rectangle::square(10); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip_type` [INFO] [stdout] --> src/bin/main.rs:149:10 [INFO] [stdout] | [INFO] [stdout] 149 | fn route(ip_type: IpAddrKind){ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/main.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | V4(String, String), [INFO] [stdout] | -- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 174 | V4((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `five` is never used [INFO] [stdout] --> src/bin/main.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn five() -> i32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `email`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> src/bin/main.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 199 | struct User{ [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 200 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 201 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 202 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 203 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/bin/main.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `myest::mod_trait::Summary` [INFO] [stdout] --> src/bin/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use myest::mod_trait::Summary; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/bin/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/bin/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/main.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 190 | return n; [INFO] [stdout] | -------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 196 | 0 [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let x = &mut v; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `v` is never read [INFO] [stdout] --> src/bin/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | v = 3; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/bin/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let s = data.to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/main.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | let (x, y, z) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/bin/main.rs:87:16 [INFO] [stdout] | [INFO] [stdout] 87 | let (x, y, z) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/bin/main.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let number = if condition{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dihang` [INFO] [stdout] --> src/bin/main.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let dihang = loop{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dihang` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user1` [INFO] [stdout] --> src/bin/main.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | let user1 = User{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_user1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sq` [INFO] [stdout] --> src/bin/main.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let sq = Rectangle::square(10); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip_type` [INFO] [stdout] --> src/bin/main.rs:149:10 [INFO] [stdout] | [INFO] [stdout] 149 | fn route(ip_type: IpAddrKind){ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/main.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | V4(String, String), [INFO] [stdout] | -- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 174 | V4((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `five` is never used [INFO] [stdout] --> src/bin/main.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn five() -> i32{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `email`, `sign_in_count`, and `active` are never read [INFO] [stdout] --> src/bin/main.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 199 | struct User{ [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 200 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 201 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 202 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 203 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.60s [INFO] running `Command { std: "docker" "inspect" "0e09f604f2264a3d728795aa97f1e1efeedf125ee255c979551956bc75638758", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e09f604f2264a3d728795aa97f1e1efeedf125ee255c979551956bc75638758", kill_on_drop: false }` [INFO] [stdout] 0e09f604f2264a3d728795aa97f1e1efeedf125ee255c979551956bc75638758