[INFO] cloning repository https://github.com/Anu-Ra-g/Rustlings_course
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Anu-Ra-g/Rustlings_course" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnu-Ra-g%2FRustlings_course", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnu-Ra-g%2FRustlings_course'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 2cf814396d063ae41607a87034f5a14a9dd3ce35
[INFO] checking Anu-Ra-g/Rustlings_course against try#c8085cfed34c45021fc8f66d073f6394b3e35431 for pr-148939
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnu-Ra-g%2FRustlings_course" "/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/Anu-Ra-g/Rustlings_course
[INFO] finished tweaking git repo https://github.com/Anu-Ra-g/Rustlings_course
[INFO] tweaked toml for git repo https://github.com/Anu-Ra-g/Rustlings_course written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Anu-Ra-g/Rustlings_course on toolchain c8085cfed34c45021fc8f66d073f6394b3e35431
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c8085cfed34c45021fc8f66d073f6394b3e35431" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Anu-Ra-g/Rustlings_course 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" "+c8085cfed34c45021fc8f66d073f6394b3e35431" "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/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+c8085cfed34c45021fc8f66d073f6394b3e35431" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 2f24b56372c5780e09107ebd456ba893f365e864f0088849df40d0c307d99489
[INFO] running `Command { std: "docker" "start" "-a" "2f24b56372c5780e09107ebd456ba893f365e864f0088849df40d0c307d99489", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2f24b56372c5780e09107ebd456ba893f365e864f0088849df40d0c307d99489", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2f24b56372c5780e09107ebd456ba893f365e864f0088849df40d0c307d99489", kill_on_drop: false }`
[INFO] [stdout] 2f24b56372c5780e09107ebd456ba893f365e864f0088849df40d0c307d99489
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+c8085cfed34c45021fc8f66d073f6394b3e35431" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] fb85c07bf4f691c97d30cb6463fee06e74ac8f55e8df17a54ac5a29b35d3b789
[INFO] running `Command { std: "docker" "start" "-a" "fb85c07bf4f691c97d30cb6463fee06e74ac8f55e8df17a54ac5a29b35d3b789", kill_on_drop: false }`
[INFO] [stderr]     Checking exercises v0.0.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0282]: type annotations needed for `Vec<_>`
[INFO] [stdout]  --> exercises/14_generics/generics1.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let mut numbers = Vec::new();
[INFO] [stdout]   |         ^^^^^^^^^^^   ---------- type must be known at this point
[INFO] [stdout]   |
[INFO] [stdout] help: consider giving `numbers` an explicit type, where the type for type parameter `T` is specified
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let mut numbers: Vec<T> = Vec::new();
[INFO] [stdout]   |                    ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of partially moved value: `optional_point`
[INFO] [stdout]   --> exercises/12_options/options3.rs:16:16
[INFO] [stdout]    |
[INFO] [stdout] 12 |         Some(p) => println!("Co-ordinates are {},{}", p.x, p.y),
[INFO] [stdout]    |              - value partially moved here
[INFO] [stdout] ...
[INFO] [stdout] 16 |     println!("{optional_point:?}"); // Don't change this line.
[INFO] [stdout]    |                ^^^^^^^^^^^^^^ value borrowed here after partial move
[INFO] [stdout]    |
[INFO] [stdout]    = note: partial move occurs because value has type `Point`, which does not implement the `Copy` trait
[INFO] [stdout]    = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]    |
[INFO] [stdout] 12 |         Some(ref p) => println!("Co-ordinates are {},{}", p.x, p.y),
[INFO] [stdout]    |              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SystemTime`
[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] For more information about this error, try `rustc --explain E0382`.
[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] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> exercises/13_error_handling/errors5.rs:53:44
[INFO] [stdout]    |
[INFO] [stdout] 51 | fn main() {
[INFO] [stdout]    | --------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] 52 |     let pretend_user_input = "42";
[INFO] [stdout] 53 |     let x: i64 = pretend_user_input.parse()?;
[INFO] [stdout]    |                                            ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]    |
[INFO] [stdout] 51 | fn main() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]    |           +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]   --> exercises/13_error_handling/errors5.rs:54:59
[INFO] [stdout]    |
[INFO] [stdout] 51 | fn main() {
[INFO] [stdout]    | --------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 54 |     println!("output={:?}", PositiveNonzeroInteger::new(x)?);
[INFO] [stdout]    |                                                           ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]    |
[INFO] [stdout] help: consider adding return type
[INFO] [stdout]    |
[INFO] [stdout] 51 | fn main() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]    |           +++++++++++++++++++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> exercises/10_modules/modules3.rs:10:74
[INFO] [stdout]    |
[INFO] [stdout] 10 |         Ok(n) => println!("1970-01-01 00:00:00 UTC was {} seconds ago!", n.as_secs()),
[INFO] [stdout]    |                                                                          ^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "options3") due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> exercises/13_error_handling/errors5.rs:55:5
[INFO] [stdout]    |
[INFO] [stdout] 51 | fn main() {
[INFO] [stdout]    |          - expected `()` because of default return type
[INFO] [stdout] ...
[INFO] [stdout] 55 |     Ok(())
[INFO] [stdout]    |     ^^^^^^ expected `()`, found `Result<(), _>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected unit type `()`
[INFO] [stdout]                    found enum `Result<(), _>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0308.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "modules3" test) due to 3 previous errors
[INFO] [stdout] error[E0072]: recursive type `List` has infinite size
[INFO] [stdout]   --> exercises/19_smart_pointers/box1.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | enum List {
[INFO] [stdout]    | ^^^^^^^^^
[INFO] [stdout] 15 |     Cons(i32, List),
[INFO] [stdout]    |               ---- recursive without indirection
[INFO] [stdout]    |
[INFO] [stdout] help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
[INFO] [stdout]    |
[INFO] [stdout] 15 |     Cons(i32, Box<List>),
[INFO] [stdout]    |               ++++    +
[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/c8085cfed34c45021fc8f66d073f6394b3e35431/library/core/src/ops/arith.rs:526:0
[INFO] [stdout]   |
[INFO] [stdout]   = note: `&f64` implements `Div<f64>`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `&f64` implements `Div`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `f64` implements `Div<&f64>`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `f64` implements `Div`
[INFO] [stdout]   = note: this error originates in the macro `div_impl_float` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0391]: cycle detected when computing drop-check constraints for `List`
[INFO] [stdout]   --> exercises/19_smart_pointers/box1.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | enum List {
[INFO] [stdout]    | ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: ...which immediately requires computing drop-check constraints for `List` again
[INFO] [stdout]    = note: cycle used when computing dropck types for `List`
[INFO] [stdout]    = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "errors5") due to 3 previous errors
[INFO] [stdout] error[E0391]: cycle detected when computing when `List` needs drop
[INFO] [stdout]   --> exercises/19_smart_pointers/box1.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | enum List {
[INFO] [stdout]    | ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: ...which immediately requires computing when `List` needs drop again
[INFO] [stdout]    = note: cycle used when computing whether `List` needs drop
[INFO] [stdout]    = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0072, E0391.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0072`.
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "box1" test) due to 3 previous errors
[INFO] [stderr] error: could not compile `exercises` (bin "using_as") due to 1 previous error
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "generics1") due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "fb85c07bf4f691c97d30cb6463fee06e74ac8f55e8df17a54ac5a29b35d3b789", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fb85c07bf4f691c97d30cb6463fee06e74ac8f55e8df17a54ac5a29b35d3b789", kill_on_drop: false }`
[INFO] [stdout] fb85c07bf4f691c97d30cb6463fee06e74ac8f55e8df17a54ac5a29b35d3b789
