[INFO] cloning repository https://github.com/sulabhkothari/SkRustLearn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sulabhkothari/SkRustLearn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsulabhkothari%2FSkRustLearn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsulabhkothari%2FSkRustLearn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0593d5dce8c4c97bb399ff38bf37f803bb3f8e72 [INFO] checking sulabhkothari/SkRustLearn against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsulabhkothari%2FSkRustLearn" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sulabhkothari/SkRustLearn 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/sulabhkothari/SkRustLearn [INFO] finished tweaking git repo https://github.com/sulabhkothari/SkRustLearn [INFO] tweaked toml for git repo https://github.com/sulabhkothari/SkRustLearn written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/sulabhkothari/SkRustLearn 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-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 808a016462cddaa1a0a1bacdbf73cf7f046f1b886d1b842a13008d33fddad2bc [INFO] running `Command { std: "docker" "start" "-a" "808a016462cddaa1a0a1bacdbf73cf7f046f1b886d1b842a13008d33fddad2bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "808a016462cddaa1a0a1bacdbf73cf7f046f1b886d1b842a13008d33fddad2bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "808a016462cddaa1a0a1bacdbf73cf7f046f1b886d1b842a13008d33fddad2bc", kill_on_drop: false }` [INFO] [stdout] 808a016462cddaa1a0a1bacdbf73cf7f046f1b886d1b842a13008d33fddad2bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 397c5853b463b86a5d2c3879eacce01393135a9ed0315e467a15fa5fccd1c258 [INFO] running `Command { std: "docker" "start" "-a" "397c5853b463b86a5d2c3879eacce01393135a9ed0315e467a15fa5fccd1c258", kill_on_drop: false }` [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking SkRustLearn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/fearless_concurrency.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/fearless_concurrency.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `MemoryLeakingCons` is imported redundantly [INFO] [stdout] --> src/smart_pointers.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 117 | use crate::smart_pointers::MemoryLeakingList::{MemoryLeakingCons, MemoryLeakingNil}; [INFO] [stdout] | ----------------- the item `MemoryLeakingCons` is already imported here [INFO] [stdout] ... [INFO] [stdout] 217 | use crate::smart_pointers::MemoryLeakingList::MemoryLeakingCons; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/fearless_concurrency.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/fearless_concurrency.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `MemoryLeakingCons` is imported redundantly [INFO] [stdout] --> src/smart_pointers.rs:217:13 [INFO] [stdout] | [INFO] [stdout] 117 | use crate::smart_pointers::MemoryLeakingList::{MemoryLeakingCons, MemoryLeakingNil}; [INFO] [stdout] | ----------------- the item `MemoryLeakingCons` is already imported here [INFO] [stdout] ... [INFO] [stdout] 217 | use crate::smart_pointers::MemoryLeakingList::MemoryLeakingCons; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Nil` is named the same as one of the variants of the type `LL` [INFO] [stdout] --> src/smart_pointers.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | Nil => println!(""), [INFO] [stdout] | ^^^ help: to match on the variant, qualify the path: `LL::Nil` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/advanced_features.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let r = address as *const i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_of_strings` [INFO] [stdout] --> src/advanced_features.rs:446:9 [INFO] [stdout] | [INFO] [stdout] 446 | let list_of_strings: Vec = list_of_numbers.iter().map(ToString::to_string).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_of_strings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_of_strings` [INFO] [stdout] --> src/advanced_features.rs:447:9 [INFO] [stdout] | [INFO] [stdout] 447 | let list_of_strings: Vec = list_of_numbers.iter().map(|i| i.to_string()).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_of_strings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_of_statuses` [INFO] [stdout] --> src/advanced_features.rs:458:9 [INFO] [stdout] | [INFO] [stdout] 458 | let list_of_statuses: Vec = (0u32..20).map(Status::Value).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_of_statuses` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status_line` [INFO] [stdout] --> src/multithreaded_web_server.rs:40:10 [INFO] [stdout] | [INFO] [stdout] 40 | let (status_line, filename) = if buffer.starts_with(get) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_status_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/object_oriented.rs:210:27 [INFO] [stdout] | [INFO] [stdout] 210 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/pattern_matching.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | let (x, y, z) = (1, 2, 3); [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/pattern_matching.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let (x, y, z) = (1, 2, 3); [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/pattern_matching.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | let (x, y, z) = (1, 2, 3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> src/pattern_matching.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> src/pattern_matching.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/pattern_matching.rs:56:34 [INFO] [stdout] | [INFO] [stdout] 56 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/pattern_matching.rs:56:37 [INFO] [stdout] | [INFO] [stdout] 56 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/pattern_matching.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | let msg = Message::ChangeColor(0, 160, 255); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/pattern_matching.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spd` [INFO] [stdout] --> src/smart_pointers.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | fn loan(spd: CustomSmartPointer) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_spd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/smart_pointers.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let b = Cons(Rc::new(RefCell::new(3)), Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/smart_pointers.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let c = Cons(Rc::new(RefCell::new(4)), Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/smart_pointers.rs:203:18 [INFO] [stdout] | [INFO] [stdout] 203 | Node(x, y) => println!(""), [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/smart_pointers.rs:203:21 [INFO] [stdout] | [INFO] [stdout] 203 | Node(x, y) => println!(""), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Nil` [INFO] [stdout] --> src/smart_pointers.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | Nil => println!(""), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_Nil` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Nil` [INFO] [stdout] --> src/smart_pointers.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | Nil => None, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_Nil` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `Nil` is named the same as one of the variants of the type `LL` [INFO] [stdout] --> src/smart_pointers.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | Nil => println!(""), [INFO] [stdout] | ^^^ help: to match on the variant, qualify the path: `LL::Nil` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `likely_crash` [INFO] [stdout] --> src/advanced_features.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn likely_crash() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Thunk` [INFO] [stdout] --> src/advanced_features.rs:315:1 [INFO] [stdout] | [INFO] [stdout] 315 | type Thunk = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Result` [INFO] [stdout] --> src/advanced_features.rs:316:1 [INFO] [stdout] | [INFO] [stdout] 316 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stop` [INFO] [stdout] --> src/advanced_features.rs:454:9 [INFO] [stdout] | [INFO] [stdout] 454 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> src/advanced_features.rs:455:9 [INFO] [stdout] | [INFO] [stdout] 455 | Quit { a: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `send_multiple_msg_over_channel` [INFO] [stdout] --> src/fearless_concurrency.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn send_multiple_msg_over_channel() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rgb` [INFO] [stdout] --> src/pattern_matching.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | Rgb(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> src/pattern_matching.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/pattern_matching.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/pattern_matching.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/pattern_matching.rs:245:9 [INFO] [stdout] | [INFO] [stdout] 245 | y: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `z` [INFO] [stdout] --> src/pattern_matching.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | z: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LL` [INFO] [stdout] --> src/smart_pointers.rs:193:6 [INFO] [stdout] | [INFO] [stdout] 193 | enum LL { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `last` [INFO] [stdout] --> src/smart_pointers.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 199 | fn last(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/advanced_features.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let r = address as *const i32; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_of_strings` [INFO] [stdout] --> src/advanced_features.rs:446:9 [INFO] [stdout] | [INFO] [stdout] 446 | let list_of_strings: Vec = list_of_numbers.iter().map(ToString::to_string).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_of_strings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_of_strings` [INFO] [stdout] --> src/advanced_features.rs:447:9 [INFO] [stdout] | [INFO] [stdout] 447 | let list_of_strings: Vec = list_of_numbers.iter().map(|i| i.to_string()).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_of_strings` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list_of_statuses` [INFO] [stdout] --> src/advanced_features.rs:458:9 [INFO] [stdout] | [INFO] [stdout] 458 | let list_of_statuses: Vec = (0u32..20).map(Status::Value).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_list_of_statuses` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status_line` [INFO] [stdout] --> src/multithreaded_web_server.rs:40:10 [INFO] [stdout] | [INFO] [stdout] 40 | let (status_line, filename) = if buffer.starts_with(get) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_status_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `post` [INFO] [stdout] --> src/object_oriented.rs:210:27 [INFO] [stdout] | [INFO] [stdout] 210 | fn content<'a>(&self, post: &'a Post) -> &'a str { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/pattern_matching.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | let (x, y, z) = (1, 2, 3); [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/pattern_matching.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let (x, y, z) = (1, 2, 3); [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/pattern_matching.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | let (x, y, z) = (1, 2, 3); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `feet` [INFO] [stdout] --> src/pattern_matching.rs:56:11 [INFO] [stdout] | [INFO] [stdout] 56 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_feet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inches` [INFO] [stdout] --> src/pattern_matching.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/pattern_matching.rs:56:34 [INFO] [stdout] | [INFO] [stdout] 56 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/pattern_matching.rs:56:37 [INFO] [stdout] | [INFO] [stdout] 56 | let ((feet, inches), Point { x, y }) = ((3, 10), Point { x: 3, y: -10 }); [INFO] [stdout] | ^ help: try ignoring the field: `y: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/pattern_matching.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | let msg = Message::ChangeColor(0, 160, 255); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/pattern_matching.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 229 | let y = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spd` [INFO] [stdout] --> src/smart_pointers.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | fn loan(spd: CustomSmartPointer) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_spd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/smart_pointers.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let b = Cons(Rc::new(RefCell::new(3)), Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/smart_pointers.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let c = Cons(Rc::new(RefCell::new(4)), Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/smart_pointers.rs:203:18 [INFO] [stdout] | [INFO] [stdout] 203 | Node(x, y) => println!(""), [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/smart_pointers.rs:203:21 [INFO] [stdout] | [INFO] [stdout] 203 | Node(x, y) => println!(""), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Nil` [INFO] [stdout] --> src/smart_pointers.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | Nil => println!(""), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_Nil` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Nil` [INFO] [stdout] --> src/smart_pointers.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | Nil => None, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_Nil` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typedPost` should have a snake case name [INFO] [stdout] --> src/object_oriented.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut typedPost = TypedPost::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `typed_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typedPost` should have a snake case name [INFO] [stdout] --> src/object_oriented.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let typedPost = typedPost.request_review(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `typed_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typedPost` should have a snake case name [INFO] [stdout] --> src/object_oriented.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let typedPost = typedPost.approve(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `typed_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Nil` should have a snake case name [INFO] [stdout] --> src/smart_pointers.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | Nil => println!(""), [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `nil` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Nil` should have a snake case name [INFO] [stdout] --> src/smart_pointers.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | Nil => None, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `nil` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/bin.rs:541:13 [INFO] [stdout] | [INFO] [stdout] 541 | _ => None, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/bin.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let a: [i32; 5] = [67; 5]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/bin.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let index = 5; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/bin.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | let s1 = s.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/bin.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | let r1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/bin.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let r2 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reference_to_nothing` [INFO] [stdout] --> src/bin.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | let reference_to_nothing = dangle(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reference_to_nothing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `likely_crash` [INFO] [stdout] --> src/advanced_features.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn likely_crash() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Thunk` [INFO] [stdout] --> src/advanced_features.rs:315:1 [INFO] [stdout] | [INFO] [stdout] 315 | type Thunk = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Result` [INFO] [stdout] --> src/advanced_features.rs:316:1 [INFO] [stdout] | [INFO] [stdout] 316 | type Result = std::result::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stop` [INFO] [stdout] --> src/advanced_features.rs:454:9 [INFO] [stdout] | [INFO] [stdout] 454 | Stop, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> src/advanced_features.rs:455:9 [INFO] [stdout] | [INFO] [stdout] 455 | Quit { a: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `send_multiple_msg_over_channel` [INFO] [stdout] --> src/fearless_concurrency.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn send_multiple_msg_over_channel() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Rgb` [INFO] [stdout] --> src/pattern_matching.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | Rgb(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> src/pattern_matching.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/pattern_matching.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/pattern_matching.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/pattern_matching.rs:245:9 [INFO] [stdout] | [INFO] [stdout] 245 | y: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `z` [INFO] [stdout] --> src/pattern_matching.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | z: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `LL` [INFO] [stdout] --> src/smart_pointers.rs:193:6 [INFO] [stdout] | [INFO] [stdout] 193 | enum LL { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `last` [INFO] [stdout] --> src/smart_pointers.rs:199:8 [INFO] [stdout] | [INFO] [stdout] 199 | fn last(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/bin.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | let slice = &a[1..3]; [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/bin.rs:311:9 [INFO] [stdout] | [INFO] [stdout] 311 | let word = first_word(&my_string[..]); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/bin.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | let s = "Hello, world!"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_number` [INFO] [stdout] --> src/bin.rs:524:9 [INFO] [stdout] | [INFO] [stdout] 524 | let some_number = Some(5); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_string` [INFO] [stdout] --> src/bin.rs:525:9 [INFO] [stdout] | [INFO] [stdout] 525 | let some_string = Some("a string"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `absent_number` [INFO] [stdout] --> src/bin.rs:527:9 [INFO] [stdout] | [INFO] [stdout] 527 | let absent_number: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_absent_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coin` [INFO] [stdout] --> src/bin.rs:555:9 [INFO] [stdout] | [INFO] [stdout] 555 | let coin = Coin::Quarter(UsState::Alabama); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_coin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typedPost` should have a snake case name [INFO] [stdout] --> src/object_oriented.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mut typedPost = TypedPost::new(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `typed_post` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typedPost` should have a snake case name [INFO] [stdout] --> src/object_oriented.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let typedPost = typedPost.request_review(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `typed_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `typedPost` should have a snake case name [INFO] [stdout] --> src/object_oriented.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let typedPost = typedPost.approve(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `typed_post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Nil` should have a snake case name [INFO] [stdout] --> src/smart_pointers.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | Nil => println!(""), [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `nil` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Nil` should have a snake case name [INFO] [stdout] --> src/smart_pointers.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | Nil => None, [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `nil` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stdout] warning: function is never used: `guessing_game` [INFO] [stdout] --> src/bin.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn guessing_game() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `five` [INFO] [stdout] --> src/bin.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn five() -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `data_types` [INFO] [stdout] --> src/bin.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn data_types() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `control_flows` [INFO] [stdout] --> src/bin.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn control_flows() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `loops` [INFO] [stdout] --> src/bin.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn loops() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ownership` [INFO] [stdout] --> src/bin.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn ownership() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dangle` [INFO] [stdout] --> src/bin.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn dangle() -> String /*&String*/ { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `change` [INFO] [stdout] --> src/bin.rs:258:4 [INFO] [stdout] | [INFO] [stdout] 258 | fn change(some_string: &mut String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_length_by_borrowing` [INFO] [stdout] --> src/bin.rs:262:4 [INFO] [stdout] | [INFO] [stdout] 262 | fn calculate_length_by_borrowing(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_length` [INFO] [stdout] --> src/bin.rs:266:4 [INFO] [stdout] | [INFO] [stdout] 266 | fn calculate_length(s: String) -> (String, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gives_ownership` [INFO] [stdout] --> src/bin.rs:272:4 [INFO] [stdout] | [INFO] [stdout] 272 | fn gives_ownership() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `takes_and_gives_back` [INFO] [stdout] --> src/bin.rs:285:4 [INFO] [stdout] | [INFO] [stdout] 285 | fn takes_and_gives_back(a_string: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `takes_ownership` [INFO] [stdout] --> src/bin.rs:292:4 [INFO] [stdout] | [INFO] [stdout] 292 | fn takes_ownership(some_string: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `makes_copy` [INFO] [stdout] --> src/bin.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn makes_copy(some_integer: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `slices` [INFO] [stdout] --> src/bin.rs:303:4 [INFO] [stdout] | [INFO] [stdout] 303 | fn slices() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `first_word` [INFO] [stdout] --> src/bin.rs:334:4 [INFO] [stdout] | [INFO] [stdout] 334 | fn first_word(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_user` [INFO] [stdout] --> src/bin.rs:356:4 [INFO] [stdout] | [INFO] [stdout] 356 | fn build_user(email: String, username: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/bin.rs:372:4 [INFO] [stdout] | [INFO] [stdout] 372 | fn area(rectangle: &Rectangle) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculateArea` [INFO] [stdout] --> src/bin.rs:377:8 [INFO] [stdout] | [INFO] [stdout] 377 | fn calculateArea(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/bin.rs:381:8 [INFO] [stdout] | [INFO] [stdout] 381 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `square` [INFO] [stdout] --> src/bin.rs:386:8 [INFO] [stdout] | [INFO] [stdout] 386 | fn square(size: u32) -> Rectangle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `structures` [INFO] [stdout] --> src/bin.rs:422:4 [INFO] [stdout] | [INFO] [stdout] 422 | fn structures() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> src/bin.rs:478:5 [INFO] [stdout] | [INFO] [stdout] 478 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/bin.rs:479:5 [INFO] [stdout] | [INFO] [stdout] 479 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/bin.rs:481:5 [INFO] [stdout] | [INFO] [stdout] 481 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeColor` [INFO] [stdout] --> src/bin.rs:483:5 [INFO] [stdout] | [INFO] [stdout] 483 | ChangeColor(i32, i32, i32), //Tuple [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `call` [INFO] [stdout] --> src/bin.rs:487:8 [INFO] [stdout] | [INFO] [stdout] 487 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alabama` [INFO] [stdout] --> src/bin.rs:494:5 [INFO] [stdout] | [INFO] [stdout] 494 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alaska` [INFO] [stdout] --> src/bin.rs:495:5 [INFO] [stdout] | [INFO] [stdout] 495 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `California` [INFO] [stdout] --> src/bin.rs:496:5 [INFO] [stdout] | [INFO] [stdout] 496 | California, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Texas` [INFO] [stdout] --> src/bin.rs:497:5 [INFO] [stdout] | [INFO] [stdout] 497 | Texas, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Coin` [INFO] [stdout] --> src/bin.rs:500:6 [INFO] [stdout] | [INFO] [stdout] 500 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `value_in_cents` [INFO] [stdout] --> src/bin.rs:508:8 [INFO] [stdout] | [INFO] [stdout] 508 | fn value_in_cents(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enums` [INFO] [stdout] --> src/bin.rs:521:4 [INFO] [stdout] | [INFO] [stdout] 521 | fn enums() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `smart_pointers23` [INFO] [stdout] --> src/bin.rs:578:4 [INFO] [stdout] | [INFO] [stdout] 578 | fn smart_pointers23() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `SkRustLearnBin` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `sk_rust_learn_bin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculateArea` should have a snake case name [INFO] [stdout] --> src/bin.rs:377:8 [INFO] [stdout] | [INFO] [stdout] 377 | fn calculateArea(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `calculate_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/bin.rs:541:13 [INFO] [stdout] | [INFO] [stdout] 541 | _ => None, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/bin.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let a: [i32; 5] = [67; 5]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/bin.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let index = 5; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/bin.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | let s1 = s.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/bin.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 218 | let r1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r2` [INFO] [stdout] --> src/bin.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let r2 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reference_to_nothing` [INFO] [stdout] --> src/bin.rs:244:9 [INFO] [stdout] | [INFO] [stdout] 244 | let reference_to_nothing = dangle(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reference_to_nothing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/bin.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | let slice = &a[1..3]; [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/bin.rs:311:9 [INFO] [stdout] | [INFO] [stdout] 311 | let word = first_word(&my_string[..]); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/bin.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | let s = "Hello, world!"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_number` [INFO] [stdout] --> src/bin.rs:524:9 [INFO] [stdout] | [INFO] [stdout] 524 | let some_number = Some(5); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_string` [INFO] [stdout] --> src/bin.rs:525:9 [INFO] [stdout] | [INFO] [stdout] 525 | let some_string = Some("a string"); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `absent_number` [INFO] [stdout] --> src/bin.rs:527:9 [INFO] [stdout] | [INFO] [stdout] 527 | let absent_number: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_absent_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `coin` [INFO] [stdout] --> src/bin.rs:555:9 [INFO] [stdout] | [INFO] [stdout] 555 | let coin = Coin::Quarter(UsState::Alabama); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_coin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `guessing_game` [INFO] [stdout] --> src/bin.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn guessing_game() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `five` [INFO] [stdout] --> src/bin.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn five() -> i32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `data_types` [INFO] [stdout] --> src/bin.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn data_types() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `control_flows` [INFO] [stdout] --> src/bin.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn control_flows() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `loops` [INFO] [stdout] --> src/bin.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 100 | fn loops() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ownership` [INFO] [stdout] --> src/bin.rs:152:4 [INFO] [stdout] | [INFO] [stdout] 152 | fn ownership() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `dangle` [INFO] [stdout] --> src/bin.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn dangle() -> String /*&String*/ { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `change` [INFO] [stdout] --> src/bin.rs:258:4 [INFO] [stdout] | [INFO] [stdout] 258 | fn change(some_string: &mut String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_length_by_borrowing` [INFO] [stdout] --> src/bin.rs:262:4 [INFO] [stdout] | [INFO] [stdout] 262 | fn calculate_length_by_borrowing(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_length` [INFO] [stdout] --> src/bin.rs:266:4 [INFO] [stdout] | [INFO] [stdout] 266 | fn calculate_length(s: String) -> (String, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gives_ownership` [INFO] [stdout] --> src/bin.rs:272:4 [INFO] [stdout] | [INFO] [stdout] 272 | fn gives_ownership() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `takes_and_gives_back` [INFO] [stdout] --> src/bin.rs:285:4 [INFO] [stdout] | [INFO] [stdout] 285 | fn takes_and_gives_back(a_string: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `takes_ownership` [INFO] [stdout] --> src/bin.rs:292:4 [INFO] [stdout] | [INFO] [stdout] 292 | fn takes_ownership(some_string: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `makes_copy` [INFO] [stdout] --> src/bin.rs:298:4 [INFO] [stdout] | [INFO] [stdout] 298 | fn makes_copy(some_integer: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `slices` [INFO] [stdout] --> src/bin.rs:303:4 [INFO] [stdout] | [INFO] [stdout] 303 | fn slices() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `first_word` [INFO] [stdout] --> src/bin.rs:334:4 [INFO] [stdout] | [INFO] [stdout] 334 | fn first_word(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_user` [INFO] [stdout] --> src/bin.rs:356:4 [INFO] [stdout] | [INFO] [stdout] 356 | fn build_user(email: String, username: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/bin.rs:372:4 [INFO] [stdout] | [INFO] [stdout] 372 | fn area(rectangle: &Rectangle) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculateArea` [INFO] [stdout] --> src/bin.rs:377:8 [INFO] [stdout] | [INFO] [stdout] 377 | fn calculateArea(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/bin.rs:381:8 [INFO] [stdout] | [INFO] [stdout] 381 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `square` [INFO] [stdout] --> src/bin.rs:386:8 [INFO] [stdout] | [INFO] [stdout] 386 | fn square(size: u32) -> Rectangle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `structures` [INFO] [stdout] --> src/bin.rs:422:4 [INFO] [stdout] | [INFO] [stdout] 422 | fn structures() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> src/bin.rs:478:5 [INFO] [stdout] | [INFO] [stdout] 478 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/bin.rs:479:5 [INFO] [stdout] | [INFO] [stdout] 479 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/bin.rs:481:5 [INFO] [stdout] | [INFO] [stdout] 481 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeColor` [INFO] [stdout] --> src/bin.rs:483:5 [INFO] [stdout] | [INFO] [stdout] 483 | ChangeColor(i32, i32, i32), //Tuple [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `call` [INFO] [stdout] --> src/bin.rs:487:8 [INFO] [stdout] | [INFO] [stdout] 487 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alabama` [INFO] [stdout] --> src/bin.rs:494:5 [INFO] [stdout] | [INFO] [stdout] 494 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alaska` [INFO] [stdout] --> src/bin.rs:495:5 [INFO] [stdout] | [INFO] [stdout] 495 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `California` [INFO] [stdout] --> src/bin.rs:496:5 [INFO] [stdout] | [INFO] [stdout] 496 | California, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Texas` [INFO] [stdout] --> src/bin.rs:497:5 [INFO] [stdout] | [INFO] [stdout] 497 | Texas, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Coin` [INFO] [stdout] --> src/bin.rs:500:6 [INFO] [stdout] | [INFO] [stdout] 500 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `value_in_cents` [INFO] [stdout] --> src/bin.rs:508:8 [INFO] [stdout] | [INFO] [stdout] 508 | fn value_in_cents(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `enums` [INFO] [stdout] --> src/bin.rs:521:4 [INFO] [stdout] | [INFO] [stdout] 521 | fn enums() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `smart_pointers23` [INFO] [stdout] --> src/bin.rs:578:4 [INFO] [stdout] | [INFO] [stdout] 578 | fn smart_pointers23() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `SkRustLearnBin` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `sk_rust_learn_bin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculateArea` should have a snake case name [INFO] [stdout] --> src/bin.rs:377:8 [INFO] [stdout] | [INFO] [stdout] 377 | fn calculateArea(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `calculate_area` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.72s [INFO] running `Command { std: "docker" "inspect" "397c5853b463b86a5d2c3879eacce01393135a9ed0315e467a15fa5fccd1c258", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "397c5853b463b86a5d2c3879eacce01393135a9ed0315e467a15fa5fccd1c258", kill_on_drop: false }` [INFO] [stdout] 397c5853b463b86a5d2c3879eacce01393135a9ed0315e467a15fa5fccd1c258