[INFO] cloning repository https://github.com/cr-eative-dev/rustlings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cr-eative-dev/rustlings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcr-eative-dev%2Frustlings", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcr-eative-dev%2Frustlings'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4cf01530168e6963962b3d8954757cb598fbce54 [INFO] checking cr-eative-dev/rustlings against try#901e6d56697c79b2e80df6a487b2318ec6f57ee3 for pr-142287 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcr-eative-dev%2Frustlings" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] error: copy-fd: write returned: No space left on device [INFO] [stderr] fatal: cannot copy '/usr/share/git-core/templates/hooks/pre-applypatch.sample' to '/workspace/builds/worker-3-tc2/source/.git/hooks/pre-applypatch.sample': No space left on device [INFO] checking cr-eative-dev/rustlings against try#901e6d56697c79b2e80df6a487b2318ec6f57ee3 for pr-142287 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcr-eative-dev%2Frustlings" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cr-eative-dev/rustlings on toolchain 901e6d56697c79b2e80df6a487b2318ec6f57ee3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cr-eative-dev/rustlings [INFO] finished tweaking git repo https://github.com/cr-eative-dev/rustlings [INFO] tweaked toml for git repo https://github.com/cr-eative-dev/rustlings written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/cr-eative-dev/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" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c2ba38f6e260d45530fd7815724563dca01a4f2213cb2e058257f4a1844d8286 [INFO] running `Command { std: "docker" "start" "-a" "c2ba38f6e260d45530fd7815724563dca01a4f2213cb2e058257f4a1844d8286", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c2ba38f6e260d45530fd7815724563dca01a4f2213cb2e058257f4a1844d8286", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2ba38f6e260d45530fd7815724563dca01a4f2213cb2e058257f4a1844d8286", kill_on_drop: false }` [INFO] [stdout] c2ba38f6e260d45530fd7815724563dca01a4f2213cb2e058257f4a1844d8286 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+901e6d56697c79b2e80df6a487b2318ec6f57ee3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a77175e7e61f679f5f217af821a6d9fe5c60d345afbd1e7c8abeb3698cdd0ac [INFO] running `Command { std: "docker" "start" "-a" "9a77175e7e61f679f5f217af821a6d9fe5c60d345afbd1e7c8abeb3698cdd0ac", kill_on_drop: false }` [INFO] [stderr] Checking exercises v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected identifier, found `,` [INFO] [stdout] --> exercises/15_traits/traits4.rs:14:40 [INFO] [stdout] | [INFO] [stdout] 14 | fn compare_license_types(software1: ???, software2: ???) -> bool { [INFO] [stdout] | ^ expected identifier [INFO] [stdout] | [INFO] [stdout] help: remove this comma [INFO] [stdout] | [INFO] [stdout] 14 - fn compare_license_types(software1: ???, software2: ???) -> bool { [INFO] [stdout] 14 + fn compare_license_types(software1: ??? software2: ???) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected a trait, found type [INFO] [stdout] --> exercises/15_traits/traits4.rs:14:39 [INFO] [stdout] | [INFO] [stdout] 14 | fn compare_license_types(software1: ???, software2: ???) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `)` [INFO] [stdout] --> exercises/15_traits/traits4.rs:14:56 [INFO] [stdout] | [INFO] [stdout] 14 | fn compare_license_types(software1: ???, software2: ???) -> bool { [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `software1` in this scope [INFO] [stdout] --> exercises/15_traits/traits4.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | software1.licensing_info() == software2.licensing_info() [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `software2` in this scope [INFO] [stdout] --> exercises/15_traits/traits4.rs:15:35 [INFO] [stdout] | [INFO] [stdout] 15 | software1.licensing_info() == software2.licensing_info() [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [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] For more information about this error, try `rustc --explain E0425`. [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) { [INFO] [stdout] | -- move occurs because `tx` has type `std::sync::mpsc::Sender`, 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 moving the expression out of the loop so it is only moved once [INFO] [stdout] | [INFO] [stdout] 21 ~ let mut value = tx.send(val); [INFO] [stdout] 22 ~ for val in q.first_half { [INFO] [stdout] 23 | println!("Sending {val:?}"); [INFO] [stdout] 24 ~ value.unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "traits4") due to 5 previous errors [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [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(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>(arg: T) -> usize { [INFO] [stdout] | ++++++++++++++++ [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), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "threads3") due to 1 previous error [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(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>(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(arg: &mut T) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "as_ref_mut") due to 2 previous errors; 1 warning emitted [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] [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] [stderr] error: could not compile `exercises` (bin "box1") due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "9a77175e7e61f679f5f217af821a6d9fe5c60d345afbd1e7c8abeb3698cdd0ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a77175e7e61f679f5f217af821a6d9fe5c60d345afbd1e7c8abeb3698cdd0ac", kill_on_drop: false }` [INFO] [stdout] 9a77175e7e61f679f5f217af821a6d9fe5c60d345afbd1e7c8abeb3698cdd0ac