[INFO] cloning repository https://github.com/ryanthegentry/Rustlings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ryanthegentry/Rustlings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryanthegentry%2FRustlings", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryanthegentry%2FRustlings'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3d77f264101a35c4fea194e0253e4ecad2ccb3c0 [INFO] checking ryanthegentry/Rustlings against try#5ff93158e08fa2205cd4b86cddf9eae95952cc96 for pr-129543-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryanthegentry%2FRustlings" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ryanthegentry/Rustlings [INFO] finished tweaking git repo https://github.com/ryanthegentry/Rustlings [INFO] tweaked toml for git repo https://github.com/ryanthegentry/Rustlings written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ryanthegentry/Rustlings on toolchain 5ff93158e08fa2205cd4b86cddf9eae95952cc96 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ryanthegentry/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" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded escargot v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5b4b324a3cbbaa4e60567dcd795d094176ebd2f388f0c4777022bfe797775b0a [INFO] running `Command { std: "docker" "start" "-a" "5b4b324a3cbbaa4e60567dcd795d094176ebd2f388f0c4777022bfe797775b0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5b4b324a3cbbaa4e60567dcd795d094176ebd2f388f0c4777022bfe797775b0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b4b324a3cbbaa4e60567dcd795d094176ebd2f388f0c4777022bfe797775b0a", kill_on_drop: false }` [INFO] [stdout] 5b4b324a3cbbaa4e60567dcd795d094176ebd2f388f0c4777022bfe797775b0a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+5ff93158e08fa2205cd4b86cddf9eae95952cc96" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7a9b6966bc98bac79e6f77c7fd7cc253a13223e50b7410639be2ee2e14c87ad [INFO] running `Command { std: "docker" "start" "-a" "b7a9b6966bc98bac79e6f77c7fd7cc253a13223e50b7410639be2ee2e14c87ad", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Compiling escargot v0.5.0 [INFO] [stderr] Checking tests_intro v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests/Intro) [INFO] [stderr] Checking testing_task v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests/Testing Task) [INFO] [stderr] Checking calculate_price v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables and Functions Test/Calculate Price) [INFO] [stderr] Checking if_task v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/If/If Task) [INFO] [stderr] Checking errorsn v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Multiple Errors) [INFO] [stderr] Checking returning_result v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Returning Result) [INFO] [stderr] Checking times_two_tests v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests Test/Times Two Tests) [INFO] [stderr] Checking result1 v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Result) [INFO] [stderr] Checking matching_result v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Matching Result) [INFO] [stderr] Checking iterator3 v0.1.0 (/opt/rustwide/workdir/Iterators and Closures/Standard Library Types/Iterator) [INFO] [stderr] Checking iterators4 v0.1.0 (/opt/rustwide/workdir/Iterators and Closures/Standard Library Types/Factorial) [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> Common Programming Concepts/Variables and Functions Test/Calculate Price/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> Writing Automated Tests/Tests/Intro/src/lib.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_hold` is never used [INFO] [stdout] --> Writing Automated Tests/Tests/Intro/src/lib.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 8 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> Common Programming Concepts/If/If Task/src/lib.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn bigger(a: i32, b: i32) -> i32 { [INFO] [stdout] | ------ ^^^ expected `i32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] note: consider returning one of these bindings [INFO] [stdout] --> Common Programming Concepts/If/If Task/src/lib.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn bigger(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^ ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `if_task` (lib) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> Recoverable and Unrecoverable Errors/Error Handling/Result/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [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] --> Iterators and Closures/Standard Library Types/Factorial/src/lib.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn factorial(num: u64) -> u64 { [INFO] [stdout] | --------- ^^^ expected `u64`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] help: consider returning the local binding `num` [INFO] [stdout] | [INFO] [stdout] 1 | pub fn factorial(num: u64) -> u64 { [INFO] [stdout] 2 ~ num [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `>` [INFO] [stdout] --> Recoverable and Unrecoverable Errors/Error Handling/Multiple Errors/src/lib.rs:6:84 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn read_and_validate(b: &mut io::BufRead) -> Result { [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> Recoverable and Unrecoverable Errors/Error Handling/Returning Result/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [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 `iterators4` (lib) due to 1 previous error [INFO] [stderr] error: could not compile `errorsn` (lib) due to 1 previous error [INFO] [stdout] error[E0369]: cannot multiply `Result` by `{integer}` [INFO] [stdout] --> Recoverable and Unrecoverable Errors/Error Handling/Matching Result/src/lib.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | Ok(qty * cost_per_item + processing_fee) [INFO] [stdout] | --- ^ ------------- {integer} [INFO] [stdout] | | [INFO] [stdout] | Result [INFO] [stdout] | [INFO] [stdout] note: `Result` does not implement `Mul<{integer}>` [INFO] [stdout] --> /rustc/5ff93158e08fa2205cd4b86cddf9eae95952cc96/library/core/src/result.rs:557:0 [INFO] [stdout] | [INFO] [stdout] = note: `Result` is defined in another crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0369`. [INFO] [stdout] [INFO] [stderr] error: could not compile `matching_result` (lib) due to 1 previous error [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> Iterators and Closures/Standard Library Types/Iterator/src/lib.rs:15:34 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn divide(a: i32, b: i32) -> 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] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> Writing Automated Tests/Tests/Testing Task/tests/tests.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | assert!(is_even(/*insert the parameter for the assertion here*/)); [INFO] [stdout] | ^^^^^^^------------------------------------------------- argument #1 of type `i32` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> Writing Automated Tests/Tests/Testing Task/src/lib.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn is_even(num: i32) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 7 - assert!(is_even(/*insert the parameter for the assertion here*/)); [INFO] [stdout] 7 + assert!(is_even(/* i32 */)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> Writing Automated Tests/Tests/Testing Task/tests/tests.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(is_even(/*insert the parameter for the assertion here*/), false); [INFO] [stdout] | ^^^^^^^------------------------------------------------- argument #1 of type `i32` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> Writing Automated Tests/Tests/Testing Task/src/lib.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn is_even(num: i32) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 12 - assert_eq!(is_even(/*insert the parameter for the assertion here*/), false); [INFO] [stdout] 12 + assert_eq!(is_even(/* i32 */), false); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `iterator3` (lib) due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `testing_task` (test "tests") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "b7a9b6966bc98bac79e6f77c7fd7cc253a13223e50b7410639be2ee2e14c87ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7a9b6966bc98bac79e6f77c7fd7cc253a13223e50b7410639be2ee2e14c87ad", kill_on_drop: false }` [INFO] [stdout] b7a9b6966bc98bac79e6f77c7fd7cc253a13223e50b7410639be2ee2e14c87ad