[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] building jheloper/rust-playground against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjheloper%2Frust-playground" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jheloper/rust-playground on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-4-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c8a0dd3c181e69c473225caad0b2fde8a0fe0d10bea8e17fe425b1693a74f1d1 [INFO] running `Command { std: "docker" "start" "-a" "c8a0dd3c181e69c473225caad0b2fde8a0fe0d10bea8e17fe425b1693a74f1d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c8a0dd3c181e69c473225caad0b2fde8a0fe0d10bea8e17fe425b1693a74f1d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8a0dd3c181e69c473225caad0b2fde8a0fe0d10bea8e17fe425b1693a74f1d1", kill_on_drop: false }` [INFO] [stdout] c8a0dd3c181e69c473225caad0b2fde8a0fe0d10bea8e17fe425b1693a74f1d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e366432ac5674d540b1b0c304f2cea0a0484c78583b1bc876b59d5a103d355e4 [INFO] running `Command { std: "docker" "start" "-a" "e366432ac5674d540b1b0c304f2cea0a0484c78583b1bc876b59d5a103d355e4", 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: 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: 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: 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: 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: function `example_variable_and_mutability` is never used [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 `example_data_type` is never used [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 `example_function` is never used [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 `another_function` is never used [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 `block_expression` is never used [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 `return_ten` is never used [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 `example_control_flow` is never used [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 `example_module` is never used [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 `example_ownership` is never used [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 `takes_ownership` is never used [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 `makes_copy` is never used [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 `gives_ownership` is never used [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 `takes_and_gives_back` is never used [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 `example_reference` is never used [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 `calculate_length` is never used [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 `change` is never used [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 `change_mutable` is never used [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 `no_dangle` is never used [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 `example_slices` is never used [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 `first_word` is never used [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 `first_word_slices` is never used [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 `second_word_slices` is never used [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: struct `User` is never constructed [INFO] [stdout] --> src/struct_example.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_struct` is never used [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 `build_user` is never used [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: struct `Color` is never constructed [INFO] [stdout] --> src/struct_example.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct Color(i32, i32, i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/struct_example.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | struct Point(i32, i32, i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_tuple_struct` is never used [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 `example_struct_rectangles` is never used [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 `calculate_area` is never used [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 `calculate_area_by_tuple` is never used [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: struct `Rectangle` is never constructed [INFO] [stdout] --> src/struct_rectangles_example.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_area_by_struct` is never used [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 `Rectangle` is never constructed [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 items `calculate_area`, `can_hold`, and `square` are never used [INFO] [stdout] --> src/method_example.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 7 | fn calculate_area(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn square(size: u32) -> Rectangle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_method` is never used [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 `example_enums` is never used [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: enum `IpAddrKind` is never used [INFO] [stdout] --> src/enums_example.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | enum IpAddrKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IpAddr` is never constructed [INFO] [stdout] --> src/enums_example.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct IpAddr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddrEnum` is never used [INFO] [stdout] --> src/enums_example.rs:68:6 [INFO] [stdout] | [INFO] [stdout] 68 | enum IpAddrEnum { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/enums_example.rs:74:6 [INFO] [stdout] | [INFO] [stdout] 74 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call` is never used [INFO] [stdout] --> src/enums_example.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 81 | impl Message { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 82 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_match` is never used [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: enum `UsState` is never used [INFO] [stdout] --> src/match_example.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | enum UsState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [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 `value_in_cents` is never used [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 `plus_one` is never used [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 `example_collection` is never used [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: enum `SpreadsheetCell` is never used [INFO] [stdout] --> src/collection_example.rs:168:6 [INFO] [stdout] | [INFO] [stdout] 168 | enum SpreadsheetCell { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_error` is never used [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 `read_username_from_file` is never used [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 `read_username_from_file2` is never used [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 `Guess` is never constructed [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 items `new` and `value` are never used [INFO] [stdout] --> src/error_example.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl Guess { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 81 | pub fn new(value: u32) -> Guess { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn value(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_generic` is never used [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 `largest` is never used [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 `largest_i32` is never used [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 `largest_char` is never used [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: struct `Point` is never constructed [INFO] [stdout] --> src/generic_example.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> src/generic_example.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl Point { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 87 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point2` is never constructed [INFO] [stdout] --> src/generic_example.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct Point2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mixup` is never used [INFO] [stdout] --> src/generic_example.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 98 | impl Point2 { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 99 | fn mixup(self, other: Point2) -> Point2 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `headline` and `location` are never read [INFO] [stdout] --> src/trait_example.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | struct NewsArticle { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 58 | pub headline: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | pub location: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `content`, `reply`, and `retweet` are never read [INFO] [stdout] --> src/trait_example.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 70 | struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 71 | pub username: String, [INFO] [stdout] 72 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 73 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 74 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/trait_example.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 83 | struct Feed { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 84 | pub username: String, [INFO] [stdout] 85 | pub content: String [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "e366432ac5674d540b1b0c304f2cea0a0484c78583b1bc876b59d5a103d355e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e366432ac5674d540b1b0c304f2cea0a0484c78583b1bc876b59d5a103d355e4", kill_on_drop: false }` [INFO] [stdout] e366432ac5674d540b1b0c304f2cea0a0484c78583b1bc876b59d5a103d355e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c80d7d56d563176a13e199d8f202d5d7080f2e7098beb1a31a39e1155b5af141 [INFO] running `Command { std: "docker" "start" "-a" "c80d7d56d563176a13e199d8f202d5d7080f2e7098beb1a31a39e1155b5af141", 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: 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: 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: 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: 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: function `example_variable_and_mutability` is never used [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 `example_data_type` is never used [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 `example_function` is never used [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 `another_function` is never used [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 `block_expression` is never used [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 `return_ten` is never used [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 `example_control_flow` is never used [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 `example_module` is never used [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 `example_ownership` is never used [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 `takes_ownership` is never used [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 `makes_copy` is never used [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 `gives_ownership` is never used [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 `takes_and_gives_back` is never used [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 `example_reference` is never used [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 `calculate_length` is never used [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 `change` is never used [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 `change_mutable` is never used [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 `no_dangle` is never used [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 `example_slices` is never used [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 `first_word` is never used [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 `first_word_slices` is never used [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 `second_word_slices` is never used [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: struct `User` is never constructed [INFO] [stdout] --> src/struct_example.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_struct` is never used [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 `build_user` is never used [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: struct `Color` is never constructed [INFO] [stdout] --> src/struct_example.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct Color(i32, i32, i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/struct_example.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | struct Point(i32, i32, i32); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_tuple_struct` is never used [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 `example_struct_rectangles` is never used [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 `calculate_area` is never used [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 `calculate_area_by_tuple` is never used [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: struct `Rectangle` is never constructed [INFO] [stdout] --> src/struct_rectangles_example.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_area_by_struct` is never used [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 `Rectangle` is never constructed [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 items `calculate_area`, `can_hold`, and `square` are never used [INFO] [stdout] --> src/method_example.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 7 | fn calculate_area(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | fn square(size: u32) -> Rectangle { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_method` is never used [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 `example_enums` is never used [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: enum `IpAddrKind` is never used [INFO] [stdout] --> src/enums_example.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | enum IpAddrKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IpAddr` is never constructed [INFO] [stdout] --> src/enums_example.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | struct IpAddr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddrEnum` is never used [INFO] [stdout] --> src/enums_example.rs:68:6 [INFO] [stdout] | [INFO] [stdout] 68 | enum IpAddrEnum { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/enums_example.rs:74:6 [INFO] [stdout] | [INFO] [stdout] 74 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call` is never used [INFO] [stdout] --> src/enums_example.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 81 | impl Message { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 82 | fn call(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_match` is never used [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: enum `UsState` is never used [INFO] [stdout] --> src/match_example.rs:49:6 [INFO] [stdout] | [INFO] [stdout] 49 | enum UsState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [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 `value_in_cents` is never used [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 `plus_one` is never used [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 `example_collection` is never used [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: enum `SpreadsheetCell` is never used [INFO] [stdout] --> src/collection_example.rs:168:6 [INFO] [stdout] | [INFO] [stdout] 168 | enum SpreadsheetCell { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_error` is never used [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 `read_username_from_file` is never used [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 `read_username_from_file2` is never used [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 `Guess` is never constructed [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 items `new` and `value` are never used [INFO] [stdout] --> src/error_example.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl Guess { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 81 | pub fn new(value: u32) -> Guess { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn value(&self) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `example_generic` is never used [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 `largest` is never used [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 `largest_i32` is never used [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 `largest_char` is never used [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: struct `Point` is never constructed [INFO] [stdout] --> src/generic_example.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 81 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> src/generic_example.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl Point { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 87 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point2` is never constructed [INFO] [stdout] --> src/generic_example.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct Point2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mixup` is never used [INFO] [stdout] --> src/generic_example.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 98 | impl Point2 { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 99 | fn mixup(self, other: Point2) -> Point2 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `headline` and `location` are never read [INFO] [stdout] --> src/trait_example.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 57 | struct NewsArticle { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 58 | pub headline: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 59 | pub location: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `content`, `reply`, and `retweet` are never read [INFO] [stdout] --> src/trait_example.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 70 | struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 71 | pub username: String, [INFO] [stdout] 72 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 73 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 74 | pub retweet: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content` is never read [INFO] [stdout] --> src/trait_example.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 83 | struct Feed { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 84 | pub username: String, [INFO] [stdout] 85 | pub content: String [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "c80d7d56d563176a13e199d8f202d5d7080f2e7098beb1a31a39e1155b5af141", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c80d7d56d563176a13e199d8f202d5d7080f2e7098beb1a31a39e1155b5af141", kill_on_drop: false }` [INFO] [stdout] c80d7d56d563176a13e199d8f202d5d7080f2e7098beb1a31a39e1155b5af141