[INFO] fetching crate rust_project_demo 0.1.0... [INFO] building rust_project_demo-0.1.0 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate rust_project_demo 0.1.0 into /workspace/builds/worker-2-tc1/source [INFO] validating manifest of crates.io crate rust_project_demo 0.1.0 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rust_project_demo 0.1.0 [INFO] finished tweaking crates.io crate rust_project_demo 0.1.0 [INFO] tweaked toml for crates.io crate rust_project_demo 0.1.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate crates.io crate rust_project_demo 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rust_tutorials v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fb6eae92df355cc016f1b9f2db5ac92639ee069e5842cf59f0055da110a941d8 [INFO] running `Command { std: "docker" "start" "-a" "fb6eae92df355cc016f1b9f2db5ac92639ee069e5842cf59f0055da110a941d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb6eae92df355cc016f1b9f2db5ac92639ee069e5842cf59f0055da110a941d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb6eae92df355cc016f1b9f2db5ac92639ee069e5842cf59f0055da110a941d8", kill_on_drop: false }` [INFO] [stdout] fb6eae92df355cc016f1b9f2db5ac92639ee069e5842cf59f0055da110a941d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b07868f824b21ed080a826424d5db3269e6d90965683a7aac9e8387202744b3d [INFO] running `Command { std: "docker" "start" "-a" "b07868f824b21ed080a826424d5db3269e6d90965683a7aac9e8387202744b3d", kill_on_drop: false }` [INFO] [stderr] warning: rust_project_demo v0.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `rust_tutorials` which is missing a lib target [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rust_project_demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/lib.rs:53:32 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn notify3(item1: T, item2: U) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/string.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/result_enum.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_project_demo::Summary` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rust_project_demo::Summary; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/array_type.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let array: [i32; 5] = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var` [INFO] [stdout] --> src/stack_heap.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let var = 5; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/stack_heap.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let y = x; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reference_borrowing.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut s = String::from("hello"); [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: unused variable: `res` [INFO] [stdout] --> src/struct.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let res=Rectangle::square(20); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/struct.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn greeting(name: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> src/enum.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let four = Ipaddrtype::V4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/enum.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let six = Ipaddrtype::V6; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Ipaddr6` [INFO] [stdout] --> src/enum.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let Ipaddr6 = Ipaddr { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Ipaddr6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `call` [INFO] [stdout] --> src/enum.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let call = Ipaddr4.iptype.call(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_call` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Ipaddri` [INFO] [stdout] --> src/enum.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | Some(Ipaddri) => Some(a.unwrap() + 1), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Ipaddri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/vector.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let row=vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hashmap` [INFO] [stdout] --> src/hashmap.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let hashmap: HashMap<_, _> = teams.iter().zip(scores.iter()).collect(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hashmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/result_enum.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut array = vec![1, 20, 3, 4, 0]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/result_enum.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut array = vec![10, 20, 30, 4, 100]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/result_enum.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut array = vec![String::from("hello"),String::from("world")]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/result_enum.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let f = File::open("hello.txt").unwrap_or_else(|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/result_enum.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | 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: `importantExcerpt` [INFO] [stdout] --> src/life_time.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let importantExcerpt = ImportantExcerpt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_importantExcerpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/function_closures.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let s = example_closure(String::from("hello")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two` is never used [INFO] [stdout] --> src/struct.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn add_two(a: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `greeting` is never used [INFO] [stdout] --> src/struct.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn greeting(name: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/enum.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | V4(i8, i8, i8, i8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ipaddrtype` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 4 | V4((), (), (), ()), [INFO] [stdout] | ~~ ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enum.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ipaddrtype` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `address` is never read [INFO] [stdout] --> src/enum.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Ipaddr { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 14 | iptype: Ipaddrtype, [INFO] [stdout] 15 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ipaddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SpreadsheetCell` is never used [INFO] [stdout] --> src/vector.rs:37:6 [INFO] [stdout] | [INFO] [stdout] 37 | enum SpreadsheetCell{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vector_enum` is never used [INFO] [stdout] --> src/vector.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn vector_enum() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mix` is never used [INFO] [stdout] --> src/generic.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Point { [INFO] [stdout] | -------------------------------------- method in this implementation [INFO] [stdout] 19 | fn mix(self, other: Point) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> src/life_time.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 40 | part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `level` and `announce_and_return_part` are never used [INFO] [stdout] --> src/life_time.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] 45 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn announce_and_return_part(&self, announcement: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/life_time.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn longest_with_an_announcement<'a, T>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/accepting_command_line_arguments.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/accepting_command_line_arguments.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn run(config: Config) -> Result<(), Box> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/accepting_command_line_arguments.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/accepting_command_line_arguments.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 47 | impl Config { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 48 | // fn new(args: &[String]) -> Result { [INFO] [stdout] 49 | fn new(mut args: std::env::Args) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search` is never used [INFO] [stdout] --> src/accepting_command_line_arguments.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_case_insensitive` is never used [INFO] [stdout] --> src/accepting_command_line_arguments.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn search_case_insensitive<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/function_closures.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_by_key` is never used [INFO] [stdout] --> src/function_closures.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | pub fn sort_by_key() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `produce_new_iterators` is never used [INFO] [stdout] --> src/function_closures.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | pub fn produce_new_iterators() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/function_closures.rs:282:8 [INFO] [stdout] | [INFO] [stdout] 282 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/function_closures.rs:287:8 [INFO] [stdout] | [INFO] [stdout] 286 | impl Counter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 287 | fn new() -> Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ipaddr4` should have a snake case name [INFO] [stdout] --> src/enum.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let Ipaddr4 = Ipaddr { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `ipaddr4` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ipaddr6` should have a snake case name [INFO] [stdout] --> src/enum.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let Ipaddr6 = Ipaddr { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `ipaddr6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ipaddri` should have a snake case name [INFO] [stdout] --> src/enum.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | Some(Ipaddri) => Some(a.unwrap() + 1), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `ipaddri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/result_enum.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | read_username_from_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 16 | let _ = read_username_from_file(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `importantExcerpt` should have a snake case name [INFO] [stdout] --> src/life_time.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let importantExcerpt = ImportantExcerpt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `important_excerpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [optimized + debuginfo] target(s) in 3.79s [INFO] running `Command { std: "docker" "inspect" "b07868f824b21ed080a826424d5db3269e6d90965683a7aac9e8387202744b3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b07868f824b21ed080a826424d5db3269e6d90965683a7aac9e8387202744b3d", kill_on_drop: false }` [INFO] [stdout] b07868f824b21ed080a826424d5db3269e6d90965683a7aac9e8387202744b3d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0be76eab63d11e5eada15e22c1ebebcb53edd68d4f85ce1ae6a37baa98e111bc [INFO] running `Command { std: "docker" "start" "-a" "0be76eab63d11e5eada15e22c1ebebcb53edd68d4f85ce1ae6a37baa98e111bc", kill_on_drop: false }` [INFO] [stderr] warning: rust_project_demo v0.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `rust_tutorials` which is missing a lib target [INFO] [stderr] Compiling rust_project_demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/lib.rs:53:32 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn notify3(item1: T, item2: U) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/string.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/result_enum.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_project_demo::Summary` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rust_project_demo::Summary; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/array_type.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let array: [i32; 5] = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var` [INFO] [stdout] --> src/stack_heap.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let var = 5; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/stack_heap.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let y = x; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reference_borrowing.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut s = String::from("hello"); [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: unused variable: `res` [INFO] [stdout] --> src/struct.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let res=Rectangle::square(20); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/struct.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn greeting(name: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> src/enum.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let four = Ipaddrtype::V4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/enum.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let six = Ipaddrtype::V6; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Ipaddr6` [INFO] [stdout] --> src/enum.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let Ipaddr6 = Ipaddr { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Ipaddr6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `call` [INFO] [stdout] --> src/enum.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let call = Ipaddr4.iptype.call(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_call` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Ipaddri` [INFO] [stdout] --> src/enum.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | Some(Ipaddri) => Some(a.unwrap() + 1), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Ipaddri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/vector.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let row=vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hashmap` [INFO] [stdout] --> src/hashmap.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let hashmap: HashMap<_, _> = teams.iter().zip(scores.iter()).collect(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hashmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/result_enum.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut array = vec![1, 20, 3, 4, 0]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/result_enum.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut array = vec![10, 20, 30, 4, 100]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/result_enum.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut array = vec![String::from("hello"),String::from("world")]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/result_enum.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let f = File::open("hello.txt").unwrap_or_else(|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/result_enum.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | 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: `importantExcerpt` [INFO] [stdout] --> src/life_time.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let importantExcerpt = ImportantExcerpt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_importantExcerpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/function_closures.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let s = example_closure(String::from("hello")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_two` is never used [INFO] [stdout] --> src/struct.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | pub fn add_two(a: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `greeting` is never used [INFO] [stdout] --> src/struct.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn greeting(name: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/enum.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | V4(i8, i8, i8, i8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ipaddrtype` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 4 | V4((), (), (), ()), [INFO] [stdout] | ~~ ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enum.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ipaddrtype` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `address` is never read [INFO] [stdout] --> src/enum.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Ipaddr { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 14 | iptype: Ipaddrtype, [INFO] [stdout] 15 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ipaddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SpreadsheetCell` is never used [INFO] [stdout] --> src/vector.rs:37:6 [INFO] [stdout] | [INFO] [stdout] 37 | enum SpreadsheetCell{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vector_enum` is never used [INFO] [stdout] --> src/vector.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn vector_enum() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mix` is never used [INFO] [stdout] --> src/generic.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Point { [INFO] [stdout] | -------------------------------------- method in this implementation [INFO] [stdout] 19 | fn mix(self, other: Point) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> src/life_time.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 40 | part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `level` and `announce_and_return_part` are never used [INFO] [stdout] --> src/life_time.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] 45 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn announce_and_return_part(&self, announcement: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/life_time.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn longest_with_an_announcement<'a, T>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/accepting_command_line_arguments.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/accepting_command_line_arguments.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn run(config: Config) -> Result<(), Box> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/accepting_command_line_arguments.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/accepting_command_line_arguments.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 47 | impl Config { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 48 | // fn new(args: &[String]) -> Result { [INFO] [stdout] 49 | fn new(mut args: std::env::Args) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search` is never used [INFO] [stdout] --> src/accepting_command_line_arguments.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_case_insensitive` is never used [INFO] [stdout] --> src/accepting_command_line_arguments.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn search_case_insensitive<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/function_closures.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_by_key` is never used [INFO] [stdout] --> src/function_closures.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | pub fn sort_by_key() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `produce_new_iterators` is never used [INFO] [stdout] --> src/function_closures.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | pub fn produce_new_iterators() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/function_closures.rs:282:8 [INFO] [stdout] | [INFO] [stdout] 282 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/function_closures.rs:287:8 [INFO] [stdout] | [INFO] [stdout] 286 | impl Counter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 287 | fn new() -> Counter { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ipaddr4` should have a snake case name [INFO] [stdout] --> src/enum.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let Ipaddr4 = Ipaddr { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `ipaddr4` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ipaddr6` should have a snake case name [INFO] [stdout] --> src/enum.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let Ipaddr6 = Ipaddr { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `ipaddr6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ipaddri` should have a snake case name [INFO] [stdout] --> src/enum.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | Some(Ipaddri) => Some(a.unwrap() + 1), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `ipaddri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/result_enum.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | read_username_from_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 16 | let _ = read_username_from_file(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `importantExcerpt` should have a snake case name [INFO] [stdout] --> src/life_time.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let importantExcerpt = ImportantExcerpt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `important_excerpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_project_demo` [INFO] [stdout] --> tests/another_integration_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_project_demo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/string.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/result_enum.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_project_demo::Summary` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rust_project_demo::Summary; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> tests/result_test.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Guess { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 27 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/lib.rs:53:32 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn notify3(item1: T, item2: U) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_project_demo` [INFO] [stdout] --> tests/integration_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_project_demo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array` [INFO] [stdout] --> src/array_type.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let array: [i32; 5] = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_array` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `var` [INFO] [stdout] --> src/stack_heap.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let var = 5; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/stack_heap.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let y = x; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reference_borrowing.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut s = String::from("hello"); [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: unused variable: `res` [INFO] [stdout] --> src/struct.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let res=Rectangle::square(20); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/struct.rs:112:17 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn greeting(name: &str) -> String { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> src/enum.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let four = Ipaddrtype::V4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/enum.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let six = Ipaddrtype::V6; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Ipaddr6` [INFO] [stdout] --> src/enum.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let Ipaddr6 = Ipaddr { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Ipaddr6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `call` [INFO] [stdout] --> src/enum.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let call = Ipaddr4.iptype.call(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_call` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Ipaddri` [INFO] [stdout] --> src/enum.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | Some(Ipaddri) => Some(a.unwrap() + 1), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Ipaddri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/vector.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let row=vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hashmap` [INFO] [stdout] --> src/hashmap.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let hashmap: HashMap<_, _> = teams.iter().zip(scores.iter()).collect(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hashmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/result_enum.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut array = vec![1, 20, 3, 4, 0]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/result_enum.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut array = vec![10, 20, 30, 4, 100]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/result_enum.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut array = vec![String::from("hello"),String::from("world")]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/result_enum.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let f = File::open("hello.txt").unwrap_or_else(|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/result_enum.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | 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: `importantExcerpt` [INFO] [stdout] --> src/life_time.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let importantExcerpt = ImportantExcerpt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_importantExcerpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/function_closures.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let s = example_closure(String::from("hello")); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read [INFO] [stdout] --> src/enum.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | V4(i8, i8, i8, i8), [INFO] [stdout] | -- ^^ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ipaddrtype` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 4 | V4((), (), (), ()), [INFO] [stdout] | ~~ ~~ ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enum.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Ipaddrtype` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | V6(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `address` is never read [INFO] [stdout] --> src/enum.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | struct Ipaddr { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 14 | iptype: Ipaddrtype, [INFO] [stdout] 15 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ipaddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SpreadsheetCell` is never used [INFO] [stdout] --> src/vector.rs:37:6 [INFO] [stdout] | [INFO] [stdout] 37 | enum SpreadsheetCell{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vector_enum` is never used [INFO] [stdout] --> src/vector.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn vector_enum() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mix` is never used [INFO] [stdout] --> src/generic.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Point { [INFO] [stdout] | -------------------------------------- method in this implementation [INFO] [stdout] 19 | fn mix(self, other: Point) -> Point { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> src/life_time.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 40 | part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `level` and `announce_and_return_part` are never used [INFO] [stdout] --> src/life_time.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] 45 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn announce_and_return_part(&self, announcement: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/life_time.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn longest_with_an_announcement<'a, T>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/accepting_command_line_arguments.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/accepting_command_line_arguments.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn run(config: Config) -> Result<(), Box> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Config` is never constructed [INFO] [stdout] --> src/accepting_command_line_arguments.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | struct Config { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/accepting_command_line_arguments.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 47 | impl Config { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 48 | // fn new(args: &[String]) -> Result { [INFO] [stdout] 49 | fn new(mut args: std::env::Args) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_case_insensitive` is never used [INFO] [stdout] --> src/accepting_command_line_arguments.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn search_case_insensitive<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/function_closures.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_by_key` is never used [INFO] [stdout] --> src/function_closures.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | pub fn sort_by_key() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `produce_new_iterators` is never used [INFO] [stdout] --> src/function_closures.rs:272:8 [INFO] [stdout] | [INFO] [stdout] 272 | pub fn produce_new_iterators() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `use_iterators` is never used [INFO] [stdout] --> src/function_closures.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn use_iterators() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ipaddr4` should have a snake case name [INFO] [stdout] --> src/enum.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let Ipaddr4 = Ipaddr { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `ipaddr4` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ipaddr6` should have a snake case name [INFO] [stdout] --> src/enum.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let Ipaddr6 = Ipaddr { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `ipaddr6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Ipaddri` should have a snake case name [INFO] [stdout] --> src/enum.rs:59:14 [INFO] [stdout] | [INFO] [stdout] 59 | Some(Ipaddri) => Some(a.unwrap() + 1), [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `ipaddri` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/result_enum.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | read_username_from_file(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 16 | let _ = read_username_from_file(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `importantExcerpt` should have a snake case name [INFO] [stdout] --> src/life_time.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let importantExcerpt = ImportantExcerpt { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `important_excerpt` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [optimized + debuginfo] target(s) in 0.58s [INFO] running `Command { std: "docker" "inspect" "0be76eab63d11e5eada15e22c1ebebcb53edd68d4f85ce1ae6a37baa98e111bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0be76eab63d11e5eada15e22c1ebebcb53edd68d4f85ce1ae6a37baa98e111bc", kill_on_drop: false }` [INFO] [stdout] 0be76eab63d11e5eada15e22c1ebebcb53edd68d4f85ce1ae6a37baa98e111bc