[INFO] cloning repository https://github.com/suomiton/explore-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/suomiton/explore-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuomiton%2Fexplore-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuomiton%2Fexplore-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 488d7df7a625dabeaaa07a2dcdd158d1052e7990
[INFO] testing suomiton/explore-rust against master#ec6f9a5b4413f74386267ef8efc93712c2ce6db6 for pr-155739-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuomiton%2Fexplore-rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/suomiton/explore-rust
[INFO] finished tweaking git repo https://github.com/suomiton/explore-rust
[INFO] tweaked toml for git repo https://github.com/suomiton/explore-rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/suomiton/explore-rust on toolchain ec6f9a5b4413f74386267ef8efc93712c2ce6db6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/suomiton/explore-rust 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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded windows-strings v0.4.0
[INFO] [stderr]   Downloaded windows-core v0.61.0
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 737cedd9d3bbb1c4d76132a2cda66f3f25f1836be1a7535b25802f3859e6512f
[INFO] running `Command { std: "docker" "start" "-a" "737cedd9d3bbb1c4d76132a2cda66f3f25f1836be1a7535b25802f3859e6512f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "737cedd9d3bbb1c4d76132a2cda66f3f25f1836be1a7535b25802f3859e6512f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "737cedd9d3bbb1c4d76132a2cda66f3f25f1836be1a7535b25802f3859e6512f", kill_on_drop: false }`
[INFO] [stdout] 737cedd9d3bbb1c4d76132a2cda66f3f25f1836be1a7535b25802f3859e6512f
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1a86b1d8a29fab94ddadeb33579e365f62b4f26793859bf19a37dd663e1d7774
[INFO] running `Command { std: "docker" "start" "-a" "1a86b1d8a29fab94ddadeb33579e365f62b4f26793859bf19a37dd663e1d7774", kill_on_drop: false }`
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.100
[INFO] [stderr]    Compiling libc v0.2.172
[INFO] [stderr]    Compiling zerocopy v0.8.25
[INFO] [stderr]    Compiling bumpalo v3.17.0
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling rustversion v1.0.20
[INFO] [stderr]    Compiling wasm-bindgen v0.2.100
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling iana-time-zone v0.1.63
[INFO] [stderr]    Compiling memchr v2.7.4
[INFO] [stderr]    Compiling ryu v1.0.20
[INFO] [stderr]    Compiling once_cell v1.21.3
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]    Compiling chrono v0.4.41
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.100
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.100
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.100
[INFO] [stderr]    Compiling rust_basics v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `string_literal`
[INFO] [stdout]    --> src/examples/basic_types.rs:109:9
[INFO] [stdout]     |
[INFO] [stdout] 109 |     let string_literal = "Hello";
[INFO] [stdout]     |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_literal`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `subject`
[INFO] [stdout]    --> src/examples/structs_enums.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |     let subject = AlwaysEqual;
[INFO] [stdout]     |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subject`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `count` is assigned to, but never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:249:9
[INFO] [stdout]     |
[INFO] [stdout] 249 |     let mut count = 0;
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_count` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `count` is never read
[INFO] [stdout]    --> src/examples/structs_enums.rs:253:9
[INFO] [stdout]     |
[INFO] [stdout] 253 |         count += 1;
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]  --> src/examples/basic_types.rs:6:4
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn main() {
[INFO] [stdout]   |    ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_hello` is never used
[INFO] [stdout]    --> src/examples/basic_types.rs:201:4
[INFO] [stdout]     |
[INFO] [stdout] 201 | fn print_hello() {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_number` is never used
[INFO] [stdout]    --> src/examples/basic_types.rs:206:4
[INFO] [stdout]     |
[INFO] [stdout] 206 | fn print_number(x: i32) {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add` is never used
[INFO] [stdout]    --> src/examples/basic_types.rs:211:4
[INFO] [stdout]     |
[INFO] [stdout] 211 | fn add(x: i32, y: i32) -> i32 {
[INFO] [stdout]     |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/examples/concurrency.rs:13:4
[INFO] [stdout]    |
[INFO] [stdout] 13 | fn main() {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/examples/error_handling.rs:12:4
[INFO] [stdout]    |
[INFO] [stdout] 12 | fn main() -> Result<(), Box<dyn Error>> {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:144:4
[INFO] [stdout]     |
[INFO] [stdout] 144 | fn read_username_from_file() -> Result<String, io::Error> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file_short` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:165:4
[INFO] [stdout]     |
[INFO] [stdout] 165 | fn read_username_from_file_short() -> Result<String, io::Error> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file_shortest` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:173:4
[INFO] [stdout]     |
[INFO] [stdout] 173 | fn read_username_from_file_shortest() -> Result<String, io::Error> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_element` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:183:4
[INFO] [stdout]     |
[INFO] [stdout] 183 | fn get_element(vector: &[i32], index: usize) -> Option<i32> {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `last_char_of_first_line` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:192:4
[INFO] [stdout]     |
[INFO] [stdout] 192 | fn last_char_of_first_line(text: &str) -> Option<char> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ParseIntError` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:198:6
[INFO] [stdout]     |
[INFO] [stdout] 198 | enum ParseIntError {
[INFO] [stdout]     |      ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `parse_positive_integer` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:221:4
[INFO] [stdout]     |
[INFO] [stdout] 221 | fn parse_positive_integer(s: &str) -> Result<i32, ParseIntError> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]  --> src/examples/ownership.rs:7:4
[INFO] [stdout]   |
[INFO] [stdout] 7 | fn main() {
[INFO] [stdout]   |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `takes_ownership` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:172:4
[INFO] [stdout]     |
[INFO] [stdout] 172 | fn takes_ownership(some_string: String) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `makes_copy` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:177:4
[INFO] [stdout]     |
[INFO] [stdout] 177 | fn makes_copy(some_integer: i32) {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gives_ownership` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:182:4
[INFO] [stdout]     |
[INFO] [stdout] 182 | fn gives_ownership() -> String {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `takes_and_gives_back` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:188:4
[INFO] [stdout]     |
[INFO] [stdout] 188 | fn takes_and_gives_back(a_string: String) -> String {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `calculate_length` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:193:4
[INFO] [stdout]     |
[INFO] [stdout] 193 | fn calculate_length(s: &String) -> usize {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `change` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:198:4
[INFO] [stdout]     |
[INFO] [stdout] 198 | fn change(some_string: &mut String) {
[INFO] [stdout]     |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `no_dangle` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:203:4
[INFO] [stdout]     |
[INFO] [stdout] 203 | fn no_dangle() -> String {
[INFO] [stdout]     |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `first_word` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:209:4
[INFO] [stdout]     |
[INFO] [stdout] 209 | fn first_word(s: &str) -> &str {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rectangle` is never constructed
[INFO] [stdout]  --> src/examples/structs_enums.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | struct Rectangle {
[INFO] [stdout]   |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `area`, and `can_hold` are never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl Rectangle {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout] 16 |     // Associated function (like a static method)
[INFO] [stdout] 17 |     fn new(width: u32, height: u32) -> Rectangle {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 22 |     fn area(&self) -> u32 {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     fn can_hold(&self, other: &Rectangle) -> bool {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed
[INFO] [stdout]   --> src/examples/structs_enums.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 33 | struct ImportantExcerpt<'a> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `IpAddrKind` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:39:6
[INFO] [stdout]    |
[INFO] [stdout] 39 | enum IpAddrKind {
[INFO] [stdout]    |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `IpAddr` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:46:6
[INFO] [stdout]    |
[INFO] [stdout] 46 | enum IpAddr {
[INFO] [stdout]    |      ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Message` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:53:6
[INFO] [stdout]    |
[INFO] [stdout] 53 | enum Message {
[INFO] [stdout]    |      ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `call` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:62:8
[INFO] [stdout]    |
[INFO] [stdout] 61 | impl Message {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] 62 |     fn call(&self) {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:73:4
[INFO] [stdout]    |
[INFO] [stdout] 73 | fn main() {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `UsState` is never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:259:6
[INFO] [stdout]     |
[INFO] [stdout] 259 | enum UsState {
[INFO] [stdout]     |      ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Coin` is never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:264:6
[INFO] [stdout]     |
[INFO] [stdout] 264 | enum Coin {
[INFO] [stdout]     |      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `value_in_cents` is never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:271:4
[INFO] [stdout]     |
[INFO] [stdout] 271 | fn value_in_cents(coin: Coin) -> u8 {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `plus_one` is never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:286:4
[INFO] [stdout]     |
[INFO] [stdout] 286 | fn plus_one(x: Option<i32>) -> Option<i32> {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `immutable`
[INFO] [stdout]   --> src/main.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let immutable = 10;
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_immutable`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `mutable` is never read
[INFO] [stdout]   --> src/main.rs:27:23
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let mut mutable = 10;
[INFO] [stdout]    |                       ^^ this value is reassigned later and never used
[INFO] [stdout] 28 |     mutable = 15; // This works because the variable is mutable
[INFO] [stdout]    |     ------------ `mutable` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `subject`
[INFO] [stdout]    --> src/examples/structs_enums.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |     let subject = AlwaysEqual;
[INFO] [stdout]     |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subject`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `count` is assigned to, but never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:249:9
[INFO] [stdout]     |
[INFO] [stdout] 249 |     let mut count = 0;
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_count` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `count` is never read
[INFO] [stdout]    --> src/examples/structs_enums.rs:253:9
[INFO] [stdout]     |
[INFO] [stdout] 253 |         count += 1;
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `string_literal`
[INFO] [stdout]    --> src/examples/basic_types.rs:109:9
[INFO] [stdout]     |
[INFO] [stdout] 109 |     let string_literal = "Hello";
[INFO] [stdout]     |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_literal`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read
[INFO] [stdout]   --> src/examples/structs_enums.rs:47:8
[INFO] [stdout]    |
[INFO] [stdout] 47 |     V4(u8, u8, u8, u8),
[INFO] [stdout]    |     -- ^^  ^^  ^^  ^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields 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]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 47 -     V4(u8, u8, u8, u8),
[INFO] [stdout] 47 +     V4((), (), (), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/examples/structs_enums.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 |     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] 48 -     V6(String),
[INFO] [stdout] 48 +     V6(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Alabama`, `Arizona`, and `Arkansas` are never constructed
[INFO] [stdout]    --> src/examples/structs_enums.rs:260:5
[INFO] [stdout]     |
[INFO] [stdout] 259 | enum UsState {
[INFO] [stdout]     |      ------- variants in this enum
[INFO] [stdout] 260 |     Alabama, Alaska, Arizona, Arkansas, /* ... etc */
[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] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed
[INFO] [stdout]    --> src/examples/structs_enums.rs:265:5
[INFO] [stdout]     |
[INFO] [stdout] 264 | enum Coin {
[INFO] [stdout]     |      ---- variants in this enum
[INFO] [stdout] 265 |     Penny,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 266 |     Nickel,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] 267 |     Dime,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.08s
[INFO] running `Command { std: "docker" "inspect" "1a86b1d8a29fab94ddadeb33579e365f62b4f26793859bf19a37dd663e1d7774", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1a86b1d8a29fab94ddadeb33579e365f62b4f26793859bf19a37dd663e1d7774", kill_on_drop: false }`
[INFO] [stdout] 1a86b1d8a29fab94ddadeb33579e365f62b4f26793859bf19a37dd663e1d7774
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ec518f578e0863a96df0b19abf3a6ed4088358e6150542d5df33e8832585c840
[INFO] running `Command { std: "docker" "start" "-a" "ec518f578e0863a96df0b19abf3a6ed4088358e6150542d5df33e8832585c840", kill_on_drop: false }`
[INFO] [stdout] warning: unused variable: `string_literal`
[INFO] [stdout]    --> src/examples/basic_types.rs:109:9
[INFO] [stdout]     |
[INFO] [stdout] 109 |     let string_literal = "Hello";
[INFO] [stdout]     |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_literal`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `subject`
[INFO] [stdout]    --> src/examples/structs_enums.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |     let subject = AlwaysEqual;
[INFO] [stdout]     |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subject`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `count` is assigned to, but never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:249:9
[INFO] [stdout]     |
[INFO] [stdout] 249 |     let mut count = 0;
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_count` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `count` is never read
[INFO] [stdout]    --> src/examples/structs_enums.rs:253:9
[INFO] [stdout]     |
[INFO] [stdout] 253 |         count += 1;
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]  --> src/examples/basic_types.rs:6:4
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn main() {
[INFO] [stdout]   |    ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_hello` is never used
[INFO] [stdout]    --> src/examples/basic_types.rs:201:4
[INFO] [stdout]     |
[INFO] [stdout] 201 | fn print_hello() {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_number` is never used
[INFO] [stdout]    --> src/examples/basic_types.rs:206:4
[INFO] [stdout]     |
[INFO] [stdout] 206 | fn print_number(x: i32) {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add` is never used
[INFO] [stdout]    --> src/examples/basic_types.rs:211:4
[INFO] [stdout]     |
[INFO] [stdout] 211 | fn add(x: i32, y: i32) -> i32 {
[INFO] [stdout]     |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/examples/concurrency.rs:13:4
[INFO] [stdout]    |
[INFO] [stdout] 13 | fn main() {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/examples/error_handling.rs:12:4
[INFO] [stdout]    |
[INFO] [stdout] 12 | fn main() -> Result<(), Box<dyn Error>> {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:144:4
[INFO] [stdout]     |
[INFO] [stdout] 144 | fn read_username_from_file() -> Result<String, io::Error> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file_short` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:165:4
[INFO] [stdout]     |
[INFO] [stdout] 165 | fn read_username_from_file_short() -> Result<String, io::Error> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file_shortest` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:173:4
[INFO] [stdout]     |
[INFO] [stdout] 173 | fn read_username_from_file_shortest() -> Result<String, io::Error> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_element` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:183:4
[INFO] [stdout]     |
[INFO] [stdout] 183 | fn get_element(vector: &[i32], index: usize) -> Option<i32> {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `last_char_of_first_line` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:192:4
[INFO] [stdout]     |
[INFO] [stdout] 192 | fn last_char_of_first_line(text: &str) -> Option<char> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling rust_basics v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: enum `ParseIntError` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:198:6
[INFO] [stdout]     |
[INFO] [stdout] 198 | enum ParseIntError {
[INFO] [stdout]     |      ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `parse_positive_integer` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:221:4
[INFO] [stdout]     |
[INFO] [stdout] 221 | fn parse_positive_integer(s: &str) -> Result<i32, ParseIntError> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]  --> src/examples/ownership.rs:7:4
[INFO] [stdout]   |
[INFO] [stdout] 7 | fn main() {
[INFO] [stdout]   |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `takes_ownership` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:172:4
[INFO] [stdout]     |
[INFO] [stdout] 172 | fn takes_ownership(some_string: String) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `makes_copy` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:177:4
[INFO] [stdout]     |
[INFO] [stdout] 177 | fn makes_copy(some_integer: i32) {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gives_ownership` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:182:4
[INFO] [stdout]     |
[INFO] [stdout] 182 | fn gives_ownership() -> String {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `takes_and_gives_back` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:188:4
[INFO] [stdout]     |
[INFO] [stdout] 188 | fn takes_and_gives_back(a_string: String) -> String {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `calculate_length` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:193:4
[INFO] [stdout]     |
[INFO] [stdout] 193 | fn calculate_length(s: &String) -> usize {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `change` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:198:4
[INFO] [stdout]     |
[INFO] [stdout] 198 | fn change(some_string: &mut String) {
[INFO] [stdout]     |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `no_dangle` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:203:4
[INFO] [stdout]     |
[INFO] [stdout] 203 | fn no_dangle() -> String {
[INFO] [stdout]     |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `first_word` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:209:4
[INFO] [stdout]     |
[INFO] [stdout] 209 | fn first_word(s: &str) -> &str {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rectangle` is never constructed
[INFO] [stdout]  --> src/examples/structs_enums.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | struct Rectangle {
[INFO] [stdout]   |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `area`, and `can_hold` are never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl Rectangle {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout] 16 |     // Associated function (like a static method)
[INFO] [stdout] 17 |     fn new(width: u32, height: u32) -> Rectangle {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 22 |     fn area(&self) -> u32 {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     fn can_hold(&self, other: &Rectangle) -> bool {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed
[INFO] [stdout]   --> src/examples/structs_enums.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 33 | struct ImportantExcerpt<'a> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `IpAddrKind` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:39:6
[INFO] [stdout]    |
[INFO] [stdout] 39 | enum IpAddrKind {
[INFO] [stdout]    |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `IpAddr` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:46:6
[INFO] [stdout]    |
[INFO] [stdout] 46 | enum IpAddr {
[INFO] [stdout]    |      ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Message` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:53:6
[INFO] [stdout]    |
[INFO] [stdout] 53 | enum Message {
[INFO] [stdout]    |      ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `call` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:62:8
[INFO] [stdout]    |
[INFO] [stdout] 61 | impl Message {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] 62 |     fn call(&self) {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:73:4
[INFO] [stdout]    |
[INFO] [stdout] 73 | fn main() {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `UsState` is never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:259:6
[INFO] [stdout]     |
[INFO] [stdout] 259 | enum UsState {
[INFO] [stdout]     |      ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Coin` is never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:264:6
[INFO] [stdout]     |
[INFO] [stdout] 264 | enum Coin {
[INFO] [stdout]     |      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `value_in_cents` is never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:271:4
[INFO] [stdout]     |
[INFO] [stdout] 271 | fn value_in_cents(coin: Coin) -> u8 {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `plus_one` is never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:286:4
[INFO] [stdout]     |
[INFO] [stdout] 286 | fn plus_one(x: Option<i32>) -> Option<i32> {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `string_literal`
[INFO] [stdout]    --> src/examples/basic_types.rs:109:9
[INFO] [stdout]     |
[INFO] [stdout] 109 |     let string_literal = "Hello";
[INFO] [stdout]     |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_literal`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `immutable`
[INFO] [stdout]   --> src/main.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let immutable = 10;
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_immutable`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `mutable` is never read
[INFO] [stdout]   --> src/main.rs:27:23
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let mut mutable = 10;
[INFO] [stdout]    |                       ^^ this value is reassigned later and never used
[INFO] [stdout] 28 |     mutable = 15; // This works because the variable is mutable
[INFO] [stdout]    |     ------------ `mutable` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `string_literal`
[INFO] [stdout]    --> src/examples/basic_types.rs:109:9
[INFO] [stdout]     |
[INFO] [stdout] 109 |     let string_literal = "Hello";
[INFO] [stdout]     |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_literal`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `subject`
[INFO] [stdout]    --> src/examples/structs_enums.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |     let subject = AlwaysEqual;
[INFO] [stdout]     |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subject`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `count` is assigned to, but never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:249:9
[INFO] [stdout]     |
[INFO] [stdout] 249 |     let mut count = 0;
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_count` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `count` is never read
[INFO] [stdout]    --> src/examples/structs_enums.rs:253:9
[INFO] [stdout]     |
[INFO] [stdout] 253 |         count += 1;
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0`, `1`, `2`, and `3` are never read
[INFO] [stdout]   --> src/examples/structs_enums.rs:47:8
[INFO] [stdout]    |
[INFO] [stdout] 47 |     V4(u8, u8, u8, u8),
[INFO] [stdout]    |     -- ^^  ^^  ^^  ^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields 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]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 47 -     V4(u8, u8, u8, u8),
[INFO] [stdout] 47 +     V4((), (), (), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/examples/structs_enums.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 |     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] 48 -     V6(String),
[INFO] [stdout] 48 +     V6(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Alabama`, `Arizona`, and `Arkansas` are never constructed
[INFO] [stdout]    --> src/examples/structs_enums.rs:260:5
[INFO] [stdout]     |
[INFO] [stdout] 259 | enum UsState {
[INFO] [stdout]     |      ------- variants in this enum
[INFO] [stdout] 260 |     Alabama, Alaska, Arizona, Arkansas, /* ... etc */
[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] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed
[INFO] [stdout]    --> src/examples/structs_enums.rs:265:5
[INFO] [stdout]     |
[INFO] [stdout] 264 | enum Coin {
[INFO] [stdout]     |      ---- variants in this enum
[INFO] [stdout] 265 |     Penny,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 266 |     Nickel,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] 267 |     Dime,
[INFO] [stdout]     |     ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `subject`
[INFO] [stdout]    --> src/examples/structs_enums.rs:135:9
[INFO] [stdout]     |
[INFO] [stdout] 135 |     let subject = AlwaysEqual;
[INFO] [stdout]     |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subject`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `count` is assigned to, but never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:249:9
[INFO] [stdout]     |
[INFO] [stdout] 249 |     let mut count = 0;
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_count` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `count` is never read
[INFO] [stdout]    --> src/examples/structs_enums.rs:253:9
[INFO] [stdout]     |
[INFO] [stdout] 253 |         count += 1;
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]  --> src/examples/basic_types.rs:6:4
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn main() {
[INFO] [stdout]   |    ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_hello` is never used
[INFO] [stdout]    --> src/examples/basic_types.rs:201:4
[INFO] [stdout]     |
[INFO] [stdout] 201 | fn print_hello() {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_number` is never used
[INFO] [stdout]    --> src/examples/basic_types.rs:206:4
[INFO] [stdout]     |
[INFO] [stdout] 206 | fn print_number(x: i32) {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add` is never used
[INFO] [stdout]    --> src/examples/basic_types.rs:211:4
[INFO] [stdout]     |
[INFO] [stdout] 211 | fn add(x: i32, y: i32) -> i32 {
[INFO] [stdout]     |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/examples/concurrency.rs:13:4
[INFO] [stdout]    |
[INFO] [stdout] 13 | fn main() {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/examples/error_handling.rs:12:4
[INFO] [stdout]    |
[INFO] [stdout] 12 | fn main() -> Result<(), Box<dyn Error>> {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:144:4
[INFO] [stdout]     |
[INFO] [stdout] 144 | fn read_username_from_file() -> Result<String, io::Error> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file_short` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:165:4
[INFO] [stdout]     |
[INFO] [stdout] 165 | fn read_username_from_file_short() -> Result<String, io::Error> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_username_from_file_shortest` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:173:4
[INFO] [stdout]     |
[INFO] [stdout] 173 | fn read_username_from_file_shortest() -> Result<String, io::Error> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_element` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:183:4
[INFO] [stdout]     |
[INFO] [stdout] 183 | fn get_element(vector: &[i32], index: usize) -> Option<i32> {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `last_char_of_first_line` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:192:4
[INFO] [stdout]     |
[INFO] [stdout] 192 | fn last_char_of_first_line(text: &str) -> Option<char> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ParseIntError` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:198:6
[INFO] [stdout]     |
[INFO] [stdout] 198 | enum ParseIntError {
[INFO] [stdout]     |      ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `parse_positive_integer` is never used
[INFO] [stdout]    --> src/examples/error_handling.rs:221:4
[INFO] [stdout]     |
[INFO] [stdout] 221 | fn parse_positive_integer(s: &str) -> Result<i32, ParseIntError> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]  --> src/examples/ownership.rs:7:4
[INFO] [stdout]   |
[INFO] [stdout] 7 | fn main() {
[INFO] [stdout]   |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `takes_ownership` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:172:4
[INFO] [stdout]     |
[INFO] [stdout] 172 | fn takes_ownership(some_string: String) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `makes_copy` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:177:4
[INFO] [stdout]     |
[INFO] [stdout] 177 | fn makes_copy(some_integer: i32) {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `gives_ownership` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:182:4
[INFO] [stdout]     |
[INFO] [stdout] 182 | fn gives_ownership() -> String {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `takes_and_gives_back` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:188:4
[INFO] [stdout]     |
[INFO] [stdout] 188 | fn takes_and_gives_back(a_string: String) -> String {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `calculate_length` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:193:4
[INFO] [stdout]     |
[INFO] [stdout] 193 | fn calculate_length(s: &String) -> usize {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `change` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:198:4
[INFO] [stdout]     |
[INFO] [stdout] 198 | fn change(some_string: &mut String) {
[INFO] [stdout]     |    ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `no_dangle` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:203:4
[INFO] [stdout]     |
[INFO] [stdout] 203 | fn no_dangle() -> String {
[INFO] [stdout]     |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `first_word` is never used
[INFO] [stdout]    --> src/examples/ownership.rs:209:4
[INFO] [stdout]     |
[INFO] [stdout] 209 | fn first_word(s: &str) -> &str {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rectangle` is never constructed
[INFO] [stdout]  --> src/examples/structs_enums.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | struct Rectangle {
[INFO] [stdout]   |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `area`, and `can_hold` are never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl Rectangle {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout] 16 |     // Associated function (like a static method)
[INFO] [stdout] 17 |     fn new(width: u32, height: u32) -> Rectangle {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 22 |     fn area(&self) -> u32 {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |     fn can_hold(&self, other: &Rectangle) -> bool {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ImportantExcerpt` is never constructed
[INFO] [stdout]   --> src/examples/structs_enums.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 33 | struct ImportantExcerpt<'a> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `IpAddrKind` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:39:6
[INFO] [stdout]    |
[INFO] [stdout] 39 | enum IpAddrKind {
[INFO] [stdout]    |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `IpAddr` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:46:6
[INFO] [stdout]    |
[INFO] [stdout] 46 | enum IpAddr {
[INFO] [stdout]    |      ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Message` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:53:6
[INFO] [stdout]    |
[INFO] [stdout] 53 | enum Message {
[INFO] [stdout]    |      ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `call` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:62:8
[INFO] [stdout]    |
[INFO] [stdout] 61 | impl Message {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] 62 |     fn call(&self) {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `main` is never used
[INFO] [stdout]   --> src/examples/structs_enums.rs:73:4
[INFO] [stdout]    |
[INFO] [stdout] 73 | fn main() {
[INFO] [stdout]    |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `UsState` is never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:259:6
[INFO] [stdout]     |
[INFO] [stdout] 259 | enum UsState {
[INFO] [stdout]     |      ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Coin` is never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:264:6
[INFO] [stdout]     |
[INFO] [stdout] 264 | enum Coin {
[INFO] [stdout]     |      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `value_in_cents` is never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:271:4
[INFO] [stdout]     |
[INFO] [stdout] 271 | fn value_in_cents(coin: Coin) -> u8 {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `plus_one` is never used
[INFO] [stdout]    --> src/examples/structs_enums.rs:286:4
[INFO] [stdout]     |
[INFO] [stdout] 286 | fn plus_one(x: Option<i32>) -> Option<i32> {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.83s
[INFO] running `Command { std: "docker" "inspect" "ec518f578e0863a96df0b19abf3a6ed4088358e6150542d5df33e8832585c840", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ec518f578e0863a96df0b19abf3a6ed4088358e6150542d5df33e8832585c840", kill_on_drop: false }`
[INFO] [stdout] ec518f578e0863a96df0b19abf3a6ed4088358e6150542d5df33e8832585c840
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 9f43ff54c1d32a0313eca8c97b8a468c13bb0248c291d16b23662d51be2ba634
[INFO] running `Command { std: "docker" "start" "-a" "9f43ff54c1d32a0313eca8c97b8a468c13bb0248c291d16b23662d51be2ba634", kill_on_drop: false }`
[INFO] [stderr] warning: unused variable: `string_literal`
[INFO] [stderr]    --> src/examples/basic_types.rs:109:9
[INFO] [stderr]     |
[INFO] [stderr] 109 |     let string_literal = "Hello";
[INFO] [stderr]     |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_string_literal`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `subject`
[INFO] [stderr]    --> src/examples/structs_enums.rs:135:9
[INFO] [stderr]     |
[INFO] [stderr] 135 |     let subject = AlwaysEqual;
[INFO] [stderr]     |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subject`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `count` is assigned to, but never used
[INFO] [stderr]    --> src/examples/structs_enums.rs:249:9
[INFO] [stderr]     |
[INFO] [stderr] 249 |     let mut count = 0;
[INFO] [stderr]     |         ^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: consider using `_count` instead
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `count` is never read
[INFO] [stderr]    --> src/examples/structs_enums.rs:253:9
[INFO] [stderr]     |
[INFO] [stderr] 253 |         count += 1;
[INFO] [stderr]     |         ^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: maybe it is overwritten before being read?
[INFO] [stderr]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `main` is never used
[INFO] [stderr]  --> src/examples/basic_types.rs:6:4
[INFO] [stderr]   |
[INFO] [stderr] 6 | fn main() {
[INFO] [stderr]   |    ^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `print_hello` is never used
[INFO] [stderr]    --> src/examples/basic_types.rs:201:4
[INFO] [stderr]     |
[INFO] [stderr] 201 | fn print_hello() {
[INFO] [stderr]     |    ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `print_number` is never used
[INFO] [stderr]    --> src/examples/basic_types.rs:206:4
[INFO] [stderr]     |
[INFO] [stderr] 206 | fn print_number(x: i32) {
[INFO] [stderr]     |    ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `add` is never used
[INFO] [stderr]    --> src/examples/basic_types.rs:211:4
[INFO] [stderr]     |
[INFO] [stderr] 211 | fn add(x: i32, y: i32) -> i32 {
[INFO] [stderr]     |    ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `main` is never used
[INFO] [stderr]   --> src/examples/concurrency.rs:13:4
[INFO] [stderr]    |
[INFO] [stderr] 13 | fn main() {
[INFO] [stderr]    |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `main` is never used
[INFO] [stderr]   --> src/examples/error_handling.rs:12:4
[INFO] [stderr]    |
[INFO] [stderr] 12 | fn main() -> Result<(), Box<dyn Error>> {
[INFO] [stderr]    |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `read_username_from_file` is never used
[INFO] [stderr]    --> src/examples/error_handling.rs:144:4
[INFO] [stderr]     |
[INFO] [stderr] 144 | fn read_username_from_file() -> Result<String, io::Error> {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `read_username_from_file_short` is never used
[INFO] [stderr]    --> src/examples/error_handling.rs:165:4
[INFO] [stderr]     |
[INFO] [stderr] 165 | fn read_username_from_file_short() -> Result<String, io::Error> {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `read_username_from_file_shortest` is never used
[INFO] [stderr]    --> src/examples/error_handling.rs:173:4
[INFO] [stderr]     |
[INFO] [stderr] 173 | fn read_username_from_file_shortest() -> Result<String, io::Error> {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `get_element` is never used
[INFO] [stderr]    --> src/examples/error_handling.rs:183:4
[INFO] [stderr]     |
[INFO] [stderr] 183 | fn get_element(vector: &[i32], index: usize) -> Option<i32> {
[INFO] [stderr]     |    ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `last_char_of_first_line` is never used
[INFO] [stderr]    --> src/examples/error_handling.rs:192:4
[INFO] [stderr]     |
[INFO] [stderr] 192 | fn last_char_of_first_line(text: &str) -> Option<char> {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `ParseIntError` is never used
[INFO] [stderr]    --> src/examples/error_handling.rs:198:6
[INFO] [stderr]     |
[INFO] [stderr] 198 | enum ParseIntError {
[INFO] [stderr]     |      ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `parse_positive_integer` is never used
[INFO] [stderr]    --> src/examples/error_handling.rs:221:4
[INFO] [stderr]     |
[INFO] [stderr] 221 | fn parse_positive_integer(s: &str) -> Result<i32, ParseIntError> {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `main` is never used
[INFO] [stderr]  --> src/examples/ownership.rs:7:4
[INFO] [stderr]   |
[INFO] [stderr] 7 | fn main() {
[INFO] [stderr]   |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `takes_ownership` is never used
[INFO] [stderr]    --> src/examples/ownership.rs:172:4
[INFO] [stderr]     |
[INFO] [stderr] 172 | fn takes_ownership(some_string: String) {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `makes_copy` is never used
[INFO] [stderr]    --> src/examples/ownership.rs:177:4
[INFO] [stderr]     |
[INFO] [stderr] 177 | fn makes_copy(some_integer: i32) {
[INFO] [stderr]     |    ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `gives_ownership` is never used
[INFO] [stderr]    --> src/examples/ownership.rs:182:4
[INFO] [stderr]     |
[INFO] [stderr] 182 | fn gives_ownership() -> String {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `takes_and_gives_back` is never used
[INFO] [stderr]    --> src/examples/ownership.rs:188:4
[INFO] [stderr]     |
[INFO] [stderr] 188 | fn takes_and_gives_back(a_string: String) -> String {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `calculate_length` is never used
[INFO] [stderr]    --> src/examples/ownership.rs:193:4
[INFO] [stderr]     |
[INFO] [stderr] 193 | fn calculate_length(s: &String) -> usize {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `change` is never used
[INFO] [stderr]    --> src/examples/ownership.rs:198:4
[INFO] [stderr]     |
[INFO] [stderr] 198 | fn change(some_string: &mut String) {
[INFO] [stderr]     |    ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `no_dangle` is never used
[INFO] [stderr]    --> src/examples/ownership.rs:203:4
[INFO] [stderr]     |
[INFO] [stderr] 203 | fn no_dangle() -> String {
[INFO] [stderr]     |    ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `first_word` is never used
[INFO] [stderr]    --> src/examples/ownership.rs:209:4
[INFO] [stderr]     |
[INFO] [stderr] 209 | fn first_word(s: &str) -> &str {
[INFO] [stderr]     |    ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Rectangle` is never constructed
[INFO] [stderr]  --> src/examples/structs_enums.rs:9:8
[INFO] [stderr]   |
[INFO] [stderr] 9 | struct Rectangle {
[INFO] [stderr]   |        ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new`, `area`, and `can_hold` are never used
[INFO] [stderr]   --> src/examples/structs_enums.rs:17:8
[INFO] [stderr]    |
[INFO] [stderr] 15 | impl Rectangle {
[INFO] [stderr]    | -------------- associated items in this implementation
[INFO] [stderr] 16 |     // Associated function (like a static method)
[INFO] [stderr] 17 |     fn new(width: u32, height: u32) -> Rectangle {
[INFO] [stderr]    |        ^^^
[INFO] [stderr] ...
[INFO] [stderr] 22 |     fn area(&self) -> u32 {
[INFO] [stderr]    |        ^^^^
[INFO] [stderr] ...
[INFO] [stderr] 27 |     fn can_hold(&self, other: &Rectangle) -> bool {
[INFO] [stderr]    |        ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `ImportantExcerpt` is never constructed
[INFO] [stderr]   --> src/examples/structs_enums.rs:33:8
[INFO] [stderr]    |
[INFO] [stderr] 33 | struct ImportantExcerpt<'a> {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `IpAddrKind` is never used
[INFO] [stderr]   --> src/examples/structs_enums.rs:39:6
[INFO] [stderr]    |
[INFO] [stderr] 39 | enum IpAddrKind {
[INFO] [stderr]    |      ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `IpAddr` is never used
[INFO] [stderr]   --> src/examples/structs_enums.rs:46:6
[INFO] [stderr]    |
[INFO] [stderr] 46 | enum IpAddr {
[INFO] [stderr]    |      ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `Message` is never used
[INFO] [stderr]   --> src/examples/structs_enums.rs:53:6
[INFO] [stderr]    |
[INFO] [stderr] 53 | enum Message {
[INFO] [stderr]    |      ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `call` is never used
[INFO] [stderr]   --> src/examples/structs_enums.rs:62:8
[INFO] [stderr]    |
[INFO] [stderr] 61 | impl Message {
[INFO] [stderr]    | ------------ method in this implementation
[INFO] [stderr] 62 |     fn call(&self) {
[INFO] [stderr]    |        ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `main` is never used
[INFO] [stderr]   --> src/examples/structs_enums.rs:73:4
[INFO] [stderr]    |
[INFO] [stderr] 73 | fn main() {
[INFO] [stderr]    |    ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `UsState` is never used
[INFO] [stderr]    --> src/examples/structs_enums.rs:259:6
[INFO] [stderr]     |
[INFO] [stderr] 259 | enum UsState {
[INFO] [stderr]     |      ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `Coin` is never used
[INFO] [stderr]    --> src/examples/structs_enums.rs:264:6
[INFO] [stderr]     |
[INFO] [stderr] 264 | enum Coin {
[INFO] [stderr]     |      ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `value_in_cents` is never used
[INFO] [stderr]    --> src/examples/structs_enums.rs:271:4
[INFO] [stderr]     |
[INFO] [stderr] 271 | fn value_in_cents(coin: Coin) -> u8 {
[INFO] [stderr]     |    ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `plus_one` is never used
[INFO] [stderr]    --> src/examples/structs_enums.rs:286:4
[INFO] [stderr]     |
[INFO] [stderr] 286 | fn plus_one(x: Option<i32>) -> Option<i32> {
[INFO] [stderr]     |    ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `rust_basics` (lib) generated 38 warnings (run `cargo fix --lib -p rust_basics` to apply 2 suggestions)
[INFO] [stderr] warning: `rust_basics` (lib test) generated 38 warnings (38 duplicates)
[INFO] [stderr] warning: unused variable: `immutable`
[INFO] [stderr]   --> src/main.rs:24:9
[INFO] [stderr]    |
[INFO] [stderr] 24 |     let immutable = 10;
[INFO] [stderr]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_immutable`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `mutable` is never read
[INFO] [stderr]   --> src/main.rs:27:23
[INFO] [stderr]    |
[INFO] [stderr] 27 |     let mut mutable = 10;
[INFO] [stderr]    |                       ^^ this value is reassigned later and never used
[INFO] [stderr] 28 |     mutable = 15; // This works because the variable is mutable
[INFO] [stderr]    |     ------------ `mutable` is overwritten here before the previous value is read
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `subject`
[INFO] [stderr]    --> src/examples/structs_enums.rs:135:9
[INFO] [stderr]     |
[INFO] [stderr] 135 |     let subject = AlwaysEqual;
[INFO] [stderr]     |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subject`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: fields `0`, `1`, `2`, and `3` are never read
[INFO] [stderr]   --> src/examples/structs_enums.rs:47:8
[INFO] [stderr]    |
[INFO] [stderr] 47 |     V4(u8, u8, u8, u8),
[INFO] [stderr]    |     -- ^^  ^^  ^^  ^^
[INFO] [stderr]    |     |
[INFO] [stderr]    |     fields in this variant
[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]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stderr]    |
[INFO] [stderr] 47 -     V4(u8, u8, u8, u8),
[INFO] [stderr] 47 +     V4((), (), (), ()),
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: field `0` is never read
[INFO] [stderr]   --> src/examples/structs_enums.rs:48:8
[INFO] [stderr]    |
[INFO] [stderr] 48 |     V6(String),
[INFO] [stderr]    |     -- ^^^^^^
[INFO] [stderr]    |     |
[INFO] [stderr]    |     field in this variant
[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] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stderr]    |
[INFO] [stderr] 48 -     V6(String),
[INFO] [stderr] 48 +     V6(()),
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: variants `Alabama`, `Arizona`, and `Arkansas` are never constructed
[INFO] [stderr]    --> src/examples/structs_enums.rs:260:5
[INFO] [stderr]     |
[INFO] [stderr] 259 | enum UsState {
[INFO] [stderr]     |      ------- variants in this enum
[INFO] [stderr] 260 |     Alabama, Alaska, Arizona, Arkansas, /* ... etc */
[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] 
[INFO] [stderr] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed
[INFO] [stderr]    --> src/examples/structs_enums.rs:265:5
[INFO] [stderr]     |
[INFO] [stderr] 264 | enum Coin {
[INFO] [stderr]     |      ---- variants in this enum
[INFO] [stderr] 265 |     Penny,
[INFO] [stderr]     |     ^^^^^
[INFO] [stderr] 266 |     Nickel,
[INFO] [stderr]     |     ^^^^^^
[INFO] [stderr] 267 |     Dime,
[INFO] [stderr]     |     ^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `Coin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: `rust_basics` (bin "rust_basics" test) generated 2 warnings (run `cargo fix --bin "rust_basics" -p rust_basics --tests` to apply 1 suggestion)
[INFO] [stderr] warning: `rust_basics` (bin "structs_enums" test) generated 7 warnings (2 duplicates) (run `cargo fix --bin "structs_enums" -p rust_basics --tests` to apply 1 suggestion)
[INFO] [stderr] warning: `rust_basics` (bin "basic_types" test) generated 1 warning (1 duplicate)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_basics_wasm-6083cd64360fe7b2)
[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] [stderr]      Running unittests src/examples/basic_types.rs (/opt/rustwide/target/debug/deps/basic_types-1a9936978045dcf3)
[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] [stderr]      Running unittests src/examples/concurrency.rs (/opt/rustwide/target/debug/deps/concurrency-3475af31e95277a5)
[INFO] [stderr]      Running unittests src/examples/error_handling.rs (/opt/rustwide/target/debug/deps/error_handling-8135e1b86361e431)
[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] [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] [stderr]      Running unittests src/examples/ownership.rs (/opt/rustwide/target/debug/deps/ownership-8caaf07d0e8392b6)
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_basics-fd56c1a81c5d0147)
[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] [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] [stderr]      Running unittests src/examples/structs_enums.rs (/opt/rustwide/target/debug/deps/structs_enums-ce1c23021aa209aa)
[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] [stderr]      Running unittests src/examples/wasm_example.rs (/opt/rustwide/target/debug/deps/wasm_example-e215a5a59afe5448)
[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] [stderr]    Doc-tests rust_basics_wasm
[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" "9f43ff54c1d32a0313eca8c97b8a468c13bb0248c291d16b23662d51be2ba634", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9f43ff54c1d32a0313eca8c97b8a468c13bb0248c291d16b23662d51be2ba634", kill_on_drop: false }`
[INFO] [stdout] 9f43ff54c1d32a0313eca8c97b8a468c13bb0248c291d16b23662d51be2ba634
