[INFO] cloning repository https://github.com/HillBamboo/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/HillBamboo/learn_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHillBamboo%2Flearn_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHillBamboo%2Flearn_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f772f033dcf258227431aecd75d2c04f01f5746c [INFO] checking HillBamboo/learn_rust against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHillBamboo%2Flearn_rust" "/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/HillBamboo/learn_rust 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/HillBamboo/learn_rust [INFO] finished tweaking git repo https://github.com/HillBamboo/learn_rust [INFO] tweaked toml for git repo https://github.com/HillBamboo/learn_rust written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/HillBamboo/learn_rust 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-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" "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] 8af90b5b55762950523921b1d29a1a895de3637d8232e7ec26137c4aa7182c09 [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" "8af90b5b55762950523921b1d29a1a895de3637d8232e7ec26137c4aa7182c09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8af90b5b55762950523921b1d29a1a895de3637d8232e7ec26137c4aa7182c09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8af90b5b55762950523921b1d29a1a895de3637d8232e7ec26137c4aa7182c09", kill_on_drop: false }` [INFO] [stdout] 8af90b5b55762950523921b1d29a1a895de3637d8232e7ec26137c4aa7182c09 [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" "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] 96ab407c45003c4b55ef5d9cba74187b9cf87ba24cda0f45d54b72df09985754 [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" "96ab407c45003c4b55ef5d9cba74187b9cf87ba24cda0f45d54b72df09985754", kill_on_drop: false }` [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking learn_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:28:57 [INFO] [stdout] | [INFO] [stdout] 28 | fn take_ownership(s : String) { println!("{}", s); }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 36 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet`, `VecDeque` [INFO] [stdout] --> src/rust_book/ch8_collections.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/rust_book/ch9_error_handling.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `Write` [INFO] [stdout] --> src/main.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use std::io::{Write, Error}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:28:57 [INFO] [stdout] | [INFO] [stdout] 28 | fn take_ownership(s : String) { println!("{}", s); }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 36 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet`, `VecDeque` [INFO] [stdout] --> src/rust_book/ch8_collections.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/rust_book/ch9_error_handling.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `Write` [INFO] [stdout] --> src/main.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use std::io::{Write, Error}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `A` is named the same as one of the variants of the type `XXD` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | Some(A) => println!("a"), [INFO] [stdout] | ^ help: to match on the variant, qualify the path: `XXD::A` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `A` is named the same as one of the variants of the type `XXD` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | Some(A) => println!("a"), [INFO] [stdout] | ^ help: to match on the variant, qualify the path: `XXD::A` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/rust_book/ch3_common_concepts.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let idx = 123; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/rust_book/ch3_common_concepts.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let idx = 123; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a2` [INFO] [stdout] --> src/rust_book/ch3_common_concepts.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let a2 = [4; 6]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_a2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a2` [INFO] [stdout] --> src/rust_book/ch3_common_concepts.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let a2 = [4; 6]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_a2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `atuple` [INFO] [stdout] --> src/rust_book/ch3_common_concepts.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let atuple = ("123", 2, 3); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_atuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `atuple` [INFO] [stdout] --> src/rust_book/ch3_common_concepts.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let atuple = ("123", 2, 3); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_atuple` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cnt` [INFO] [stdout] --> src/rust_book/ch3_common_concepts.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let cnt = loop { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cnt` [INFO] [stdout] --> src/rust_book/ch3_common_concepts.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let cnt = loop { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cnt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r3` [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let r3 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r3` [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let r3 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ss1` [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let ss1 = gives_ownership(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ss1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ss1` [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let ss1 = gives_ownership(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ss1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `localhost` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_enum.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let localhost = IpAddr{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_localhost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `localhost` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_enum.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let localhost = IpAddr{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_localhost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_enum.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let loopback = IpAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_enum.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let loopback = IpAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `localhost` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_enum.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let localhost = IpAddr::V4(String::from("127.0.0.1")); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_localhost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `localhost` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_enum.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let localhost = IpAddr::V4(String::from("127.0.0.1")); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_localhost` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_enum.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let loopback = IpAddr::V6(String::from("::1")); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_enum.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let loopback = IpAddr::V6(String::from("::1")); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_enum.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let x : i32 = 123; [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/rust_book/ch5_struct_enum_pattern_match/_enum.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let x : i32 = 123; [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/rust_book/ch5_struct_enum_pattern_match/_enum.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let y : Option = Some(5); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_enum.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let y : Option = Some(5); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_struct.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let r1 = Rectangle { width : 12, height : 33}; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_struct.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let r1 = Rectangle { width : 12, height : 33}; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let x : Option = None; [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/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let x : Option = None; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let six = plus_one(five); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let six = plus_one(five); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i32` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | Some(i32) => println!("i32"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i32` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | Some(i32) => println!("i32"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `A` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | Some(A) => println!("a"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_A` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `A` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | Some(A) => println!("a"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_A` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `does_not_exist` [INFO] [stdout] --> src/rust_book/ch8_collections.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let does_not_exist = v.get(100); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_does_not_exist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `does_not_exist` [INFO] [stdout] --> src/rust_book/ch8_collections.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let does_not_exist = v.get(100); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_does_not_exist` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/rust_book/ch8_collections.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | 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: `row` [INFO] [stdout] --> src/rust_book/ch8_collections.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | 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/rust_book/ch8_collections.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let s = d1.to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/rust_book/ch8_collections.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | let s = d1.to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/rust_book/ch8_collections.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let s = "Initial contents".to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/rust_book/ch8_collections.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let s = "Initial contents".to_string(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/rust_book/ch9_error_handling.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let f = match File::open("heex.txt") { [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/rust_book/ch9_error_handling.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let f = match File::open("heex.txt") { [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/rust_book/ch9_error_handling.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let f = File::open("hello.txt").unwrap_or_else(|error| { [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/rust_book/ch9_error_handling.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let f = File::open("hello.txt").unwrap_or_else(|error| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let x1 = Point {x : 5, y : 10.3}; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let x1 = Point {x : 5, y : 10.3}; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let x1 = Point {x : "5", y : 10.3}; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | let x1 = Point {x : "5", y : 10.3}; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let x1 = Point {x : 5.123, y : 10.3}; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let x1 = Point {x : 5.123, y : 10.3}; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/lifetimes.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let i = ImportantExcerpt { part: first_sentence }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/lifetimes.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let i = ImportantExcerpt { part: first_sentence }; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/lifetimes.rs:38:42 [INFO] [stdout] | [INFO] [stdout] 38 | fn longest<'a, 'b>(s1 : &'a str, s2 : &'b str) -> &'a str { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/lifetimes.rs:38:42 [INFO] [stdout] | [INFO] [stdout] 38 | fn longest<'a, 'b>(s1 : &'a str, s2 : &'b str) -> &'a str { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `move_or_borrow` [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn move_or_borrow() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `owership` [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn owership() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `borrow` [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn borrow() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `move_sematics_for_user_defined_type` [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn move_sematics_for_user_defined_type() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `show` [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | fn show(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `kind` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_enum.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | kind : IpAddrKind, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `address` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_enum.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | address : String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_struct.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | width : u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_struct.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | height : u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_struct.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_struct.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Apple` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | Apple, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Banane` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | Banane, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Watermelon` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | Watermelon, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `A` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | A, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `B` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | B, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `C` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | C, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_username_from_file` [INFO] [stdout] --> src/rust_book/ch9_error_handling.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `headline` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | headline: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `location` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | location: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `author` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | author: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | content: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `username` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | username: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | content: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `reply` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | reply: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `retweet` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | retweet: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `part` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/lifetimes.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | part: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/lifetimes.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | fn longest<'a, 'b>(s1 : &'a str, s2 : &'b str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | x : T, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `move_or_borrow` [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn move_or_borrow() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `owership` [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn owership() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `borrow` [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn borrow() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `move_sematics_for_user_defined_type` [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn move_sematics_for_user_defined_type() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `show` [INFO] [stdout] --> src/rust_book/ch4_ownership.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | fn show(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `kind` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_enum.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | kind : IpAddrKind, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | y : U, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | Some(A) => println!("a"), [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: path statement with no effect [INFO] [stdout] --> src/rust_book/ch8_collections.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | for i in &v1 { i; } [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `address` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_enum.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | address : String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_struct.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | width : u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_struct.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | height : u32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `area` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_struct.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_struct.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Apple` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | Apple, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Banane` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | Banane, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Watermelon` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | Watermelon, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `A` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | A, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `B` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | B, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `C` [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | C, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_username_from_file` [INFO] [stdout] --> src/rust_book/ch9_error_handling.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `headline` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | headline: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `location` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | location: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `author` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | author: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | content: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `username` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | username: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | content: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `reply` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | reply: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `retweet` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/traits.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | retweet: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `part` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/lifetimes.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | part: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `longest` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime/lifetimes.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | fn longest<'a, 'b>(s1 : &'a str, s2 : &'b str) -> &'a str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | x : T, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/rust_book/ch10_generic_traits_lefetime.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | y : U, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/rust_book/ch5_struct_enum_pattern_match/_pattern_match.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | Some(A) => println!("a"), [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: path statement with no effect [INFO] [stdout] --> src/rust_book/ch8_collections.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 26 | for i in &v1 { i; } [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(path_statements)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stdout] warning: 68 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.21s [INFO] running `Command { std: "docker" "inspect" "96ab407c45003c4b55ef5d9cba74187b9cf87ba24cda0f45d54b72df09985754", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96ab407c45003c4b55ef5d9cba74187b9cf87ba24cda0f45d54b72df09985754", kill_on_drop: false }` [INFO] [stdout] 96ab407c45003c4b55ef5d9cba74187b9cf87ba24cda0f45d54b72df09985754