[INFO] cloning repository https://github.com/jssandh2/rust-systems [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jssandh2/rust-systems" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjssandh2%2Frust-systems", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjssandh2%2Frust-systems'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8aa595ec1d2e3e73ce837435c99a87ad84324bbb [INFO] checking jssandh2/rust-systems against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjssandh2%2Frust-systems" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jssandh2/rust-systems on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jssandh2/rust-systems [INFO] finished tweaking git repo https://github.com/jssandh2/rust-systems [INFO] tweaked toml for git repo https://github.com/jssandh2/rust-systems written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/jssandh2/rust-systems already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 81f12328f44696bb9b6b746455101b63ce3c5dc3b461771b0211bb9609cd6ad3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "81f12328f44696bb9b6b746455101b63ce3c5dc3b461771b0211bb9609cd6ad3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "81f12328f44696bb9b6b746455101b63ce3c5dc3b461771b0211bb9609cd6ad3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81f12328f44696bb9b6b746455101b63ce3c5dc3b461771b0211bb9609cd6ad3", kill_on_drop: false }` [INFO] [stdout] 81f12328f44696bb9b6b746455101b63ce3c5dc3b461771b0211bb9609cd6ad3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9d8d9323f11f7d7dac7863a2311c9d6dfa4d12692ae1b689b4cc992f37918b9d [INFO] running `Command { std: "docker" "start" "-a" "9d8d9323f11f7d7dac7863a2311c9d6dfa4d12692ae1b689b4cc992f37918b9d", kill_on_drop: false }` [INFO] [stderr] Checking rust-systems v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/test/functions.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let x = (y = 6); // `x` has the value `()`, _NOT_ 6 [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/test/functions.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | let x: i32 = diverges(); [INFO] [stdout] | ---------- any code following this expression is unreachable [INFO] [stdout] 23 | let x: String = diverges(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `y` is assigned to, but never used [INFO] [stdout] --> src/test/functions.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut y = 5; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_y` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/functions.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let x = (y = 6); // `x` has the value `()`, _NOT_ 6 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/test/functions.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | let x = (y = 6); // `x` has the value `()`, _NOT_ 6 [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/functions.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let x: i32 = diverges(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/functions.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let x: String = diverges(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/test/functions.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let f: fn(i32) -> i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/test/functions.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let y = f(5, 6); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/test/functions.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let z = sum_number(5, 6); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum_number_three` [INFO] [stdout] --> src/test/functions.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn sum_number_three(x: i32, y: i32, z:i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/test/conditionals_and_loops.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let y = if x == 5 { 10 } else { 15 }; // y : i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/test/data_types.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let (y, z) = (1, 2); // Binding that uses _patterns_ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/test/data_types.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | let (y, z) = (1, 2); // Binding that uses _patterns_ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/test/data_types.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | let k: i32 = 5; // Binding to _bind_ k to 5, with a static "int 32" type [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `xp` is never read [INFO] [stdout] --> src/test/data_types.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | let mut xp = 5; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `a` is never read [INFO] [stdout] --> src/test/data_types.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | let mut a: i32 = 8; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/test/data_types.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | let a = a; // a is now _immutable_ and *locked* to 10 (util shadowed). [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/test/data_types.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | let e = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/test/data_types.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | let e = "I am now a string!"; // e has changed types from i32 --> string [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/test/data_types.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let (y, z) = (1, 2); // Binding that uses _patterns_ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/test/data_types.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | let (y, z) = (1, 2); // Binding that uses _patterns_ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/test/data_types.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | let k: i32 = 5; // Binding to _bind_ k to 5, with a static "int 32" type [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `xp` is never read [INFO] [stdout] --> src/test/data_types.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | let mut xp = 5; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `a` is never read [INFO] [stdout] --> src/test/data_types.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | let mut a: i32 = 8; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/test/data_types.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | let a = a; // a is now _immutable_ and *locked* to 10 (util shadowed). [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/test/data_types.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | let e = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/test/data_types.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | let e = "I am now a string!"; // e has changed types from i32 --> string [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/vectors.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let x = Box::new(5); // This is closer to the Type-Theoretic defn of `List` := Nil | Cons(T, Box(List)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/test/primitive_types.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let b = (0); // Normal zero [INFO] [stdout] | ^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/primitive_types.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/test/primitive_types.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let y: bool = false; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/test/functions.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let x = (y = 6); // `x` has the value `()`, _NOT_ 6 [INFO] [stdout] | ^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/test/primitive_types.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let b = (0); // Normal zero [INFO] [stdout] | ^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/primitive_types.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let x = 'x'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/primitive_types.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let x = 42; // `x` has type `i32` [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/test/primitive_types.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let y = 1.0; // `y` has type `f64` [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/test/primitive_types.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let a = [1, 2, 3]; // a : [i32; 3] [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/test/primitive_types.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut m = [1, 2, 3]; // m : [i32; 3] [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `names` [INFO] [stdout] --> src/test/primitive_types.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let names = ["Juspreet", "Cook", "Levin"]; // names : [&str; 3] [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_duplicate` [INFO] [stdout] --> src/test/primitive_types.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let b_duplicate = &b[..]; // A slice containing everything in `a` [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_b_duplicate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `middle` [INFO] [stdout] --> src/test/primitive_types.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let middle = &b[1..4]; // A slice of `a` : [1, 2, 3] [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_middle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/primitive_types.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let x = (1, "hello"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/test/primitive_types.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let y: (i32, &str) = (1, "hello"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `x` is assigned to, but never used [INFO] [stdout] --> src/test/primitive_types.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut x = (1, 2); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_x` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/test/primitive_types.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | x = y; // A tuple is assigned to another (mutable) tuple, and type-check => The same Product-Type [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/test/primitive_types.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let a = (0,); // Tuple of arity 1 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/test/primitive_types.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let b = (0); // Normal zero [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/primitive_types.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let x = tuple.0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/test/primitive_types.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let y = tuple.1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/test/primitive_types.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let z = tuple.2; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/test/functions.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 22 | let x: i32 = diverges(); [INFO] [stdout] | ---------- any code following this expression is unreachable [INFO] [stdout] 23 | let x: String = diverges(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `y` is assigned to, but never used [INFO] [stdout] --> src/test/functions.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut y = 5; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_y` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/functions.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let x = (y = 6); // `x` has the value `()`, _NOT_ 6 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/test/functions.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | let x = (y = 6); // `x` has the value `()`, _NOT_ 6 [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/functions.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let x: i32 = diverges(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/functions.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let x: String = diverges(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/test/functions.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let f: fn(i32) -> i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/test/functions.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let y = f(5, 6); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/test/functions.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let z = sum_number(5, 6); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum_number_three` [INFO] [stdout] --> src/test/functions.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn sum_number_three(x: i32, y: i32, z:i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/test/primitive_types.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut m = [1, 2, 3]; // m : [i32; 3] [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: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/primitive_types.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/test/primitive_types.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let y: bool = false; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/primitive_types.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let x = 'x'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/primitive_types.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let x = 42; // `x` has type `i32` [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/test/primitive_types.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let y = 1.0; // `y` has type `f64` [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/test/primitive_types.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let a = [1, 2, 3]; // a : [i32; 3] [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/test/primitive_types.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut m = [1, 2, 3]; // m : [i32; 3] [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `names` [INFO] [stdout] --> src/test/primitive_types.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let names = ["Juspreet", "Cook", "Levin"]; // names : [&str; 3] [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_names` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b_duplicate` [INFO] [stdout] --> src/test/primitive_types.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let b_duplicate = &b[..]; // A slice containing everything in `a` [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_b_duplicate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `middle` [INFO] [stdout] --> src/test/primitive_types.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let middle = &b[1..4]; // A slice of `a` : [1, 2, 3] [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_middle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/primitive_types.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let x = (1, "hello"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/test/primitive_types.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let y: (i32, &str) = (1, "hello"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `x` is assigned to, but never used [INFO] [stdout] --> src/test/primitive_types.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut x = (1, 2); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_x` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/test/primitive_types.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | x = y; // A tuple is assigned to another (mutable) tuple, and type-check => The same Product-Type [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/test/primitive_types.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let a = (0,); // Tuple of arity 1 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/test/primitive_types.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let b = (0); // Normal zero [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/primitive_types.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let x = tuple.0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/test/primitive_types.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let y = tuple.1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/test/primitive_types.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let z = tuple.2; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/test/primitive_types.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut m = [1, 2, 3]; // m : [i32; 3] [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: function is never used: `foo` [INFO] [stdout] --> src/test/primitive_types.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | fn foo(x: i32) -> i32 { x } // foo : i32 -> i32 [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `two_foo` [INFO] [stdout] --> src/test/primitive_types.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | fn two_foo(x: i32, y: i32) -> i32 { x + y } // two_foo : (i32 * i32) -> i32 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/test/vectors.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let x = Box::new(5); // This is closer to the Type-Theoretic defn of `List` := Nil | Cons(T, Box(List)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/test/conditionals_and_loops.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let y = if x == 5 { 10 } else { 15 }; // y : i32 [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.39s [INFO] running `Command { std: "docker" "inspect" "9d8d9323f11f7d7dac7863a2311c9d6dfa4d12692ae1b689b4cc992f37918b9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d8d9323f11f7d7dac7863a2311c9d6dfa4d12692ae1b689b4cc992f37918b9d", kill_on_drop: false }` [INFO] [stdout] 9d8d9323f11f7d7dac7863a2311c9d6dfa4d12692ae1b689b4cc992f37918b9d