[INFO] cloning repository https://github.com/AntonDmitriev1484/Learning-Rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AntonDmitriev1484/Learning-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAntonDmitriev1484%2FLearning-Rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAntonDmitriev1484%2FLearning-Rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5ef86da086c3d1c521494c7be5ad566fdee9d8f0
[INFO] checking AntonDmitriev1484/Learning-Rust against try#5fee451ebd94296ea05214e819c311e164b30af6 for pr-139042
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAntonDmitriev1484%2FLearning-Rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/AntonDmitriev1484/Learning-Rust on toolchain 5fee451ebd94296ea05214e819c311e164b30af6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5fee451ebd94296ea05214e819c311e164b30af6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/AntonDmitriev1484/Learning-Rust
[INFO] finished tweaking git repo https://github.com/AntonDmitriev1484/Learning-Rust
[INFO] tweaked toml for git repo https://github.com/AntonDmitriev1484/Learning-Rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/AntonDmitriev1484/Learning-Rust 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" "+5fee451ebd94296ea05214e819c311e164b30af6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+5fee451ebd94296ea05214e819c311e164b30af6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0e43cae5a72836dcce292e09fedc80fca6248f0f590faaea61f19b871ba4fa6a
[INFO] running `Command { std: "docker" "start" "-a" "0e43cae5a72836dcce292e09fedc80fca6248f0f590faaea61f19b871ba4fa6a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0e43cae5a72836dcce292e09fedc80fca6248f0f590faaea61f19b871ba4fa6a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0e43cae5a72836dcce292e09fedc80fca6248f0f590faaea61f19b871ba4fa6a", kill_on_drop: false }`
[INFO] [stdout] 0e43cae5a72836dcce292e09fedc80fca6248f0f590faaea61f19b871ba4fa6a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+5fee451ebd94296ea05214e819c311e164b30af6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0bf7545f85d11033546dc5730e25f1da23573af85a0b2d55d0f64e9a0c9da914
[INFO] running `Command { std: "docker" "start" "-a" "0bf7545f85d11033546dc5730e25f1da23573af85a0b2d55d0f64e9a0c9da914", kill_on_drop: false }`
[INFO] [stderr]     Checking Rusting v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found `you`
[INFO] [stdout]    --> src/main.rs:200:25
[INFO] [stdout]     |
[INFO] [stdout] 200 |             [('+', fuck you),
[INFO] [stdout]     |                        -^^^ expected one of 8 possible tokens
[INFO] [stdout]     |                        |
[INFO] [stdout]     |                        help: missing `,`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found `you`
[INFO] [stdout]    --> src/main.rs:200:25
[INFO] [stdout]     |
[INFO] [stdout] 200 |             [('+', fuck you),
[INFO] [stdout]     |                        -^^^ expected one of 8 possible tokens
[INFO] [stdout]     |                        |
[INFO] [stdout]     |                        help: missing `,`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `fuck` in this scope
[INFO] [stdout]    --> src/main.rs:200:20
[INFO] [stdout]     |
[INFO] [stdout] 200 |             [('+', fuck you),
[INFO] [stdout]     |                    ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `you` in this scope
[INFO] [stdout]    --> src/main.rs:200:25
[INFO] [stdout]     |
[INFO] [stdout] 200 |             [('+', fuck you),
[INFO] [stdout]     |                         ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `fuck` in this scope
[INFO] [stdout]    --> src/main.rs:200:20
[INFO] [stdout]     |
[INFO] [stdout] 200 |             [('+', fuck you),
[INFO] [stdout]     |                    ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `you` in this scope
[INFO] [stdout]    --> src/main.rs:200:25
[INFO] [stdout]     |
[INFO] [stdout] 200 |             [('+', fuck you),
[INFO] [stdout]     |                         ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::mem`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::mem;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/main.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 |         if (minInclusive <= i && i < maxExclusive) { // Capture min and max parameters in the closure
[INFO] [stdout]    |            ^                                     ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 14 -         if (minInclusive <= i && i < maxExclusive) { // Capture min and max parameters in the closure
[INFO] [stdout] 14 +         if minInclusive <= i && i < maxExclusive { // Capture min and max parameters in the closure
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/main.rs:70:8
[INFO] [stdout]    |
[INFO] [stdout] 70 |     if (input==target) {
[INFO] [stdout]    |        ^             ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 70 -     if (input==target) {
[INFO] [stdout] 70 +     if input==target {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:113:8
[INFO] [stdout]     |
[INFO] [stdout] 113 |     if (!op_flag) { println!("Add an operator you kablunkus")}
[INFO] [stdout]     |        ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 113 -     if (!op_flag) { println!("Add an operator you kablunkus")}
[INFO] [stdout] 113 +     if !op_flag { println!("Add an operator you kablunkus")}
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:125:12
[INFO] [stdout]     |
[INFO] [stdout] 125 |         if (predicate(c)) {
[INFO] [stdout]     |            ^            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 125 -         if (predicate(c)) {
[INFO] [stdout] 125 +         if predicate(c) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:229:28
[INFO] [stdout]     |
[INFO] [stdout] 229 |                         if (c.is_digit(10)) {
[INFO] [stdout]     |                            ^              ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 229 -                         if (c.is_digit(10)) {
[INFO] [stdout] 229 +                         if c.is_digit(10) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::mem`
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::mem;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/main.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 |         if (minInclusive <= i && i < maxExclusive) { // Capture min and max parameters in the closure
[INFO] [stdout]    |            ^                                     ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 14 -         if (minInclusive <= i && i < maxExclusive) { // Capture min and max parameters in the closure
[INFO] [stdout] 14 +         if minInclusive <= i && i < maxExclusive { // Capture min and max parameters in the closure
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/main.rs:70:8
[INFO] [stdout]    |
[INFO] [stdout] 70 |     if (input==target) {
[INFO] [stdout]    |        ^             ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 70 -     if (input==target) {
[INFO] [stdout] 70 +     if input==target {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:113:8
[INFO] [stdout]     |
[INFO] [stdout] 113 |     if (!op_flag) { println!("Add an operator you kablunkus")}
[INFO] [stdout]     |        ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 113 -     if (!op_flag) { println!("Add an operator you kablunkus")}
[INFO] [stdout] 113 +     if !op_flag { println!("Add an operator you kablunkus")}
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:125:12
[INFO] [stdout]     |
[INFO] [stdout] 125 |         if (predicate(c)) {
[INFO] [stdout]     |            ^            ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 125 -         if (predicate(c)) {
[INFO] [stdout] 125 +         if predicate(c) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:229:28
[INFO] [stdout]     |
[INFO] [stdout] 229 |                         if (c.is_digit(10)) {
[INFO] [stdout]     |                            ^              ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 229 -                         if (c.is_digit(10)) {
[INFO] [stdout] 229 +                         if c.is_digit(10) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0782]: expected a type, found a trait
[INFO] [stdout]    --> src/main.rs:193:43
[INFO] [stdout]     |
[INFO] [stdout] 193 |     let mut operations: HashMap<char, Box<Fn(i32, i32)->i32>> =
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object
[INFO] [stdout]     |
[INFO] [stdout] 193 |     let mut operations: HashMap<char, Box<dyn Fn(i32, i32)->i32>> =
[INFO] [stdout]     |                                           +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0782]: expected a type, found a trait
[INFO] [stdout]    --> src/main.rs:193:43
[INFO] [stdout]     |
[INFO] [stdout] 193 |     let mut operations: HashMap<char, Box<Fn(i32, i32)->i32>> =
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: you can add the `dyn` keyword if you want a trait object
[INFO] [stdout]     |
[INFO] [stdout] 193 |     let mut operations: HashMap<char, Box<dyn Fn(i32, i32)->i32>> =
[INFO] [stdout]     |                                           +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0615]: attempted to take value of method `chars` on type `String`
[INFO] [stdout]    --> src/main.rs:215:22
[INFO] [stdout]     |
[INFO] [stdout] 215 |     for (i,c) in str.chars.enumerate() {
[INFO] [stdout]     |                      ^^^^^ method, not a field
[INFO] [stdout]     |
[INFO] [stdout] help: use parentheses to call the method
[INFO] [stdout]     |
[INFO] [stdout] 215 |     for (i,c) in str.chars().enumerate() {
[INFO] [stdout]     |                           ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0615]: attempted to take value of method `chars` on type `String`
[INFO] [stdout]    --> src/main.rs:215:22
[INFO] [stdout]     |
[INFO] [stdout] 215 |     for (i,c) in str.chars.enumerate() {
[INFO] [stdout]     |                      ^^^^^ method, not a field
[INFO] [stdout]     |
[INFO] [stdout] help: use parentheses to call the method
[INFO] [stdout]     |
[INFO] [stdout] 215 |     for (i,c) in str.chars().enumerate() {
[INFO] [stdout]     |                           ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `reduce` found for struct `Vec<String>` in the current scope
[INFO] [stdout]    --> src/main.rs:253:30
[INFO] [stdout]     |
[INFO] [stdout] 253 |     println!("tokens: {}", v.reduce(String::new(), |acc, x| acc+x));
[INFO] [stdout]     |                              ^^^^^^ `Vec<String>` is not an iterator
[INFO] [stdout]     |
[INFO] [stdout] help: call `.into_iter()` first
[INFO] [stdout]     |
[INFO] [stdout] 253 |     println!("tokens: {}", v.into_iter().reduce(String::new(), |acc, x| acc+x));
[INFO] [stdout]     |                              ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `reduce` found for struct `Vec<String>` in the current scope
[INFO] [stdout]    --> src/main.rs:253:30
[INFO] [stdout]     |
[INFO] [stdout] 253 |     println!("tokens: {}", v.reduce(String::new(), |acc, x| acc+x));
[INFO] [stdout]     |                              ^^^^^^ `Vec<String>` is not an iterator
[INFO] [stdout]     |
[INFO] [stdout] help: call `.into_iter()` first
[INFO] [stdout]     |
[INFO] [stdout] 253 |     println!("tokens: {}", v.into_iter().reduce(String::new(), |acc, x| acc+x));
[INFO] [stdout]     |                              ++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function cannot return without recursing
[INFO] [stdout]    --> src/main.rs:131:1
[INFO] [stdout]     |
[INFO] [stdout] 131 | fn calculator_HOF() -> () {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
[INFO] [stdout] ...
[INFO] [stdout] 167 |     calculator_HOF()
[INFO] [stdout]     |     ---------------- recursive call site
[INFO] [stdout]     |
[INFO] [stdout]     = help: a `loop` may express intention better if this is on purpose
[INFO] [stdout]     = note: `#[warn(unconditional_recursion)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function cannot return without recursing
[INFO] [stdout]    --> src/main.rs:131:1
[INFO] [stdout]     |
[INFO] [stdout] 131 | fn calculator_HOF() -> () {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
[INFO] [stdout] ...
[INFO] [stdout] 167 |     calculator_HOF()
[INFO] [stdout]     |     ---------------- recursive call site
[INFO] [stdout]     |
[INFO] [stdout]     = help: a `loop` may express intention better if this is on purpose
[INFO] [stdout]     = note: `#[warn(unconditional_recursion)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0599, E0615, E0782.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0599, E0615, E0782.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `Rusting` (bin "Rusting") due to 6 previous errors; 8 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `Rusting` (bin "Rusting" test) due to 6 previous errors; 8 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "0bf7545f85d11033546dc5730e25f1da23573af85a0b2d55d0f64e9a0c9da914", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0bf7545f85d11033546dc5730e25f1da23573af85a0b2d55d0f64e9a0c9da914", kill_on_drop: false }`
[INFO] [stdout] 0bf7545f85d11033546dc5730e25f1da23573af85a0b2d55d0f64e9a0c9da914
