[INFO] cloning repository https://github.com/harismuzaffer/rustsnippets [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/harismuzaffer/rustsnippets" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharismuzaffer%2Frustsnippets", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharismuzaffer%2Frustsnippets'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9f310d3f5b4a9f0d2b25e29e942eb3936b0e42bb [INFO] checking harismuzaffer/rustsnippets against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fharismuzaffer%2Frustsnippets" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/harismuzaffer/rustsnippets on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/harismuzaffer/rustsnippets [INFO] finished tweaking git repo https://github.com/harismuzaffer/rustsnippets [INFO] tweaked toml for git repo https://github.com/harismuzaffer/rustsnippets written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/harismuzaffer/rustsnippets already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 422a837c7b125e81df28e376b847290267b19e3000854e18042cc5bd5152291c [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" "422a837c7b125e81df28e376b847290267b19e3000854e18042cc5bd5152291c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "422a837c7b125e81df28e376b847290267b19e3000854e18042cc5bd5152291c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "422a837c7b125e81df28e376b847290267b19e3000854e18042cc5bd5152291c", kill_on_drop: false }` [INFO] [stdout] 422a837c7b125e81df28e376b847290267b19e3000854e18042cc5bd5152291c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a61872b153e0cfa5b4217d79da93a932f771e8110b4a5b082a09d952bdff3b3e [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" "a61872b153e0cfa5b4217d79da93a932f771e8110b4a5b082a09d952bdff3b3e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Checking learningrust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/strings.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let b = a; // this doesnt move ownership from a to b becoz a is a string literal [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `another_slice_string` [INFO] [stdout] --> src/strings.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let another_slice_string = &normal_string[0..5]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another_slice_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/datatypes.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let (x, y, z, o) = tup; [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/datatypes.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | let (x, y, z, o) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o` [INFO] [stdout] --> src/datatypes.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | let (x, y, z, o) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/enums.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | x = get_location(myipadd); [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: `v` [INFO] [stdout] --> src/vectors.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut v: Vec = Vec::new(); // an empty vector [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/vectors.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/safety_rules.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | fn ownit(s: String){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kk` [INFO] [stdout] --> src/safety_rules.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let kk = &k; // ok [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_kk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kk` [INFO] [stdout] --> src/safety_rules.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let kk = &mut k; // not ok because mutable and immutable coexisting, the next line is an error [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_kk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ll` [INFO] [stdout] --> src/safety_rules.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let ll = &mut l; // ok [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ll` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lll` [INFO] [stdout] --> src/safety_rules.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let lll = &mut l; // not ok because two immutable references, next line is an error [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lll` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/safety_rules.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut m = String::from("hello world"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_100th` [INFO] [stdout] --> src/error_handling.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let item_100th = &v[99]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_100th` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `abc` [INFO] [stdout] --> src/error_handling.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | abc => panic!("problem opening the file") [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_abc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ff` [INFO] [stdout] --> src/error_handling.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let ff = File::open("somefile.csv").expect("file could not be opened"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fff` [INFO] [stdout] --> src/error_handling.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let fff = File::open("somefile.csv").unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `r` is assigned to, but never used [INFO] [stdout] --> src/lifetimes.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let r; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_r` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> src/lifetimes.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | r = &s; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lifetimes.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let i = ImportantExcerpt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/closures_iterators.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let y = String::from("world"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v3` [INFO] [stdout] --> src/closures_iterators.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let v3: Vec<&mut String> = v2.map(|x| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vectors.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut v: Vec = Vec::new(); // an empty vector [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/safety_rules.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut m = String::from("hello world"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `part` [INFO] [stdout] --> src/lifetimes.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | part: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `calculation` [INFO] [stdout] --> src/closures_iterators.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | calculation: T, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/closures_iterators.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | value: Option [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `value` [INFO] [stdout] --> src/closures_iterators.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | fn value(&mut self, arg: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/strings.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let b = a; // this doesnt move ownership from a to b becoz a is a string literal [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `another_slice_string` [INFO] [stdout] --> src/strings.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let another_slice_string = &normal_string[0..5]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_another_slice_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/datatypes.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let (x, y, z, o) = tup; [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/datatypes.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | let (x, y, z, o) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `o` [INFO] [stdout] --> src/datatypes.rs:21:23 [INFO] [stdout] | [INFO] [stdout] 21 | let (x, y, z, o) = tup; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_o` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/enums.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | x = get_location(myipadd); [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: `v` [INFO] [stdout] --> src/vectors.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut v: Vec = Vec::new(); // an empty vector [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/vectors.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let row = vec![ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/safety_rules.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | fn ownit(s: String){ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kk` [INFO] [stdout] --> src/safety_rules.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let kk = &k; // ok [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_kk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kk` [INFO] [stdout] --> src/safety_rules.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let kk = &mut k; // not ok because mutable and immutable coexisting, the next line is an error [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_kk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ll` [INFO] [stdout] --> src/safety_rules.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let ll = &mut l; // ok [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ll` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lll` [INFO] [stdout] --> src/safety_rules.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let lll = &mut l; // not ok because two immutable references, next line is an error [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lll` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/safety_rules.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut m = String::from("hello world"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_100th` [INFO] [stdout] --> src/error_handling.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let item_100th = &v[99]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_100th` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `abc` [INFO] [stdout] --> src/error_handling.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | abc => panic!("problem opening the file") [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_abc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_handling.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ff` [INFO] [stdout] --> src/error_handling.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let ff = File::open("somefile.csv").expect("file could not be opened"); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fff` [INFO] [stdout] --> src/error_handling.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let fff = File::open("somefile.csv").unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_fff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `r` is assigned to, but never used [INFO] [stdout] --> src/lifetimes.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let r; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_r` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `r` is never read [INFO] [stdout] --> src/lifetimes.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | r = &s; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lifetimes.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let i = ImportantExcerpt { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/closures_iterators.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let y = String::from("world"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v3` [INFO] [stdout] --> src/closures_iterators.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | let v3: Vec<&mut String> = v2.map(|x| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vectors.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut v: Vec = Vec::new(); // an empty vector [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/safety_rules.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut m = String::from("hello world"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `part` [INFO] [stdout] --> src/lifetimes.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | part: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `calculation` [INFO] [stdout] --> src/closures_iterators.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | calculation: T, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `value` [INFO] [stdout] --> src/closures_iterators.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | value: Option [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `value` [INFO] [stdout] --> src/closures_iterators.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | fn value(&mut self, arg: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.97s [INFO] running `Command { std: "docker" "inspect" "a61872b153e0cfa5b4217d79da93a932f771e8110b4a5b082a09d952bdff3b3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a61872b153e0cfa5b4217d79da93a932f771e8110b4a5b082a09d952bdff3b3e", kill_on_drop: false }` [INFO] [stdout] a61872b153e0cfa5b4217d79da93a932f771e8110b4a5b082a09d952bdff3b3e