[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] testing ryanthegentry/Rustlings against master#432e145bd5a974c5b6f4dd9b352891bd7502b69d for pr-87041 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryanthegentry%2FRustlings" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ryanthegentry/Rustlings on toolchain 432e145bd5a974c5b6f4dd9b352891bd7502b69d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-8/source/Cargo.toml [INFO] crate git repo https://github.com/ryanthegentry/Rustlings already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e61cea1bfa7104879a8ccf76b4aa056bc873a07694309a3a56054d0d72298894 [INFO] running `Command { std: "docker" "start" "-a" "e61cea1bfa7104879a8ccf76b4aa056bc873a07694309a3a56054d0d72298894", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e61cea1bfa7104879a8ccf76b4aa056bc873a07694309a3a56054d0d72298894", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e61cea1bfa7104879a8ccf76b4aa056bc873a07694309a3a56054d0d72298894", kill_on_drop: false }` [INFO] [stdout] e61cea1bfa7104879a8ccf76b4aa056bc873a07694309a3a56054d0d72298894 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+432e145bd5a974c5b6f4dd9b352891bd7502b69d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 53736c9ceadae3b66469b646a3b5b6a5b4e83561c945889b6185d8ba492fe3c8 [INFO] running `Command { std: "docker" "start" "-a" "53736c9ceadae3b66469b646a3b5b6a5b4e83561c945889b6185d8ba492fe3c8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Compiling escargot v0.5.0 [INFO] [stderr] Compiling tests_intro v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests/Intro) [INFO] [stderr] Compiling threads_intro v0.1.0 (/opt/rustwide/workdir/Fearless Concurrency/Threads/Intro) [INFO] [stderr] Compiling iterator3 v0.1.0 (/opt/rustwide/workdir/Iterators and Closures/Standard Library Types/Iterator) [INFO] [stderr] Compiling return_type v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Functions/Return Type) [INFO] [stderr] Compiling times_two_tests v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests Test/Times Two Tests) [INFO] [stderr] Compiling scalar_types v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Data Types/Scalar Types) [INFO] [stderr] Compiling testing_task v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests/Testing Task) [INFO] [stderr] Compiling string_slice v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/String Slice) [INFO] [stderr] Compiling borrow v0.1.0 (/opt/rustwide/workdir/Understanding Ownership/Move Semantics/Borrow) [INFO] [stderr] Compiling strings_intro v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/Intro) [INFO] [stderr] Compiling shared_state_concurrency v0.1.0 (/opt/rustwide/workdir/Iterators and Closures/Standard Library Types/Shared-State Concurrency) [INFO] [stderr] Compiling passing_an_argument v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Functions/Passing an Argument) [INFO] [stderr] Compiling recoverable_errors_with_result v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Recoverable Errors with Result) [INFO] [stderr] Compiling variables_and_mutability v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Variables and Mutability) [INFO] [stderr] Compiling statements_and_expressions v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Functions/Statements and Expressions) [INFO] [stderr] Compiling about v0.1.0 (/opt/rustwide/workdir/Introduction/Getting started/About) [INFO] [stderr] Compiling returning_a_string v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/Returning a String) [INFO] [stderr] Compiling generic_data_types v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Generic Data Types) [INFO] [stderr] Compiling references_and_borrowing v0.1.0 (/opt/rustwide/workdir/Understanding Ownership/Move Semantics/References and Borrowing) [INFO] [stderr] Compiling assert_eq v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests/Assert_Eq) [INFO] [stderr] Compiling calculate_price v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables and Functions Test/Calculate Price) [INFO] [stderr] Compiling move_semantics_intro v0.1.0 (/opt/rustwide/workdir/Understanding Ownership/Move Semantics/Intro) [INFO] [stderr] Compiling error_handling_intro v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Intro) [INFO] [stderr] Compiling matching_result_2 v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Matching Result 2) [INFO] [stderr] Compiling variables2 v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Variables 2) [INFO] [stderr] Compiling stdlib_intro v0.1.0 (/opt/rustwide/workdir/Iterators and Closures/Standard Library Types/Intro) [INFO] [stderr] Compiling else_if v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/If/else if) [INFO] [stderr] Compiling iterators4 v0.1.0 (/opt/rustwide/workdir/Iterators and Closures/Standard Library Types/Factorial) [INFO] [stderr] Compiling variables_intro v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Intro) [INFO] [stdout] error: expected one of `.`, `?`, `{`, or an operator, found `;` [INFO] [stdout] --> Recoverable and Unrecoverable Errors/Error Handling/Matching Result 2/src/main.rs:7:53 [INFO] [stdout] | [INFO] [stdout] 7 | let cost = match total_cost(pretend_user_input)?; [INFO] [stdout] | ----- ^ expected one of `.`, `?`, `{`, or an operator [INFO] [stdout] | | [INFO] [stdout] | while parsing this match expression [INFO] [stdout] | help: try removing this `match` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> Common Collections/Strings/String Slice/src/main.rs:3:70 [INFO] [stdout] | [INFO] [stdout] 3 | if is_a_color_word(/*coerce the String into a string slice here*/word) { [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&str`, found struct `String` [INFO] [stdout] | help: consider borrowing here: `&word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: mismatched closing delimiter: `}` [INFO] [stdout] --> Common Collections/Strings/Returning a String/src/main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn current_favorite_color() -> String { [INFO] [stdout] | - closing delimiter possibly meant for this [INFO] [stdout] 7 | /*type the beginning of the trait here*/("blue"/*and the last part here*/ [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] 8 | } [INFO] [stdout] | ^ mismatched closing delimiter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `return_type` [INFO] [stdout] error: expected type, found `{` [INFO] [stdout] --> Common Programming Concepts/Functions/Return Type/src/main.rs:6:50 [INFO] [stdout] | [INFO] [stdout] 6 | fn sale_price(price: i32) -> /*put a type here*/ { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> Common Collections/Strings/Returning a String/src/main.rs:7:45 [INFO] [stdout] | [INFO] [stdout] 7 | /*type the beginning of the trait here*/("blue"/*and the last part here*/ [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 8 | | } [INFO] [stdout] | |_^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> Common Collections/Strings/Returning a String/src/main.rs:7:45 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn current_favorite_color() -> String { [INFO] [stdout] | ------ expected `String` because of return type [INFO] [stdout] 7 | /*type the beginning of the trait here*/("blue"/*and the last part here*/ [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 8 | | } [INFO] [stdout] | |_^ expected struct `String`, found `&str` [INFO] [stdout] | [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 7 | /*type the beginning of the trait here*/("blue"/*and the last part here*/ [INFO] [stdout] 8 | }.to_string() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `vec_0` in this scope [INFO] [stdout] --> Understanding Ownership/Move Semantics/Borrow/src/main.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | let mut vec1 = fill_vec(vec_0 /*and put it here*/); [INFO] [stdout] | ^^^^^ help: a local variable with a similar name exists: `vec0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0384]: cannot assign twice to immutable variable `x` [INFO] [stdout] --> Common Programming Concepts/Variables/Variables and Mutability/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | let x = 5; [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | first assignment to `x` [INFO] [stdout] | help: consider making this binding mutable: `mut x` [INFO] [stdout] 3 | println!("The value of x is: {}", x); [INFO] [stdout] 4 | x = 6; [INFO] [stdout] | ^^^^^ cannot assign twice to immutable variable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0384`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TODO` in this scope [INFO] [stdout] --> Common Programming Concepts/Functions/Passing an Argument/src/main.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | call_me(TODO); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> Common Programming Concepts/Variables/Variables 2/src/main.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let x/*insert here missing part(s)*/; [INFO] [stdout] | ^ consider giving `x` a type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [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 enum `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: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [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] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow` [INFO] [stdout] --> Understanding Ownership/Move Semantics/Borrow/src/main.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::{Borrow, BorrowMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> Writing Automated Tests/Tests/Intro/src/lib.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn can_hold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "53736c9ceadae3b66469b646a3b5b6a5b4e83561c945889b6185d8ba492fe3c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53736c9ceadae3b66469b646a3b5b6a5b4e83561c945889b6185d8ba492fe3c8", kill_on_drop: false }` [INFO] [stdout] 53736c9ceadae3b66469b646a3b5b6a5b4e83561c945889b6185d8ba492fe3c8