[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+rustflags=-Znext-solver=coherence 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-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/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-tc1/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-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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] 7b0eb489e3544dd77fde9b5d284138408deb2c3af91a476372bec39dbd18f1bc
[INFO] running `Command { std: "docker" "start" "7b0eb489e3544dd77fde9b5d284138408deb2c3af91a476372bec39dbd18f1bc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7b0eb489e3544dd77fde9b5d284138408deb2c3af91a476372bec39dbd18f1bc", 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" "7b0eb489e3544dd77fde9b5d284138408deb2c3af91a476372bec39dbd18f1bc" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7b0eb489e3544dd77fde9b5d284138408deb2c3af91a476372bec39dbd18f1bc", 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 -Znext-solver=coherence" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "7b0eb489e3544dd77fde9b5d284138408deb2c3af91a476372bec39dbd18f1bc" "/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[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] warning: unused variable: `basket`
[INFO] [stdout]   --> exercises/11_hashmaps/hashmaps2.rs:22:17
[INFO] [stdout]    |
[INFO] [stdout] 22 | fn fruit_basket(basket: &mut HashMap<Fruit, u32>) {
[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] For more information about this error, try `rustc --explain E0603`.
[INFO] [stdout] 
[INFO] [stdout] error: macro requires a boolean expression as an argument
[INFO] [stdout]   --> exercises/17_tests/tests1.rs:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |         assert!();
[INFO] [stdout]    |         ^^^^^^^^^ boolean expression required
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: macro requires a boolean expression as an argument
[INFO] [stdout]   --> exercises/17_tests/tests1.rs:21:9
[INFO] [stdout]    |
[INFO] [stdout] 21 |         assert!();
[INFO] [stdout]    |         ^^^^^^^^^ boolean expression required
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "modules1" test) due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: expected one of `,`, `:`, or `}`, found `!`
[INFO] [stdout]   --> exercises/12_options/options2.rs:14:22
[INFO] [stdout]    |
[INFO] [stdout] 13 |         word = optional_target {
[INFO] [stdout]    |                --------------- while parsing this struct
[INFO] [stdout] 14 |             assert_eq!(word, target);
[INFO] [stdout]    |             ---------^ expected one of `,`, `:`, or `}`
[INFO] [stdout]    |             |
[INFO] [stdout]    |             while parsing this struct field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected one of `,`, `:`, or `}`, found `)`
[INFO] [stdout]   --> exercises/12_options/options2.rs:14:36
[INFO] [stdout]    |
[INFO] [stdout] 13 |         word = optional_target {
[INFO] [stdout]    |                --------------- while parsing this struct
[INFO] [stdout] 14 |             assert_eq!(word, target);
[INFO] [stdout]    |                                    ^ expected one of `,`, `:`, or `}`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
[INFO] [stdout]   --> exercises/12_options/options2.rs:32:43
[INFO] [stdout]    |
[INFO] [stdout] 32 |         integer = optional_integers.pop() {
[INFO] [stdout]    |                                           ^ expected one of `.`, `;`, `?`, `}`, or an operator
[INFO] [stdout] 
[INFO] [stdout] 
[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] [stderr] error: could not compile `exercises` (bin "tests1" test) due to 2 previous errors
[INFO] [stdout] error[E0382]: use of moved value: `tx`
[INFO] [stdout]   --> exercises/20_threads/threads3.rs:28:19
[INFO] [stdout]    |
[INFO] [stdout] 17 | fn send_tx(q: Queue, tx: mpsc::Sender<u32>) {
[INFO] [stdout]    |                      -- move occurs because `tx` has type `std::sync::mpsc::Sender<u32>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 20 |     thread::spawn(move || {
[INFO] [stdout]    |                   ------- value moved into closure here
[INFO] [stdout] 21 |         for val in q.first_half {
[INFO] [stdout]    |         ----------------------- inside of this loop
[INFO] [stdout] 22 |             println!("Sending {val:?}");
[INFO] [stdout] 23 |             tx.send(val).unwrap();
[INFO] [stdout]    |             -- variable moved due to use in closure
[INFO] [stdout] ...
[INFO] [stdout] 28 |     thread::spawn(move || {
[INFO] [stdout]    |                   ^^^^^^^ value used here after move
[INFO] [stdout] ...
[INFO] [stdout] 31 |             tx.send(val).unwrap();
[INFO] [stdout]    |             -- use occurs due to use in closure
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value before moving it into the closure
[INFO] [stdout]    |
[INFO] [stdout] 20 ~     let value = tx.clone();
[INFO] [stdout] 21 ~     thread::spawn(move || {
[INFO] [stdout] 22 |         for val in q.first_half {
[INFO] [stdout] 23 |             println!("Sending {val:?}");
[INFO] [stdout] 24 ~             value.send(val).unwrap();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "threads3") due to 1 previous error
[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] [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] [stderr] error: could not compile `exercises` (bin "options2") due to 3 previous errors
[INFO] [stderr] error: could not compile `exercises` (bin "modules3" test) due to 2 previous errors
[INFO] [stdout] For more information about this error, try `rustc --explain E0072`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "box1" test) due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "7b0eb489e3544dd77fde9b5d284138408deb2c3af91a476372bec39dbd18f1bc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7b0eb489e3544dd77fde9b5d284138408deb2c3af91a476372bec39dbd18f1bc", kill_on_drop: false }`
[INFO] [stdout] 7b0eb489e3544dd77fde9b5d284138408deb2c3af91a476372bec39dbd18f1bc
