[INFO] cloning repository https://github.com/tomial/rustlings
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tomial/rustlings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftomial%2Frustlings", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftomial%2Frustlings'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c1b9b31430f4b0092262f2330036b105bf3b05cf
[INFO] checking tomial/rustlings against f1c52bf13c990fc425c542cc90a0396a87db24ba for pr-164812
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftomial%2Frustlings" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/tomial/rustlings
[INFO] finished tweaking git repo https://github.com/tomial/rustlings
[INFO] tweaked toml for git repo https://github.com/tomial/rustlings written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/tomial/rustlings on toolchain f1c52bf13c990fc425c542cc90a0396a87db24ba
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f1c52bf13c990fc425c542cc90a0396a87db24ba" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/tomial/rustlings 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" "+f1c52bf13c990fc425c542cc90a0396a87db24ba" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:c0af3998e971868164375a7dfb646c9933ddd1a3bdb00fa2041266763dc1eeab" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 7cdd3f31eb739a10859bda634209b1f2fee3f0cddebf795bf0dbf77661bf0d75
[INFO] running `Command { std: "docker" "start" "7cdd3f31eb739a10859bda634209b1f2fee3f0cddebf795bf0dbf77661bf0d75", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7cdd3f31eb739a10859bda634209b1f2fee3f0cddebf795bf0dbf77661bf0d75", 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" "7cdd3f31eb739a10859bda634209b1f2fee3f0cddebf795bf0dbf77661bf0d75" "/opt/rustwide/cargo-home/bin/cargo" "+f1c52bf13c990fc425c542cc90a0396a87db24ba" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7cdd3f31eb739a10859bda634209b1f2fee3f0cddebf795bf0dbf77661bf0d75", 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" "7cdd3f31eb739a10859bda634209b1f2fee3f0cddebf795bf0dbf77661bf0d75" "/opt/rustwide/cargo-home/bin/cargo" "+f1c52bf13c990fc425c542cc90a0396a87db24ba" "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[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] [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:9:9
[INFO] [stdout]   |
[INFO] [stdout] 8 | fn byte_counter<T>(arg: T) -> usize {
[INFO] [stdout]   |                 - method `as_ref` not found for this type parameter
[INFO] [stdout] 9 |     arg.as_ref().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] 8 | fn byte_counter<T: AsRef</* T */>>(arg: T) -> usize {
[INFO] [stdout]   |                  ++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[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:15:9
[INFO] [stdout]    |
[INFO] [stdout] 14 | fn char_counter<T>(arg: T) -> usize {
[INFO] [stdout]    |                 - method `as_ref` not found for this type parameter
[INFO] [stdout] 15 |     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] 14 | fn char_counter<T: AsRef</* T */>>(arg: T) -> usize {
[INFO] [stdout]    |                  ++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `arg`
[INFO] [stdout]   --> exercises/23_conversions/as_ref_mut.rs:20:14
[INFO] [stdout]    |
[INFO] [stdout] 20 | fn num_sq<T>(arg: &mut T) {
[INFO] [stdout]    |              ^^^ help: if this is intentional, prefix it with an underscore: `_arg`
[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 E0599`.
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]  --> exercises/16_lifetimes/lifetimes3.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 |     author: &str,
[INFO] [stdout]   |             ^ expected named lifetime parameter
[INFO] [stdout]   |
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]   |
[INFO] [stdout] 4 ~ struct Book<'a> {
[INFO] [stdout] 5 ~     author: &'a str,
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]  --> exercises/16_lifetimes/lifetimes3.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 |     title: &str,
[INFO] [stdout]   |            ^ expected named lifetime parameter
[INFO] [stdout]   |
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]   |
[INFO] [stdout] 4 ~ struct Book<'a> {
[INFO] [stdout] 5 |     author: &str,
[INFO] [stdout] 6 ~     title: &'a str,
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "as_ref_mut") due to 2 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0384]: cannot assign twice to immutable variable `x`
[INFO] [stdout]  --> exercises/01_variables/variables4.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 3 |     let x = 3;
[INFO] [stdout]   |         - first assignment to `x`
[INFO] [stdout] ...
[INFO] [stdout] 6 |     x = 5; // Don't change this line
[INFO] [stdout]   |     ^^^^^ cannot assign twice to immutable variable
[INFO] [stdout]   |
[INFO] [stdout] help: consider making this binding mutable
[INFO] [stdout]   |
[INFO] [stdout] 3 |     let mut x = 3;
[INFO] [stdout]   |         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0384`.
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `SystemTime` in this scope
[INFO] [stdout]  --> exercises/10_modules/modules3.rs:9:11
[INFO] [stdout]   |
[INFO] [stdout] 9 |     match SystemTime::now().duration_since(UNIX_EPOCH) {
[INFO] [stdout]   |           ^^^^^^^^^^ use of undeclared type `SystemTime`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 8 + use std::time::SystemTime;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `UNIX_EPOCH` in this scope
[INFO] [stdout]  --> exercises/10_modules/modules3.rs:9:44
[INFO] [stdout]   |
[INFO] [stdout] 9 |     match SystemTime::now().duration_since(UNIX_EPOCH) {
[INFO] [stdout]   |                                            ^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this constant
[INFO] [stdout]   |
[INFO] [stdout] 8 + use std::time::UNIX_EPOCH;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "variables4" test) due to 1 previous error
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] error: missing type for `const` item
[INFO] [stdout]  --> exercises/01_variables/variables6.rs:2:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | const NUMBER = 3;
[INFO] [stdout]   |             ^ help: provide a type for the constant: `: i32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0106`.
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]  --> exercises/09_strings/strings1.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn current_favorite_color() -> String {
[INFO] [stdout]   |                                ------ expected `String` because of return type
[INFO] [stdout] 3 |     "blue"
[INFO] [stdout]   |     ^^^^^^ expected `String`, found `&str`
[INFO] [stdout]   |
[INFO] [stdout] help: try using a conversion method
[INFO] [stdout]   |
[INFO] [stdout] 3 |     "blue".to_string()
[INFO] [stdout]   |           ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: function `make_sausage` is private
[INFO] [stdout]   --> exercises/10_modules/modules1.rs:15:22
[INFO] [stdout]    |
[INFO] [stdout] 15 |     sausage_factory::make_sausage();
[INFO] [stdout]    |                      ^^^^^^^^^^^^ private function
[INFO] [stdout]    |
[INFO] [stdout] note: the function `make_sausage` is defined here
[INFO] [stdout]   --> exercises/10_modules/modules1.rs:8:5
[INFO] [stdout]    |
[INFO] [stdout]  8 |     fn make_sausage() {
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0106`.
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "modules3") due to 2 previous errors
[INFO] [stdout] For more information about this error, try `rustc --explain E0603`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "lifetimes1" test) due to 1 previous error
[INFO] [stderr] error: could not compile `exercises` (bin "strings1" test) due to 1 previous error
[INFO] [stderr] error: could not compile `exercises` (bin "lifetimes3" test) due to 2 previous errors
[INFO] [stderr] error: could not compile `exercises` (bin "variables6" test) due to 1 previous error
[INFO] [stderr] error: could not compile `exercises` (bin "modules1") due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "7cdd3f31eb739a10859bda634209b1f2fee3f0cddebf795bf0dbf77661bf0d75", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7cdd3f31eb739a10859bda634209b1f2fee3f0cddebf795bf0dbf77661bf0d75", kill_on_drop: false }`
[INFO] [stdout] 7cdd3f31eb739a10859bda634209b1f2fee3f0cddebf795bf0dbf77661bf0d75
