[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 try#4987e9d4227139400384ab59296ffee3b0fb1183 for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foskrgab%2Frustlings" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-2-tc2/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-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/oskrgab/rustlings on toolchain 4987e9d4227139400384ab59296ffee3b0fb1183 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dbbce5b00df4550dba80970eb3a8ec500867e06aad737bb4c4257528e8ef303a [INFO] running `Command { std: "docker" "start" "-a" "dbbce5b00df4550dba80970eb3a8ec500867e06aad737bb4c4257528e8ef303a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dbbce5b00df4550dba80970eb3a8ec500867e06aad737bb4c4257528e8ef303a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbbce5b00df4550dba80970eb3a8ec500867e06aad737bb4c4257528e8ef303a", kill_on_drop: false }` [INFO] [stdout] dbbce5b00df4550dba80970eb3a8ec500867e06aad737bb4c4257528e8ef303a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1b3d1aaeb8614dd3ec1ef973c00e5cfe3eb49f676ab2d715e3f19333d4d648a [INFO] running `Command { std: "docker" "start" "-a" "c1b3d1aaeb8614dd3ec1ef973c00e5cfe3eb49f676ab2d715e3f19333d4d648a", kill_on_drop: false }` [INFO] [stderr] Compiling exercises v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0384]: cannot assign twice to immutable variable `x` [INFO] [stdout] --> exercises/01_variables/variables4.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 3 | let x = 3; [INFO] [stdout] | - first assignment to `x` [INFO] [stdout] ... [INFO] [stdout] 6 | x = 5; // Don't change this line [INFO] [stdout] | ^^^^^ cannot assign twice to immutable variable [INFO] [stdout] | [INFO] [stdout] help: consider making this binding mutable [INFO] [stdout] | [INFO] [stdout] 3 | let mut x = 3; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0384`. [INFO] [stdout] [INFO] [stdout] error: missing type for `const` item [INFO] [stdout] --> exercises/01_variables/variables6.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | const NUMBER = 3; [INFO] [stdout] | ^ help: provide a type for the constant: `: i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "variables4") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `exercises` (bin "variables6") due to 1 previous error [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `licensing_info` [INFO] [stdout] --> exercises/15_traits/traits3.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 6 | fn licensing_info(&self) -> String; [INFO] [stdout] | ----------------------------------- `licensing_info` from trait [INFO] [stdout] ... [INFO] [stdout] 17 | impl Licensed for SomeSoftware {} // Don't edit this line. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `licensing_info` in implementation [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `licensing_info` [INFO] [stdout] --> exercises/15_traits/traits3.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 6 | fn licensing_info(&self) -> String; [INFO] [stdout] | ----------------------------------- `licensing_info` from trait [INFO] [stdout] ... [INFO] [stdout] 18 | impl Licensed for OtherSoftware {} // Don't edit this line. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `licensing_info` in implementation [INFO] [stdout] [INFO] [stdout] [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] [stdout] For more information about this error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/18_iterators/iterators4.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | 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] help: consider returning the local binding `num` [INFO] [stdout] | [INFO] [stdout] 2 | fn factorial(num: u64) -> u64 { [INFO] [stdout] 3 ~ num [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "iterators4") due to 1 previous error [INFO] [stdout] error[E0425]: cannot find value `a` in this scope [INFO] [stdout] --> exercises/04_primitive_types/primitive_types3.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | if a.len() >= 100 { [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/03_if/if2.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 2 | fn picky_eater(food: &str) -> &str { [INFO] [stdout] | ---- expected `&str` because of return type [INFO] [stdout] ... [INFO] [stdout] 6 | 1 [INFO] [stdout] | ^ expected `&str`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "functions3") due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "traits3") due to 2 previous errors [INFO] [stderr] error: could not compile `exercises` (bin "if2") due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "primitive_types3") due to 1 previous error [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> exercises/23_conversions/from_into.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | fn from(s: &str) -> Self {} [INFO] [stdout] | ---- ^^^^ expected `Person`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [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] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "from_into") due to 1 previous error [INFO] [stderr] error: could not compile `exercises` (bin "if3") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "c1b3d1aaeb8614dd3ec1ef973c00e5cfe3eb49f676ab2d715e3f19333d4d648a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1b3d1aaeb8614dd3ec1ef973c00e5cfe3eb49f676ab2d715e3f19333d4d648a", kill_on_drop: false }` [INFO] [stdout] c1b3d1aaeb8614dd3ec1ef973c00e5cfe3eb49f676ab2d715e3f19333d4d648a