[INFO] updating cached repository oliverlee/capgains [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/oliverlee/capgains [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/oliverlee/capgains" "work/ex/pr-63565/sources/master#c43d03a19f326f4a323569328cc501e86eb6d22e/gh/oliverlee/capgains"` [INFO] [stderr] Cloning into 'work/ex/pr-63565/sources/master#c43d03a19f326f4a323569328cc501e86eb6d22e/gh/oliverlee/capgains'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/oliverlee/capgains" "work/ex/pr-63565/sources/try#75eff020d0923c035c2fe220db4a0465cd847048/gh/oliverlee/capgains"` [INFO] [stderr] Cloning into 'work/ex/pr-63565/sources/try#75eff020d0923c035c2fe220db4a0465cd847048/gh/oliverlee/capgains'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] e00f1cb6924ff79adac8231a4b2c6ce3985b4c8e [INFO] sha for GitHub repo oliverlee/capgains: e00f1cb6924ff79adac8231a4b2c6ce3985b4c8e [INFO] validating manifest of oliverlee/capgains on toolchain master#c43d03a19f326f4a323569328cc501e86eb6d22e [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c43d03a19f326f4a323569328cc501e86eb6d22e-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of oliverlee/capgains on toolchain try#75eff020d0923c035c2fe220db4a0465cd847048 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+75eff020d0923c035c2fe220db4a0465cd847048-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing oliverlee/capgains [INFO] finished frobbing oliverlee/capgains [INFO] frobbed toml for oliverlee/capgains written to work/ex/pr-63565/sources/master#c43d03a19f326f4a323569328cc501e86eb6d22e/gh/oliverlee/capgains/Cargo.toml [INFO] started frobbing oliverlee/capgains [INFO] finished frobbing oliverlee/capgains [INFO] frobbed toml for oliverlee/capgains written to work/ex/pr-63565/sources/try#75eff020d0923c035c2fe220db4a0465cd847048/gh/oliverlee/capgains/Cargo.toml [INFO] crate oliverlee/capgains already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c43d03a19f326f4a323569328cc501e86eb6d22e-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+75eff020d0923c035c2fe220db4a0465cd847048-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking oliverlee/capgains against master#c43d03a19f326f4a323569328cc501e86eb6d22e for pr-63565 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-63565/worker-2/master#c43d03a19f326f4a323569328cc501e86eb6d22e:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-63565/sources/master#c43d03a19f326f4a323569328cc501e86eb6d22e/gh/oliverlee/capgains:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+c43d03a19f326f4a323569328cc501e86eb6d22e-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 702405931cc0ef13007410b8c3a9d023562a9fc2830f95f1beacd7a3c7ae11ae [INFO] running `"docker" "start" "-a" "702405931cc0ef13007410b8c3a9d023562a9fc2830f95f1beacd7a3c7ae11ae"` [INFO] [stderr] Compiling serde v1.0.60 [INFO] [stderr] Checking memchr v2.0.1 [INFO] [stderr] Compiling serde_derive v1.0.60 [INFO] [stderr] Checking csv-core v0.1.4 [INFO] [stderr] Checking csv v1.0.0 [INFO] [stderr] Checking capgains v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error[E0502]: cannot borrow `account.funds` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/main.rs:229:29 [INFO] [stderr] | [INFO] [stderr] 206 | fn load_account(filename: &str) -> Result { [INFO] [stderr] | - let's call the lifetime of this reference `'1` [INFO] [stderr] ... [INFO] [stderr] 229 | account.funds.insert(record.fund.to_string()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 238 | fund: account.funds.get(record.fund).unwrap(), [INFO] [stderr] | ------------- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 254 | Ok(account) [INFO] [stderr] | ----------- returning this value requires that `account.funds` is borrowed for `'1` [INFO] [stderr] [INFO] [stderr] error[E0502]: cannot borrow `account.transaction_types` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/main.rs:232:29 [INFO] [stderr] | [INFO] [stderr] 206 | fn load_account(filename: &str) -> Result { [INFO] [stderr] | - let's call the lifetime of this reference `'1` [INFO] [stderr] ... [INFO] [stderr] 232 | / account [INFO] [stderr] 233 | | .transaction_types [INFO] [stderr] 234 | | .insert(record.transaction_type.to_string()); [INFO] [stderr] | |____________________________________________________________________________^ mutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 239 | transaction_type: account [INFO] [stderr] | _______________________________________________- [INFO] [stderr] 240 | | .transaction_types [INFO] [stderr] | |__________________________________________________- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 254 | Ok(account) [INFO] [stderr] | ----------- returning this value requires that `account.transaction_types` is borrowed for `'1` [INFO] [stderr] [INFO] [stderr] error[E0515]: cannot return value referencing local data `account.funds` [INFO] [stderr] --> src/main.rs:254:5 [INFO] [stderr] | [INFO] [stderr] 238 | fund: account.funds.get(record.fund).unwrap(), [INFO] [stderr] | ------------- `account.funds` is borrowed here [INFO] [stderr] ... [INFO] [stderr] 254 | Ok(account) [INFO] [stderr] | ^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stderr] [INFO] [stderr] error[E0515]: cannot return value referencing local data `account.transaction_types` [INFO] [stderr] --> src/main.rs:254:5 [INFO] [stderr] | [INFO] [stderr] 239 | transaction_type: account [INFO] [stderr] | _______________________________________________- [INFO] [stderr] 240 | | .transaction_types [INFO] [stderr] | |__________________________________________________- `account.transaction_types` is borrowed here [INFO] [stderr] ... [INFO] [stderr] 254 | Ok(account) [INFO] [stderr] | ^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stderr] [INFO] [stderr] error[E0505]: cannot move out of `account` because it is borrowed [INFO] [stderr] --> src/main.rs:254:8 [INFO] [stderr] | [INFO] [stderr] 206 | fn load_account(filename: &str) -> Result { [INFO] [stderr] | - let's call the lifetime of this reference `'1` [INFO] [stderr] ... [INFO] [stderr] 238 | fund: account.funds.get(record.fund).unwrap(), [INFO] [stderr] | ------------- borrow of `account.funds` occurs here [INFO] [stderr] ... [INFO] [stderr] 254 | Ok(account) [INFO] [stderr] | ---^^^^^^^- [INFO] [stderr] | | | [INFO] [stderr] | | move out of `account` occurs here [INFO] [stderr] | returning this value requires that `account.funds` is borrowed for `'1` [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0502, E0505, E0515. [INFO] [stderr] For more information about an error, try `rustc --explain E0502`. [INFO] [stderr] error: Could not compile `capgains`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0502]: cannot borrow `account.funds` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/main.rs:229:29 [INFO] [stderr] | [INFO] [stderr] 206 | fn load_account(filename: &str) -> Result { [INFO] [stderr] | - let's call the lifetime of this reference `'1` [INFO] [stderr] ... [INFO] [stderr] 229 | account.funds.insert(record.fund.to_string()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 238 | fund: account.funds.get(record.fund).unwrap(), [INFO] [stderr] | ------------- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 254 | Ok(account) [INFO] [stderr] | ----------- returning this value requires that `account.funds` is borrowed for `'1` [INFO] [stderr] [INFO] [stderr] error[E0502]: cannot borrow `account.transaction_types` as mutable because it is also borrowed as immutable [INFO] [stderr] --> src/main.rs:232:29 [INFO] [stderr] | [INFO] [stderr] 206 | fn load_account(filename: &str) -> Result { [INFO] [stderr] | - let's call the lifetime of this reference `'1` [INFO] [stderr] ... [INFO] [stderr] 232 | / account [INFO] [stderr] 233 | | .transaction_types [INFO] [stderr] 234 | | .insert(record.transaction_type.to_string()); [INFO] [stderr] | |____________________________________________________________________________^ mutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 239 | transaction_type: account [INFO] [stderr] | _______________________________________________- [INFO] [stderr] 240 | | .transaction_types [INFO] [stderr] | |__________________________________________________- immutable borrow occurs here [INFO] [stderr] ... [INFO] [stderr] 254 | Ok(account) [INFO] [stderr] | ----------- returning this value requires that `account.transaction_types` is borrowed for `'1` [INFO] [stderr] [INFO] [stderr] error[E0515]: cannot return value referencing local data `account.funds` [INFO] [stderr] --> src/main.rs:254:5 [INFO] [stderr] | [INFO] [stderr] 238 | fund: account.funds.get(record.fund).unwrap(), [INFO] [stderr] | ------------- `account.funds` is borrowed here [INFO] [stderr] ... [INFO] [stderr] 254 | Ok(account) [INFO] [stderr] | ^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stderr] [INFO] [stderr] error[E0515]: cannot return value referencing local data `account.transaction_types` [INFO] [stderr] --> src/main.rs:254:5 [INFO] [stderr] | [INFO] [stderr] 239 | transaction_type: account [INFO] [stderr] | _______________________________________________- [INFO] [stderr] 240 | | .transaction_types [INFO] [stderr] | |__________________________________________________- `account.transaction_types` is borrowed here [INFO] [stderr] ... [INFO] [stderr] 254 | Ok(account) [INFO] [stderr] | ^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stderr] [INFO] [stderr] error[E0505]: cannot move out of `account` because it is borrowed [INFO] [stderr] --> src/main.rs:254:8 [INFO] [stderr] | [INFO] [stderr] 206 | fn load_account(filename: &str) -> Result { [INFO] [stderr] | - let's call the lifetime of this reference `'1` [INFO] [stderr] ... [INFO] [stderr] 238 | fund: account.funds.get(record.fund).unwrap(), [INFO] [stderr] | ------------- borrow of `account.funds` occurs here [INFO] [stderr] ... [INFO] [stderr] 254 | Ok(account) [INFO] [stderr] | ---^^^^^^^- [INFO] [stderr] | | | [INFO] [stderr] | | move out of `account` occurs here [INFO] [stderr] | returning this value requires that `account.funds` is borrowed for `'1` [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0502, E0505, E0515. [INFO] [stderr] For more information about an error, try `rustc --explain E0502`. [INFO] [stderr] error: Could not compile `capgains`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "702405931cc0ef13007410b8c3a9d023562a9fc2830f95f1beacd7a3c7ae11ae"` [INFO] running `"docker" "rm" "-f" "702405931cc0ef13007410b8c3a9d023562a9fc2830f95f1beacd7a3c7ae11ae"` [INFO] [stdout] 702405931cc0ef13007410b8c3a9d023562a9fc2830f95f1beacd7a3c7ae11ae