[INFO] cloning repository https://github.com/Theliraan/RustTutorial [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Theliraan/RustTutorial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheliraan%2FRustTutorial", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheliraan%2FRustTutorial'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0434c888756d78b764dcb7cb6ccf55864b0564e5 [INFO] checking Theliraan/RustTutorial/0434c888756d78b764dcb7cb6ccf55864b0564e5 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheliraan%2FRustTutorial" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Theliraan/RustTutorial on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Theliraan/RustTutorial [INFO] finished tweaking git repo https://github.com/Theliraan/RustTutorial [INFO] tweaked toml for git repo https://github.com/Theliraan/RustTutorial written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Theliraan/RustTutorial 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3dbff767bcd5097e7a4f04f864825a96614d909b320818efd81b83a0539fa52b [INFO] running `Command { std: "docker" "start" "-a" "3dbff767bcd5097e7a4f04f864825a96614d909b320818efd81b83a0539fa52b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3dbff767bcd5097e7a4f04f864825a96614d909b320818efd81b83a0539fa52b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3dbff767bcd5097e7a4f04f864825a96614d909b320818efd81b83a0539fa52b", kill_on_drop: false }` [INFO] [stdout] 3dbff767bcd5097e7a4f04f864825a96614d909b320818efd81b83a0539fa52b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05475772886f71a6eb6f9353322b7a4eba857308d2e84453a9d5b03c5581f782 [INFO] running `Command { std: "docker" "start" "-a" "05475772886f71a6eb6f9353322b7a4eba857308d2e84453a9d5b03c5581f782", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking hello_world v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/stack_and_heap.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | #![warn(unused_imports)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/stack_and_heap.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | #![warn(unused_imports)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/pattern_matching.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | z @ 9..=11 => "lots of", // you can use 'z' :) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | #![warn(unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/pattern_matching.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | z @ 9..=11 => "lots of", // you can use 'z' :) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | #![warn(unused_variables)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `day` [INFO] [stdout] --> src/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let day = if temperature > 20 { "sunny" } else { "cloudy" }; // almost ternary [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_day` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `day` [INFO] [stdout] --> src/main.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let day = if temperature > 20 { "sunny" } else { "cloudy" }; // almost ternary [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_day` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/main.rs:1173:9 [INFO] [stdout] | [INFO] [stdout] 1173 | let foo = |v: Vec| (); // If you pass vector1 here, it grabs it and it'll not be usable more [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int2` [INFO] [stdout] --> src/main.rs:1176:9 [INFO] [stdout] | [INFO] [stdout] 1176 | let int2 = int1; // copy value [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_int2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int3` [INFO] [stdout] --> src/main.rs:1178:9 [INFO] [stdout] | [INFO] [stdout] 1178 | let int3 = Box::new(1); // value in heap [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_int3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/main.rs:1186:9 [INFO] [stdout] | [INFO] [stdout] 1186 | let foo = |v: &Vec| {}; // it don't modify, just use it. No borrowing [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:1173:16 [INFO] [stdout] | [INFO] [stdout] 1173 | let foo = |v: Vec| (); // If you pass vector1 here, it grabs it and it'll not be usable more [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:1186:16 [INFO] [stdout] | [INFO] [stdout] 1186 | let foo = |v: &Vec| {}; // it don't modify, just use it. No borrowing [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tesla` [INFO] [stdout] --> src/main.rs:1235:9 [INFO] [stdout] | [INFO] [stdout] 1235 | let tesla = Company { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tesla` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `john_name` is assigned to, but never used [INFO] [stdout] --> src/main.rs:1240:13 [INFO] [stdout] | [INFO] [stdout] 1240 | let mut john_name: &String; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_john_name` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `john_name` is never read [INFO] [stdout] --> src/main.rs:1245:9 [INFO] [stdout] | [INFO] [stdout] 1245 | john_name = john.get_ref_name(); // lifetime elision might happens without <'lifetime> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1240:9 [INFO] [stdout] | [INFO] [stdout] 1240 | let mut john_name: &String; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rand_float` [INFO] [stdout] --> src/main.rs:1538:9 [INFO] [stdout] | [INFO] [stdout] 1538 | let rand_float: f32 = rng.gen(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rand_bool` [INFO] [stdout] --> src/main.rs:1539:9 [INFO] [stdout] | [INFO] [stdout] 1539 | let rand_bool: f32 = rng.gen(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/main.rs:1173:9 [INFO] [stdout] | [INFO] [stdout] 1173 | let foo = |v: Vec| (); // If you pass vector1 here, it grabs it and it'll not be usable more [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int2` [INFO] [stdout] --> src/main.rs:1176:9 [INFO] [stdout] | [INFO] [stdout] 1176 | let int2 = int1; // copy value [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_int2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `int3` [INFO] [stdout] --> src/main.rs:1178:9 [INFO] [stdout] | [INFO] [stdout] 1178 | let int3 = Box::new(1); // value in heap [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_int3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `foo` [INFO] [stdout] --> src/main.rs:1186:9 [INFO] [stdout] | [INFO] [stdout] 1186 | let foo = |v: &Vec| {}; // it don't modify, just use it. No borrowing [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_foo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:1173:16 [INFO] [stdout] | [INFO] [stdout] 1173 | let foo = |v: Vec| (); // If you pass vector1 here, it grabs it and it'll not be usable more [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/main.rs:1186:16 [INFO] [stdout] | [INFO] [stdout] 1186 | let foo = |v: &Vec| {}; // it don't modify, just use it. No borrowing [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tesla` [INFO] [stdout] --> src/main.rs:1235:9 [INFO] [stdout] | [INFO] [stdout] 1235 | let tesla = Company { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tesla` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `john_name` is assigned to, but never used [INFO] [stdout] --> src/main.rs:1240:13 [INFO] [stdout] | [INFO] [stdout] 1240 | let mut john_name: &String; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_john_name` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `john_name` is never read [INFO] [stdout] --> src/main.rs:1245:9 [INFO] [stdout] | [INFO] [stdout] 1245 | john_name = john.get_ref_name(); // lifetime elision might happens without <'lifetime> [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:1240:9 [INFO] [stdout] | [INFO] [stdout] 1240 | let mut john_name: &String; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:1532:5 [INFO] [stdout] | [INFO] [stdout] 1532 | handle.join(); // -++--+-+-++--++-+- or any other sequence [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1532 | let _ = handle.join(); // -++--+-+-++--++-+- or any other sequence [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rand_float` [INFO] [stdout] --> src/main.rs:1538:9 [INFO] [stdout] | [INFO] [stdout] 1538 | let rand_float: f32 = rng.gen(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rand_bool` [INFO] [stdout] --> src/main.rs:1539:9 [INFO] [stdout] | [INFO] [stdout] 1539 | let rand_bool: f32 = rng.gen(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rand_bool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:1532:5 [INFO] [stdout] | [INFO] [stdout] 1532 | handle.join(); // -++--+-+-++--++-+- or any other sequence [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1532 | let _ = handle.join(); // -++--+-+-++--++-+- or any other sequence [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.99s [INFO] running `Command { std: "docker" "inspect" "05475772886f71a6eb6f9353322b7a4eba857308d2e84453a9d5b03c5581f782", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05475772886f71a6eb6f9353322b7a4eba857308d2e84453a9d5b03c5581f782", kill_on_drop: false }` [INFO] [stdout] 05475772886f71a6eb6f9353322b7a4eba857308d2e84453a9d5b03c5581f782