[INFO] cloning repository https://github.com/Arkitu/why-choose
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Arkitu/why-choose" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArkitu%2Fwhy-choose", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArkitu%2Fwhy-choose'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5b6fa9d97e120c2463989b7288259f878f3fb482
[INFO] checking Arkitu/why-choose against try#863511eff87e66198b396935f3b5c8a543022f53 for pr-139493-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArkitu%2Fwhy-choose" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Arkitu/why-choose
[INFO] finished tweaking git repo https://github.com/Arkitu/why-choose
[INFO] tweaked toml for git repo https://github.com/Arkitu/why-choose written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Arkitu/why-choose on toolchain 863511eff87e66198b396935f3b5c8a543022f53
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+863511eff87e66198b396935f3b5c8a543022f53" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Arkitu/why-choose 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" "+863511eff87e66198b396935f3b5c8a543022f53" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+863511eff87e66198b396935f3b5c8a543022f53" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e8b3a7a9b3a1b925ee74036f47e436f0be12ae128c12051bd39b7246effb9299
[INFO] running `Command { std: "docker" "start" "-a" "e8b3a7a9b3a1b925ee74036f47e436f0be12ae128c12051bd39b7246effb9299", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e8b3a7a9b3a1b925ee74036f47e436f0be12ae128c12051bd39b7246effb9299", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e8b3a7a9b3a1b925ee74036f47e436f0be12ae128c12051bd39b7246effb9299", kill_on_drop: false }`
[INFO] [stdout] e8b3a7a9b3a1b925ee74036f47e436f0be12ae128c12051bd39b7246effb9299
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+863511eff87e66198b396935f3b5c8a543022f53" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ce67c0848cf998159bae914abdd50845a5962e9dd633ad0f0ae69a6eb395c4f3
[INFO] running `Command { std: "docker" "start" "-a" "ce67c0848cf998159bae914abdd50845a5962e9dd633ad0f0ae69a6eb395c4f3", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.60
[INFO] [stderr]    Compiling quote v1.0.28
[INFO] [stderr]    Compiling unicode-ident v1.0.9
[INFO] [stderr]    Compiling tokio v1.29.1
[INFO] [stderr]     Checking num_cpus v1.15.0
[INFO] [stderr]     Checking pin-project-lite v0.2.10
[INFO] [stderr]     Checking fixedstr v0.4.2
[INFO] [stderr]     Checking id-vec v0.5.7
[INFO] [stderr]     Checking parking_lot_core v0.9.8
[INFO] [stderr]     Checking lock_api v0.4.10
[INFO] [stderr]     Checking parking_lot v0.12.1
[INFO] [stderr]    Compiling syn v2.0.18
[INFO] [stderr]    Compiling tokio-macros v2.1.0
[INFO] [stderr]    Compiling async-recursion v1.0.4
[INFO] [stderr]     Checking why-choose v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0499]: cannot borrow `*values` as mutable more than once at a time
[INFO] [stdout]    --> src/main.rs:275:14
[INFO] [stdout]     |
[INFO] [stdout] 271 | fn parse_expression_in_context<'a>(ctx: &'a mut String, values: &'a mut ParsedExpressions<'a>, range: Range<usize>) -> Result<isize, ()> {
[INFO] [stdout]     |                                -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 274 |     let val = parse_code_with_values(&str_val, values);
[INFO] [stdout]     |               ----------------------------------------
[INFO] [stdout]     |               |                                |
[INFO] [stdout]     |               |                                first mutable borrow occurs here
[INFO] [stdout]     |               argument requires that `*values` is borrowed for `'a`
[INFO] [stdout] 275 |     let id = values.insert(val.clone()).index_value().to_string();
[INFO] [stdout]     |              ^^^^^^ second mutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]    --> src/main.rs:332:39
[INFO] [stdout]     |
[INFO] [stdout] 294 | ..._char(values: &mut ParsedExpressions, exp: &str, i: usize, l: char, new_exp: &mut String, current_vals: &mut Vec<(ParsedValue, usize, ...
[INFO] [stdout]     |          ------  - let's call the lifetime of this reference `'1`
[INFO] [stdout]     |          |
[INFO] [stdout]     |          has type `&mut IdVec<Expression<'2>>`
[INFO] [stdout] ...
[INFO] [stdout] 332 | ...             *removed_chars += parse_expression_in_context(new_exp, values, range).expect("Invalid value");
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: requirement occurs because of a mutable reference to `IdVec<Expression<'_>>`
[INFO] [stdout]     = note: mutable references are invariant over their type parameter
[INFO] [stdout]     = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] 294 | fn iter_char<'a>(values: &'a mut ParsedExpressions<'a>, exp: &str, i: usize, l: char, new_exp: &mut String, current_vals: &mut Vec<(ParsedValue, usize, isize)>, removed_chars: &mut isize) {
[INFO] [stdout]     |             ++++          ++                      ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]    --> src/main.rs:332:39
[INFO] [stdout]     |
[INFO] [stdout] 294 | ..._char(values: &mut ParsedExpressions, exp: &str, i: usize, l: char, new_exp: &mut String, current_vals: &mut Vec<(ParsedValue, usize, ...
[INFO] [stdout]     |          ------ has type `&mut IdVec<Expression<'2>>`                           - let's call the lifetime of this reference `'3`
[INFO] [stdout] ...
[INFO] [stdout] 332 | ...             *removed_chars += parse_expression_in_context(new_exp, values, range).expect("Invalid value");
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'3` must outlive `'2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: requirement occurs because of a mutable reference to `IdVec<Expression<'_>>`
[INFO] [stdout]     = note: mutable references are invariant over their type parameter
[INFO] [stdout]     = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] 294 | fn iter_char<'a>(values: &mut ParsedExpressions<'a>, exp: &str, i: usize, l: char, new_exp: &'a mut String, current_vals: &mut Vec<(ParsedValue, usize, isize)>, removed_chars: &mut isize) {
[INFO] [stdout]     |             ++++                               ++++                                          ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `values`
[INFO] [stdout]    --> src/main.rs:585:5
[INFO] [stdout]     |
[INFO] [stdout] 584 |     let exp = parse_code_with_values(exp, &mut values);
[INFO] [stdout]     |                                           ----------- `values` is borrowed here
[INFO] [stdout] 585 |     (exp, values)
[INFO] [stdout]     |     ^^^^^^^^^^^^^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0505]: cannot move out of `values` because it is borrowed
[INFO] [stdout]    --> src/main.rs:585:11
[INFO] [stdout]     |
[INFO] [stdout] 582 | fn parse_code<'a>(exp: &str) -> (Expression<'a>, ParsedExpressions<'a>) {
[INFO] [stdout]     |               -- lifetime `'a` defined here
[INFO] [stdout] 583 |     let mut values: ParsedExpressions = IdVec::new();
[INFO] [stdout]     |         ---------- binding `values` declared here
[INFO] [stdout] 584 |     let exp = parse_code_with_values(exp, &mut values);
[INFO] [stdout]     |                                           ----------- borrow of `values` occurs here
[INFO] [stdout] 585 |     (exp, values)
[INFO] [stdout]     |     ------^^^^^^-
[INFO] [stdout]     |     |     |
[INFO] [stdout]     |     |     move out of `values` occurs here
[INFO] [stdout]     |     returning this value requires that `values` is borrowed for `'a`
[INFO] [stdout]     |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]     |
[INFO] [stdout] 584 |     let exp = parse_code_with_values(exp, &mut values.clone());
[INFO] [stdout]     |                                                      ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `*values` as mutable more than once at a time
[INFO] [stdout]    --> src/main.rs:275:14
[INFO] [stdout]     |
[INFO] [stdout] 271 | fn parse_expression_in_context<'a>(ctx: &'a mut String, values: &'a mut ParsedExpressions<'a>, range: Range<usize>) -> Result<isize, ()> {
[INFO] [stdout]     |                                -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 274 |     let val = parse_code_with_values(&str_val, values);
[INFO] [stdout]     |               ----------------------------------------
[INFO] [stdout]     |               |                                |
[INFO] [stdout]     |               |                                first mutable borrow occurs here
[INFO] [stdout]     |               argument requires that `*values` is borrowed for `'a`
[INFO] [stdout] 275 |     let id = values.insert(val.clone()).index_value().to_string();
[INFO] [stdout]     |              ^^^^^^ second mutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:596:9
[INFO] [stdout]     |
[INFO] [stdout] 596 |     let mut root_scope = Scope::new(None);
[INFO] [stdout]     |         ----^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `root_scope`
[INFO] [stdout]    --> src/main.rs:596:9
[INFO] [stdout]     |
[INFO] [stdout] 596 |     let mut root_scope = Scope::new(None);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_root_scope`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0499, E0505, E0515.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0499`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `why-choose` (bin "why-choose" test) due to 5 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]    --> src/main.rs:332:39
[INFO] [stdout]     |
[INFO] [stdout] 294 | ..._char(values: &mut ParsedExpressions, exp: &str, i: usize, l: char, new_exp: &mut String, current_vals: &mut Vec<(ParsedValue, usize, ...
[INFO] [stdout]     |          ------  - let's call the lifetime of this reference `'1`
[INFO] [stdout]     |          |
[INFO] [stdout]     |          has type `&mut IdVec<Expression<'2>>`
[INFO] [stdout] ...
[INFO] [stdout] 332 | ...             *removed_chars += parse_expression_in_context(new_exp, values, range).expect("Invalid value");
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: requirement occurs because of a mutable reference to `IdVec<Expression<'_>>`
[INFO] [stdout]     = note: mutable references are invariant over their type parameter
[INFO] [stdout]     = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] 294 | fn iter_char<'a>(values: &'a mut ParsedExpressions<'a>, exp: &str, i: usize, l: char, new_exp: &mut String, current_vals: &mut Vec<(ParsedValue, usize, isize)>, removed_chars: &mut isize) {
[INFO] [stdout]     |             ++++          ++                      ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]    --> src/main.rs:332:39
[INFO] [stdout]     |
[INFO] [stdout] 294 | ..._char(values: &mut ParsedExpressions, exp: &str, i: usize, l: char, new_exp: &mut String, current_vals: &mut Vec<(ParsedValue, usize, ...
[INFO] [stdout]     |          ------ has type `&mut IdVec<Expression<'2>>`                           - let's call the lifetime of this reference `'3`
[INFO] [stdout] ...
[INFO] [stdout] 332 | ...             *removed_chars += parse_expression_in_context(new_exp, values, range).expect("Invalid value");
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'3` must outlive `'2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: requirement occurs because of a mutable reference to `IdVec<Expression<'_>>`
[INFO] [stdout]     = note: mutable references are invariant over their type parameter
[INFO] [stdout]     = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]     |
[INFO] [stdout] 294 | fn iter_char<'a>(values: &mut ParsedExpressions<'a>, exp: &str, i: usize, l: char, new_exp: &'a mut String, current_vals: &mut Vec<(ParsedValue, usize, isize)>, removed_chars: &mut isize) {
[INFO] [stdout]     |             ++++                               ++++                                          ++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `values`
[INFO] [stdout]    --> src/main.rs:585:5
[INFO] [stdout]     |
[INFO] [stdout] 584 |     let exp = parse_code_with_values(exp, &mut values);
[INFO] [stdout]     |                                           ----------- `values` is borrowed here
[INFO] [stdout] 585 |     (exp, values)
[INFO] [stdout]     |     ^^^^^^^^^^^^^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0505]: cannot move out of `values` because it is borrowed
[INFO] [stdout]    --> src/main.rs:585:11
[INFO] [stdout]     |
[INFO] [stdout] 582 | fn parse_code<'a>(exp: &str) -> (Expression<'a>, ParsedExpressions<'a>) {
[INFO] [stdout]     |               -- lifetime `'a` defined here
[INFO] [stdout] 583 |     let mut values: ParsedExpressions = IdVec::new();
[INFO] [stdout]     |         ---------- binding `values` declared here
[INFO] [stdout] 584 |     let exp = parse_code_with_values(exp, &mut values);
[INFO] [stdout]     |                                           ----------- borrow of `values` occurs here
[INFO] [stdout] 585 |     (exp, values)
[INFO] [stdout]     |     ------^^^^^^-
[INFO] [stdout]     |     |     |
[INFO] [stdout]     |     |     move out of `values` occurs here
[INFO] [stdout]     |     returning this value requires that `values` is borrowed for `'a`
[INFO] [stdout]     |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]     |
[INFO] [stdout] 584 |     let exp = parse_code_with_values(exp, &mut values.clone());
[INFO] [stdout]     |                                                      ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:596:9
[INFO] [stdout]     |
[INFO] [stdout] 596 |     let mut root_scope = Scope::new(None);
[INFO] [stdout]     |         ----^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `root_scope`
[INFO] [stdout]    --> src/main.rs:596:9
[INFO] [stdout]     |
[INFO] [stdout] 596 |     let mut root_scope = Scope::new(None);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_root_scope`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0499, E0505, E0515.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0499`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `why-choose` (bin "why-choose") due to 5 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "ce67c0848cf998159bae914abdd50845a5962e9dd633ad0f0ae69a6eb395c4f3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ce67c0848cf998159bae914abdd50845a5962e9dd633ad0f0ae69a6eb395c4f3", kill_on_drop: false }`
[INFO] [stdout] ce67c0848cf998159bae914abdd50845a5962e9dd633ad0f0ae69a6eb395c4f3
