[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] building qzj-123/rustlings against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqzj-123%2Frustlings" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 43% (844/1927) Updating files: 44% (848/1927) Updating files: 45% (868/1927) Updating files: 46% (887/1927) Updating files: 47% (906/1927) Updating files: 48% (925/1927) Updating files: 49% (945/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-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/qzj-123/rustlings on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 48ffdbaf7e81e04bb3b30bd022166154873a1db067f627979f17aba8d61751fc [INFO] running `Command { std: "docker" "start" "-a" "48ffdbaf7e81e04bb3b30bd022166154873a1db067f627979f17aba8d61751fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "48ffdbaf7e81e04bb3b30bd022166154873a1db067f627979f17aba8d61751fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48ffdbaf7e81e04bb3b30bd022166154873a1db067f627979f17aba8d61751fc", kill_on_drop: false }` [INFO] [stdout] 48ffdbaf7e81e04bb3b30bd022166154873a1db067f627979f17aba8d61751fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3aaacf5f0d4bb446e0f25725ed44579cf9860d35139d148141db6cac57167f02 [INFO] running `Command { std: "docker" "start" "-a" "3aaacf5f0d4bb446e0f25725ed44579cf9860d35139d148141db6cac57167f02", kill_on_drop: false }` [INFO] [stderr] Compiling exercises v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | placeholder("blue"); [INFO] [stdout] | ^^^^^^^^^^^ ------ unexpected argument of type `&'static str` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 16 - placeholder("blue"); [INFO] [stdout] 16 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | placeholder("red".to_string()); [INFO] [stdout] | ^^^^^^^^^^^ ----------------- unexpected argument of type `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 18 - placeholder("red".to_string()); [INFO] [stdout] 18 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | placeholder(String::from("hi")); [INFO] [stdout] | ^^^^^^^^^^^ ------------------ unexpected argument of type `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 20 - placeholder(String::from("hi")); [INFO] [stdout] 20 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | placeholder("rust is fun!".to_owned()); [INFO] [stdout] | ^^^^^^^^^^^ ------------------------- unexpected argument of type `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 22 - placeholder("rust is fun!".to_owned()); [INFO] [stdout] 22 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "strings4") due to 10 previous errors [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | placeholder("nice weather".into()); [INFO] [stdout] | ^^^^^^^^^^^ --------------------- unexpected argument [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 24 - placeholder("nice weather".into()); [INFO] [stdout] 24 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | placeholder(format!("Interpolation {}", "Station")); [INFO] [stdout] | ^^^^^^^^^^^ -------------------------------------- unexpected argument of type `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 26 - placeholder(format!("Interpolation {}", "Station")); [INFO] [stdout] 26 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | placeholder(&String::from("abc")[0..1]); [INFO] [stdout] | ^^^^^^^^^^^ -------------------------- unexpected argument of type `&str` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 30 - placeholder(&String::from("abc")[0..1]); [INFO] [stdout] 30 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | placeholder(" hello there ".trim()); [INFO] [stdout] | ^^^^^^^^^^^ ----------------------- unexpected argument of type `&str` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 32 - placeholder(" hello there ".trim()); [INFO] [stdout] 32 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | placeholder("Happy Monday!".replace("Mon", "Tues")); [INFO] [stdout] | ^^^^^^^^^^^ -------------------------------------- unexpected argument of type `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 34 - placeholder("Happy Monday!".replace("Mon", "Tues")); [INFO] [stdout] 34 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 1 argument was supplied [INFO] [stdout] --> exercises/09_strings/strings4.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | placeholder("mY sHiFt KeY iS sTiCkY".to_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^ --------------------------------------- unexpected argument of type `String` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/09_strings/strings4.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn placeholder() {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 36 - placeholder("mY sHiFt KeY iS sTiCkY".to_lowercase()); [INFO] [stdout] 36 + placeholder(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `basket` in this scope [INFO] [stdout] --> exercises/11_hashmaps/hashmaps1.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | basket.insert(String::from("banana"), 2); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `basket` in this scope [INFO] [stdout] --> exercises/11_hashmaps/hashmaps1.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | basket [INFO] [stdout] | ^^^^^^ not found in this scope [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 "hashmaps1") due to 2 previous errors [INFO] [stdout] error[E0308]: `if` and `else` have incompatible types [INFO] [stdout] --> exercises/03_if/if3.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 7 | } else if animal == "snake" { [INFO] [stdout] | ____________- [INFO] [stdout] 8 | | 3 [INFO] [stdout] | | - expected because of this [INFO] [stdout] 9 | | } else { [INFO] [stdout] 10 | | "Unknown" [INFO] [stdout] | | ^^^^^^^^^ expected integer, found `&str` [INFO] [stdout] 11 | | }; [INFO] [stdout] | |_____- `if` and `else` have incompatible types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: expected `;`, found `(` [INFO] [stdout] --> exercises/21_macros/macros4.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | } [INFO] [stdout] | - expected `;` [INFO] [stdout] 7 | ($val:expr) => { [INFO] [stdout] | ^ unexpected token [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] [stderr] error: could not compile `exercises` (bin "if3") due to 1 previous error [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 "macros4") due to 1 previous error [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] running `Command { std: "docker" "inspect" "3aaacf5f0d4bb446e0f25725ed44579cf9860d35139d148141db6cac57167f02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3aaacf5f0d4bb446e0f25725ed44579cf9860d35139d148141db6cac57167f02", kill_on_drop: false }` [INFO] [stdout] 3aaacf5f0d4bb446e0f25725ed44579cf9860d35139d148141db6cac57167f02