[INFO] cloning repository https://github.com/erakankshasingh/learning-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/erakankshasingh/learning-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferakankshasingh%2Flearning-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferakankshasingh%2Flearning-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a98a76779723f5c65c96465d138e8835e034c069
[INFO] checking erakankshasingh/learning-rust against 3154cc1a3e6424e44f438a95007d043ed5ceaaf6 for pr-133502-30
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ferakankshasingh%2Flearning-rust" "/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/erakankshasingh/learning-rust
[INFO] finished tweaking git repo https://github.com/erakankshasingh/learning-rust
[INFO] tweaked toml for git repo https://github.com/erakankshasingh/learning-rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/erakankshasingh/learning-rust on toolchain 3154cc1a3e6424e44f438a95007d043ed5ceaaf6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/erakankshasingh/learning-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" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] d40b8aadb79bff8b6abcf4fde3b1832fd3658af7598542091c4157fd7c24cfe8
[INFO] running `Command { std: "docker" "start" "d40b8aadb79bff8b6abcf4fde3b1832fd3658af7598542091c4157fd7c24cfe8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d40b8aadb79bff8b6abcf4fde3b1832fd3658af7598542091c4157fd7c24cfe8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d40b8aadb79bff8b6abcf4fde3b1832fd3658af7598542091c4157fd7c24cfe8" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d40b8aadb79bff8b6abcf4fde3b1832fd3658af7598542091c4157fd7c24cfe8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d40b8aadb79bff8b6abcf4fde3b1832fd3658af7598542091c4157fd7c24cfe8" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking exercises v0.0.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0597]: `string2` does not live long enough
[INFO] [stdout]   --> exercises/16_lifetimes/lifetimes2.rs:17:36
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let string2 = String::from("xyz");
[INFO] [stdout]    |             ------- binding `string2` declared here
[INFO] [stdout] 17 |         result = longest(&string1, &string2);
[INFO] [stdout]    |                                    ^^^^^^^^ borrowed value does not live long enough
[INFO] [stdout] 18 |     }
[INFO] [stdout]    |     - `string2` dropped here while still borrowed
[INFO] [stdout] 19 |     println!("The longest string is '{result}'");
[INFO] [stdout]    |                                       ------ borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0597`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "lifetimes2") due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[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<String> {
[INFO] [stdout]    |    -----------------------                    ^^^^^^^^^^^ expected `Vec<String>`, found `()`
[INFO] [stdout]    |    |
[INFO] [stdout]    |    implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<String>`
[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)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: cannot divide `f64` by `usize`
[INFO] [stdout]  --> exercises/23_conversions/using_as.rs:8:11
[INFO] [stdout]   |
[INFO] [stdout] 8 |     total / values.len()
[INFO] [stdout]   |           ^ no implementation for `f64 / usize`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `Div<usize>` is not implemented for `f64`
[INFO] [stdout] help: the following other types implement trait `Div<Rhs>`
[INFO] [stdout]  --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/internal_macros.rs:22:8
[INFO] [stdout]   |
[INFO] [stdout]   = note: `&f64` implements `Div<f64>`
[INFO] [stdout]  ::: /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/internal_macros.rs:33:8
[INFO] [stdout]   |
[INFO] [stdout]   = note: `f64` implements `Div<&f64>`
[INFO] [stdout]  ::: /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/internal_macros.rs:44:8
[INFO] [stdout]   |
[INFO] [stdout]   = note: `&f64` implements `Div`
[INFO] [stdout]  --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/ops/arith.rs:511:8
[INFO] [stdout]   |
[INFO] [stdout]   = note: `f64` implements `Div`
[INFO] [stdout]  ::: /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/ops/arith.rs:524:0
[INFO] [stdout]   |
[INFO] [stdout]   = note: in this macro invocation
[INFO] [stdout]   = note: this error originates in the macro `forward_ref_binop` which comes from the expansion of the macro `div_impl_float` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused macro definition: `my_macro`
[INFO] [stdout]  --> exercises/21_macros/macros1.rs:1:14
[INFO] [stdout]   |
[INFO] [stdout] 1 | macro_rules! my_macro {
[INFO] [stdout]   |              ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: cannot find function `my_macro` in this scope
[INFO] [stdout]  --> exercises/21_macros/macros1.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 |     my_macro();
[INFO] [stdout]   |     ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout]   = note: a macro named `my_macro` exists in another namespace
[INFO] [stdout] help: use `!` to invoke the macro
[INFO] [stdout]   |
[INFO] [stdout] 9 |     my_macro!();
[INFO] [stdout]   |             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0423`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "iterators2" test) due to 2 previous errors; 1 warning emitted
[INFO] [stderr] error: could not compile `exercises` (bin "using_as" test) due to 1 previous error
[INFO] [stderr] error: could not compile `exercises` (bin "macros1") due to 1 previous error; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "d40b8aadb79bff8b6abcf4fde3b1832fd3658af7598542091c4157fd7c24cfe8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d40b8aadb79bff8b6abcf4fde3b1832fd3658af7598542091c4157fd7c24cfe8", kill_on_drop: false }`
[INFO] [stdout] d40b8aadb79bff8b6abcf4fde3b1832fd3658af7598542091c4157fd7c24cfe8
