[INFO] cloning repository https://github.com/olayad/official-rust-book [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/olayad/official-rust-book" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Folayad%2Fofficial-rust-book", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Folayad%2Fofficial-rust-book'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b7b12c80818d6872f038a4c072e6d4cd6722b794 [INFO] checking olayad/official-rust-book against try#1f308f12738d8cc40bb23bf0c8114b37c164bb49 for pr-137268 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Folayad%2Fofficial-rust-book" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/olayad/official-rust-book on toolchain 1f308f12738d8cc40bb23bf0c8114b37c164bb49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/olayad/official-rust-book [INFO] finished tweaking git repo https://github.com/olayad/official-rust-book [INFO] tweaked toml for git repo https://github.com/olayad/official-rust-book written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/olayad/official-rust-book 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" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "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 olayad/official-rust-book against try#1f308f12738d8cc40bb23bf0c8114b37c164bb49 for pr-137268 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Folayad%2Fofficial-rust-book" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/olayad/official-rust-book on toolchain 1f308f12738d8cc40bb23bf0c8114b37c164bb49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/olayad/official-rust-book [INFO] finished tweaking git repo https://github.com/olayad/official-rust-book [INFO] tweaked toml for git repo https://github.com/olayad/official-rust-book written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/olayad/official-rust-book 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" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 14c942aaf55fdafd09fdafe0b0e86c87e9ec3e57275d0e495c7300a199d69abd [INFO] running `Command { std: "docker" "start" "-a" "14c942aaf55fdafd09fdafe0b0e86c87e9ec3e57275d0e495c7300a199d69abd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14c942aaf55fdafd09fdafe0b0e86c87e9ec3e57275d0e495c7300a199d69abd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14c942aaf55fdafd09fdafe0b0e86c87e9ec3e57275d0e495c7300a199d69abd", kill_on_drop: false }` [INFO] [stdout] 14c942aaf55fdafd09fdafe0b0e86c87e9ec3e57275d0e495c7300a199d69abd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1f308f12738d8cc40bb23bf0c8114b37c164bb49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8b3764410707f1167b152488097122e7a3d9f161837fdc10f0c7cd3ed1cf4b52 [INFO] running `Command { std: "docker" "start" "-a" "8b3764410707f1167b152488097122e7a3d9f161837fdc10f0c7cd3ed1cf4b52", kill_on_drop: false }` [INFO] [stderr] Checking official-rustbook-ex v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0506]: cannot assign to `a` because it is borrowed [INFO] [stdout] --> src/bin/ch03-mut_references.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | let b = &mut a; [INFO] [stdout] | ------ `a` is borrowed here [INFO] [stdout] 4 | *b = String::from("another string"); [INFO] [stdout] 5 | a = String::from("world"); [INFO] [stdout] | ^ `a` is assigned to here but it was already borrowed [INFO] [stdout] 6 | println!("{}", b); [INFO] [stdout] | - borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `a` because it is borrowed [INFO] [stdout] --> src/bin/ch03-mut_references.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | let b = &mut a; [INFO] [stdout] | ------ `a` is borrowed here [INFO] [stdout] 4 | *b = String::from("another string"); [INFO] [stdout] 5 | a = String::from("world"); [INFO] [stdout] | ^ `a` is assigned to here but it was already borrowed [INFO] [stdout] 6 | println!("{}", b); [INFO] [stdout] | - borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/bin/ch05-structs.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | username: &str, [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 1 ~ struct User<'a> { [INFO] [stdout] 2 | active: bool, [INFO] [stdout] 3 ~ username: &'a str, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0506`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0506`. [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/bin/ch05-structs.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | email: &str, [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 1 ~ struct User<'a> { [INFO] [stdout] 2 | active: bool, [INFO] [stdout] 3 | username: &str, [INFO] [stdout] 4 ~ email: &'a str, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/bin/ch02-guessing_game.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `official-rustbook-ex` (bin "ch03-mut_references" test) due to 1 previous error [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/bin/ch02-guessing_game.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `official-rustbook-ex` (bin "ch03-mut_references") due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `official-rustbook-ex` (bin "ch05-structs" test) due to 2 previous errors [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/ch03-fibonacci.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | fn nth_fibonacci(mut second_last:u32, mut last:u32, target:u32) -> u32 { [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: variable does not need to be mutable [INFO] [stdout] --> src/bin/ch03-fibonacci.rs:39:39 [INFO] [stdout] | [INFO] [stdout] 39 | fn nth_fibonacci(mut second_last:u32, mut last:u32, target:u32) -> u32 { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nth_fibonacci_dom` is never used [INFO] [stdout] --> src/bin/ch03-fibonacci.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn nth_fibonacci_dom(second_last:u32, last:u32, target: u32, count: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/bin/ch02-guessing_game.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | let secret_number = rand::thread_rng().gen_range(1..101); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `string` [INFO] [stdout] --> src/bin/ch03-control_flow.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | let mut unit = string::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of unresolved module or unlinked crate `string` [INFO] [stdout] | help: a struct with a similar name exists (notice the capitalization): `String` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `string`, use `cargo add string` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `string` [INFO] [stdout] --> src/bin/ch03-control_flow.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | let mut unit = string::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of unresolved module or unlinked crate `string` [INFO] [stdout] | help: a struct with a similar name exists (notice the capitalization): `String` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `string`, use `cargo add string` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/bin/ch02-guessing_game.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | let secret_number = rand::thread_rng().gen_range(1..101); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `official-rustbook-ex` (bin "ch02-guessing_game" test) due to 2 previous errors [INFO] [stderr] error: could not compile `official-rustbook-ex` (bin "ch03-control_flow" test) due to 1 previous error [INFO] [stderr] error: could not compile `official-rustbook-ex` (bin "ch03-control_flow") due to 1 previous error [INFO] [stderr] error: could not compile `official-rustbook-ex` (bin "ch02-guessing_game") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "8b3764410707f1167b152488097122e7a3d9f161837fdc10f0c7cd3ed1cf4b52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b3764410707f1167b152488097122e7a3d9f161837fdc10f0c7cd3ed1cf4b52", kill_on_drop: false }` [INFO] [stdout] 8b3764410707f1167b152488097122e7a3d9f161837fdc10f0c7cd3ed1cf4b52