[INFO] cloning repository https://github.com/Derpanieux/receipt_calculator
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Derpanieux/receipt_calculator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDerpanieux%2Freceipt_calculator", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDerpanieux%2Freceipt_calculator'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0c48f58462d8924599baf6d94859f9b5045c3988
[INFO] checking Derpanieux/receipt_calculator against try#438eb4c1a1c3841523d7f672601e8adbe04cff28 for pr-147589-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDerpanieux%2Freceipt_calculator" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Derpanieux/receipt_calculator
[INFO] finished tweaking git repo https://github.com/Derpanieux/receipt_calculator
[INFO] tweaked toml for git repo https://github.com/Derpanieux/receipt_calculator written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Derpanieux/receipt_calculator on toolchain 438eb4c1a1c3841523d7f672601e8adbe04cff28
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Derpanieux/receipt_calculator 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" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 483d3be15f86714f037eb449c90ada81506e107c0c0794f883727c810fcbf751
[INFO] running `Command { std: "docker" "start" "-a" "483d3be15f86714f037eb449c90ada81506e107c0c0794f883727c810fcbf751", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "483d3be15f86714f037eb449c90ada81506e107c0c0794f883727c810fcbf751", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "483d3be15f86714f037eb449c90ada81506e107c0c0794f883727c810fcbf751", kill_on_drop: false }`
[INFO] [stdout] 483d3be15f86714f037eb449c90ada81506e107c0c0794f883727c810fcbf751
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d550a11048105c394b0ac973f4bdbaa58f787082ef8c8096e9e0444a5367d6bc
[INFO] running `Command { std: "docker" "start" "-a" "d550a11048105c394b0ac973f4bdbaa58f787082ef8c8096e9e0444a5367d6bc", kill_on_drop: false }`
[INFO] [stderr]     Checking receipt_calculator v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]    --> src/receipts.rs:187:13
[INFO] [stdout]     |
[INFO] [stdout] 185 |     fn add_item(&mut self, i: &Item) {
[INFO] [stdout]     |                 ---------     - let's call the lifetime of this reference `'1`
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 has type `&mut Person<'2>`
[INFO] [stdout] 186 |         if !self.items.contains(&i) {
[INFO] [stdout] 187 |             self.items.push(&i);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: requirement occurs because of a mutable reference to `Vec<&Item<'_>>`
[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] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]    --> src/receipts.rs:187:13
[INFO] [stdout]     |
[INFO] [stdout] 185 |     fn add_item(&mut self, i: &Item) {
[INFO] [stdout]     |                 ---------  - has type `&Item<'3>`
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 has type `&mut Person<'2>`
[INFO] [stdout] 186 |         if !self.items.contains(&i) {
[INFO] [stdout] 187 |             self.items.push(&i);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^ argument requires that `'3` must outlive `'2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: requirement occurs because of a mutable reference to `Vec<&Item<'_>>`
[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] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]    --> src/receipts.rs:239:9
[INFO] [stdout]     |
[INFO] [stdout] 238 |     fn set_share(&mut self, p: &Person, s: &f64) {
[INFO] [stdout]     |                  ---------     - let's call the lifetime of this reference `'1`
[INFO] [stdout]     |                  |
[INFO] [stdout]     |                  has type `&mut Item<'2>`
[INFO] [stdout] 239 |         self.shares.insert(p, s.clone());
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: requirement occurs because of a mutable reference to `HashMap<&Person<'_>, f64>`
[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] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]    --> src/receipts.rs:239:9
[INFO] [stdout]     |
[INFO] [stdout] 238 |     fn set_share(&mut self, p: &Person, s: &f64) {
[INFO] [stdout]     |                  ---------  - has type `&Person<'3>`
[INFO] [stdout]     |                  |
[INFO] [stdout]     |                  has type `&mut Item<'2>`
[INFO] [stdout] 239 |         self.shares.insert(p, s.clone());
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'3` must outlive `'2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: requirement occurs because of a mutable reference to `HashMap<&Person<'_>, f64>`
[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] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `input`
[INFO] [stdout]   --> src/main.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 42 |     return input.as_str();
[INFO] [stdout]    |            -----^^^^^^^^^
[INFO] [stdout]    |            |
[INFO] [stdout]    |            returns a value referencing data owned by the current function
[INFO] [stdout]    |            `input` is borrowed here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0515`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `receipt_calculator` (bin "receipt_calculator") due to 5 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]    --> src/receipts.rs:187:13
[INFO] [stdout]     |
[INFO] [stdout] 185 |     fn add_item(&mut self, i: &Item) {
[INFO] [stdout]     |                 ---------     - let's call the lifetime of this reference `'1`
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 has type `&mut Person<'2>`
[INFO] [stdout] 186 |         if !self.items.contains(&i) {
[INFO] [stdout] 187 |             self.items.push(&i);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: requirement occurs because of a mutable reference to `Vec<&Item<'_>>`
[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] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]    --> src/receipts.rs:187:13
[INFO] [stdout]     |
[INFO] [stdout] 185 |     fn add_item(&mut self, i: &Item) {
[INFO] [stdout]     |                 ---------  - has type `&Item<'3>`
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 has type `&mut Person<'2>`
[INFO] [stdout] 186 |         if !self.items.contains(&i) {
[INFO] [stdout] 187 |             self.items.push(&i);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^ argument requires that `'3` must outlive `'2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: requirement occurs because of a mutable reference to `Vec<&Item<'_>>`
[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] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]    --> src/receipts.rs:239:9
[INFO] [stdout]     |
[INFO] [stdout] 238 |     fn set_share(&mut self, p: &Person, s: &f64) {
[INFO] [stdout]     |                  ---------     - let's call the lifetime of this reference `'1`
[INFO] [stdout]     |                  |
[INFO] [stdout]     |                  has type `&mut Item<'2>`
[INFO] [stdout] 239 |         self.shares.insert(p, s.clone());
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: requirement occurs because of a mutable reference to `HashMap<&Person<'_>, f64>`
[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] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]    --> src/receipts.rs:239:9
[INFO] [stdout]     |
[INFO] [stdout] 238 |     fn set_share(&mut self, p: &Person, s: &f64) {
[INFO] [stdout]     |                  ---------  - has type `&Person<'3>`
[INFO] [stdout]     |                  |
[INFO] [stdout]     |                  has type `&mut Item<'2>`
[INFO] [stdout] 239 |         self.shares.insert(p, s.clone());
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'3` must outlive `'2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: requirement occurs because of a mutable reference to `HashMap<&Person<'_>, f64>`
[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] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `input`
[INFO] [stdout]   --> src/main.rs:42:12
[INFO] [stdout]    |
[INFO] [stdout] 42 |     return input.as_str();
[INFO] [stdout]    |            -----^^^^^^^^^
[INFO] [stdout]    |            |
[INFO] [stdout]    |            returns a value referencing data owned by the current function
[INFO] [stdout]    |            `input` is borrowed here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0515`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `receipt_calculator` (bin "receipt_calculator" test) due to 5 previous errors
[INFO] running `Command { std: "docker" "inspect" "d550a11048105c394b0ac973f4bdbaa58f787082ef8c8096e9e0444a5367d6bc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d550a11048105c394b0ac973f4bdbaa58f787082ef8c8096e9e0444a5367d6bc", kill_on_drop: false }`
[INFO] [stdout] d550a11048105c394b0ac973f4bdbaa58f787082ef8c8096e9e0444a5367d6bc
