[INFO] cloning repository https://github.com/sahilpatel144/Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sahilpatel144/Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsahilpatel144%2FRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsahilpatel144%2FRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5d000d7aea46804555bfa0d336d0473e8d63ef42 [INFO] checking sahilpatel144/Rust against try#5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsahilpatel144%2FRust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/sahilpatel144/Rust [INFO] finished tweaking git repo https://github.com/sahilpatel144/Rust [INFO] tweaked toml for git repo https://github.com/sahilpatel144/Rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sahilpatel144/Rust on toolchain 5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sahilpatel144/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" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking sahilpatel144/Rust against try#5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsahilpatel144%2FRust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/sahilpatel144/Rust [INFO] finished tweaking git repo https://github.com/sahilpatel144/Rust [INFO] tweaked toml for git repo https://github.com/sahilpatel144/Rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sahilpatel144/Rust on toolchain 5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sahilpatel144/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" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7bb3ca0595662825086e1bd2b777dbbb2ee91c4ace84a16446c7b88da138e945 [INFO] running `Command { std: "docker" "start" "-a" "7bb3ca0595662825086e1bd2b777dbbb2ee91c4ace84a16446c7b88da138e945", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7bb3ca0595662825086e1bd2b777dbbb2ee91c4ace84a16446c7b88da138e945", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7bb3ca0595662825086e1bd2b777dbbb2ee91c4ace84a16446c7b88da138e945", kill_on_drop: false }` [INFO] [stdout] 7bb3ca0595662825086e1bd2b777dbbb2ee91c4ace84a16446c7b88da138e945 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8624c3dc9b5448e1793118f51d807d0f7d6f87beee2b06450829e02b192aea76 [INFO] running `Command { std: "docker" "start" "-a" "8624c3dc9b5448e1793118f51d807d0f7d6f87beee2b06450829e02b192aea76", kill_on_drop: false }` [INFO] [stderr] Checking Rust-Tutorial v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: couldn't read `src/13_traits.rs`: No such file or directory (os error 2) [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: 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: 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: `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: `size_and_colour` [INFO] [stdout] --> src/9_structs.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let size_and_colour = SizeAndColour { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_size_and_colour` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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: fields `0`, `1`, and `2` are never read [INFO] [stdout] --> src/9_structs.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | struct Colour(u8, u8, u8); // Declare the same Colour tuple struct [INFO] [stdout] | ------ ^^ ^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size` and `colour` are never read [INFO] [stdout] --> src/9_structs.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct SizeAndColour { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 4 | size: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | colour: Colour, // And we put it in our new named struct [INFO] [stdout] | ^^^^^^ [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] 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] [stderr] error: could not compile `Rust-Tutorial` (bin "13_traits" test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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: `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: `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: 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: 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: `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] 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: `my_vec2` [INFO] [stdout] --> src/7_vector.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut my_vec2 = vec![8, 10, 10]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_my_vec2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/7_vector.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let mut my_vec2 = vec![8, 10, 10]; [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] running `Command { std: "docker" "inspect" "8624c3dc9b5448e1793118f51d807d0f7d6f87beee2b06450829e02b192aea76", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8624c3dc9b5448e1793118f51d807d0f7d6f87beee2b06450829e02b192aea76", kill_on_drop: false }` [INFO] [stdout] 8624c3dc9b5448e1793118f51d807d0f7d6f87beee2b06450829e02b192aea76