[INFO] cloning repository https://github.com/Angluca/rustlings-zh-cn-rustacean
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Angluca/rustlings-zh-cn-rustacean" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAngluca%2Frustlings-zh-cn-rustacean", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAngluca%2Frustlings-zh-cn-rustacean'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 1c54521d680fd22ac5ad8adb2a89c938c0bc7b88
[INFO] checking Angluca/rustlings-zh-cn-rustacean against try#e983148bd5f0f0db270bfb72149f5e892e68b67f for pr-150322
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAngluca%2Frustlings-zh-cn-rustacean" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Angluca/rustlings-zh-cn-rustacean
[INFO] finished tweaking git repo https://github.com/Angluca/rustlings-zh-cn-rustacean
[INFO] tweaked toml for git repo https://github.com/Angluca/rustlings-zh-cn-rustacean written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Angluca/rustlings-zh-cn-rustacean on toolchain e983148bd5f0f0db270bfb72149f5e892e68b67f
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e983148bd5f0f0db270bfb72149f5e892e68b67f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Angluca/rustlings-zh-cn-rustacean 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" "+e983148bd5f0f0db270bfb72149f5e892e68b67f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+e983148bd5f0f0db270bfb72149f5e892e68b67f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 2e420e5aec3524758f3c556fba8b5c6ba7f1b2ae68e50fb751dc462f7c0ce0ca
[INFO] running `Command { std: "docker" "start" "-a" "2e420e5aec3524758f3c556fba8b5c6ba7f1b2ae68e50fb751dc462f7c0ce0ca", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2e420e5aec3524758f3c556fba8b5c6ba7f1b2ae68e50fb751dc462f7c0ce0ca", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2e420e5aec3524758f3c556fba8b5c6ba7f1b2ae68e50fb751dc462f7c0ce0ca", kill_on_drop: false }`
[INFO] [stdout] 2e420e5aec3524758f3c556fba8b5c6ba7f1b2ae68e50fb751dc462f7c0ce0ca
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+e983148bd5f0f0db270bfb72149f5e892e68b67f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5ede7cce05d39bfb08689651d4dfeadd845ffa2bea90115e6164246d9d02f71d
[INFO] running `Command { std: "docker" "start" "-a" "5ede7cce05d39bfb08689651d4dfeadd845ffa2bea90115e6164246d9d02f71d", kill_on_drop: false }`
[INFO] [stderr]     Checking exercises v0.0.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: function `array_and_vec` is never used
[INFO] [stdout]  --> solutions/05_vecs/vecs1.rs:1:4
[INFO] [stdout]   |
[INFO] [stdout] 1 | fn array_and_vec() -> ([i32; 4], Vec<i32>) {
[INFO] [stdout]   |    ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: `if` and `else` have incompatible types
[INFO] [stdout]   --> exercises/03_if/if3.rs:10:9
[INFO] [stdout]    |
[INFO] [stdout]  7 |       } else if animal == "蟒蛇" {
[INFO] [stdout]    |  ____________-
[INFO] [stdout]  8 | |         3
[INFO] [stdout]    | |         - expected because of this
[INFO] [stdout]  9 | |     } else {
[INFO] [stdout] 10 | |         "未知"
[INFO] [stdout]    | |         ^^^^^^ expected integer, found `&str`
[INFO] [stdout] 11 | |     };
[INFO] [stdout]    | |_____- `if` and `else` have incompatible types
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: macro requires a boolean expression as an argument
[INFO] [stdout]   --> exercises/17_tests/tests1.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |         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:20:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |         assert!();
[INFO] [stdout]    |         ^^^^^^^^^ boolean expression required
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `Vec<_>`
[INFO] [stdout]   --> exercises/20_threads/threads1.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let mut results = Vec::new();
[INFO] [stdout]    |         ^^^^^^^^^^^   ---------- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving `results` an explicit type, where the type for type parameter `T` is specified
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let mut results: Vec<T> = Vec::new();
[INFO] [stdout]    |                    ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `Vec<_>`
[INFO] [stdout]  --> exercises/14_generics/generics1.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     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] 8 |     let mut numbers: Vec<T> = Vec::new();
[INFO] [stdout]   |                    ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "if3" test) due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "threads1" test) due to 1 previous error
[INFO] [stdout] warning: function `trim_me` is never used
[INFO] [stdout]  --> solutions/09_strings/strings3.rs:1:4
[INFO] [stdout]   |
[INFO] [stdout] 1 | fn trim_me(input: &str) -> &str {
[INFO] [stdout]   |    ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "tests1" test) due to 2 previous errors
[INFO] [stdout] warning: function `compose_me` is never used
[INFO] [stdout]  --> solutions/09_strings/strings3.rs:5:4
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn compose_me(input: &str) -> String {
[INFO] [stdout]   |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `replace_me` is never used
[INFO] [stdout]   --> solutions/09_strings/strings3.rs:12:4
[INFO] [stdout]    |
[INFO] [stdout] 12 | fn replace_me(input: &str) -> String {
[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:10:9
[INFO] [stdout]    |
[INFO] [stdout]  9 | fn byte_counter<T>(arg: T) -> usize {
[INFO] [stdout]    |                 - method `as_ref` not found for this type parameter
[INFO] [stdout] 10 |     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]  9 | 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:16:9
[INFO] [stdout]    |
[INFO] [stdout] 15 | fn char_counter<T>(arg: T) -> usize {
[INFO] [stdout]    |                 - method `as_ref` not found for this type parameter
[INFO] [stdout] 16 |     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] 15 | fn char_counter<T: AsRef</* T */>>(arg: T) -> usize {
[INFO] [stdout]    |                  ++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[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] [stdout] warning: unused variable: `arg`
[INFO] [stdout]   --> exercises/23_conversions/as_ref_mut.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 | 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] warning: unused import: `super::Command`
[INFO] [stdout]   --> exercises/quizzes/quiz2.rs:28:9
[INFO] [stdout]    |
[INFO] [stdout] 28 |     use super::Command;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[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] warning: enum `Command` is never used
[INFO] [stdout]   --> exercises/quizzes/quiz2.rs:21:6
[INFO] [stdout]    |
[INFO] [stdout] 21 | enum Command {
[INFO] [stdout]    |      ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "threads3") due to 1 previous error
[INFO] [stdout] warning: fields `name` and `age` are never read
[INFO] [stdout]  --> solutions/23_conversions/from_into.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | struct Person {
[INFO] [stdout]   |        ------ fields in this struct
[INFO] [stdout] 7 |     name: String,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 8 |     age: u8,
[INFO] [stdout]   |     ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `Vec<_>`
[INFO] [stdout]   --> exercises/20_threads/threads1.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let mut results = Vec::new();
[INFO] [stdout]    |         ^^^^^^^^^^^   ---------- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving `results` an explicit type, where the type for type parameter `T` is specified
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let mut results: Vec<T> = Vec::new();
[INFO] [stdout]    |                    ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `exercises` (bin "generics1" test) 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 "threads1") due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "5ede7cce05d39bfb08689651d4dfeadd845ffa2bea90115e6164246d9d02f71d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5ede7cce05d39bfb08689651d4dfeadd845ffa2bea90115e6164246d9d02f71d", kill_on_drop: false }`
[INFO] [stdout] 5ede7cce05d39bfb08689651d4dfeadd845ffa2bea90115e6164246d9d02f71d
