[INFO] cloning repository https://github.com/jordansexton/obligation-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jordansexton/obligation-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjordansexton%2Fobligation-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjordansexton%2Fobligation-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3e5bf800af75e7d9c175ecb1fcc8e4326163468b [INFO] checking jordansexton/obligation-test against try#45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 for pr-83744 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjordansexton%2Fobligation-test" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jordansexton/obligation-test on toolchain 45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jordansexton/obligation-test [INFO] finished tweaking git repo https://github.com/jordansexton/obligation-test [INFO] tweaked toml for git repo https://github.com/jordansexton/obligation-test written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/jordansexton/obligation-test already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5506e54481065ac668ae27d59367c2623d12e67a35b02ce32060861d42d5b5b0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5506e54481065ac668ae27d59367c2623d12e67a35b02ce32060861d42d5b5b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5506e54481065ac668ae27d59367c2623d12e67a35b02ce32060861d42d5b5b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5506e54481065ac668ae27d59367c2623d12e67a35b02ce32060861d42d5b5b0", kill_on_drop: false }` [INFO] [stdout] 5506e54481065ac668ae27d59367c2623d12e67a35b02ce32060861d42d5b5b0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4ab8b3bed18619f5ffa9caec5c15ed2989f3f316e8719c33f22928e728218571 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4ab8b3bed18619f5ffa9caec5c15ed2989f3f316e8719c33f22928e728218571", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking bs58 v0.3.1 [INFO] [stderr] Checking obligation-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `self.collateral` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/obligation.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 24 | &mut self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 27 | if let Some(collateral) = self._find_collateral_mut(deposit_reserve) { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] 28 | Ok(collateral) [INFO] [stdout] | -------------- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] 29 | } else if self.collateral.len() >= MAX_OBLIGATION_COLLATERAL { [INFO] [stdout] | ^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.collateral` as mutable more than once at a time [INFO] [stdout] --> src/obligation.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 24 | &mut self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 27 | if let Some(collateral) = self._find_collateral_mut(deposit_reserve) { [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 28 | Ok(collateral) [INFO] [stdout] | -------------- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 33 | self.collateral.push(collateral); [INFO] [stdout] | ^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.collateral` as mutable more than once at a time [INFO] [stdout] --> src/obligation.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 24 | &mut self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 27 | if let Some(collateral) = self._find_collateral_mut(deposit_reserve) { [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 28 | Ok(collateral) [INFO] [stdout] | -------------- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 34 | Ok(self.collateral.last_mut().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.collateral` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/obligation_with_lifetime.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 23 | &mut self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 26 | if let Some(collateral) = self._find_collateral_mut(deposit_reserve) { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] 27 | Ok(collateral) [INFO] [stdout] | -------------- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] 28 | } else if self.collateral.len() >= MAX_OBLIGATION_COLLATERAL { [INFO] [stdout] | ^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/obligation_with_lifetime.rs:31:35 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a> ObligationWithLifetime<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 31 | let collateral = &mut ObligationCollateralWithLifetime { deposit_reserve }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use [INFO] [stdout] 32 | self.collateral.push(collateral); [INFO] [stdout] | -------------------------------- argument requires that borrow lasts for `'a` [INFO] [stdout] ... [INFO] [stdout] 35 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.collateral` as mutable more than once at a time [INFO] [stdout] --> src/obligation_with_lifetime.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 23 | &mut self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 26 | if let Some(collateral) = self._find_collateral_mut(deposit_reserve) { [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 27 | Ok(collateral) [INFO] [stdout] | -------------- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 32 | self.collateral.push(collateral); [INFO] [stdout] | ^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*collateral` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/obligation_with_lifetime.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a> ObligationWithLifetime<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 32 | self.collateral.push(collateral); [INFO] [stdout] | -------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | argument requires that `*collateral` is borrowed for `'a` [INFO] [stdout] 33 | Ok(collateral) [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.collateral` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/obligation.rs:29:19 [INFO] [stdout] | [INFO] [stdout] 24 | &mut self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 27 | if let Some(collateral) = self._find_collateral_mut(deposit_reserve) { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] 28 | Ok(collateral) [INFO] [stdout] | -------------- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] 29 | } else if self.collateral.len() >= MAX_OBLIGATION_COLLATERAL { [INFO] [stdout] | ^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `**collateral` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/obligation_with_lifetime.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | return Some(collateral); [INFO] [stdout] | ^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.collateral` as mutable more than once at a time [INFO] [stdout] --> src/obligation.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 24 | &mut self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 27 | if let Some(collateral) = self._find_collateral_mut(deposit_reserve) { [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 28 | Ok(collateral) [INFO] [stdout] | -------------- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 33 | self.collateral.push(collateral); [INFO] [stdout] | ^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.collateral` as mutable more than once at a time [INFO] [stdout] --> src/obligation.rs:34:16 [INFO] [stdout] | [INFO] [stdout] 24 | &mut self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 27 | if let Some(collateral) = self._find_collateral_mut(deposit_reserve) { [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 28 | Ok(collateral) [INFO] [stdout] | -------------- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 34 | Ok(self.collateral.last_mut().unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.collateral` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/obligation_with_lifetime.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 23 | &mut self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 26 | if let Some(collateral) = self._find_collateral_mut(deposit_reserve) { [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] 27 | Ok(collateral) [INFO] [stdout] | -------------- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] 28 | } else if self.collateral.len() >= MAX_OBLIGATION_COLLATERAL { [INFO] [stdout] | ^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/obligation_with_lifetime.rs:31:35 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a> ObligationWithLifetime<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 31 | let collateral = &mut ObligationCollateralWithLifetime { deposit_reserve }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use [INFO] [stdout] 32 | self.collateral.push(collateral); [INFO] [stdout] | -------------------------------- argument requires that borrow lasts for `'a` [INFO] [stdout] ... [INFO] [stdout] 35 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `self.collateral` as mutable more than once at a time [INFO] [stdout] --> src/obligation_with_lifetime.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 23 | &mut self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 26 | if let Some(collateral) = self._find_collateral_mut(deposit_reserve) { [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 27 | Ok(collateral) [INFO] [stdout] | -------------- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] ... [INFO] [stdout] 32 | self.collateral.push(collateral); [INFO] [stdout] | ^^^^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*collateral` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/obligation_with_lifetime.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 20 | impl<'a> ObligationWithLifetime<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 32 | self.collateral.push(collateral); [INFO] [stdout] | -------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | argument requires that `*collateral` is borrowed for `'a` [INFO] [stdout] 33 | Ok(collateral) [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `**collateral` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/obligation_with_lifetime.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | return Some(collateral); [INFO] [stdout] | ^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0596, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0596, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `obligation-test` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "4ab8b3bed18619f5ffa9caec5c15ed2989f3f316e8719c33f22928e728218571", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ab8b3bed18619f5ffa9caec5c15ed2989f3f316e8719c33f22928e728218571", kill_on_drop: false }` [INFO] [stdout] 4ab8b3bed18619f5ffa9caec5c15ed2989f3f316e8719c33f22928e728218571