[INFO] cloning repository https://github.com/gomel-tdl1/rust-sandbox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gomel-tdl1/rust-sandbox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgomel-tdl1%2Frust-sandbox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgomel-tdl1%2Frust-sandbox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 150bef27e4e71cb0db86e0f7fff76be9afd6de01 [INFO] checking gomel-tdl1/rust-sandbox against try#3fada14ee01d755dc8076e611f11bf65b28ffd21 for pr-154971 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgomel-tdl1%2Frust-sandbox" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gomel-tdl1/rust-sandbox [INFO] finished tweaking git repo https://github.com/gomel-tdl1/rust-sandbox [INFO] tweaked toml for git repo https://github.com/gomel-tdl1/rust-sandbox written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gomel-tdl1/rust-sandbox on toolchain 3fada14ee01d755dc8076e611f11bf65b28ffd21 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3fada14ee01d755dc8076e611f11bf65b28ffd21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/gomel-tdl1/rust-sandbox 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" "+3fada14ee01d755dc8076e611f11bf65b28ffd21" "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 gomel-tdl1/rust-sandbox against try#3fada14ee01d755dc8076e611f11bf65b28ffd21 for pr-154971 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgomel-tdl1%2Frust-sandbox" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gomel-tdl1/rust-sandbox [INFO] finished tweaking git repo https://github.com/gomel-tdl1/rust-sandbox [INFO] tweaked toml for git repo https://github.com/gomel-tdl1/rust-sandbox written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gomel-tdl1/rust-sandbox on toolchain 3fada14ee01d755dc8076e611f11bf65b28ffd21 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3fada14ee01d755dc8076e611f11bf65b28ffd21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/gomel-tdl1/rust-sandbox 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" "+3fada14ee01d755dc8076e611f11bf65b28ffd21" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3fada14ee01d755dc8076e611f11bf65b28ffd21" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a22ead70eab07cbfbb4fbd9b91a20933445806147ca605666b97a1fd09c21d1f [INFO] running `Command { std: "docker" "start" "-a" "a22ead70eab07cbfbb4fbd9b91a20933445806147ca605666b97a1fd09c21d1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a22ead70eab07cbfbb4fbd9b91a20933445806147ca605666b97a1fd09c21d1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a22ead70eab07cbfbb4fbd9b91a20933445806147ca605666b97a1fd09c21d1f", kill_on_drop: false }` [INFO] [stdout] a22ead70eab07cbfbb4fbd9b91a20933445806147ca605666b97a1fd09c21d1f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3fada14ee01d755dc8076e611f11bf65b28ffd21" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dec0d953488e6b99e5cbdd1c551afc35469b9f0591a96924e9bf0dd0ca7caabd [INFO] running `Command { std: "docker" "start" "-a" "dec0d953488e6b99e5cbdd1c551afc35469b9f0591a96924e9bf0dd0ca7caabd", kill_on_drop: false }` [INFO] [stderr] Checking exercises v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `abs_all` is never used [INFO] [stdout] --> exercises/19_smart_pointers/cow1.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn abs_all(input: &mut Cow<[i32]>) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/18_iterators/iterators4.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | fn factorial(num: u64) -> u64 { [INFO] [stdout] | --------- ^^^ expected `u64`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] help: consider returning the local binding `num` [INFO] [stdout] | [INFO] [stdout] 1 | fn factorial(num: u64) -> u64 { [INFO] [stdout] 2 ~ num [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `basket` [INFO] [stdout] --> exercises/11_hashmaps/hashmaps2.rs:22:17 [INFO] [stdout] | [INFO] [stdout] 22 | fn fruit_basket(basket: &mut HashMap) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_basket` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fruit` [INFO] [stdout] --> exercises/11_hashmaps/hashmaps2.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | for fruit in fruit_kinds { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_fruit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `()` [INFO] [stdout] --> exercises/05_vecs/vecs2.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<()>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/3fada14ee01d755dc8076e611f11bf65b28ffd21/library/alloc/src/vec/mod.rs:3888:0 [INFO] [stdout] = help: for that trait implementation, expected `i32`, found `()` [INFO] [stdout] note: the method call chain might not have had the expected associated types [INFO] [stdout] --> exercises/05_vecs/vecs2.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 24 | input [INFO] [stdout] | ----- this expression has type `&[i32]` [INFO] [stdout] 25 | .iter() [INFO] [stdout] | ------ `Iterator::Item` is `&i32` here [INFO] [stdout] 26 | .map(|element| { [INFO] [stdout] | __________^ [INFO] [stdout] 27 | | // ??? [INFO] [stdout] 28 | | }) [INFO] [stdout] | |__________^ `Iterator::Item` changed to `()` here [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/3fada14ee01d755dc8076e611f11bf65b28ffd21/library/core/src/iter/traits/iterator.rs:2079:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> exercises/05_vecs/vecs2.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let mut output = Vec::new(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `element` [INFO] [stdout] --> exercises/05_vecs/vecs2.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | for element in input { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_element` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `append_bar` [INFO] [stdout] --> exercises/15_traits/traits1.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 4 | fn append_bar(self) -> Self; [INFO] [stdout] | ---------------------------- `append_bar` from trait [INFO] [stdout] ... [INFO] [stdout] 7 | impl AppendBar for String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ missing `append_bar` in implementation [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "iterators4" test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `exercises` (bin "vecs2") due to 1 previous error; 2 warnings emitted [INFO] [stdout] For more information about this error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/16_lifetimes/lifetimes1.rs:7:33 [INFO] [stdout] | [INFO] [stdout] 7 | fn longest(x: &str, y: &str) -> &str { [INFO] [stdout] | ---- ---- ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `x` or `y` [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 7 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ++++ ++ ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "traits1" test) 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 `exercises` (bin "lifetimes1") due to 1 previous error [INFO] [stdout] error[E0425]: cannot find value `a` in this scope [INFO] [stdout] --> exercises/04_primitive_types/primitive_types3.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | if a.len() >= 100 { [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "primitive_types3") due to 1 previous error [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/13_error_handling/errors1.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | Ok("Hi! My name is Beyoncé"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<&str>`, found `Result<&str, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<&str>` [INFO] [stdout] found enum `Result<&str, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `map_err` found for enum `Option` in the current scope [INFO] [stdout] --> exercises/13_error_handling/errors1.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 35 | / generate_nametag_text(String::new()) [INFO] [stdout] 36 | | .as_ref() [INFO] [stdout] 37 | | .map_err(|e| e.as_str()), [INFO] [stdout] | |_________________-^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `map_or` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/3fada14ee01d755dc8076e611f11bf65b28ffd21/library/core/src/option.rs:1224:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "errors1" test) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "dec0d953488e6b99e5cbdd1c551afc35469b9f0591a96924e9bf0dd0ca7caabd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dec0d953488e6b99e5cbdd1c551afc35469b9f0591a96924e9bf0dd0ca7caabd", kill_on_drop: false }` [INFO] [stdout] dec0d953488e6b99e5cbdd1c551afc35469b9f0591a96924e9bf0dd0ca7caabd