[INFO] cloning repository https://github.com/pranitap123/Rust_Basics
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pranitap123/Rust_Basics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpranitap123%2FRust_Basics", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpranitap123%2FRust_Basics'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 008868f7df1235f58ab32b4fae5e221df664a075
[INFO] checking pranitap123/Rust_Basics/008868f7df1235f58ab32b4fae5e221df664a075 against master#c797096598b80ba4a40397ad7e91584fcd3df5f1 for pr-146377
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpranitap123%2FRust_Basics" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/pranitap123/Rust_Basics
[INFO] finished tweaking git repo https://github.com/pranitap123/Rust_Basics
[INFO] tweaked toml for git repo https://github.com/pranitap123/Rust_Basics written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/pranitap123/Rust_Basics on toolchain c797096598b80ba4a40397ad7e91584fcd3df5f1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c797096598b80ba4a40397ad7e91584fcd3df5f1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/pranitap123/Rust_Basics 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" "+c797096598b80ba4a40397ad7e91584fcd3df5f1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+c797096598b80ba4a40397ad7e91584fcd3df5f1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 06527a7d96b4d745cb10ca384b8de49fa6a2e432a557a4462e38842cbfc70503
[INFO] running `Command { std: "docker" "start" "-a" "06527a7d96b4d745cb10ca384b8de49fa6a2e432a557a4462e38842cbfc70503", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "06527a7d96b4d745cb10ca384b8de49fa6a2e432a557a4462e38842cbfc70503", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "06527a7d96b4d745cb10ca384b8de49fa6a2e432a557a4462e38842cbfc70503", kill_on_drop: false }`
[INFO] [stdout] 06527a7d96b4d745cb10ca384b8de49fa6a2e432a557a4462e38842cbfc70503
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+c797096598b80ba4a40397ad7e91584fcd3df5f1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] bf94a299b632251180211b312f7d177cdc01e7b34f89af462c13e5be39a84682
[INFO] running `Command { std: "docker" "start" "-a" "bf94a299b632251180211b312f7d177cdc01e7b34f89af462c13e5be39a84682", kill_on_drop: false }`
[INFO] [stderr]     Checking rust_examples v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]  --> src/bin/ownership.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     let y = x;
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `str_2`
[INFO] [stdout]  --> src/bin/ownership.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let str_2 = str_1;
[INFO] [stdout]   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_str_2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `s` is never read
[INFO] [stdout]   --> src/bin/ownership.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 |  let mut s = String::from("hello");
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `first_word` in this scope
[INFO] [stdout]  --> src/bin/slice.rs:4:16
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let word = first_word(&s); // word will get the value 5
[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 `rust_examples` (bin "slice" test) due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `y`
[INFO] [stdout]  --> src/bin/ownership.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     let y = x;
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_y`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `str_2`
[INFO] [stdout]  --> src/bin/ownership.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let str_2 = str_1;
[INFO] [stdout]   |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_str_2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `s` is never read
[INFO] [stdout]   --> src/bin/ownership.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 |  let mut s = String::from("hello");
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0434]: can't capture dynamic environment in a fn item
[INFO] [stdout]   --> src/bin/struct.rs:42:15
[INFO] [stdout]    |
[INFO] [stdout] 42 |             ..user1
[INFO] [stdout]    |               ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: use the `|| { ... }` closure form instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `first_word` in this scope
[INFO] [stdout]  --> src/bin/slice.rs:4:16
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let word = first_word(&s); // word will get the value 5
[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] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/bin/struct.rs:32:55
[INFO] [stdout]    |
[INFO] [stdout] 32 |     fn build_user(email: String, username: String) -> User{
[INFO] [stdout]    |        ----------                                     ^^^^ expected `User`, 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 `user2`
[INFO] [stdout]    |
[INFO] [stdout] 43 ~         };
[INFO] [stdout] 44 +         user2
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `subject`
[INFO] [stdout]   --> src/bin/struct.rs:16:9
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let subject = AlwaysEqual; //Unit like struct
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_subject`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `black`
[INFO] [stdout]   --> src/bin/struct.rs:18:9
[INFO] [stdout]    |
[INFO] [stdout] 18 |     let black = Color(0,0,0);
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_black`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `origin`
[INFO] [stdout]   --> src/bin/struct.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let origin = Point(0,0,0);
[INFO] [stdout]    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0434.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_examples` (bin "slice") due to 1 previous error
[INFO] [stderr] error: could not compile `rust_examples` (bin "struct") due to 2 previous errors; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "bf94a299b632251180211b312f7d177cdc01e7b34f89af462c13e5be39a84682", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bf94a299b632251180211b312f7d177cdc01e7b34f89af462c13e5be39a84682", kill_on_drop: false }`
[INFO] [stdout] bf94a299b632251180211b312f7d177cdc01e7b34f89af462c13e5be39a84682
