[INFO] cloning repository https://github.com/sethu1012/rust-basics [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sethu1012/rust-basics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsethu1012%2Frust-basics", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsethu1012%2Frust-basics'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0d2d86f76e298589f7ddd7a577fab753179f17c5 [INFO] building sethu1012/rust-basics against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsethu1012%2Frust-basics" "/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/sethu1012/rust-basics 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 git repo https://github.com/sethu1012/rust-basics [INFO] finished tweaking git repo https://github.com/sethu1012/rust-basics [INFO] tweaked toml for git repo https://github.com/sethu1012/rust-basics written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sethu1012/rust-basics 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] 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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2a81a6b6d5c48e720cec5260dde96220884735e11bc88a337510cfdc4060aec7 [INFO] running `Command { std: "docker" "start" "-a" "2a81a6b6d5c48e720cec5260dde96220884735e11bc88a337510cfdc4060aec7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a81a6b6d5c48e720cec5260dde96220884735e11bc88a337510cfdc4060aec7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a81a6b6d5c48e720cec5260dde96220884735e11bc88a337510cfdc4060aec7", kill_on_drop: false }` [INFO] [stdout] 2a81a6b6d5c48e720cec5260dde96220884735e11bc88a337510cfdc4060aec7 [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 -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] 3d62914a9a860f1d8ba07f7091af0f123e44211dba91d5266ac2a857853e9ecd [INFO] running `Command { std: "docker" "start" "-a" "3d62914a9a860f1d8ba07f7091af0f123e44211dba91d5266ac2a857853e9ecd", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.106 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling HelloRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:211:14 [INFO] [stdout] | [INFO] [stdout] 211 | 9...11 => println!("I have lots of oranges"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:728:25 [INFO] [stdout] | [INFO] [stdout] 728 | fn print_it_dynamic(z: &Printable) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 728 | fn print_it_dynamic(z: &dyn Printable) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Sum` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::iter::Sum; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | let mut data = &mut a; // slices [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | let mut vec2 = vec![4, 5, 6]; [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/main.rs:403:9 [INFO] [stdout] | [INFO] [stdout] 403 | let mut abc = "Hello World".to_string(); // both works [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/main.rs:445:9 [INFO] [stdout] | [INFO] [stdout] 445 | let mut z: i32 = 6; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `company` [INFO] [stdout] --> src/main.rs:551:9 [INFO] [stdout] | [INFO] [stdout] 551 | let company = Company { name: String::from("Tesla"), ceo: &boss }; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_company` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `john` [INFO] [stdout] --> src/main.rs:598:9 [INFO] [stdout] | [INFO] [stdout] 598 | let john = Person::new("John Doe"); // John Doe is &'static str [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_john` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `jane` [INFO] [stdout] --> src/main.rs:601:9 [INFO] [stdout] | [INFO] [stdout] 601 | let jane = Person::new(name/*.as_ref()*/); // this is tedious [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_jane` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ra1` [INFO] [stdout] --> src/main.rs:607:9 [INFO] [stdout] | [INFO] [stdout] 607 | let ra1 = Creature::new("RA1"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ra1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:693:9 [INFO] [stdout] | [INFO] [stdout] 693 | let mut b = Complex::new(1, 2); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u2` [INFO] [stdout] --> src/main.rs:804:9 [INFO] [stdout] | [INFO] [stdout] 804 | let u2 = u; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_u2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PointWithGenerics` is never constructed [INFO] [stdout] --> src/main.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct PointWithGenerics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Red`, `Green`, `RGBColor`, and `CMYK` are never constructed [INFO] [stdout] --> src/main.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | enum Color { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 55 | Red, [INFO] [stdout] | ^^^ [INFO] [stdout] 56 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | Blue, [INFO] [stdout] 58 | RGBColor(u8, u8, u8), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | CMYK { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_info3` is never used [INFO] [stdout] --> src/main.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn print_info3(point: T) where T: Debug { // use '+' to have multiple traits [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_guessing` is never used [INFO] [stdout] --> src/main.rs:411:4 [INFO] [stdout] | [INFO] [stdout] 411 | fn number_guessing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/main.rs:526:5 [INFO] [stdout] | [INFO] [stdout] 525 | struct Person { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 526 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Company` is never constructed [INFO] [stdout] --> src/main.rs:544:8 [INFO] [stdout] | [INFO] [stdout] 544 | struct Company<'z> { // ' followed by any name [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lifetime` is never used [INFO] [stdout] --> src/main.rs:549:4 [INFO] [stdout] | [INFO] [stdout] 549 | fn lifetime() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_it` is never used [INFO] [stdout] --> src/main.rs:723:4 [INFO] [stdout] | [INFO] [stdout] 723 | fn print_it(z: T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/main.rs:868:5 [INFO] [stdout] | [INFO] [stdout] 867 | struct Student { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 868 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/main.rs:882:5 [INFO] [stdout] | [INFO] [stdout] 881 | struct Course { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 882 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:951:39 [INFO] [stdout] | [INFO] [stdout] 951 | println!("static mut Z = {}", ZM); [INFO] [stdout] | ^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.75s [INFO] running `Command { std: "docker" "inspect" "3d62914a9a860f1d8ba07f7091af0f123e44211dba91d5266ac2a857853e9ecd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d62914a9a860f1d8ba07f7091af0f123e44211dba91d5266ac2a857853e9ecd", kill_on_drop: false }` [INFO] [stdout] 3d62914a9a860f1d8ba07f7091af0f123e44211dba91d5266ac2a857853e9ecd [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 -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] 6d8045d823404df1460dc15f414d0adb9309f1316209a6befede0eacbb6eba11 [INFO] running `Command { std: "docker" "start" "-a" "6d8045d823404df1460dc15f414d0adb9309f1316209a6befede0eacbb6eba11", kill_on_drop: false }` [INFO] [stderr] Compiling HelloRust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:211:14 [INFO] [stdout] | [INFO] [stdout] 211 | 9...11 => println!("I have lots of oranges"), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:728:25 [INFO] [stdout] | [INFO] [stdout] 728 | fn print_it_dynamic(z: &Printable) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 728 | fn print_it_dynamic(z: &dyn Printable) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Sum` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::iter::Sum; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | let mut data = &mut a; // slices [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | let mut vec2 = vec![4, 5, 6]; [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/main.rs:403:9 [INFO] [stdout] | [INFO] [stdout] 403 | let mut abc = "Hello World".to_string(); // both works [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/main.rs:445:9 [INFO] [stdout] | [INFO] [stdout] 445 | let mut z: i32 = 6; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `company` [INFO] [stdout] --> src/main.rs:551:9 [INFO] [stdout] | [INFO] [stdout] 551 | let company = Company { name: String::from("Tesla"), ceo: &boss }; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_company` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `john` [INFO] [stdout] --> src/main.rs:598:9 [INFO] [stdout] | [INFO] [stdout] 598 | let john = Person::new("John Doe"); // John Doe is &'static str [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_john` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `jane` [INFO] [stdout] --> src/main.rs:601:9 [INFO] [stdout] | [INFO] [stdout] 601 | let jane = Person::new(name/*.as_ref()*/); // this is tedious [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_jane` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ra1` [INFO] [stdout] --> src/main.rs:607:9 [INFO] [stdout] | [INFO] [stdout] 607 | let ra1 = Creature::new("RA1"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ra1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:693:9 [INFO] [stdout] | [INFO] [stdout] 693 | let mut b = Complex::new(1, 2); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u2` [INFO] [stdout] --> src/main.rs:804:9 [INFO] [stdout] | [INFO] [stdout] 804 | let u2 = u; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_u2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PointWithGenerics` is never constructed [INFO] [stdout] --> src/main.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct PointWithGenerics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Red`, `Green`, `RGBColor`, and `CMYK` are never constructed [INFO] [stdout] --> src/main.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | enum Color { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 55 | Red, [INFO] [stdout] | ^^^ [INFO] [stdout] 56 | Green, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 57 | Blue, [INFO] [stdout] 58 | RGBColor(u8, u8, u8), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | CMYK { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_info3` is never used [INFO] [stdout] --> src/main.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn print_info3(point: T) where T: Debug { // use '+' to have multiple traits [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_guessing` is never used [INFO] [stdout] --> src/main.rs:411:4 [INFO] [stdout] | [INFO] [stdout] 411 | fn number_guessing() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/main.rs:526:5 [INFO] [stdout] | [INFO] [stdout] 525 | struct Person { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 526 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Company` is never constructed [INFO] [stdout] --> src/main.rs:544:8 [INFO] [stdout] | [INFO] [stdout] 544 | struct Company<'z> { // ' followed by any name [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lifetime` is never used [INFO] [stdout] --> src/main.rs:549:4 [INFO] [stdout] | [INFO] [stdout] 549 | fn lifetime() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_it` is never used [INFO] [stdout] --> src/main.rs:723:4 [INFO] [stdout] | [INFO] [stdout] 723 | fn print_it(z: T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/main.rs:868:5 [INFO] [stdout] | [INFO] [stdout] 867 | struct Student { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 868 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/main.rs:882:5 [INFO] [stdout] | [INFO] [stdout] 881 | struct Course { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 882 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/main.rs:951:39 [INFO] [stdout] | [INFO] [stdout] 951 | println!("static mut Z = {}", ZM); [INFO] [stdout] | ^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] running `Command { std: "docker" "inspect" "6d8045d823404df1460dc15f414d0adb9309f1316209a6befede0eacbb6eba11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d8045d823404df1460dc15f414d0adb9309f1316209a6befede0eacbb6eba11", kill_on_drop: false }` [INFO] [stdout] 6d8045d823404df1460dc15f414d0adb9309f1316209a6befede0eacbb6eba11