[INFO] cloning repository https://github.com/vivasvan1/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/vivasvan1/learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivasvan1%2Flearn-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivasvan1%2Flearn-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 76d8059d4e9020974971e8186fb83281078557b1 [INFO] building vivasvan1/learn-rust 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%2Fvivasvan1%2Flearn-rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/vivasvan1/learn-rust 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/vivasvan1/learn-rust [INFO] finished tweaking git repo https://github.com/vivasvan1/learn-rust [INFO] tweaked toml for git repo https://github.com/vivasvan1/learn-rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/vivasvan1/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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 5e104d70c70cd7ee0a56bd269a94042f907489361916dc199c0a4ff665f4692d [INFO] running `Command { std: "docker" "start" "-a" "5e104d70c70cd7ee0a56bd269a94042f907489361916dc199c0a4ff665f4692d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e104d70c70cd7ee0a56bd269a94042f907489361916dc199c0a4ff665f4692d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e104d70c70cd7ee0a56bd269a94042f907489361916dc199c0a4ff665f4692d", kill_on_drop: false }` [INFO] [stdout] 5e104d70c70cd7ee0a56bd269a94042f907489361916dc199c0a4ff665f4692d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 21a4b9fc49d949bd80bed9ed56ebfca3385a685c2954f5e99e9680d869df1a24 [INFO] running `Command { std: "docker" "start" "-a" "21a4b9fc49d949bd80bed9ed56ebfca3385a685c2954f5e99e9680d869df1a24", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling basics v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `guess` [INFO] [stdout] --> src/init_3_2_data_types.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let guess: u32 = "42".parse().expect("Not a number!"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guess` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/init_3_2_data_types.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let x: i8 = -128; [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/init_3_2_data_types.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let x: i8 = 127; [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/init_3_2_data_types.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let x: i16 = -32_768; [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/init_3_2_data_types.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let x: i16 = 32_767; [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/init_3_2_data_types.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let x: i32 = -2_147_483_648; [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/init_3_2_data_types.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let x: i32 = 2_147_483_647; [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/init_3_2_data_types.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let x: i64 = -9_223_372_036_854_775_808; [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/init_3_2_data_types.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let x: i64 = 9_223_372_036_854_775_807; [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/init_3_2_data_types.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let x: i128 = -170_141_183_460_469_231_731_687_303_715_884_105_728; [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/init_3_2_data_types.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let x: i128 = 170_141_183_460_469_231_731_687_303_715_884_105_727; [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/init_3_2_data_types.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let x: isize = -9_223_372_036_854_775_808; [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/init_3_2_data_types.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let x: isize = 9_223_372_036_854_775_807; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decimal` [INFO] [stdout] --> src/init_3_2_data_types.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let decimal = 42; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decimal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hex` [INFO] [stdout] --> src/init_3_2_data_types.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let hex = 0xff; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `octal` [INFO] [stdout] --> src/init_3_2_data_types.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let octal = 0o77; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_octal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary` [INFO] [stdout] --> src/init_3_2_data_types.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let binary = 0b1111_0000; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `byte` [INFO] [stdout] --> src/init_3_2_data_types.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let byte = b'A'; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/init_3_2_data_types.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let f = 3.14; [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/init_3_2_data_types.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let f: f32 = 3.14; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/init_3_2_data_types.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let sum = 5 + 10; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `difference` [INFO] [stdout] --> src/init_3_2_data_types.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let difference = 95.5 - 4.3; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_difference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `product` [INFO] [stdout] --> src/init_3_2_data_types.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let product = 4 * 30; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quotient` [INFO] [stdout] --> src/init_3_2_data_types.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let quotient = 56.7 / 32.2; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quotient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `truncated` [INFO] [stdout] --> src/init_3_2_data_types.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let truncated = -5 / 3; // Result is -1 [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_truncated` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remainder` [INFO] [stdout] --> src/init_3_2_data_types.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let remainder = 43 % 5; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/init_3_2_data_types.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let t = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/init_3_2_data_types.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let f: bool = false; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/init_3_2_data_types.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let c = 'a'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/init_3_2_data_types.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let c: char = 'ℤ'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `heart_eyed_cat` [INFO] [stdout] --> src/init_3_2_data_types.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let heart_eyed_cat = '😻'; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_heart_eyed_cat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/init_3_2_data_types.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | let (x, y, z) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/init_3_2_data_types.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | let (x, y, z) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/init_3_2_data_types.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let x = tup.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/init_3_2_data_types.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let y = tup.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/init_3_2_data_types.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let z = tup.2; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/init_3_2_data_types.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let a = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `months` [INFO] [stdout] --> src/init_3_2_data_types.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let months = [ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/init_3_2_data_types.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let a: [i32; 5] = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/init_3_2_data_types.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let first = a[0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second` [INFO] [stdout] --> src/init_3_2_data_types.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let second = a[1]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_second` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/init_3_3_functions.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let x = 5; [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/init_3_3_functions.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let y = { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/init_4_1_ownership.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let s = "hello"; // s is valid from this point forward [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/init_4_1_ownership.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let s2 = s1; // s1 is moved to s2 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/init_4_1_ownership.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let s1 = gives_ownership(); // gives_ownership moves its return value to s1 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/init_4_1_ownership.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let s3 = takes_and_gives_back(s2); // s2 is moved and then moved again to s3 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/init_4_1_ownership.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut x = 5; // x comes into scope [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: `word` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let word = first_word(&s); // word will get the value 5 [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let world = &s[6..11]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let slice = &s[0..2]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let slice = &s[..2]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let slice = &s[3..len]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let slice = &s[3..]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let slice = &s[0..len]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let word = first_word_using_slices(&s); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let mut s = String::from("hello world"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_1_2_hello.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_1_3_formatted_print.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_3_1_variable_and_mutability.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_3_2_data_types.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_3_3_functions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `another_function` is never used [INFO] [stdout] --> src/init_3_3_functions.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn another_function() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `yet_another_function` is never used [INFO] [stdout] --> src/init_3_3_functions.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn yet_another_function(x: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_labeled_measurement` is never used [INFO] [stdout] --> src/init_3_3_functions.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn print_labeled_measurement(value: i32, unit: char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_3_4_comments.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_3_5_control_flow.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_4_1_ownership.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.01s [INFO] running `Command { std: "docker" "inspect" "21a4b9fc49d949bd80bed9ed56ebfca3385a685c2954f5e99e9680d869df1a24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21a4b9fc49d949bd80bed9ed56ebfca3385a685c2954f5e99e9680d869df1a24", kill_on_drop: false }` [INFO] [stdout] 21a4b9fc49d949bd80bed9ed56ebfca3385a685c2954f5e99e9680d869df1a24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 96df26e0c95056a96b1320c76e248c1b5856fe0959f213edbfe4502f68b40294 [INFO] running `Command { std: "docker" "start" "-a" "96df26e0c95056a96b1320c76e248c1b5856fe0959f213edbfe4502f68b40294", kill_on_drop: false }` [INFO] [stderr] Compiling basics v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `guess` [INFO] [stdout] --> src/init_3_2_data_types.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let guess: u32 = "42".parse().expect("Not a number!"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_guess` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/init_3_2_data_types.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let x: i8 = -128; [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/init_3_2_data_types.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let x: i8 = 127; [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/init_3_2_data_types.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let x: i16 = -32_768; [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/init_3_2_data_types.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let x: i16 = 32_767; [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/init_3_2_data_types.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let x: i32 = -2_147_483_648; [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/init_3_2_data_types.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let x: i32 = 2_147_483_647; [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/init_3_2_data_types.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let x: i64 = -9_223_372_036_854_775_808; [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/init_3_2_data_types.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let x: i64 = 9_223_372_036_854_775_807; [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/init_3_2_data_types.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let x: i128 = -170_141_183_460_469_231_731_687_303_715_884_105_728; [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/init_3_2_data_types.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let x: i128 = 170_141_183_460_469_231_731_687_303_715_884_105_727; [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/init_3_2_data_types.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let x: isize = -9_223_372_036_854_775_808; [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/init_3_2_data_types.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let x: isize = 9_223_372_036_854_775_807; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `decimal` [INFO] [stdout] --> src/init_3_2_data_types.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let decimal = 42; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_decimal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hex` [INFO] [stdout] --> src/init_3_2_data_types.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let hex = 0xff; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_hex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `octal` [INFO] [stdout] --> src/init_3_2_data_types.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let octal = 0o77; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_octal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary` [INFO] [stdout] --> src/init_3_2_data_types.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let binary = 0b1111_0000; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `byte` [INFO] [stdout] --> src/init_3_2_data_types.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | let byte = b'A'; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_byte` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/init_3_2_data_types.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let f = 3.14; [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/init_3_2_data_types.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let f: f32 = 3.14; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/init_3_2_data_types.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let sum = 5 + 10; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `difference` [INFO] [stdout] --> src/init_3_2_data_types.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let difference = 95.5 - 4.3; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_difference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `product` [INFO] [stdout] --> src/init_3_2_data_types.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let product = 4 * 30; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quotient` [INFO] [stdout] --> src/init_3_2_data_types.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let quotient = 56.7 / 32.2; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quotient` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `truncated` [INFO] [stdout] --> src/init_3_2_data_types.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let truncated = -5 / 3; // Result is -1 [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_truncated` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remainder` [INFO] [stdout] --> src/init_3_2_data_types.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let remainder = 43 % 5; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/init_3_2_data_types.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let t = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/init_3_2_data_types.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | let f: bool = false; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/init_3_2_data_types.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let c = 'a'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/init_3_2_data_types.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let c: char = 'ℤ'; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `heart_eyed_cat` [INFO] [stdout] --> src/init_3_2_data_types.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let heart_eyed_cat = '😻'; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_heart_eyed_cat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/init_3_2_data_types.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | let (x, y, z) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/init_3_2_data_types.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | let (x, y, z) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/init_3_2_data_types.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let x = tup.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/init_3_2_data_types.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let y = tup.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/init_3_2_data_types.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let z = tup.2; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/init_3_2_data_types.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let a = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `months` [INFO] [stdout] --> src/init_3_2_data_types.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | let months = [ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_months` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/init_3_2_data_types.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let a: [i32; 5] = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/init_3_2_data_types.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let first = a[0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second` [INFO] [stdout] --> src/init_3_2_data_types.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let second = a[1]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_second` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/init_3_3_functions.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let x = 5; [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/init_3_3_functions.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let y = { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/init_4_1_ownership.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let s = "hello"; // s is valid from this point forward [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/init_4_1_ownership.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let s2 = s1; // s1 is moved to s2 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/init_4_1_ownership.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let s1 = gives_ownership(); // gives_ownership moves its return value to s1 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/init_4_1_ownership.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let s3 = takes_and_gives_back(s2); // s2 is moved and then moved again to s3 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/init_4_1_ownership.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let mut x = 5; // x comes into scope [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: `word` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let word = first_word(&s); // word will get the value 5 [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let world = &s[6..11]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let slice = &s[0..2]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let slice = &s[..2]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let slice = &s[3..len]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let slice = &s[3..]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let slice = &s[0..len]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let word = first_word_using_slices(&s); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let mut s = String::from("hello world"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_1_2_hello.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_1_3_formatted_print.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_3_1_variable_and_mutability.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_3_2_data_types.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_3_3_functions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `another_function` is never used [INFO] [stdout] --> src/init_3_3_functions.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn another_function() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `yet_another_function` is never used [INFO] [stdout] --> src/init_3_3_functions.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn yet_another_function(x: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_labeled_measurement` is never used [INFO] [stdout] --> src/init_3_3_functions.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn print_labeled_measurement(value: i32, unit: char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_3_4_comments.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_3_5_control_flow.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_4_1_ownership.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/init_4_3_the_slice_type.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] running `Command { std: "docker" "inspect" "96df26e0c95056a96b1320c76e248c1b5856fe0959f213edbfe4502f68b40294", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96df26e0c95056a96b1320c76e248c1b5856fe0959f213edbfe4502f68b40294", kill_on_drop: false }` [INFO] [stdout] 96df26e0c95056a96b1320c76e248c1b5856fe0959f213edbfe4502f68b40294