[INFO] cloning repository https://github.com/qzj-123/rustlings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qzj-123/rustlings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqzj-123%2Frustlings", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqzj-123%2Frustlings'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5b8b35cab6d80dfa01e7bcf8f3e40c214643fc79 [INFO] testing qzj-123/rustlings against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqzj-123%2Frustlings" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 49% (949/1927) Updating files: 50% (964/1927) Updating files: 51% (983/1927) Updating files: 52% (1003/1927) Updating files: 53% (1022/1927) Updating files: 54% (1041/1927) Updating files: 55% (1060/1927) Updating files: 56% (1080/1927) Updating files: 57% (1099/1927) Updating files: 58% (1118/1927) Updating files: 59% (1137/1927) Updating files: 60% (1157/1927) Updating files: 61% (1176/1927) Updating files: 62% (1195/1927) Updating files: 63% (1215/1927) Updating files: 64% (1234/1927) Updating files: 65% (1253/1927) Updating files: 66% (1272/1927) Updating files: 67% (1292/1927) Updating files: 68% (1311/1927) Updating files: 69% (1330/1927) Updating files: 70% (1349/1927) Updating files: 71% (1369/1927) Updating files: 72% (1388/1927) Updating files: 73% (1407/1927) Updating files: 74% (1426/1927) Updating files: 75% (1446/1927) Updating files: 76% (1465/1927) Updating files: 77% (1484/1927) Updating files: 78% (1504/1927) Updating files: 79% (1523/1927) Updating files: 80% (1542/1927) Updating files: 81% (1561/1927) Updating files: 82% (1581/1927) Updating files: 83% (1600/1927) Updating files: 84% (1619/1927) Updating files: 85% (1638/1927) Updating files: 86% (1658/1927) Updating files: 87% (1677/1927) Updating files: 88% (1696/1927) Updating files: 89% (1716/1927) Updating files: 90% (1735/1927) Updating files: 91% (1754/1927) Updating files: 92% (1773/1927) Updating files: 93% (1793/1927) Updating files: 94% (1812/1927) Updating files: 95% (1831/1927) Updating files: 96% (1850/1927) Updating files: 97% (1870/1927) Updating files: 98% (1889/1927) Updating files: 99% (1908/1927) Updating files: 100% (1927/1927) Updating files: 100% (1927/1927), done. [INFO] started tweaking git repo https://github.com/qzj-123/rustlings [INFO] finished tweaking git repo https://github.com/qzj-123/rustlings [INFO] tweaked toml for git repo https://github.com/qzj-123/rustlings written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/qzj-123/rustlings on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/qzj-123/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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dad6fee3b4cf4f47e2337a95aa9da7c40601c0866cc68f5ae844074f5df7843d [INFO] running `Command { std: "docker" "start" "-a" "dad6fee3b4cf4f47e2337a95aa9da7c40601c0866cc68f5ae844074f5df7843d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dad6fee3b4cf4f47e2337a95aa9da7c40601c0866cc68f5ae844074f5df7843d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dad6fee3b4cf4f47e2337a95aa9da7c40601c0866cc68f5ae844074f5df7843d", kill_on_drop: false }` [INFO] [stdout] dad6fee3b4cf4f47e2337a95aa9da7c40601c0866cc68f5ae844074f5df7843d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1f77b9d20954738cb12df4f4548e72cbab95cbf1b6908323e6750c8f27ffe71 [INFO] running `Command { std: "docker" "start" "-a" "e1f77b9d20954738cb12df4f4548e72cbab95cbf1b6908323e6750c8f27ffe71", kill_on_drop: false }` [INFO] [stderr] Compiling exercises v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0599]: no method named `as_ref` found for type parameter `T` in the current scope [INFO] [stdout] --> exercises/23_conversions/as_ref_mut.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | fn byte_counter(arg: T) -> usize { [INFO] [stdout] | - method `as_ref` not found for this type parameter [INFO] [stdout] 9 | arg.as_ref().len() [INFO] [stdout] | ^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `as_ref`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 8 | fn byte_counter>(arg: T) -> usize { [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for type parameter `T` in the current scope [INFO] [stdout] --> exercises/23_conversions/as_ref_mut.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | fn char_counter(arg: T) -> usize { [INFO] [stdout] | - method `as_ref` not found for this type parameter [INFO] [stdout] 15 | arg.as_ref().chars().count() [INFO] [stdout] | ^^^^^^ method not found in `T` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the type parameter is bounded by the trait [INFO] [stdout] help: the following trait defines an item `as_ref`, perhaps you need to restrict type parameter `T` with it: [INFO] [stdout] | [INFO] [stdout] 14 | fn char_counter>(arg: T) -> usize { [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arg` [INFO] [stdout] --> exercises/23_conversions/as_ref_mut.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | fn num_sq(arg: &mut T) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "as_ref_mut") due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: expected identifier, found `,` [INFO] [stdout] --> exercises/15_traits/traits4.rs:14:40 [INFO] [stdout] | [INFO] [stdout] 14 | fn compare_license_types(software1: ???, software2: ???) -> bool { [INFO] [stdout] | ^ expected identifier [INFO] [stdout] | [INFO] [stdout] help: remove this comma [INFO] [stdout] | [INFO] [stdout] 14 - fn compare_license_types(software1: ???, software2: ???) -> bool { [INFO] [stdout] 14 + fn compare_license_types(software1: ??? software2: ???) -> bool { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected a trait, found type [INFO] [stdout] --> exercises/15_traits/traits4.rs:14:39 [INFO] [stdout] | [INFO] [stdout] 14 | fn compare_license_types(software1: ???, software2: ???) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found `)` [INFO] [stdout] --> exercises/15_traits/traits4.rs:14:56 [INFO] [stdout] | [INFO] [stdout] 14 | fn compare_license_types(software1: ???, software2: ???) -> bool { [INFO] [stdout] | ^ expected identifier [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot multiply `Result` by `{integer}` [INFO] [stdout] --> exercises/13_error_handling/errors2.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | Ok(qty * cost_per_item + processing_fee) [INFO] [stdout] | --- ^ ------------- {integer} [INFO] [stdout] | | [INFO] [stdout] | Result [INFO] [stdout] | [INFO] [stdout] note: the foreign item type `Result` doesn't implement `Mul<{integer}>` [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/result.rs:549:1 [INFO] [stdout] | [INFO] [stdout] = note: not implement `Mul<{integer}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0369`. [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/16_lifetimes/lifetimes1.rs:7:33 [INFO] [stdout] | [INFO] [stdout] 7 | fn longest(x: &str, y: &str) -> &str { [INFO] [stdout] | ---- ---- ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `x` or `y` [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 7 | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { [INFO] [stdout] | ++++ ++ ++ ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "errors2") due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `software1` in this scope [INFO] [stdout] --> exercises/15_traits/traits4.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | software1.licensing_info() == software2.licensing_info() [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `software2` in this scope [INFO] [stdout] --> exercises/15_traits/traits4.rs:15:35 [INFO] [stdout] | [INFO] [stdout] 15 | software1.licensing_info() == software2.licensing_info() [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> exercises/13_error_handling/errors5.rs:53:44 [INFO] [stdout] | [INFO] [stdout] 51 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 52 | let pretend_user_input = "42"; [INFO] [stdout] 53 | let x: i64 = pretend_user_input.parse()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 51 | fn main() -> Result<(), Box> { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> exercises/13_error_handling/errors5.rs:54:59 [INFO] [stdout] | [INFO] [stdout] 51 | fn main() { [INFO] [stdout] | --------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 54 | println!("output={:?}", PositiveNonzeroInteger::new(x)?); [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 51 | fn main() -> Result<(), Box> { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "lifetimes1") due to 1 previous error [INFO] [stdout] error[E0603]: function `make_sausage` is private [INFO] [stdout] --> exercises/10_modules/modules1.rs:15:22 [INFO] [stdout] | [INFO] [stdout] 15 | sausage_factory::make_sausage(); [INFO] [stdout] | ^^^^^^^^^^^^ private function [INFO] [stdout] | [INFO] [stdout] note: the function `make_sausage` is defined here [INFO] [stdout] --> exercises/10_modules/modules1.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | fn make_sausage() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/13_error_handling/errors5.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 51 | fn main() { [INFO] [stdout] | - expected `()` because of default return type [INFO] [stdout] ... [INFO] [stdout] 55 | Ok(()) [INFO] [stdout] | ^^^^^^ expected `()`, found `Result<(), _>` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<(), _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "errors5") due to 3 previous errors [INFO] [stdout] warning: unused variable: `cents_per_gram` [INFO] [stdout] --> exercises/07_structs/structs3.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | fn get_fees(&self, cents_per_gram: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cents_per_gram` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "traits4") due to 5 previous errors [INFO] [stdout] For more information about this error, try `rustc --explain E0603`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "modules1") due to 1 previous error [INFO] [stdout] error[E0599]: no variant or associated item named `Resize` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/08_enums/enums1.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `Resize` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 7 | println!("{:?}", Message::Resize); [INFO] [stdout] | ^^^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Move` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/08_enums/enums1.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `Move` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 8 | println!("{:?}", Message::Move); [INFO] [stdout] | ^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Echo` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/08_enums/enums1.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `Echo` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 9 | println!("{:?}", Message::Echo); [INFO] [stdout] | ^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `ChangeColor` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/08_enums/enums1.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `ChangeColor` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 10 | println!("{:?}", Message::ChangeColor); [INFO] [stdout] | ^^^^^^^^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Quit` found for enum `Message` in the current scope [INFO] [stdout] --> exercises/08_enums/enums1.rs:11:31 [INFO] [stdout] | [INFO] [stdout] 2 | enum Message { [INFO] [stdout] | ------------ variant or associated item `Quit` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 11 | println!("{:?}", Message::Quit); [INFO] [stdout] | ^^^^ variant or associated item not found in `Message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "enums1") due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "e1f77b9d20954738cb12df4f4548e72cbab95cbf1b6908323e6750c8f27ffe71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1f77b9d20954738cb12df4f4548e72cbab95cbf1b6908323e6750c8f27ffe71", kill_on_drop: false }` [INFO] [stdout] e1f77b9d20954738cb12df4f4548e72cbab95cbf1b6908323e6750c8f27ffe71