[INFO] cloning repository https://github.com/chakibchemso/Learn-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chakibchemso/Learn-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchakibchemso%2FLearn-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchakibchemso%2FLearn-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bc49650560a13367f54f9b266e9306c9f5afb1a3 [INFO] testing chakibchemso/Learn-Rust against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchakibchemso%2FLearn-Rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-7-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/chakibchemso/Learn-Rust [INFO] finished tweaking git repo https://github.com/chakibchemso/Learn-Rust [INFO] tweaked toml for git repo https://github.com/chakibchemso/Learn-Rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chakibchemso/Learn-Rust on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/chakibchemso/Learn-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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ec0dcca93c1f34a198fdc36c217b5ec024c7c59ffb8040c908b34754add153c9 [INFO] running `Command { std: "docker" "start" "-a" "ec0dcca93c1f34a198fdc36c217b5ec024c7c59ffb8040c908b34754add153c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ec0dcca93c1f34a198fdc36c217b5ec024c7c59ffb8040c908b34754add153c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec0dcca93c1f34a198fdc36c217b5ec024c7c59ffb8040c908b34754add153c9", kill_on_drop: false }` [INFO] [stdout] ec0dcca93c1f34a198fdc36c217b5ec024c7c59ffb8040c908b34754add153c9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cd7750c4a6d76950e29dd58ce0b00fcc16f91d919becee89c3267bcd306e4ff9 [INFO] running `Command { std: "docker" "start" "-a" "cd7750c4a6d76950e29dd58ce0b00fcc16f91d919becee89c3267bcd306e4ff9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Compiling serde_json v1.0.112 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling escargot v0.5.8 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling hello_macro v0.1.0 (/opt/rustwide/workdir/Macros/Procedural Macros/hello_macro) [INFO] [stderr] Compiling advanced_errors v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Advanced Errors) [INFO] [stderr] Compiling license_it v0.1.0 (/opt/rustwide/workdir/Generic Types, Traits, and Lifetime/Traits/License It) [INFO] [stderr] Compiling process_some_strings v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/Process Some Strings) [INFO] [stderr] Compiling count_progress v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Count Progress) [INFO] [stderr] Compiling box_task v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Box Task) [INFO] [stderr] Compiling lamp_with_switchers v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Smart Pointers/Switch the Lamp) [INFO] [stderr] Compiling trim_a_string v0.1.0 (/opt/rustwide/workdir/Understanding Ownership/The Slice Type/Trim a String) [INFO] [stdout] error[E0072]: recursive type `List` has infinite size [INFO] [stdout] --> Standard Library Types/Smart Pointers/Box Task/src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum List { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 3 | 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] 3 | Cons(i32, Box), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling errors6 v0.1.0 (/opt/rustwide/workdir/Error Handling/Errors Primer/Custom Errors) [INFO] [stderr] Compiling loop_over_vector_with_iterators v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Iterators/Loop Over Vector With Iterators) [INFO] [stdout] error[E0391]: cycle detected when computing drop-check constraints for `List` [INFO] [stdout] --> Standard Library Types/Smart Pointers/Box Task/src/lib.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | pub 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[E0308]: mismatched types [INFO] [stdout] --> Standard Library Types/Iterators/Count Progress/src/lib.rs:20:67 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn count(map: &HashMap, value: Progress) -> usize { [INFO] [stdout] | ----- ^^^^^ expected `usize`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> Standard Library Types/Iterators/Count Progress/src/lib.rs:36:77 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn count_stack(stack: &[HashMap], value: Progress) -> usize { [INFO] [stdout] | ----------- ^^^^^ expected `usize`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [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] Compiling try_from_into v0.1.0 (/opt/rustwide/workdir/Standard Library Types/Type Conversions/Try From Into) [INFO] [stderr] error: could not compile `count_progress` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `box_task` (lib) due to 2 previous errors [INFO] [stdout] warning: unused import: `TryInto` [INFO] [stdout] --> Standard Library Types/Type Conversions/Try From Into/src/lib.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::{TryFrom, TryInto}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> Standard Library Types/Type Conversions/Try From Into/src/lib.rs:22:44 [INFO] [stdout] | [INFO] [stdout] 22 | fn try_from(tuple: (i16, i16, i16)) -> Result { [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> Standard Library Types/Type Conversions/Try From Into/src/lib.rs:30:35 [INFO] [stdout] | [INFO] [stdout] 30 | fn try_from(arr: [i16; 3]) -> Result { [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> Standard Library Types/Type Conversions/Try From Into/src/lib.rs:38:35 [INFO] [stdout] | [INFO] [stdout] 38 | fn try_from(slice: &[i16]) -> Result { [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `try_from_into` (lib) due to 3 previous errors; 1 warning emitted [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `()` [INFO] [stdout] --> Standard Library Types/Iterators/Loop Over Vector With Iterators/src/lib.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | }).collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromIterator<()>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] = help: for that trait implementation, expected `i32`, found `()` [INFO] [stdout] note: the method call chain might not have had the expected associated types [INFO] [stdout] --> Standard Library Types/Iterators/Loop Over Vector With Iterators/src/lib.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | v.iter().map(|num| { [INFO] [stdout] | _____-_------_^ [INFO] [stdout] | | | | [INFO] [stdout] | | | `Iterator::Item` is `&i32` here [INFO] [stdout] | | this expression has type `&Vec` [INFO] [stdout] 3 | | // TODO: Complete the function to multiply all the elements in the given vector [INFO] [stdout] 4 | | }).collect() [INFO] [stdout] | |______^ `Iterator::Item` changed to `()` here [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/iter/traits/iterator.rs:2014:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `loop_over_vector_with_iterators` (lib) due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "cd7750c4a6d76950e29dd58ce0b00fcc16f91d919becee89c3267bcd306e4ff9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd7750c4a6d76950e29dd58ce0b00fcc16f91d919becee89c3267bcd306e4ff9", kill_on_drop: false }` [INFO] [stdout] cd7750c4a6d76950e29dd58ce0b00fcc16f91d919becee89c3267bcd306e4ff9