[INFO] cloning repository https://github.com/diego-jamie-stream/rustlings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/diego-jamie-stream/rustlings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiego-jamie-stream%2Frustlings", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiego-jamie-stream%2Frustlings'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d1bd4562853ac8f8d3276221d9f23b30c7803634 [INFO] checking diego-jamie-stream/rustlings against try#a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399 for pr-145770 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdiego-jamie-stream%2Frustlings" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/diego-jamie-stream/rustlings [INFO] finished tweaking git repo https://github.com/diego-jamie-stream/rustlings [INFO] tweaked toml for git repo https://github.com/diego-jamie-stream/rustlings written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/diego-jamie-stream/rustlings on toolchain a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4cf520c9f86929bbea9c117b9f667202ec3a4ebc8006662bb4d4d0db58cf259d [INFO] running `Command { std: "docker" "start" "-a" "4cf520c9f86929bbea9c117b9f667202ec3a4ebc8006662bb4d4d0db58cf259d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4cf520c9f86929bbea9c117b9f667202ec3a4ebc8006662bb4d4d0db58cf259d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4cf520c9f86929bbea9c117b9f667202ec3a4ebc8006662bb4d4d0db58cf259d", kill_on_drop: false }` [INFO] [stdout] 4cf520c9f86929bbea9c117b9f667202ec3a4ebc8006662bb4d4d0db58cf259d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f28675438bd3531c2fa71fa1c5734c7326212af1cbcc9747c453ca5fb049adf [INFO] running `Command { std: "docker" "start" "-a" "1f28675438bd3531c2fa71fa1c5734c7326212af1cbcc9747c453ca5fb049adf", kill_on_drop: false }` [INFO] [stderr] Checking exercises v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/18_iterators/iterators2.rs:17:47 [INFO] [stdout] | [INFO] [stdout] 17 | fn capitalize_words_vector(words: &[&str]) -> Vec { [INFO] [stdout] | ----------------------- ^^^^^^^^^^^ expected `Vec`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/18_iterators/iterators2.rs:24:47 [INFO] [stdout] | [INFO] [stdout] 24 | fn capitalize_words_string(words: &[&str]) -> String { [INFO] [stdout] | ----------------------- ^^^^^^ expected `String`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> exercises/18_iterators/iterators2.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | Some(first) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "iterators2") due to 2 previous errors; 1 warning emitted [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: unexpected end of macro invocation [INFO] [stdout] --> exercises/17_tests/tests2.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | assert_eq!(); [INFO] [stdout] | ^^^^^^^^^^^^ missing tokens in macro arguments [INFO] [stdout] | [INFO] [stdout] note: while trying to match meta-variable `$left:expr` [INFO] [stdout] --> /rustc/a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399/library/core/src/macros/mod.rs:43:6 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected end of macro invocation [INFO] [stdout] --> exercises/17_tests/tests2.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | assert_eq!(); [INFO] [stdout] | ^^^^^^^^^^^^ missing tokens in macro arguments [INFO] [stdout] | [INFO] [stdout] note: while trying to match meta-variable `$left:expr` [INFO] [stdout] --> /rustc/a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399/library/core/src/macros/mod.rs:43:6 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected end of macro invocation [INFO] [stdout] --> exercises/17_tests/tests2.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | assert_eq!(); [INFO] [stdout] | ^^^^^^^^^^^^ missing tokens in macro arguments [INFO] [stdout] | [INFO] [stdout] note: while trying to match meta-variable `$left:expr` [INFO] [stdout] --> /rustc/a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399/library/core/src/macros/mod.rs:43:6 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected end of macro invocation [INFO] [stdout] --> exercises/17_tests/tests2.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(); [INFO] [stdout] | ^^^^^^^^^^^^ missing tokens in macro arguments [INFO] [stdout] | [INFO] [stdout] note: while trying to match meta-variable `$left:expr` [INFO] [stdout] --> /rustc/a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399/library/core/src/macros/mod.rs:43:6 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `vec` as mutable, as it is not declared as mutable [INFO] [stdout] --> exercises/06_move_semantics/move_semantics3.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | vec.push(88); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 2 | fn fill_vec(mut vec: Vec) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> exercises/17_tests/tests2.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bigger` is never used [INFO] [stdout] --> exercises/03_if/if1.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn bigger(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "move_semantics3") due to 1 previous error [INFO] [stdout] error[E0599]: no method named `as_ref` found for type parameter `T` in the current scope [INFO] [stdout] --> exercises/23_conversions/as_ref_mut.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | fn byte_counter(arg: T) -> usize { [INFO] [stdout] | - method `as_ref` not found for this type parameter [INFO] [stdout] 8 | arg.as_ref().as_bytes().len() [INFO] [stdout] | ^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `as_ref`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 7 | fn byte_counter>(arg: T) -> usize { [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "tests2" test) due to 4 previous errors; 1 warning emitted [INFO] [stdout] error[E0599]: no method named `as_ref` found for type parameter `T` in the current scope [INFO] [stdout] --> exercises/23_conversions/as_ref_mut.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | fn char_counter(arg: T) -> usize { [INFO] [stdout] | - method `as_ref` not found for this type parameter [INFO] [stdout] 14 | arg.as_ref().chars().count() [INFO] [stdout] | ^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `as_ref`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 13 | fn char_counter>(arg: T) -> usize { [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `append_bar` found for struct `Vec` in the current scope [INFO] [stdout] --> exercises/15_traits/traits2.rs:18:49 [INFO] [stdout] | [INFO] [stdout] 18 | let mut foo = vec![String::from("Foo")].append_bar(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AppendBar` defines an item `append_bar`, perhaps you need to implement it [INFO] [stdout] --> exercises/15_traits/traits2.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | trait AppendBar { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is a method `append` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399/library/alloc/src/vec/mod.rs:2625:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arg` [INFO] [stdout] --> exercises/23_conversions/as_ref_mut.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | fn num_sq(arg: &mut T) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "traits2" test) due to 1 previous error [INFO] [stdout] warning: struct `Order` is never constructed [INFO] [stdout] --> exercises/07_structs/structs2.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Order { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/09_strings/strings2.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | if is_a_color_word(word) { [INFO] [stdout] | --------------- ^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings2.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn is_a_color_word(attempt: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 9 | if is_a_color_word(&word) { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_order_template` is never used [INFO] [stdout] --> exercises/07_structs/structs2.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn create_order_template() -> Order { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "as_ref_mut" test) due to 2 previous errors; 1 warning emitted [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "strings2" test) due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "1f28675438bd3531c2fa71fa1c5734c7326212af1cbcc9747c453ca5fb049adf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f28675438bd3531c2fa71fa1c5734c7326212af1cbcc9747c453ca5fb049adf", kill_on_drop: false }` [INFO] [stdout] 1f28675438bd3531c2fa71fa1c5734c7326212af1cbcc9747c453ca5fb049adf