[INFO] cloning repository https://github.com/oskrgab/rustlings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/oskrgab/rustlings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foskrgab%2Frustlings", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foskrgab%2Frustlings'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aa040e43702c3f73aaa8b9a0e4ff03108612807b [INFO] building oskrgab/rustlings against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foskrgab%2Frustlings" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-5-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/oskrgab/rustlings [INFO] finished tweaking git repo https://github.com/oskrgab/rustlings [INFO] tweaked toml for git repo https://github.com/oskrgab/rustlings written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/oskrgab/rustlings on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/oskrgab/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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 30c1efd62cc6d12c2aac4e100e8af6fa9d636651b48f062466fa4fb2094b275b [INFO] running `Command { std: "docker" "start" "-a" "30c1efd62cc6d12c2aac4e100e8af6fa9d636651b48f062466fa4fb2094b275b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "30c1efd62cc6d12c2aac4e100e8af6fa9d636651b48f062466fa4fb2094b275b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30c1efd62cc6d12c2aac4e100e8af6fa9d636651b48f062466fa4fb2094b275b", kill_on_drop: false }` [INFO] [stdout] 30c1efd62cc6d12c2aac4e100e8af6fa9d636651b48f062466fa4fb2094b275b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5f4d590c8cf62b2509dcf8eac5a85f94a2edea599268445283ce5b9af37d0972 [INFO] running `Command { std: "docker" "start" "-a" "5f4d590c8cf62b2509dcf8eac5a85f94a2edea599268445283ce5b9af37d0972", kill_on_drop: false }` [INFO] [stderr] Compiling exercises v0.0.0 (/opt/rustwide/workdir) [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] error: cannot find macro `printline` in this scope [INFO] [stdout] --> exercises/00_intro/intro2.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | printline!("Hello world!"); [INFO] [stdout] | ^^^^^^^^^ help: a macro with a similar name exists: `println` [INFO] [stdout] | [INFO] [stdout] --> /rustc/ad85bc524b1ad696e42061ad8338d382dffbdbe5/library/std/src/macros.rs:138:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named macro `println` defined here [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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> exercises/01_variables/variables2.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let x; [INFO] [stdout] | ^ [INFO] [stdout] 4 | [INFO] [stdout] 5 | if x == 10 { [INFO] [stdout] | -- type must be known at this point [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: PartialEq` [INFO] [stdout] = note: `{integer}` implements `PartialEq<_>` [INFO] [stdout] help: consider giving `x` an explicit type [INFO] [stdout] | [INFO] [stdout] 3 | let x: /* Type */; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] help: consider swapping the equality [INFO] [stdout] | [INFO] [stdout] 5 - if x == 10 { [INFO] [stdout] 5 + if 10 == x { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "variables2") due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/16_lifetimes/lifetimes3.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | author: &str, [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 4 ~ struct Book<'a> { [INFO] [stdout] 5 ~ author: &'a str, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/16_lifetimes/lifetimes3.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | title: &str, [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 4 ~ struct Book<'a> { [INFO] [stdout] 5 | author: &str, [INFO] [stdout] 6 ~ title: &'a str, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0381]: used binding `x` isn't initialized [INFO] [stdout] --> exercises/01_variables/variables3.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 3 | let x: i32; [INFO] [stdout] | - binding declared here but left uninitialized [INFO] [stdout] 4 | [INFO] [stdout] 5 | println!("Number {x}"); [INFO] [stdout] | ^ `x` used here but it isn't initialized [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider assigning a value [INFO] [stdout] | [INFO] [stdout] 3 | let x: i32 = 42; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0381`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "intro2") due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "variables3") due to 1 previous error [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> exercises/02_functions/functions3.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | call_me(); [INFO] [stdout] | ^^^^^^^-- argument #1 of type `u8` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> exercises/02_functions/functions3.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn call_me(num: u8) { [INFO] [stdout] | ^^^^^^^ ------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 9 | call_me(/* u8 */); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "lifetimes3") due to 2 previous errors [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "functions3") due to 1 previous error [INFO] [stdout] error: expected type, found `)` [INFO] [stdout] --> exercises/02_functions/functions2.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | fn call_me(num:) { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/01_variables/variables5.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 2 | let number = "T-H-R-E-E"; // Don't change this line [INFO] [stdout] | ----------- expected due to this value [INFO] [stdout] ... [INFO] [stdout] 6 | number = 3; [INFO] [stdout] | ^ expected `&str`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `{integer}` to `&str` [INFO] [stdout] --> exercises/01_variables/variables5.rs:7:47 [INFO] [stdout] | [INFO] [stdout] 7 | println!("Number plus two is: {}", number + 2); [INFO] [stdout] | ------ ^ - {integer} [INFO] [stdout] | | [INFO] [stdout] | &str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0369. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "variables5") due to 2 previous errors [INFO] [stdout] error[E0425]: cannot find value `num` in this scope [INFO] [stdout] --> exercises/02_functions/functions2.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | for i in 0..num { [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 "functions2") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "5f4d590c8cf62b2509dcf8eac5a85f94a2edea599268445283ce5b9af37d0972", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f4d590c8cf62b2509dcf8eac5a85f94a2edea599268445283ce5b9af37d0972", kill_on_drop: false }` [INFO] [stdout] 5f4d590c8cf62b2509dcf8eac5a85f94a2edea599268445283ce5b9af37d0972