[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 try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkm-tr%2Frustlings" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/km-tr/rustlings on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "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-3/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded escargot v0.5.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6806d2a654cc2814f82da4e39e62955646b83373a3878f5c8453313f96577a3f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6806d2a654cc2814f82da4e39e62955646b83373a3878f5c8453313f96577a3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6806d2a654cc2814f82da4e39e62955646b83373a3878f5c8453313f96577a3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6806d2a654cc2814f82da4e39e62955646b83373a3878f5c8453313f96577a3f", kill_on_drop: false }` [INFO] [stdout] 6806d2a654cc2814f82da4e39e62955646b83373a3878f5c8453313f96577a3f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eaa6e0fd49637ae3ea0c47eb2ae13949d1cb0697fabaecc665767b654b727d82 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "eaa6e0fd49637ae3ea0c47eb2ae13949d1cb0697fabaecc665767b654b727d82", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling escargot v0.5.2 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling tests_intro v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests/Intro) [INFO] [stderr] Compiling defining_a_function v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Functions/Defining a Function) [INFO] [stderr] Compiling compound_types v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Data Types/Compound Types) [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 repetition_with_loops v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/If/Repetition with Loops) [INFO] [stderr] Compiling macros_intro v0.1.0 (/opt/rustwide/workdir/Modules and Macros/Macros/Intro) [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 modules_intro v0.1.0 (/opt/rustwide/workdir/Modules and Macros/Modules/Intro) [INFO] [stderr] Compiling testing_task v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests/Testing Task) [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 iterators4 v0.1.0 (/opt/rustwide/workdir/Iterators and Closures/Standard Library Types/Factorial) [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 calling_a_macro v0.1.0 (/opt/rustwide/workdir/Modules and Macros/Macros/Calling a Macro) [INFO] [stderr] Compiling if_intro v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/If/Intro) [INFO] [stderr] Compiling iterator3 v0.1.0 (/opt/rustwide/workdir/Iterators and Closures/Standard Library Types/Iterator) [INFO] [stderr] Compiling strings_intro v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/Intro) [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 assert v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests/Assert) [INFO] [stderr] Compiling calculate_price v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables and Functions Test/Calculate Price) [INFO] [stderr] Compiling variables1 v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Variables 1) [INFO] [stderr] Compiling variables_intro v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/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 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 charcaters v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Data Types/Characters) [INFO] [stderr] Compiling shadowing v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Shadowing) [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] 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] [stderr] error: could not compile `type_annotation_of_a_parameter` [INFO] [stderr] [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: 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[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: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unexpected closing delimiter: `}` [INFO] [stdout] --> Common Programming Concepts/Functions/Defining a Function/src/main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | - this opening brace... [INFO] [stdout] 2 | call_me(); [INFO] [stdout] 3 | } [INFO] [stdout] | - ...matches this closing brace [INFO] [stdout] ... [INFO] [stdout] 6 | } [INFO] [stdout] | ^ unexpected closing delimiter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [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] 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[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] error: expected identifier, found keyword `if` [INFO] [stdout] --> Common Programming Concepts/Data Types/Characters/src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | if your_character.is_alphabetic() { [INFO] [stdout] | ^^ expected identifier, found keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `:`, `;`, `=`, `@`, or `|`, found `your_character` [INFO] [stdout] --> Common Programming Concepts/Data Types/Characters/src/main.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | if your_character.is_alphabetic() { [INFO] [stdout] | ^^^^^^^^^^^^^^ expected one of `:`, `;`, `=`, `@`, or `|` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [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[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] 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" "eaa6e0fd49637ae3ea0c47eb2ae13949d1cb0697fabaecc665767b654b727d82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eaa6e0fd49637ae3ea0c47eb2ae13949d1cb0697fabaecc665767b654b727d82", kill_on_drop: false }` [INFO] [stdout] eaa6e0fd49637ae3ea0c47eb2ae13949d1cb0697fabaecc665767b654b727d82