[INFO] cloning repository https://github.com/makdv/learn_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/makdv/learn_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmakdv%2Flearn_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmakdv%2Flearn_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c9be06ccd90be3ef6dcc28a4c230b5153f20b15a [INFO] checking makdv/learn_rust against master#667247db71ea18c4130dd018d060e7f09d589490 for pr-140824 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmakdv%2Flearn_rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/makdv/learn_rust on toolchain 667247db71ea18c4130dd018d060e7f09d589490 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+667247db71ea18c4130dd018d060e7f09d589490" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/makdv/learn_rust [INFO] finished tweaking git repo https://github.com/makdv/learn_rust [INFO] tweaked toml for git repo https://github.com/makdv/learn_rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/makdv/learn_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" "+667247db71ea18c4130dd018d060e7f09d589490" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+667247db71ea18c4130dd018d060e7f09d589490" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 07caabb5c22b30a7ef6b8752b3cfacb01505d390a9782996cbd6503a06b4d175 [INFO] running `Command { std: "docker" "start" "-a" "07caabb5c22b30a7ef6b8752b3cfacb01505d390a9782996cbd6503a06b4d175", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "07caabb5c22b30a7ef6b8752b3cfacb01505d390a9782996cbd6503a06b4d175", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07caabb5c22b30a7ef6b8752b3cfacb01505d390a9782996cbd6503a06b4d175", kill_on_drop: false }` [INFO] [stdout] 07caabb5c22b30a7ef6b8752b3cfacb01505d390a9782996cbd6503a06b4d175 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+667247db71ea18c4130dd018d060e7f09d589490" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 012b37d660b4b17adbc72ba051d6316cbbaa81738104284fad033aafdb1169ff [INFO] running `Command { std: "docker" "start" "-a" "012b37d660b4b17adbc72ba051d6316cbbaa81738104284fad033aafdb1169ff", kill_on_drop: false }` [INFO] [stderr] Checking test_smth v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `my_bool` [INFO] [stdout] --> src/data_types.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let my_bool = true; // bool, 1 byte [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_bool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_bool` [INFO] [stdout] --> src/data_types.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let my_bool = true; // bool, 1 byte [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_bool` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_int` [INFO] [stdout] --> src/data_types.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let my_int = -1; // i32 - default, i8, i16, i32, i64, i128 [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_int` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_uint` [INFO] [stdout] --> src/data_types.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let my_uint = 1; // u8, u16, u32, u64, u128 [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_uint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_float` [INFO] [stdout] --> src/data_types.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let my_float: f64 = 1.1; // f64 - default, f32, f64; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_int` [INFO] [stdout] --> src/data_types.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let my_int = -1; // i32 - default, i8, i16, i32, i64, i128 [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_int` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_uint` [INFO] [stdout] --> src/data_types.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let my_uint = 1; // u8, u16, u32, u64, u128 [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_uint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_float_ex1` [INFO] [stdout] --> src/data_types.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let my_float_ex1 = 2f64; // типы можно прописывать таким образом [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_float_ex1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_float_ex2` [INFO] [stdout] --> src/data_types.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let my_float_ex2 = 3_f64; // и таким [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_float_ex2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_float` [INFO] [stdout] --> src/data_types.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let my_float: f64 = 1.1; // f64 - default, f32, f64; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_int_ex1` [INFO] [stdout] --> src/data_types.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let my_int_ex1 = 2 as i8; // и таким [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_int_ex1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_float_ex1` [INFO] [stdout] --> src/data_types.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let my_float_ex1 = 2f64; // типы можно прописывать таким образом [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_float_ex1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_usize` [INFO] [stdout] --> src/data_types.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let my_usize: isize = 1; // usize, isize [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_float_ex2` [INFO] [stdout] --> src/data_types.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let my_float_ex2 = 3_f64; // и таким [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_float_ex2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_char` [INFO] [stdout] --> src/data_types.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let my_char = 'C'; // 4 bytes [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_int_ex1` [INFO] [stdout] --> src/data_types.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let my_int_ex1 = 2 as i8; // и таким [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_int_ex1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_tuple` [INFO] [stdout] --> src/data_types.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let my_tuple: (i32, &str, char) = (1, "Hello World", 'S'); // Tuple [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_usize` [INFO] [stdout] --> src/data_types.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let my_usize: isize = 1; // usize, isize [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_char` [INFO] [stdout] --> src/data_types.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let my_char = 'C'; // 4 bytes [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_arr` [INFO] [stdout] --> src/data_types.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let my_arr: [i32; 3] = [1, 2, 3]; // Array; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_arr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_tuple` [INFO] [stdout] --> src/data_types.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let my_tuple: (i32, &str, char) = (1, "Hello World", 'S'); // Tuple [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_tuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_str` [INFO] [stdout] --> src/data_types.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let my_str = my_str_slice.to_string(); // String - stored on a Heap, == String.from("Hello World") [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_arr` [INFO] [stdout] --> src/data_types.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let my_arr: [i32; 3] = [1, 2, 3]; // Array; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_arr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_str` [INFO] [stdout] --> src/data_types.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let my_str = my_str_slice.to_string(); // String - stored on a Heap, == String.from("Hello World") [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/enums.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let msg: Message = Message::Move { x: 1, y: 2 }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/enums.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let msg: Message = Message::Move { x: 1, y: 2 }; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/enums.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let none = option(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/enums.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let none = option(None); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hold_dnagle` [INFO] [stdout] --> src/ownership.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let hold_dnagle = dangle(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hold_dnagle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str3` [INFO] [stdout] --> src/string.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let str3 = &str[0..2]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_letter` [INFO] [stdout] --> src/string.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let first_letter = &str[0..1]; // we need a string slice [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_letter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_letter2` [INFO] [stdout] --> src/string.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let first_letter2 = &str2[0..1]; // we need a string slice [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_letter2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hold_dnagle` [INFO] [stdout] --> src/ownership.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let hold_dnagle = dangle(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hold_dnagle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str3` [INFO] [stdout] --> src/string.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let str3 = &str[0..2]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_str3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_letter` [INFO] [stdout] --> src/string.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let first_letter = &str[0..1]; // we need a string slice [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_letter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_letter2` [INFO] [stdout] --> src/string.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let first_letter2 = &str2[0..1]; // we need a string slice [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_letter2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tuple_struct` [INFO] [stdout] --> src/structs.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let tuple_struct = Color(1, 2, 3); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut user = User { [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: `tuple_struct` [INFO] [stdout] --> src/structs.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let tuple_struct = Color(1, 2, 3); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tuple_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structs.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut user = User { [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: `a` [INFO] [stdout] --> src/variables.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | let (a, ..) = (4, 5); // destructuring [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/variables.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let x = 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/variables.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | let (a, ..) = (4, 5); // destructuring [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/variables.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let x = 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `One` and `Tow` are never constructed [INFO] [stdout] --> src/enums.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum SimpleEnum { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 2 | Zero, [INFO] [stdout] 3 | One, [INFO] [stdout] | ^^^ [INFO] [stdout] 4 | Tow, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/enums.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | Move { x: i32, y: i32 }, [INFO] [stdout] | ---- ^ ^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Write`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/enums.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 8 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Move { x: i32, y: i32 }, [INFO] [stdout] 10 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `One` and `Tow` are never constructed [INFO] [stdout] --> src/enums.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum SimpleEnum { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 2 | Zero, [INFO] [stdout] 3 | One, [INFO] [stdout] | ^^^ [INFO] [stdout] 4 | Tow, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel`, `Dime`, and `Quarter` are never constructed [INFO] [stdout] --> src/operators.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 2 | Penny, [INFO] [stdout] 3 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Quarter, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `borrowing` is never used [INFO] [stdout] --> src/ownership.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn borrowing() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/ownership.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/enums.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | Move { x: i32, y: i32 }, [INFO] [stdout] | ---- ^ ^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dangle_use` is never used [INFO] [stdout] --> src/ownership.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn dangle_use() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dangle` is never used [INFO] [stdout] --> src/ownership.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn dangle() -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Write`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/enums.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 8 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Move { x: i32, y: i32 }, [INFO] [stdout] 10 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active` and `email` are never read [INFO] [stdout] --> src/structs.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 2 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | username: String, [INFO] [stdout] 4 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Nickel`, `Dime`, and `Quarter` are never constructed [INFO] [stdout] --> src/operators.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 2 | Penny, [INFO] [stdout] 3 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | Quarter, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `borrowing` is never used [INFO] [stdout] --> src/ownership.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn borrowing() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/ownership.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/structs.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dangle_use` is never used [INFO] [stdout] --> src/ownership.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn dangle_use() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dangle` is never used [INFO] [stdout] --> src/ownership.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn dangle() -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `active` and `email` are never read [INFO] [stdout] --> src/structs.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 2 | active: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 3 | username: String, [INFO] [stdout] 4 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/structs.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | struct Color(i32, i32, i32); [INFO] [stdout] | ----- ^^^ ^^^ ^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `str::::replace` that must be used [INFO] [stdout] --> src/string.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | s.replace("o_O", ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this returns the replaced string as a new allocation, without modifying the original [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 10 | let _ = s.replace("o_O", ""); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `str::::replace` that must be used [INFO] [stdout] --> src/string.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | s.replace("o_O", ""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this returns the replaced string as a new allocation, without modifying the original [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 10 | let _ = s.replace("o_O", ""); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] running `Command { std: "docker" "inspect" "012b37d660b4b17adbc72ba051d6316cbbaa81738104284fad033aafdb1169ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "012b37d660b4b17adbc72ba051d6316cbbaa81738104284fad033aafdb1169ff", kill_on_drop: false }` [INFO] [stdout] 012b37d660b4b17adbc72ba051d6316cbbaa81738104284fad033aafdb1169ff