[INFO] cloning repository https://github.com/M-Isonni/learning_Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/M-Isonni/learning_Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FM-Isonni%2Flearning_Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FM-Isonni%2Flearning_Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e5ed7c9e772ff95a1ca633c6a84905ba46300147 [INFO] checking M-Isonni/learning_Rust/e5ed7c9e772ff95a1ca633c6a84905ba46300147 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FM-Isonni%2Flearning_Rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/M-Isonni/learning_Rust 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 git repo https://github.com/M-Isonni/learning_Rust [INFO] finished tweaking git repo https://github.com/M-Isonni/learning_Rust [INFO] tweaked toml for git repo https://github.com/M-Isonni/learning_Rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/M-Isonni/learning_Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 481256f9fbebfcdb11fcea3f00c3ba32dd08b26673309419926bfbb16ca8bd57 [INFO] running `Command { std: "docker" "start" "-a" "481256f9fbebfcdb11fcea3f00c3ba32dd08b26673309419926bfbb16ca8bd57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "481256f9fbebfcdb11fcea3f00c3ba32dd08b26673309419926bfbb16ca8bd57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "481256f9fbebfcdb11fcea3f00c3ba32dd08b26673309419926bfbb16ca8bd57", kill_on_drop: false }` [INFO] [stdout] 481256f9fbebfcdb11fcea3f00c3ba32dd08b26673309419926bfbb16ca8bd57 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 4ea67fb0df1d6330a88bf3bbbed1ec8c9828d80f838c9915f8bdc1495c8fb09f [INFO] running `Command { std: "docker" "start" "-a" "4ea67fb0df1d6330a88bf3bbbed1ec8c9828d80f838c9915f8bdc1495c8fb09f", kill_on_drop: false }` [INFO] [stderr] Checking variables v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/matches.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut count = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/matches.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | count += 1; [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: `f` [INFO] [stdout] --> src/panics.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let f = match f{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panics.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let f = File::open("hello.txt").map_err(|error| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panics.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let f = File::open("hello.txt").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panics.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let f = File::open("hello.txt").expect("Failed to open hello.txt"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/panics.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let res = match res{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_result` [INFO] [stdout] --> src/panics.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let second_result = match second_result{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third_result` [INFO] [stdout] --> src/panics.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let third_result = match third_result { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_third_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panics.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | let f = File::open("hello.txt")?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> src/matches.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut count = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> src/matches.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | count += 1; [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: `both_integer` [INFO] [stdout] --> src/generics.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let both_integer = Point { x: 5, y: 10 }; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_both_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `integer_and_float` [INFO] [stdout] --> src/generics.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let integer_and_float = Point { x: 5, y: 4.0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_integer_and_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/traits.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let s = t.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/traits.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let r = u.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panics.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let f = match f{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panics.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let f = File::open("hello.txt").map_err(|error| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panics.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let f = File::open("hello.txt").unwrap(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panics.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let f = File::open("hello.txt").expect("Failed to open hello.txt"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/panics.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let res = match res{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_result` [INFO] [stdout] --> src/panics.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let second_result = match second_result{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `third_result` [INFO] [stdout] --> src/panics.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let third_result = match third_result { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_third_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/panics.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | let f = File::open("hello.txt")?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `email` is never read [INFO] [stdout] --> src/structs.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct User{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 2 | pub name: String, [INFO] [stdout] 3 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `address_num` is never read [INFO] [stdout] --> src/enums.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | struct IPv4{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 30 | address:String, [INFO] [stdout] 31 | address_num:(u8,u8,u8,u8), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IPv4` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel` and `Dime` are never constructed [INFO] [stdout] --> src/matches.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 3 | Penny, [INFO] [stdout] 4 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> src/matches.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 11 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_panic` is never used [INFO] [stdout] --> src/panics.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn make_panic(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `out_of_index_panic` is never used [INFO] [stdout] --> src/panics.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn out_of_index_panic(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_map_error` is never used [INFO] [stdout] --> src/panics.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn make_map_error(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_expect_error` is never used [INFO] [stdout] --> src/panics.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn make_expect_error(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `general_larget` is never used [INFO] [stdout] --> src/generics.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn general_larget(list: &[T])->T{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `summarize` is never used [INFO] [stdout] --> src/traits.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Summary { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 6 | fn summarize(&self) -> String; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/traits.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reply` and `retweet` are never read [INFO] [stdout] --> src/traits.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 26 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/traits.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn notify(item: impl Summary) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_overload` is never used [INFO] [stdout] --> src/traits.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn notify_overload(item1: T, item2: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_adding_traits` is never used [INFO] [stdout] --> src/traits.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn notify_adding_traits(item: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function` is never used [INFO] [stdout] --> src/traits.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn some_function(t: T, u: U) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> src/traits.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/traits.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/traits.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 94 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 95 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/traits.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 103 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 104 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `both_integer` [INFO] [stdout] --> src/generics.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | let both_integer = Point { x: 5, y: 10 }; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_both_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `integer_and_float` [INFO] [stdout] --> src/generics.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let integer_and_float = Point { x: 5, y: 4.0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_integer_and_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/traits.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let s = t.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/traits.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let r = u.clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `email` is never read [INFO] [stdout] --> src/structs.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct User{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 2 | pub name: String, [INFO] [stdout] 3 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `address_num` is never read [INFO] [stdout] --> src/enums.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | struct IPv4{ [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 30 | address:String, [INFO] [stdout] 31 | address_num:(u8,u8,u8,u8), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IPv4` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel` and `Dime` are never constructed [INFO] [stdout] --> src/matches.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 3 | Penny, [INFO] [stdout] 4 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> src/matches.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 11 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_panic` is never used [INFO] [stdout] --> src/panics.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn make_panic(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `out_of_index_panic` is never used [INFO] [stdout] --> src/panics.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn out_of_index_panic(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_map_error` is never used [INFO] [stdout] --> src/panics.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn make_map_error(){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_expect_error` is never used [INFO] [stdout] --> src/panics.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn make_expect_error(){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `general_larget` is never used [INFO] [stdout] --> src/generics.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn general_larget(list: &[T])->T{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `summarize` is never used [INFO] [stdout] --> src/traits.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Summary { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 6 | fn summarize(&self) -> String; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/traits.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct NewsArticle { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reply` and `retweet` are never read [INFO] [stdout] --> src/traits.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 26 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/traits.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn notify(item: impl Summary) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_overload` is never used [INFO] [stdout] --> src/traits.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn notify_overload(item1: T, item2: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_adding_traits` is never used [INFO] [stdout] --> src/traits.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn notify_adding_traits(item: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function` is never used [INFO] [stdout] --> src/traits.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn some_function(t: T, u: U) -> i32 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `returns_summarizable` is never used [INFO] [stdout] --> src/traits.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn returns_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/traits.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/traits.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 94 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 95 | fn new(x: T, y: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/traits.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 103 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 104 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "4ea67fb0df1d6330a88bf3bbbed1ec8c9828d80f838c9915f8bdc1495c8fb09f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ea67fb0df1d6330a88bf3bbbed1ec8c9828d80f838c9915f8bdc1495c8fb09f", kill_on_drop: false }` [INFO] [stdout] 4ea67fb0df1d6330a88bf3bbbed1ec8c9828d80f838c9915f8bdc1495c8fb09f