[INFO] cloning repository https://github.com/jheloper/rust-playground [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jheloper/rust-playground" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjheloper%2Frust-playground", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjheloper%2Frust-playground'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 491b964c424a527ce070fbe760b201e4514f7d2d [INFO] checking jheloper/rust-playground against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjheloper%2Frust-playground" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jheloper/rust-playground 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/jheloper/rust-playground [INFO] finished tweaking git repo https://github.com/jheloper/rust-playground [INFO] tweaked toml for git repo https://github.com/jheloper/rust-playground written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/jheloper/rust-playground 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-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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] 9b9a6f64fdade4ca3bff32c7b3bf77acbc327ec2d1c4cae5deecc47d231d152d [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" "9b9a6f64fdade4ca3bff32c7b3bf77acbc327ec2d1c4cae5deecc47d231d152d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b9a6f64fdade4ca3bff32c7b3bf77acbc327ec2d1c4cae5deecc47d231d152d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b9a6f64fdade4ca3bff32c7b3bf77acbc327ec2d1c4cae5deecc47d231d152d", kill_on_drop: false }` [INFO] [stdout] 9b9a6f64fdade4ca3bff32c7b3bf77acbc327ec2d1c4cae5deecc47d231d152d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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] c51a8fcf2785982b097eb21ad1a1b7bee160241982f3428591d4b408d4120e6c [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" "c51a8fcf2785982b097eb21ad1a1b7bee160241982f3428591d4b408d4120e6c", kill_on_drop: false }` [INFO] [stderr] Checking rust-playground v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/function_example.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let x = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reference_to_nothing` [INFO] [stdout] --> src/reference_example.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let reference_to_nothing = no_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: `some_string` [INFO] [stdout] --> src/reference_example.rs:53:11 [INFO] [stdout] | [INFO] [stdout] 53 | fn change(some_string: &String) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vector1` [INFO] [stdout] --> src/collection_example.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let vector1: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string1` [INFO] [stdout] --> src/collection_example.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut string1 = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_example.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guess1` [INFO] [stdout] --> src/error_example.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let guess1 = Guess::new(101); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_guess1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/function_example.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let x = 10; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reference_to_nothing` [INFO] [stdout] --> src/reference_example.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let reference_to_nothing = no_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: `some_string` [INFO] [stdout] --> src/reference_example.rs:53:11 [INFO] [stdout] | [INFO] [stdout] 53 | fn change(some_string: &String) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vector1` [INFO] [stdout] --> src/collection_example.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let vector1: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string1` [INFO] [stdout] --> src/collection_example.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut string1 = String::new(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/error_example.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let f = match f { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `guess1` [INFO] [stdout] --> src/error_example.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let guess1 = Guess::new(101); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_guess1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reference_example.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut s6 = String::from("hello"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reference_example.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let mut s6 = String::from("hello"); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collection_example.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut vector4 = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collection_example.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut string1 = String::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collection_example.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut vector4 = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/collection_example.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut string1 = String::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_variable_and_mutability` [INFO] [stdout] --> src/variable_and_mutability_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_variable_and_mutability() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_data_type` [INFO] [stdout] --> src/data_type_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_data_type() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_function` [INFO] [stdout] --> src/function_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_function() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `another_function` [INFO] [stdout] --> src/function_example.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn another_function(x: i32, y: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_variable_and_mutability` [INFO] [stdout] --> src/variable_and_mutability_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_variable_and_mutability() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `block_expression` [INFO] [stdout] --> src/function_example.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn block_expression() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `return_ten` [INFO] [stdout] --> src/function_example.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn return_ten() -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_data_type` [INFO] [stdout] --> src/data_type_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_data_type() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_control_flow` [INFO] [stdout] --> src/control_flow_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_control_flow() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_function` [INFO] [stdout] --> src/function_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_function() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_module` [INFO] [stdout] --> src/module_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_module() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `another_function` [INFO] [stdout] --> src/function_example.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn another_function(x: i32, y: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_ownership` [INFO] [stdout] --> src/ownership_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `block_expression` [INFO] [stdout] --> src/function_example.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn block_expression() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `takes_ownership` [INFO] [stdout] --> src/ownership_example.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn takes_ownership(some_string: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `return_ten` [INFO] [stdout] --> src/function_example.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn return_ten() -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_control_flow` [INFO] [stdout] --> src/control_flow_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_control_flow() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `makes_copy` [INFO] [stdout] --> src/ownership_example.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn makes_copy(some_integer: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gives_ownership` [INFO] [stdout] --> src/ownership_example.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn gives_ownership() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_module` [INFO] [stdout] --> src/module_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_module() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_ownership` [INFO] [stdout] --> src/ownership_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_ownership() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `takes_and_gives_back` [INFO] [stdout] --> src/ownership_example.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn takes_and_gives_back(a_string: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_reference` [INFO] [stdout] --> src/reference_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_reference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_length` [INFO] [stdout] --> src/reference_example.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn calculate_length(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `change` [INFO] [stdout] --> src/reference_example.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn change(some_string: &String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `change_mutable` [INFO] [stdout] --> src/reference_example.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn change_mutable(some_string: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `no_dangle` [INFO] [stdout] --> src/reference_example.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn no_dangle() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_slices` [INFO] [stdout] --> src/slice_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_slices() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `first_word` [INFO] [stdout] --> src/slice_example.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn first_word(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `first_word_slices` [INFO] [stdout] --> src/slice_example.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn first_word_slices(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `second_word_slices` [INFO] [stdout] --> src/slice_example.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn second_word_slices(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_struct` [INFO] [stdout] --> src/struct_example.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn example_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_user` [INFO] [stdout] --> src/struct_example.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn build_user(email: String, username: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_tuple_struct` [INFO] [stdout] --> src/struct_example.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn example_tuple_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_struct_rectangles` [INFO] [stdout] --> src/struct_rectangles_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_struct_rectangles() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_area` [INFO] [stdout] --> src/struct_rectangles_example.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn calculate_area(length: u32, width: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_area_by_tuple` [INFO] [stdout] --> src/struct_rectangles_example.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn calculate_area_by_tuple(dimensions: (u32, u32)) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_area_by_struct` [INFO] [stdout] --> src/struct_rectangles_example.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn calculate_area_by_struct(rectangle: &Rectangle) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `takes_ownership` [INFO] [stdout] --> src/ownership_example.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn takes_ownership(some_string: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `makes_copy` [INFO] [stdout] --> src/ownership_example.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn makes_copy(some_integer: i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gives_ownership` [INFO] [stdout] --> src/ownership_example.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn gives_ownership() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `takes_and_gives_back` [INFO] [stdout] --> src/ownership_example.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn takes_and_gives_back(a_string: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_reference` [INFO] [stdout] --> src/reference_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_reference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_length` [INFO] [stdout] --> src/reference_example.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn calculate_length(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `change` [INFO] [stdout] --> src/reference_example.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn change(some_string: &String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `change_mutable` [INFO] [stdout] --> src/reference_example.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn change_mutable(some_string: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `no_dangle` [INFO] [stdout] --> src/reference_example.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn no_dangle() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_slices` [INFO] [stdout] --> src/slice_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_slices() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `first_word` [INFO] [stdout] --> src/slice_example.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn first_word(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `first_word_slices` [INFO] [stdout] --> src/slice_example.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn first_word_slices(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `second_word_slices` [INFO] [stdout] --> src/slice_example.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn second_word_slices(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_struct` [INFO] [stdout] --> src/struct_example.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn example_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_user` [INFO] [stdout] --> src/struct_example.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn build_user(email: String, username: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_tuple_struct` [INFO] [stdout] --> src/struct_example.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn example_tuple_struct() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_struct_rectangles` [INFO] [stdout] --> src/struct_rectangles_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_struct_rectangles() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_area` [INFO] [stdout] --> src/struct_rectangles_example.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn calculate_area(length: u32, width: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_area_by_tuple` [INFO] [stdout] --> src/struct_rectangles_example.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn calculate_area_by_tuple(dimensions: (u32, u32)) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calculate_area_by_struct` [INFO] [stdout] --> src/struct_rectangles_example.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn calculate_area_by_struct(rectangle: &Rectangle) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Rectangle` [INFO] [stdout] --> src/method_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_area` [INFO] [stdout] --> src/method_example.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn calculate_area(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/method_example.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | 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/method_example.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn square(size: u32) -> Rectangle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_method` [INFO] [stdout] --> src/method_example.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn example_method() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_enums` [INFO] [stdout] --> src/enums_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_enums() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V4` [INFO] [stdout] --> src/enums_example.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | V4, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V6` [INFO] [stdout] --> src/enums_example.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | V6, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V4` [INFO] [stdout] --> src/enums_example.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | V4(u8, u8, u8, u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V6` [INFO] [stdout] --> src/enums_example.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | V6(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> src/enums_example.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Rectangle` [INFO] [stdout] --> src/method_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/enums_example.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_area` [INFO] [stdout] --> src/method_example.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | fn calculate_area(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/enums_example.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/method_example.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeColor` [INFO] [stdout] --> src/enums_example.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `call` [INFO] [stdout] --> src/enums_example.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `square` [INFO] [stdout] --> src/method_example.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn square(size: u32) -> Rectangle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_match` [INFO] [stdout] --> src/match_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_match() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_method` [INFO] [stdout] --> src/method_example.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn example_method() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alabama` [INFO] [stdout] --> src/match_example.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_enums` [INFO] [stdout] --> src/enums_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_enums() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alaska` [INFO] [stdout] --> src/match_example.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V4` [INFO] [stdout] --> src/enums_example.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | V4, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Washington` [INFO] [stdout] --> src/match_example.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | Washington, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ohio` [INFO] [stdout] --> src/match_example.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | Ohio, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V6` [INFO] [stdout] --> src/enums_example.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | V6, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Coin` [INFO] [stdout] --> src/match_example.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V4` [INFO] [stdout] --> src/enums_example.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | V4(u8, u8, u8, u8), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `value_in_cents` [INFO] [stdout] --> src/match_example.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn value_in_cents(coin: Coin) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `V6` [INFO] [stdout] --> src/enums_example.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | V6(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `plus_one` [INFO] [stdout] --> src/match_example.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn plus_one(x: Option) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_collection` [INFO] [stdout] --> src/collection_example.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn example_collection() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Quit` [INFO] [stdout] --> src/enums_example.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Move` [INFO] [stdout] --> src/enums_example.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Int` [INFO] [stdout] --> src/collection_example.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | Int(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/enums_example.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | Write(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Float` [INFO] [stdout] --> src/collection_example.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 170 | Float(f64), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChangeColor` [INFO] [stdout] --> src/enums_example.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | ChangeColor(i32, i32, i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Text` [INFO] [stdout] --> src/collection_example.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | Text(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `call` [INFO] [stdout] --> src/enums_example.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_error` [INFO] [stdout] --> src/error_example.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn example_error() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_match` [INFO] [stdout] --> src/match_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_match() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_username_from_file` [INFO] [stdout] --> src/error_example.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alabama` [INFO] [stdout] --> src/match_example.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_username_from_file2` [INFO] [stdout] --> src/error_example.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn read_username_from_file2() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Alaska` [INFO] [stdout] --> src/match_example.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | Alaska, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Guess` [INFO] [stdout] --> src/error_example.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct Guess { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Washington` [INFO] [stdout] --> src/match_example.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | Washington, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/error_example.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn new(value: u32) -> Guess { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ohio` [INFO] [stdout] --> src/match_example.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | Ohio, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `value` [INFO] [stdout] --> src/error_example.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn value(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Coin` [INFO] [stdout] --> src/match_example.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_generic` [INFO] [stdout] --> src/generic_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_generic() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `value_in_cents` [INFO] [stdout] --> src/match_example.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn value_in_cents(coin: Coin) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `largest` [INFO] [stdout] --> src/generic_example.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn largest(list: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `largest_i32` [INFO] [stdout] --> src/generic_example.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn largest_i32(list: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `plus_one` [INFO] [stdout] --> src/match_example.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn plus_one(x: Option) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `largest_char` [INFO] [stdout] --> src/generic_example.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn largest_char(list: &[char]) -> char { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_collection` [INFO] [stdout] --> src/collection_example.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn example_collection() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x` [INFO] [stdout] --> src/generic_example.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Int` [INFO] [stdout] --> src/collection_example.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | Int(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mixup` [INFO] [stdout] --> src/generic_example.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | fn mixup(self, other: Point2) -> Point2 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Float` [INFO] [stdout] --> src/collection_example.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 170 | Float(f64), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Text` [INFO] [stdout] --> src/collection_example.rs:171:5 [INFO] [stdout] | [INFO] [stdout] 171 | Text(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_error` [INFO] [stdout] --> src/error_example.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn example_error() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_username_from_file` [INFO] [stdout] --> src/error_example.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn read_username_from_file() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_username_from_file2` [INFO] [stdout] --> src/error_example.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn read_username_from_file2() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Guess` [INFO] [stdout] --> src/error_example.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct Guess { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/error_example.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn new(value: u32) -> Guess { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `value` [INFO] [stdout] --> src/error_example.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn value(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `example_generic` [INFO] [stdout] --> src/generic_example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn example_generic() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `largest` [INFO] [stdout] --> src/generic_example.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn largest(list: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `largest_i32` [INFO] [stdout] --> src/generic_example.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn largest_i32(list: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `largest_char` [INFO] [stdout] --> src/generic_example.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn largest_char(list: &[char]) -> char { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `x` [INFO] [stdout] --> src/generic_example.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `mixup` [INFO] [stdout] --> src/generic_example.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | fn mixup(self, other: Point2) -> Point2 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 78 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.99s [INFO] [stdout] warning: 78 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c51a8fcf2785982b097eb21ad1a1b7bee160241982f3428591d4b408d4120e6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c51a8fcf2785982b097eb21ad1a1b7bee160241982f3428591d4b408d4120e6c", kill_on_drop: false }` [INFO] [stdout] c51a8fcf2785982b097eb21ad1a1b7bee160241982f3428591d4b408d4120e6c