[INFO] cloning repository https://github.com/LearningByExample/rustlings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LearningByExample/rustlings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLearningByExample%2Frustlings", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLearningByExample%2Frustlings'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f8f12937fc940a75c229bd128b517cd1649cb77b [INFO] checking LearningByExample/rustlings against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLearningByExample%2Frustlings" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LearningByExample/rustlings on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LearningByExample/rustlings [INFO] finished tweaking git repo https://github.com/LearningByExample/rustlings [INFO] tweaked toml for git repo https://github.com/LearningByExample/rustlings written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/LearningByExample/rustlings already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb5d4d5bf91c64ee5efdd2289576b13f712eb1ec940296d6d6cc86ed01353449 [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" "bb5d4d5bf91c64ee5efdd2289576b13f712eb1ec940296d6d6cc86ed01353449", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb5d4d5bf91c64ee5efdd2289576b13f712eb1ec940296d6d6cc86ed01353449", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb5d4d5bf91c64ee5efdd2289576b13f712eb1ec940296d6d6cc86ed01353449", kill_on_drop: false }` [INFO] [stdout] bb5d4d5bf91c64ee5efdd2289576b13f712eb1ec940296d6d6cc86ed01353449 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aad9931363749e8627847c331874c1d8b5b9775793a693150b2bd0a6387c032e [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" "aad9931363749e8627847c331874c1d8b5b9775793a693150b2bd0a6387c032e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.32 [INFO] [stderr] Compiling serde_derive v1.0.113 [INFO] [stderr] Compiling serde v1.0.113 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling serde_json v1.0.55 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking tests_intro v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests/Intro) [INFO] [stderr] Checking iterator3 v0.1.0 (/opt/rustwide/workdir/Iterators and Closures/Standard Library Types/Iterator) [INFO] [stderr] Checking errorsn v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Multiple Errors) [INFO] [stderr] Checking times_two_tests v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests Test/Times Two Tests) [INFO] [stderr] Checking matching_result v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Matching Result) [INFO] [stderr] Checking result1 v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Result) [INFO] [stderr] Checking returning_result v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Returning Result) [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> Recoverable and Unrecoverable Errors/Error Handling/Matching Result/src/lib.rs:6:78 [INFO] [stdout] | [INFO] [stdout] 6 | /*this is the short way, but you can just match the result of the parse*/; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [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] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> Recoverable and Unrecoverable Errors/Error Handling/Multiple Errors/src/lib.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn read_and_validate(b: &mut io::BufRead) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn io::BufRead` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking iterators4 v0.1.0 (/opt/rustwide/workdir/Iterators and Closures/Standard Library Types/Factorial) [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] [stderr] Checking testing_task v0.1.0 (/opt/rustwide/workdir/Writing Automated Tests/Tests/Testing Task) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [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 macro_arms v0.1.0 (/opt/rustwide/workdir/Modules and Macros/Macros/Macro Arms) [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> Recoverable and Unrecoverable Errors/Error Handling/Multiple Errors/src/lib.rs:43:49 [INFO] [stdout] | [INFO] [stdout] 43 | f.write_str((self as &dyn error::Error).description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking macro_test v0.1.0 (/opt/rustwide/workdir/Modules and Macros/Macros and Modules Test/Test Task) [INFO] [stderr] Checking matching_result_2 v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Matching Result 2) [INFO] [stderr] Checking shared_state_concurrency v0.1.0 (/opt/rustwide/workdir/Iterators and Closures/Standard Library Types/Shared-State Concurrency) [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] [stderr] Checking passing_an_argument v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Functions/Passing an Argument) [INFO] [stderr] Checking boolean v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Data Types/Boolean) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking scalar_types v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Data Types/Scalar Types) [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> Recoverable and Unrecoverable Errors/Error Handling/Matching Result 2/src/main.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 9 | Err(e) => panic!("{}", e), [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 9 | Err(e) => std::panic::panic_any(e), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking functions_intro v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Functions/Intro) [INFO] [stderr] Checking 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] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> Recoverable and Unrecoverable Errors/Error Handling/Multiple Errors/src/lib.rs:6:34 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn read_and_validate(b: &mut io::BufRead) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ help: use `dyn`: `dyn io::BufRead` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking else_if v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/If/else if) [INFO] [stderr] Checking variables2 v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Variables 2) [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> Recoverable and Unrecoverable Errors/Error Handling/Multiple Errors/src/lib.rs:43:49 [INFO] [stdout] | [INFO] [stdout] 43 | f.write_str((self as &dyn error::Error).description()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking references_and_borrowing v0.1.0 (/opt/rustwide/workdir/Understanding Ownership/Move Semantics/References and Borrowing) [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> Recoverable and Unrecoverable Errors/Error Handling/Matching Result 2/src/main.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panic)]` on by default [INFO] [stdout] = note: this is no longer accepted in Rust 2021 [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 9 | Err(e) => panic!("{}", e), [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 9 | Err(e) => std::panic::panic_any(e), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking variables1 v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Variables 1) [INFO] [stderr] Checking error_handling_intro v0.1.0 (/opt/rustwide/workdir/Recoverable and Unrecoverable Errors/Error Handling/Intro) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking arrays v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Data Types/Arrays) [INFO] [stderr] Checking separating_modules_into_different_files v0.1.0 (/opt/rustwide/workdir/Modules and Macros/Modules/Separating Modules into Different Files) [INFO] [stderr] Checking installation v0.1.0 (/opt/rustwide/workdir/Introduction/Getting started/Installation) [INFO] [stderr] Checking compound_types v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Data Types/Compound Types) [INFO] [stdout] error[E0412]: cannot find type `Vect` in this scope [INFO] [stdout] --> Iterators and Closures/Standard Library Types/Iterator/src/lib.rs:37:50 [INFO] [stdout] | [INFO] [stdout] 37 | let x= division_results.collect::,DivisionError>>(); [INFO] [stdout] | ^^^^ help: a struct with a similar name exists: `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking strings_intro v0.1.0 (/opt/rustwide/workdir/Common Collections/Strings/Intro) [INFO] [stderr] Checking about v0.1.0 (/opt/rustwide/workdir/Introduction/Getting started/About) [INFO] [stderr] Checking variables_intro v0.1.0 (/opt/rustwide/workdir/Common Programming Concepts/Variables/Intro) [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `iterator3` [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] warning: unnecessary trailing semicolon [INFO] [stdout] --> Recoverable and Unrecoverable Errors/Error Handling/Matching Result/src/lib.rs:6:78 [INFO] [stdout] | [INFO] [stdout] 6 | /*this is the short way, but you can just match the result of the parse*/; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` 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" "aad9931363749e8627847c331874c1d8b5b9775793a693150b2bd0a6387c032e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aad9931363749e8627847c331874c1d8b5b9775793a693150b2bd0a6387c032e", kill_on_drop: false }` [INFO] [stdout] aad9931363749e8627847c331874c1d8b5b9775793a693150b2bd0a6387c032e