[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] testing jheloper/rust-playground against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjheloper%2Frust-playground" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jheloper/rust-playground on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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-1/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" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 008122a68e04f7678478add424ef88101d42977c782455f839eb2587b624a72c [INFO] running `Command { std: "docker" "start" "-a" "008122a68e04f7678478add424ef88101d42977c782455f839eb2587b624a72c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "008122a68e04f7678478add424ef88101d42977c782455f839eb2587b624a72c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "008122a68e04f7678478add424ef88101d42977c782455f839eb2587b624a72c", kill_on_drop: false }` [INFO] [stdout] 008122a68e04f7678478add424ef88101d42977c782455f839eb2587b624a72c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8567d04bbc4aef1a4d7e8bde393a71c4f7f8c0be4da2ac42329b7620a5244dbe [INFO] running `Command { std: "docker" "start" "-a" "8567d04bbc4aef1a4d7e8bde393a71c4f7f8c0be4da2ac42329b7620a5244dbe", kill_on_drop: false }` [INFO] [stderr] Compiling 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:13 [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/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: `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_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_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_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: field is never read: `username` [INFO] [stdout] --> src/struct_example.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | username: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/struct_example.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `email` [INFO] [stdout] --> src/struct_example.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | email: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/struct_example.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sign_in_count` [INFO] [stdout] --> src/struct_example.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/struct_example.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `active` [INFO] [stdout] --> src/struct_example.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | active: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/struct_example.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `length` [INFO] [stdout] --> src/struct_rectangles_example.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/struct_rectangles_example.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/struct_rectangles_example.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | width: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/struct_rectangles_example.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IpAddrKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IpAddrKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `kind` [INFO] [stdout] --> src/enums_example.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | kind: IpAddrKind, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `address` [INFO] [stdout] --> src/enums_example.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IpAddrEnum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IpAddrEnum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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_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: 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] note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/match_example.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(Debug)] // So we can inspect the state in a minute [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/match_example.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(Debug)] // So we can inspect the state in a minute [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/match_example.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(Debug)] // So we can inspect the state in a minute [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/match_example.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(Debug)] // So we can inspect the state in a minute [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: `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: `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: `Int` [INFO] [stdout] --> src/collection_example.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | Int(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/collection_example.rs:167:10 [INFO] [stdout] | [INFO] [stdout] 167 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/collection_example.rs:167:10 [INFO] [stdout] | [INFO] [stdout] 167 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/collection_example.rs:167:10 [INFO] [stdout] | [INFO] [stdout] 167 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `x` [INFO] [stdout] --> src/generic_example.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | x: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/generic_example.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 80 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/generic_example.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | y: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/generic_example.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 80 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `x` [INFO] [stdout] --> src/generic_example.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | x: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Point2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/generic_example.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/generic_example.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | y: U, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Point2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/generic_example.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `headline` [INFO] [stdout] --> src/trait_example.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub headline: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `location` [INFO] [stdout] --> src/trait_example.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub location: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> src/trait_example.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub content: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `reply` [INFO] [stdout] --> src/trait_example.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub reply: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `retweet` [INFO] [stdout] --> src/trait_example.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> src/trait_example.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub content: String [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 96 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.91s [INFO] running `Command { std: "docker" "inspect" "8567d04bbc4aef1a4d7e8bde393a71c4f7f8c0be4da2ac42329b7620a5244dbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8567d04bbc4aef1a4d7e8bde393a71c4f7f8c0be4da2ac42329b7620a5244dbe", kill_on_drop: false }` [INFO] [stdout] 8567d04bbc4aef1a4d7e8bde393a71c4f7f8c0be4da2ac42329b7620a5244dbe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 55228409e474c9f4b3f3096c24fc335e32fdaa98f9ca56d2994e743fabbe8463 [INFO] running `Command { std: "docker" "start" "-a" "55228409e474c9f4b3f3096c24fc335e32fdaa98f9ca56d2994e743fabbe8463", kill_on_drop: false }` [INFO] [stderr] Compiling 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:13 [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/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: `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_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_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_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: field is never read: `username` [INFO] [stdout] --> src/struct_example.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | username: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/struct_example.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `email` [INFO] [stdout] --> src/struct_example.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | email: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/struct_example.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `sign_in_count` [INFO] [stdout] --> src/struct_example.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | sign_in_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/struct_example.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `active` [INFO] [stdout] --> src/struct_example.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | active: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/struct_example.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `length` [INFO] [stdout] --> src/struct_rectangles_example.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/struct_rectangles_example.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/struct_rectangles_example.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | width: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/struct_rectangles_example.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IpAddrKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IpAddrKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `kind` [INFO] [stdout] --> src/enums_example.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | kind: IpAddrKind, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `address` [INFO] [stdout] --> src/enums_example.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IpAddrEnum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IpAddrEnum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/enums_example.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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_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: 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] note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/match_example.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(Debug)] // So we can inspect the state in a minute [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/match_example.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(Debug)] // So we can inspect the state in a minute [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/match_example.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(Debug)] // So we can inspect the state in a minute [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/match_example.rs:48:10 [INFO] [stdout] | [INFO] [stdout] 48 | #[derive(Debug)] // So we can inspect the state in a minute [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: `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: `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: `Int` [INFO] [stdout] --> src/collection_example.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | Int(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/collection_example.rs:167:10 [INFO] [stdout] | [INFO] [stdout] 167 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/collection_example.rs:167:10 [INFO] [stdout] | [INFO] [stdout] 167 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/collection_example.rs:167:10 [INFO] [stdout] | [INFO] [stdout] 167 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `x` [INFO] [stdout] --> src/generic_example.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | x: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/generic_example.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 80 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/generic_example.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | y: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/generic_example.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 80 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `x` [INFO] [stdout] --> src/generic_example.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | x: T, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Point2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/generic_example.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/generic_example.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | y: U, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Point2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/generic_example.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: field is never read: `headline` [INFO] [stdout] --> src/trait_example.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub headline: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `location` [INFO] [stdout] --> src/trait_example.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub location: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> src/trait_example.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub content: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `reply` [INFO] [stdout] --> src/trait_example.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub reply: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `retweet` [INFO] [stdout] --> src/trait_example.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `content` [INFO] [stdout] --> src/trait_example.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | pub content: String [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 96 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.53s [INFO] running `Command { std: "docker" "inspect" "55228409e474c9f4b3f3096c24fc335e32fdaa98f9ca56d2994e743fabbe8463", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55228409e474c9f4b3f3096c24fc335e32fdaa98f9ca56d2994e743fabbe8463", kill_on_drop: false }` [INFO] [stdout] 55228409e474c9f4b3f3096c24fc335e32fdaa98f9ca56d2994e743fabbe8463 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c27af2b0e2b0bb2c731e31acc87ca54315fd21b61ac7824b7b77477c68c59b5d [INFO] running `Command { std: "docker" "start" "-a" "c27af2b0e2b0bb2c731e31acc87ca54315fd21b61ac7824b7b77477c68c59b5d", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/function_example.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | let x = 10; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `reference_to_nothing` [INFO] [stderr] --> src/reference_example.rs:45:9 [INFO] [stderr] | [INFO] [stderr] 45 | let reference_to_nothing = no_dangle(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reference_to_nothing` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `some_string` [INFO] [stderr] --> src/reference_example.rs:53:11 [INFO] [stderr] | [INFO] [stderr] 53 | fn change(some_string: &String) { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_string` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `vector1` [INFO] [stderr] --> src/collection_example.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | let vector1: Vec = Vec::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vector1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `string1` [INFO] [stderr] --> src/collection_example.rs:59:13 [INFO] [stderr] | [INFO] [stderr] 59 | let mut string1 = String::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string1` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `f` [INFO] [stderr] --> src/error_example.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | let f = match f { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `guess1` [INFO] [stderr] --> src/error_example.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | let guess1 = Guess::new(101); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_guess1` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/reference_example.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 35 | let mut s6 = String::from("hello"); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/collection_example.rs:34:9 [INFO] [stderr] | [INFO] [stderr] 34 | let mut vector4 = vec![1, 2, 3, 4, 5]; [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/collection_example.rs:59:9 [INFO] [stderr] | [INFO] [stderr] 59 | let mut string1 = String::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_variable_and_mutability` [INFO] [stderr] --> src/variable_and_mutability_example.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example_variable_and_mutability() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_data_type` [INFO] [stderr] --> src/data_type_example.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example_data_type() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_function` [INFO] [stderr] --> src/function_example.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example_function() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `another_function` [INFO] [stderr] --> src/function_example.rs:9:4 [INFO] [stderr] | [INFO] [stderr] 9 | fn another_function(x: i32, y: i32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `block_expression` [INFO] [stderr] --> src/function_example.rs:16:4 [INFO] [stderr] | [INFO] [stderr] 16 | fn block_expression() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `return_ten` [INFO] [stderr] --> src/function_example.rs:27:4 [INFO] [stderr] | [INFO] [stderr] 27 | fn return_ten() -> i32 { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_control_flow` [INFO] [stderr] --> src/control_flow_example.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example_control_flow() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_module` [INFO] [stderr] --> src/module_example.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example_module() { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_ownership` [INFO] [stderr] --> src/ownership_example.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example_ownership() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `takes_ownership` [INFO] [stderr] --> src/ownership_example.rs:47:4 [INFO] [stderr] | [INFO] [stderr] 47 | fn takes_ownership(some_string: String) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `makes_copy` [INFO] [stderr] --> src/ownership_example.rs:51:4 [INFO] [stderr] | [INFO] [stderr] 51 | fn makes_copy(some_integer: i32) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `gives_ownership` [INFO] [stderr] --> src/ownership_example.rs:55:4 [INFO] [stderr] | [INFO] [stderr] 55 | fn gives_ownership() -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `takes_and_gives_back` [INFO] [stderr] --> src/ownership_example.rs:60:4 [INFO] [stderr] | [INFO] [stderr] 60 | fn takes_and_gives_back(a_string: String) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_reference` [INFO] [stderr] --> src/reference_example.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example_reference() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `calculate_length` [INFO] [stderr] --> src/reference_example.rs:48:4 [INFO] [stderr] | [INFO] [stderr] 48 | fn calculate_length(s: &String) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `change` [INFO] [stderr] --> src/reference_example.rs:53:4 [INFO] [stderr] | [INFO] [stderr] 53 | fn change(some_string: &String) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `change_mutable` [INFO] [stderr] --> src/reference_example.rs:58:4 [INFO] [stderr] | [INFO] [stderr] 58 | fn change_mutable(some_string: &mut String) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `no_dangle` [INFO] [stderr] --> src/reference_example.rs:68:4 [INFO] [stderr] | [INFO] [stderr] 68 | fn no_dangle() -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_slices` [INFO] [stderr] --> src/slice_example.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example_slices() { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `first_word` [INFO] [stderr] --> src/slice_example.rs:45:4 [INFO] [stderr] | [INFO] [stderr] 45 | fn first_word(s: &String) -> usize { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `first_word_slices` [INFO] [stderr] --> src/slice_example.rs:58:4 [INFO] [stderr] | [INFO] [stderr] 58 | fn first_word_slices(s: &str) -> &str { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `second_word_slices` [INFO] [stderr] --> src/slice_example.rs:71:4 [INFO] [stderr] | [INFO] [stderr] 71 | fn second_word_slices(s: &str) -> &str { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `username` [INFO] [stderr] --> src/struct_example.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | username: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/struct_example.rs:1:10 [INFO] [stderr] | [INFO] [stderr] 1 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `email` [INFO] [stderr] --> src/struct_example.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | email: String, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/struct_example.rs:1:10 [INFO] [stderr] | [INFO] [stderr] 1 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `sign_in_count` [INFO] [stderr] --> src/struct_example.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | sign_in_count: u64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/struct_example.rs:1:10 [INFO] [stderr] | [INFO] [stderr] 1 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `active` [INFO] [stderr] --> src/struct_example.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | active: bool, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/struct_example.rs:1:10 [INFO] [stderr] | [INFO] [stderr] 1 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_struct` [INFO] [stderr] --> src/struct_example.rs:9:8 [INFO] [stderr] | [INFO] [stderr] 9 | pub fn example_struct() { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `build_user` [INFO] [stderr] --> src/struct_example.rs:41:4 [INFO] [stderr] | [INFO] [stderr] 41 | fn build_user(email: String, username: String) -> User { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_tuple_struct` [INFO] [stderr] --> src/struct_example.rs:57:4 [INFO] [stderr] | [INFO] [stderr] 57 | fn example_tuple_struct() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_struct_rectangles` [INFO] [stderr] --> src/struct_rectangles_example.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example_struct_rectangles() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `calculate_area` [INFO] [stderr] --> src/struct_rectangles_example.rs:29:4 [INFO] [stderr] | [INFO] [stderr] 29 | fn calculate_area(length: u32, width: u32) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `calculate_area_by_tuple` [INFO] [stderr] --> src/struct_rectangles_example.rs:33:4 [INFO] [stderr] | [INFO] [stderr] 33 | fn calculate_area_by_tuple(dimensions: (u32, u32)) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `length` [INFO] [stderr] --> src/struct_rectangles_example.rs:41:5 [INFO] [stderr] | [INFO] [stderr] 41 | length: u32, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/struct_rectangles_example.rs:39:10 [INFO] [stderr] | [INFO] [stderr] 39 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `width` [INFO] [stderr] --> src/struct_rectangles_example.rs:42:5 [INFO] [stderr] | [INFO] [stderr] 42 | width: u32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/struct_rectangles_example.rs:39:10 [INFO] [stderr] | [INFO] [stderr] 39 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `calculate_area_by_struct` [INFO] [stderr] --> src/struct_rectangles_example.rs:45:4 [INFO] [stderr] | [INFO] [stderr] 45 | fn calculate_area_by_struct(rectangle: &Rectangle) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Rectangle` [INFO] [stderr] --> src/method_example.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | struct Rectangle { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `calculate_area` [INFO] [stderr] --> src/method_example.rs:7:8 [INFO] [stderr] | [INFO] [stderr] 7 | fn calculate_area(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `can_hold` [INFO] [stderr] --> src/method_example.rs:11:8 [INFO] [stderr] | [INFO] [stderr] 11 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `square` [INFO] [stderr] --> src/method_example.rs:15:8 [INFO] [stderr] | [INFO] [stderr] 15 | fn square(size: u32) -> Rectangle { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_method` [INFO] [stderr] --> src/method_example.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn example_method() { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_enums` [INFO] [stderr] --> src/enums_example.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example_enums() { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `V4` [INFO] [stderr] --> src/enums_example.rs:57:5 [INFO] [stderr] | [INFO] [stderr] 57 | V4, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] note: `IpAddrKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/enums_example.rs:55:10 [INFO] [stderr] | [INFO] [stderr] 55 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `V6` [INFO] [stderr] --> src/enums_example.rs:58:5 [INFO] [stderr] | [INFO] [stderr] 58 | V6, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] note: `IpAddrKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/enums_example.rs:55:10 [INFO] [stderr] | [INFO] [stderr] 55 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `kind` [INFO] [stderr] --> src/enums_example.rs:63:5 [INFO] [stderr] | [INFO] [stderr] 63 | kind: IpAddrKind, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/enums_example.rs:61:10 [INFO] [stderr] | [INFO] [stderr] 61 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `address` [INFO] [stderr] --> src/enums_example.rs:64:5 [INFO] [stderr] | [INFO] [stderr] 64 | address: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `IpAddr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/enums_example.rs:61:10 [INFO] [stderr] | [INFO] [stderr] 61 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `V4` [INFO] [stderr] --> src/enums_example.rs:69:5 [INFO] [stderr] | [INFO] [stderr] 69 | V4(u8, u8, u8, u8), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `IpAddrEnum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/enums_example.rs:67:10 [INFO] [stderr] | [INFO] [stderr] 67 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `V6` [INFO] [stderr] --> src/enums_example.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 70 | V6(String), [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `IpAddrEnum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/enums_example.rs:67:10 [INFO] [stderr] | [INFO] [stderr] 67 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Quit` [INFO] [stderr] --> src/enums_example.rs:75:5 [INFO] [stderr] | [INFO] [stderr] 75 | Quit, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/enums_example.rs:73:10 [INFO] [stderr] | [INFO] [stderr] 73 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Move` [INFO] [stderr] --> src/enums_example.rs:76:5 [INFO] [stderr] | [INFO] [stderr] 76 | Move { x: i32, y: i32 }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/enums_example.rs:73:10 [INFO] [stderr] | [INFO] [stderr] 73 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Write` [INFO] [stderr] --> src/enums_example.rs:77:5 [INFO] [stderr] | [INFO] [stderr] 77 | Write(String), [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/enums_example.rs:73:10 [INFO] [stderr] | [INFO] [stderr] 73 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `ChangeColor` [INFO] [stderr] --> src/enums_example.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | ChangeColor(i32, i32, i32), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/enums_example.rs:73:10 [INFO] [stderr] | [INFO] [stderr] 73 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `call` [INFO] [stderr] --> src/enums_example.rs:82:8 [INFO] [stderr] | [INFO] [stderr] 82 | fn call(&self) { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_match` [INFO] [stderr] --> src/match_example.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example_match() { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Alabama` [INFO] [stderr] --> src/match_example.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 50 | Alabama, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/match_example.rs:48:10 [INFO] [stderr] | [INFO] [stderr] 48 | #[derive(Debug)] // So we can inspect the state in a minute [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Alaska` [INFO] [stderr] --> src/match_example.rs:51:5 [INFO] [stderr] | [INFO] [stderr] 51 | Alaska, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/match_example.rs:48:10 [INFO] [stderr] | [INFO] [stderr] 48 | #[derive(Debug)] // So we can inspect the state in a minute [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Washington` [INFO] [stderr] --> src/match_example.rs:52:5 [INFO] [stderr] | [INFO] [stderr] 52 | Washington, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/match_example.rs:48:10 [INFO] [stderr] | [INFO] [stderr] 48 | #[derive(Debug)] // So we can inspect the state in a minute [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Ohio` [INFO] [stderr] --> src/match_example.rs:53:5 [INFO] [stderr] | [INFO] [stderr] 53 | Ohio, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/match_example.rs:48:10 [INFO] [stderr] | [INFO] [stderr] 48 | #[derive(Debug)] // So we can inspect the state in a minute [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `Coin` [INFO] [stderr] --> src/match_example.rs:56:6 [INFO] [stderr] | [INFO] [stderr] 56 | enum Coin { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `value_in_cents` [INFO] [stderr] --> src/match_example.rs:63:4 [INFO] [stderr] | [INFO] [stderr] 63 | fn value_in_cents(coin: Coin) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `plus_one` [INFO] [stderr] --> src/match_example.rs:78:4 [INFO] [stderr] | [INFO] [stderr] 78 | fn plus_one(x: Option) -> Option { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_collection` [INFO] [stderr] --> src/collection_example.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn example_collection() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Int` [INFO] [stderr] --> src/collection_example.rs:169:5 [INFO] [stderr] | [INFO] [stderr] 169 | Int(i32), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/collection_example.rs:167:10 [INFO] [stderr] | [INFO] [stderr] 167 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Float` [INFO] [stderr] --> src/collection_example.rs:170:5 [INFO] [stderr] | [INFO] [stderr] 170 | Float(f64), [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/collection_example.rs:167:10 [INFO] [stderr] | [INFO] [stderr] 167 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Text` [INFO] [stderr] --> src/collection_example.rs:171:5 [INFO] [stderr] | [INFO] [stderr] 171 | Text(String), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `SpreadsheetCell` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/collection_example.rs:167:10 [INFO] [stderr] | [INFO] [stderr] 167 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_error` [INFO] [stderr] --> src/error_example.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn example_error() { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `read_username_from_file` [INFO] [stderr] --> src/error_example.rs:48:4 [INFO] [stderr] | [INFO] [stderr] 48 | fn read_username_from_file() -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `read_username_from_file2` [INFO] [stderr] --> src/error_example.rs:63:4 [INFO] [stderr] | [INFO] [stderr] 63 | fn read_username_from_file2() -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Guess` [INFO] [stderr] --> src/error_example.rs:76:12 [INFO] [stderr] | [INFO] [stderr] 76 | pub struct Guess { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/error_example.rs:81:12 [INFO] [stderr] | [INFO] [stderr] 81 | pub fn new(value: u32) -> Guess { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `value` [INFO] [stderr] --> src/error_example.rs:89:12 [INFO] [stderr] | [INFO] [stderr] 89 | pub fn value(&self) -> u32 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `example_generic` [INFO] [stderr] --> src/generic_example.rs:1:8 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn example_generic() { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `largest` [INFO] [stderr] --> src/generic_example.rs:44:4 [INFO] [stderr] | [INFO] [stderr] 44 | fn largest(list: &[i32]) -> i32 { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `largest_i32` [INFO] [stderr] --> src/generic_example.rs:56:4 [INFO] [stderr] | [INFO] [stderr] 56 | fn largest_i32(list: &[i32]) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `largest_char` [INFO] [stderr] --> src/generic_example.rs:68:4 [INFO] [stderr] | [INFO] [stderr] 68 | fn largest_char(list: &[char]) -> char { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `x` [INFO] [stderr] --> src/generic_example.rs:82:5 [INFO] [stderr] | [INFO] [stderr] 82 | x: T, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/generic_example.rs:80:10 [INFO] [stderr] | [INFO] [stderr] 80 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `y` [INFO] [stderr] --> src/generic_example.rs:83:5 [INFO] [stderr] | [INFO] [stderr] 83 | y: T, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/generic_example.rs:80:10 [INFO] [stderr] | [INFO] [stderr] 80 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `x` [INFO] [stderr] --> src/generic_example.rs:87:8 [INFO] [stderr] | [INFO] [stderr] 87 | fn x(&self) -> &T { [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `x` [INFO] [stderr] --> src/generic_example.rs:94:5 [INFO] [stderr] | [INFO] [stderr] 94 | x: T, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Point2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/generic_example.rs:92:10 [INFO] [stderr] | [INFO] [stderr] 92 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `y` [INFO] [stderr] --> src/generic_example.rs:95:5 [INFO] [stderr] | [INFO] [stderr] 95 | y: U, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Point2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/generic_example.rs:92:10 [INFO] [stderr] | [INFO] [stderr] 92 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `mixup` [INFO] [stderr] --> src/generic_example.rs:99:8 [INFO] [stderr] | [INFO] [stderr] 99 | fn mixup(self, other: Point2) -> Point2 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `headline` [INFO] [stderr] --> src/trait_example.rs:58:5 [INFO] [stderr] | [INFO] [stderr] 58 | pub headline: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `location` [INFO] [stderr] --> src/trait_example.rs:59:5 [INFO] [stderr] | [INFO] [stderr] 59 | pub location: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `content` [INFO] [stderr] --> src/trait_example.rs:72:5 [INFO] [stderr] | [INFO] [stderr] 72 | pub content: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `reply` [INFO] [stderr] --> src/trait_example.rs:73:5 [INFO] [stderr] | [INFO] [stderr] 73 | pub reply: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `retweet` [INFO] [stderr] --> src/trait_example.rs:74:5 [INFO] [stderr] | [INFO] [stderr] 74 | pub retweet: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `content` [INFO] [stderr] --> src/trait_example.rs:85:5 [INFO] [stderr] | [INFO] [stderr] 85 | pub content: String [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rust-playground` (bin "rust-playground" test) generated 96 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rust_playground-fdaa2ffa1b145b19) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c27af2b0e2b0bb2c731e31acc87ca54315fd21b61ac7824b7b77477c68c59b5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c27af2b0e2b0bb2c731e31acc87ca54315fd21b61ac7824b7b77477c68c59b5d", kill_on_drop: false }` [INFO] [stdout] c27af2b0e2b0bb2c731e31acc87ca54315fd21b61ac7824b7b77477c68c59b5d