[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-62849/sources/master#435236b8877cdb98c82eaebfb7887782277265c5/gh/oliverlee/capgains"` [INFO] [stderr] Cloning into 'work/ex/pr-62849/sources/master#435236b8877cdb98c82eaebfb7887782277265c5/gh/oliverlee/capgains'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/oliverlee/capgains" "work/ex/pr-62849/sources/try#b5c7f157c20453dde8d47371abe73b32351b4e7f/gh/oliverlee/capgains"` [INFO] [stderr] Cloning into 'work/ex/pr-62849/sources/try#b5c7f157c20453dde8d47371abe73b32351b4e7f/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#435236b8877cdb98c82eaebfb7887782277265c5 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+435236b8877cdb98c82eaebfb7887782277265c5-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of oliverlee/capgains on toolchain try#b5c7f157c20453dde8d47371abe73b32351b4e7f [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+b5c7f157c20453dde8d47371abe73b32351b4e7f-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-62849/sources/master#435236b8877cdb98c82eaebfb7887782277265c5/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-62849/sources/try#b5c7f157c20453dde8d47371abe73b32351b4e7f/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" "+435236b8877cdb98c82eaebfb7887782277265c5-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+b5c7f157c20453dde8d47371abe73b32351b4e7f-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking oliverlee/capgains against try#b5c7f157c20453dde8d47371abe73b32351b4e7f for pr-62849 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-62849/worker-2/try#b5c7f157c20453dde8d47371abe73b32351b4e7f:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-62849/sources/try#b5c7f157c20453dde8d47371abe73b32351b4e7f/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" "+b5c7f157c20453dde8d47371abe73b32351b4e7f-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 99bf2fc4593328fecde8dbf07633bf0e8899366880940a5b0f9faff51ddd5c85 [INFO] running `"docker" "start" "-a" "99bf2fc4593328fecde8dbf07633bf0e8899366880940a5b0f9faff51ddd5c85"` [INFO] [stderr] Compiling num-traits v0.2.4 [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 num-integer v0.1.38 [INFO] [stderr] Checking chrono v0.4.2 [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" "99bf2fc4593328fecde8dbf07633bf0e8899366880940a5b0f9faff51ddd5c85"` [INFO] running `"docker" "rm" "-f" "99bf2fc4593328fecde8dbf07633bf0e8899366880940a5b0f9faff51ddd5c85"` [INFO] [stdout] 99bf2fc4593328fecde8dbf07633bf0e8899366880940a5b0f9faff51ddd5c85