[INFO] cloning repository https://github.com/christopherdumas/microeconomics [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/christopherdumas/microeconomics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchristopherdumas%2Fmicroeconomics", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchristopherdumas%2Fmicroeconomics'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 66660ae85a1e928e4a543ee7e390d98381093eda [INFO] checking christopherdumas/microeconomics against try#f6e2f78768c57172b99c3e85892f867894dc7e30 for pr-75502 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchristopherdumas%2Fmicroeconomics" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/christopherdumas/microeconomics on toolchain f6e2f78768c57172b99c3e85892f867894dc7e30 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f6e2f78768c57172b99c3e85892f867894dc7e30" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/christopherdumas/microeconomics [INFO] finished tweaking git repo https://github.com/christopherdumas/microeconomics [INFO] tweaked toml for git repo https://github.com/christopherdumas/microeconomics written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/christopherdumas/microeconomics already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f6e2f78768c57172b99c3e85892f867894dc7e30" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded terminfo v0.7.3 [INFO] [stderr] Downloaded smallstr v0.2.0 [INFO] [stderr] Downloaded mortal v0.2.2 [INFO] [stderr] Downloaded proc-macro2 v1.0.14 [INFO] [stderr] Downloaded linefeed v0.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+f6e2f78768c57172b99c3e85892f867894dc7e30" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3447df436e89ff1893e95c25203f36ddd9dbb0095840ba9ebf01ffea0b4cca96 [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" "3447df436e89ff1893e95c25203f36ddd9dbb0095840ba9ebf01ffea0b4cca96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3447df436e89ff1893e95c25203f36ddd9dbb0095840ba9ebf01ffea0b4cca96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3447df436e89ff1893e95c25203f36ddd9dbb0095840ba9ebf01ffea0b4cca96", kill_on_drop: false }` [INFO] [stdout] 3447df436e89ff1893e95c25203f36ddd9dbb0095840ba9ebf01ffea0b4cca96 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+f6e2f78768c57172b99c3e85892f867894dc7e30" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 831cc6b60f9bb57ef9a5697af912e3de98a190463c6b4999a657c06e030e80af [INFO] running `Command { std: "docker" "start" "-a" "831cc6b60f9bb57ef9a5697af912e3de98a190463c6b4999a657c06e030e80af", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.8 [INFO] [stderr] Compiling proc-macro2 v1.0.14 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling siphasher v0.3.3 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking smallvec v1.4.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Compiling nom v5.1.1 [INFO] [stderr] Checking phf_shared v0.8.0 [INFO] [stderr] Checking phf v0.8.0 [INFO] [stderr] Checking unicode-normalization v0.1.12 [INFO] [stderr] Checking smallstr v0.2.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling quote v1.0.6 [INFO] [stderr] Compiling syn v1.0.23 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking nix v0.17.0 [INFO] [stderr] Checking dirs v1.0.5 [INFO] [stderr] Checking clap v2.33.1 [INFO] [stderr] Checking colored v1.9.3 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand_pcg v0.2.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling terminfo v0.7.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.2 [INFO] [stderr] Compiling proc-macro-error v1.0.2 [INFO] [stderr] Compiling structopt-derive v0.4.7 [INFO] [stderr] Checking structopt v0.3.14 [INFO] [stderr] Checking mortal v0.2.2 [INFO] [stderr] Checking linefeed v0.6.0 [INFO] [stderr] Checking microeconomics v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/preference_list.rs:313:37 [INFO] [stdout] | [INFO] [stdout] 271 | ... let my_item = self [INFO] [stdout] | _____________________________________- [INFO] [stdout] 272 | | ... .inventory [INFO] [stdout] | |____________________________________- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 313 | ... self.add_item(goal_item.1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 314 | ... self.inventory.remove(possible_item.0); [INFO] [stdout] | --------------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.inventory` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/preference_list.rs:314:37 [INFO] [stdout] | [INFO] [stdout] 271 | ... let my_item = self [INFO] [stdout] | _____________________________________- [INFO] [stdout] 272 | | ... .inventory [INFO] [stdout] | |____________________________________- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 314 | ... self.inventory.remove(possible_item.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 315 | ... // remove my item from my inventory, add it to theirs [INFO] [stdout] 316 | ... other_actor.add_item(*possible_item.1); [INFO] [stdout] | ---------------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/preference_list.rs:313:37 [INFO] [stdout] | [INFO] [stdout] 271 | ... let my_item = self [INFO] [stdout] | _____________________________________- [INFO] [stdout] 272 | | ... .inventory [INFO] [stdout] | |____________________________________- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 313 | ... self.add_item(goal_item.1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 314 | ... self.inventory.remove(possible_item.0); [INFO] [stdout] | --------------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.inventory` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/preference_list.rs:314:37 [INFO] [stdout] | [INFO] [stdout] 271 | ... let my_item = self [INFO] [stdout] | _____________________________________- [INFO] [stdout] 272 | | ... .inventory [INFO] [stdout] | |____________________________________- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 314 | ... self.inventory.remove(possible_item.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 315 | ... // remove my item from my inventory, add it to theirs [INFO] [stdout] 316 | ... other_actor.add_item(*possible_item.1); [INFO] [stdout] | ---------------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `microeconomics`. [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] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "831cc6b60f9bb57ef9a5697af912e3de98a190463c6b4999a657c06e030e80af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "831cc6b60f9bb57ef9a5697af912e3de98a190463c6b4999a657c06e030e80af", kill_on_drop: false }` [INFO] [stdout] 831cc6b60f9bb57ef9a5697af912e3de98a190463c6b4999a657c06e030e80af