[INFO] cloning repository https://github.com/vpin09/Rust-tutorial [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vpin09/Rust-tutorial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvpin09%2FRust-tutorial", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvpin09%2FRust-tutorial'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5d000d7aea46804555bfa0d336d0473e8d63ef42 [INFO] checking vpin09/Rust-tutorial against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvpin09%2FRust-tutorial" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vpin09/Rust-tutorial [INFO] finished tweaking git repo https://github.com/vpin09/Rust-tutorial [INFO] tweaked toml for git repo https://github.com/vpin09/Rust-tutorial written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vpin09/Rust-tutorial on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vpin09/Rust-tutorial 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" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 20ea493208575475e9927e462b91c3b7fe13ba126e5e67d25c4f2b210d8c2f37 [INFO] running `Command { std: "docker" "start" "-a" "20ea493208575475e9927e462b91c3b7fe13ba126e5e67d25c4f2b210d8c2f37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "20ea493208575475e9927e462b91c3b7fe13ba126e5e67d25c4f2b210d8c2f37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20ea493208575475e9927e462b91c3b7fe13ba126e5e67d25c4f2b210d8c2f37", kill_on_drop: false }` [INFO] [stdout] 20ea493208575475e9927e462b91c3b7fe13ba126e5e67d25c4f2b210d8c2f37 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 269be90f330e702a5690b8c51ba5b90db9e762e7ab94f8bb1fbf88c8567a0889 [INFO] running `Command { std: "docker" "start" "-a" "269be90f330e702a5690b8c51ba5b90db9e762e7ab94f8bb1fbf88c8567a0889", kill_on_drop: false }` [INFO] [stderr] Checking Rust-Tutorial v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `num_ref` [INFO] [stdout] --> src/4_ref.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let num_ref = &mut my_number; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_ref` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `my_number` is assigned to, but never used [INFO] [stdout] --> src/2_mutable.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | let mut my_number = 8; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_my_number` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `my_number` is never read [INFO] [stdout] --> src/2_mutable.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | my_number = 10; // ⚠️ [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: unused variable: `num_ref` [INFO] [stdout] --> src/4_ref.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let num_ref = &mut my_number; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_ref` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/8_if_else.rs`: No such file or directory (os error 2) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_letter` [INFO] [stdout] --> src/1_Types.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let first_letter = 'A'; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_letter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/1_Types.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let space: char = ' '; // A space inside ' ' is also a char [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other_language_char` [INFO] [stdout] --> src/1_Types.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let other_language_char = 'Ꮔ'; // Thanks to Unicode, other languages like Cherokee display just fine too [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_other_language_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cat_face` [INFO] [stdout] --> src/1_Types.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let cat_face: char = '😺'; // Emojis are chars too [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cat_face` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_number` [INFO] [stdout] --> src/1_Types.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let my_number = 100; // We didn't write a type of integer, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `small_number` [INFO] [stdout] --> src/1_Types.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let small_number: u8 = 10; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_small_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_float` [INFO] [stdout] --> src/1_Types.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let my_float: f64 = 5.0; // The compiler sees an f64 [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_letter` [INFO] [stdout] --> src/1_Types.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let first_letter = 'A'; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_letter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Rust-Tutorial` (bin "8_if_else") due to 1 previous error [INFO] [stdout] warning: unused variable: `space` [INFO] [stdout] --> src/1_Types.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let space: char = ' '; // A space inside ' ' is also a char [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `other_language_char` [INFO] [stdout] --> src/1_Types.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let other_language_char = 'Ꮔ'; // Thanks to Unicode, other languages like Cherokee display just fine too [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_other_language_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cat_face` [INFO] [stdout] --> src/1_Types.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let cat_face: char = '😺'; // Emojis are chars too [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cat_face` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_number` [INFO] [stdout] --> src/1_Types.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let my_number = 100; // We didn't write a type of integer, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `small_number` [INFO] [stdout] --> src/1_Types.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let small_number: u8 = 10; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_small_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `my_float` [INFO] [stdout] --> src/1_Types.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let my_float: f64 = 5.0; // The compiler sees an f64 [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `my_number` is assigned to, but never used [INFO] [stdout] --> src/2_mutable.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | let mut my_number = 8; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_my_number` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `age` is never read [INFO] [stdout] --> src/12_impl.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Animal { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 3 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Animal` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `my_number` is never read [INFO] [stdout] --> src/2_mutable.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | my_number = 10; // ⚠️ [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: field `age` is never read [INFO] [stdout] --> src/12_impl.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Animal { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 3 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Animal` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array1` [INFO] [stdout] --> src/6_arrays.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let array1 = ["One", "Two"]; // This one is type [&str; 2] [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_array1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `array2` [INFO] [stdout] --> src/6_arrays.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let array2 = ["One", "Two", "Five"]; // But this one is type [&str; 3]. Different type! [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_array2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/3_strings.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let name = "HEllo"; // This is a &str is UTF-8. [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other_name` [INFO] [stdout] --> src/3_strings.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let other_name = String::from("Hello"); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_other_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/8_if_else.rs`: No such file or directory (os error 2) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Rust-Tutorial` (bin "8_if_else" test) due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "269be90f330e702a5690b8c51ba5b90db9e762e7ab94f8bb1fbf88c8567a0889", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "269be90f330e702a5690b8c51ba5b90db9e762e7ab94f8bb1fbf88c8567a0889", kill_on_drop: false }` [INFO] [stdout] 269be90f330e702a5690b8c51ba5b90db9e762e7ab94f8bb1fbf88c8567a0889