[INFO] cloning repository https://github.com/km-tr/rustlings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/km-tr/rustlings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkm-tr%2Frustlings", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkm-tr%2Frustlings'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 965bd57ff9b3f6c6e9cd16f6e5f779de68ce1f5f [INFO] testing km-tr/rustlings against 1.55.0 for beta-1.56-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkm-tr%2Frustlings" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/km-tr/rustlings on toolchain 1.55.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/km-tr/rustlings [INFO] finished tweaking git repo https://github.com/km-tr/rustlings [INFO] tweaked toml for git repo https://github.com/km-tr/rustlings written to /workspace/builds/worker-4/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dc1f4cbe8090978ce5a7ca69d33d1a96a8771521f61225817001169715b3dc32 [INFO] running `Command { std: "docker" "start" "-a" "dc1f4cbe8090978ce5a7ca69d33d1a96a8771521f61225817001169715b3dc32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dc1f4cbe8090978ce5a7ca69d33d1a96a8771521f61225817001169715b3dc32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc1f4cbe8090978ce5a7ca69d33d1a96a8771521f61225817001169715b3dc32", kill_on_drop: false }` [INFO] [stdout] dc1f4cbe8090978ce5a7ca69d33d1a96a8771521f61225817001169715b3dc32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5e1c37d2fd5b88b6adbc63956372db875a7696f2f0d65b8c6489d64369d6fee5 [INFO] running `Command { std: "docker" "start" "-a" "5e1c37d2fd5b88b6adbc63956372db875a7696f2f0d65b8c6489d64369d6fee5", kill_on_drop: false }` [INFO] [stderr] Compiling escargot v0.5.2 [INFO] [stderr] Compiling tests_intro v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests/Intro) [INFO] [stderr] Compiling error_handling_intro v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Intro) [INFO] [stderr] Compiling strings_intro v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/Intro) [INFO] [stderr] Compiling boolean v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Data Types/Boolean) [INFO] [stderr] Compiling else_if v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/If/else if) [INFO] [stderr] Compiling calling_a_macro v0.1.0 (/opt/rustwide/workdir/Modules and Macros/Macros/Calling a Macro) [INFO] [stderr] Compiling macros2 v0.1.0 (/opt/rustwide/workdir/Modules and Macros/Macros/Declaring a Macro) [INFO] [stderr] Compiling differences_between_variables_and_constants v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Differences Between Variables and Constants) [INFO] [stderr] Compiling the_slice_type v0.1.0 (/opt/rustwide/workdir/Understanding Ownership/Move Semantics/The Slice Type) [INFO] [stderr] Compiling scalar_types v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Data Types/Scalar Types) [INFO] [stderr] Compiling calculate_price v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables and Functions Test/Calculate Price) [INFO] [stderr] Compiling extensible_concurrency_with_the_sync_and_send_traits v0.1.0 (/opt/rustwide/workdir/Fearless Concurrency/Threads/Extensible Concurrency with the Sync and Send Traits) [INFO] [stderr] Compiling returning_result v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Returning Result) [INFO] [stderr] Compiling assert_eq v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests/Assert_Eq) [INFO] [stderr] Compiling variables_and_mutability v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Variables and Mutability) [INFO] [stderr] Compiling type_annotation_of_a_parameter v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Functions/Type Annotation of a Parameter) [INFO] [stderr] Compiling references_and_borrowing v0.1.0 (/opt/rustwide/workdir/Understanding Ownership/Move Semantics/References and Borrowing) [INFO] [stderr] Compiling adding_custom_failure_messages v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests/Adding Custom Failure Messages) [INFO] [stderr] Compiling macro_arms v0.1.0 (/opt/rustwide/workdir/Modules and Macros/Macros/Macro Arms) [INFO] [stderr] Compiling functions_intro v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Functions/Intro) [INFO] [stderr] Compiling modules_intro v0.1.0 (/opt/rustwide/workdir/Modules and Macros/Modules/Intro) [INFO] [stderr] Compiling errorsn v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Multiple Errors) [INFO] [stderr] Compiling variables2 v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Variables 2) [INFO] [stderr] Compiling matching_result_2 v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Matching Result 2) [INFO] [stderr] Compiling bringing_paths_into_scope_with_the_use_keyword v0.1.0 (/opt/rustwide/workdir/Modules and Macros/Modules/Bringing Paths into Scope with the use Keyword) [INFO] [stderr] Compiling variables1 v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Variables 1) [INFO] [stderr] Compiling stdlib_intro v0.1.0 (/opt/rustwide/workdir/Iterators and Closures/Standard Library Types/Intro) [INFO] [stderr] Compiling paths_for_referring_to_an_item_in_the_module_tree v0.1.0 (/opt/rustwide/workdir/Modules and Macros/Modules/Paths for Referring to an Item in the Module Tree) [INFO] [stderr] Compiling shared_state_concurrency v0.1.0 (/opt/rustwide/workdir/Iterators and Closures/Standard Library Types/Shared-State Concurrency) [INFO] [stderr] Compiling return_a_value v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Functions/Return a Value) [INFO] [stderr] Compiling result1 v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Result) [INFO] [stdout] error: expected identifier, found `?` [INFO] [stdout] --> Recoverable and Unrecoverable Errors/Error Handling/Multiple Errors/src/lib.rs:6:82 [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] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `errorsn` due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find function `my_macro` in this scope [INFO] [stdout] --> Modules and Macros/Macros/Calling a Macro/src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | my_macro/*call the macro here*/(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `my_macro` in this scope [INFO] [stdout] --> Modules and Macros/Macros/Declaring a Macro/src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | my_macro!(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: have you added the `#[macro_use]` on the module/import? [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> Modules and Macros/Macros/Declaring a Macro/src/main.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / macro_rules! my_macro { [INFO] [stdout] 6 | | () => { [INFO] [stdout] 7 | | println!("Check out my macro!"); [INFO] [stdout] 8 | | }; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> Modules and Macros/Macros/Calling a Macro/src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / macro_rules! my_macro { [INFO] [stdout] 2 | | () => { [INFO] [stdout] 3 | | println!("Check out my macro!"); [INFO] [stdout] 4 | | }; [INFO] [stdout] 5 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [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] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> Common Programming Concepts/Functions/Return a Value/src/main.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | fn square(num: i32) -> i32 { [INFO] [stdout] | ------ ^^^ expected `i32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] 7 | /*you could type here*/ num * num; [INFO] [stdout] | - help: consider removing this semicolon [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: expected identifier, found keyword `if` [INFO] [stdout] --> Common Programming Concepts/Data Types/Boolean/src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | if is_evening { [INFO] [stdout] | ^^ expected identifier, found keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `:`, `;`, `=`, `@`, or `|`, found `is_evening` [INFO] [stdout] --> Common Programming Concepts/Data Types/Boolean/src/main.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | if is_evening { [INFO] [stdout] | ^^^^^^^^^^ expected one of `:`, `;`, `=`, `@`, or `|` [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] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `call_me` in this scope [INFO] [stdout] --> Common Programming Concepts/Functions/Intro/src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | call_me(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [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] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [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)]` on by default [INFO] [stdout] [INFO] [stdout] [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: expected type, found `)` [INFO] [stdout] --> Common Programming Concepts/Functions/Type Annotation of a Parameter/src/main.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | fn call_me(num:/*insert the type annotation here*/) { [INFO] [stdout] | ^ expected type [INFO] [stdout] [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] error: no rules expected the token `(` [INFO] [stdout] --> Modules and Macros/Macros/Macro Arms/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | ($val:expr) => { [INFO] [stdout] | ^ no rules expected this token in macro call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `num` in this scope [INFO] [stdout] --> Common Programming Concepts/Functions/Type Annotation of a Parameter/src/main.rs:6:17 [INFO] [stdout] | [INFO] [stdout] 6 | for i in 0..num { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [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" "5e1c37d2fd5b88b6adbc63956372db875a7696f2f0d65b8c6489d64369d6fee5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e1c37d2fd5b88b6adbc63956372db875a7696f2f0d65b8c6489d64369d6fee5", kill_on_drop: false }` [INFO] [stdout] 5e1c37d2fd5b88b6adbc63956372db875a7696f2f0d65b8c6489d64369d6fee5