[INFO] cloning repository https://github.com/tigoni/rustler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tigoni/rustler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftigoni%2Frustler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftigoni%2Frustler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 68098e4acd84830156c96e1d8cbc3bdef753a66d [INFO] checking tigoni/rustler against master#90384941aae4ea38de00e4702b50757e9b882a19 for pr-138340 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftigoni%2Frustler" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tigoni/rustler on toolchain 90384941aae4ea38de00e4702b50757e9b882a19 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+90384941aae4ea38de00e4702b50757e9b882a19" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tigoni/rustler [INFO] finished tweaking git repo https://github.com/tigoni/rustler [INFO] tweaked toml for git repo https://github.com/tigoni/rustler written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/tigoni/rustler 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" "+90384941aae4ea38de00e4702b50757e9b882a19" "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-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+90384941aae4ea38de00e4702b50757e9b882a19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e8d7999abb8406436a2943f242c3f298ae9aef6c60b463a2bf4f5d57b54e64b1 [INFO] running `Command { std: "docker" "start" "-a" "e8d7999abb8406436a2943f242c3f298ae9aef6c60b463a2bf4f5d57b54e64b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e8d7999abb8406436a2943f242c3f298ae9aef6c60b463a2bf4f5d57b54e64b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8d7999abb8406436a2943f242c3f298ae9aef6c60b463a2bf4f5d57b54e64b1", kill_on_drop: false }` [INFO] [stdout] e8d7999abb8406436a2943f242c3f298ae9aef6c60b463a2bf4f5d57b54e64b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+90384941aae4ea38de00e4702b50757e9b882a19" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0828f4d74d9570c27538e2598e626c90961589fe12d978e8d7889ec550edd93a [INFO] running `Command { std: "docker" "start" "-a" "0828f4d74d9570c27538e2598e626c90961589fe12d978e8d7889ec550edd93a", kill_on_drop: false }` [INFO] [stderr] Checking basics2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::basics::variables::test_variables` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::basics::variables::test_variables; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::control::functions::test_functions` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::control::functions::test_functions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ownership::ownership::test_ownership` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::ownership::ownership::test_ownership; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ownership::referenced::test_references` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::ownership::referenced::test_references; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ownership::slices::first_word` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::ownership::slices::first_word; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ownership::slices::test_slices` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::ownership::slices::test_slices; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::structs::structs::test_structs` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::structs::structs::test_structs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/control/mod.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 86 | let output: i32 = loop { [INFO] [stdout] | ___________________________- [INFO] [stdout] 87 | | if counter <= 10 { [INFO] [stdout] 88 | | counter += 1; [INFO] [stdout] ... | [INFO] [stdout] 93 | | }; [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 94 | println!("Result is: {output}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::basics::variables::test_variables` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::basics::variables::test_variables; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::control::functions::test_functions` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::control::functions::test_functions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ownership::ownership::test_ownership` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::ownership::ownership::test_ownership; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ownership::referenced::test_references` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::ownership::referenced::test_references; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ownership::slices::first_word` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::ownership::slices::first_word; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ownership::slices::test_slices` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::ownership::slices::test_slices; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::structs::structs::test_structs` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::structs::structs::test_structs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/control/mod.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let mut another_counter = 0; [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: function `test_variables` is never used [INFO] [stdout] --> src/basics/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn test_variables() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_func` is never used [INFO] [stdout] --> src/control/mod.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn simple_func() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_functions` is never used [INFO] [stdout] --> src/control/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn test_functions() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `func_without_ret` is never used [INFO] [stdout] --> src/control/mod.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn func_without_ret(x: i32, label: char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `func_with_ret` is never used [INFO] [stdout] --> src/control/mod.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn func_with_ret() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `comparator` is never used [INFO] [stdout] --> src/control/mod.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn comparator(param1: i32, param2: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_check` is never used [INFO] [stdout] --> src/control/mod.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn simple_check() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeat_loop` is never used [INFO] [stdout] --> src/control/mod.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn repeat_loop() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeat_while` is never used [INFO] [stdout] --> src/control/mod.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn repeat_while() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeat_for` is never used [INFO] [stdout] --> src/control/mod.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | fn repeat_for() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/control/mod.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 86 | let output: i32 = loop { [INFO] [stdout] | ___________________________- [INFO] [stdout] 87 | | if counter <= 10 { [INFO] [stdout] 88 | | counter += 1; [INFO] [stdout] ... | [INFO] [stdout] 93 | | }; [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 94 | println!("Result is: {output}"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 30 - V4(String), [INFO] [stdout] 30 + V4(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 - V6(String), [INFO] [stdout] 31 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums/mod.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 44 - Write(String), [INFO] [stdout] 44 + Write(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/enums/mod.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 42 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 43 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | Write(String), [INFO] [stdout] 45 | 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] [INFO] [stdout] [INFO] [stdout] warning: function `play` is never used [INFO] [stdout] --> src/enums/mod.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | fn play() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ownership` is never used [INFO] [stdout] --> src/ownership/mod.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn test_ownership() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_ownership` is never used [INFO] [stdout] --> src/ownership/mod.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | fn takes_ownership(some: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gives_ownership` is never used [INFO] [stdout] --> src/ownership/mod.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn gives_ownership() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_length` is never used [INFO] [stdout] --> src/ownership/mod.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | fn calculate_length(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `try_to_change` is never used [INFO] [stdout] --> src/ownership/mod.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | fn try_to_change(s: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `try_to_change_mutable` is never used [INFO] [stdout] --> src/ownership/mod.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn try_to_change_mutable(s: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_references` is never used [INFO] [stdout] --> src/ownership/mod.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn test_references() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_slices` is never used [INFO] [stdout] --> src/ownership/mod.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn test_slices() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> src/ownership/mod.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn first_word(s: &String) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/structs/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_user` is never used [INFO] [stdout] --> src/structs/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn build_user(email: String, username: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_structs` is never used [INFO] [stdout] --> src/structs/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn test_structs() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/structs/mod.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 82 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/control/mod.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let mut another_counter = 0; [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: function `test_variables` is never used [INFO] [stdout] --> src/basics/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn test_variables() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_func` is never used [INFO] [stdout] --> src/control/mod.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn simple_func() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_functions` is never used [INFO] [stdout] --> src/control/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn test_functions() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `func_without_ret` is never used [INFO] [stdout] --> src/control/mod.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn func_without_ret(x: i32, label: char) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `func_with_ret` is never used [INFO] [stdout] --> src/control/mod.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn func_with_ret() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `comparator` is never used [INFO] [stdout] --> src/control/mod.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn comparator(param1: i32, param2: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_check` is never used [INFO] [stdout] --> src/control/mod.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | fn simple_check() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeat_loop` is never used [INFO] [stdout] --> src/control/mod.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn repeat_loop() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeat_while` is never used [INFO] [stdout] --> src/control/mod.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn repeat_while() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeat_for` is never used [INFO] [stdout] --> src/control/mod.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | fn repeat_for() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums/mod.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | V4(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 30 - V4(String), [INFO] [stdout] 30 + V4(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | V6(String), [INFO] [stdout] | -- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 - V6(String), [INFO] [stdout] 31 + V6(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/enums/mod.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | Write(String), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 44 - Write(String), [INFO] [stdout] 44 + Write(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Move`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/enums/mod.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | pub enum Message { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 42 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 43 | Move { x: i32, y: i32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | Write(String), [INFO] [stdout] 45 | 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] [INFO] [stdout] [INFO] [stdout] warning: function `play` is never used [INFO] [stdout] --> src/enums/mod.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | fn play() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ownership` is never used [INFO] [stdout] --> src/ownership/mod.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn test_ownership() -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_ownership` is never used [INFO] [stdout] --> src/ownership/mod.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | fn takes_ownership(some: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gives_ownership` is never used [INFO] [stdout] --> src/ownership/mod.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn gives_ownership() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_length` is never used [INFO] [stdout] --> src/ownership/mod.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | fn calculate_length(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `try_to_change` is never used [INFO] [stdout] --> src/ownership/mod.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | fn try_to_change(s: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `try_to_change_mutable` is never used [INFO] [stdout] --> src/ownership/mod.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn try_to_change_mutable(s: &mut String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_references` is never used [INFO] [stdout] --> src/ownership/mod.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn test_references() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_slices` is never used [INFO] [stdout] --> src/ownership/mod.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn test_slices() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> src/ownership/mod.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn first_word(s: &String) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/structs/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_user` is never used [INFO] [stdout] --> src/structs/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn build_user(email: String, username: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_structs` is never used [INFO] [stdout] --> src/structs/mod.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn test_structs() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> src/structs/mod.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 82 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "0828f4d74d9570c27538e2598e626c90961589fe12d978e8d7889ec550edd93a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0828f4d74d9570c27538e2598e626c90961589fe12d978e8d7889ec550edd93a", kill_on_drop: false }` [INFO] [stdout] 0828f4d74d9570c27538e2598e626c90961589fe12d978e8d7889ec550edd93a