[INFO] cloning repository https://github.com/jujuspence/Stark_Repair_Suit [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jujuspence/Stark_Repair_Suit" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjujuspence%2FStark_Repair_Suit", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjujuspence%2FStark_Repair_Suit'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c1d9fd3abf4a45f820d9a8daabb0260d70b95913 [INFO] checking jujuspence/Stark_Repair_Suit against try#8cf44c88fc5805dc578c5c987397615b47d2e2b2 for pr-136764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjujuspence%2FStark_Repair_Suit" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jujuspence/Stark_Repair_Suit on toolchain 8cf44c88fc5805dc578c5c987397615b47d2e2b2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jujuspence/Stark_Repair_Suit [INFO] finished tweaking git repo https://github.com/jujuspence/Stark_Repair_Suit [INFO] tweaked toml for git repo https://github.com/jujuspence/Stark_Repair_Suit written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/jujuspence/Stark_Repair_Suit 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" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3ad577bf031115f9b3a086c0f6b176a813840cded3759515e449ae18c7e9297f [INFO] running `Command { std: "docker" "start" "-a" "3ad577bf031115f9b3a086c0f6b176a813840cded3759515e449ae18c7e9297f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3ad577bf031115f9b3a086c0f6b176a813840cded3759515e449ae18c7e9297f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ad577bf031115f9b3a086c0f6b176a813840cded3759515e449ae18c7e9297f", kill_on_drop: false }` [INFO] [stdout] 3ad577bf031115f9b3a086c0f6b176a813840cded3759515e449ae18c7e9297f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+8cf44c88fc5805dc578c5c987397615b47d2e2b2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c51bafb1b69970d47030b18d29770ed14086e450ba54036cbe9775787ecd47ce [INFO] running `Command { std: "docker" "start" "-a" "c51bafb1b69970d47030b18d29770ed14086e450ba54036cbe9775787ecd47ce", kill_on_drop: false }` [INFO] [stderr] Checking stark_suit_repair v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DerefMut`, `Deref`, and `borrow::BorrowMut` [INFO] [stdout] --> src/linkedlist.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | borrow::BorrowMut, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | ops::{Deref, DerefMut}, [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DerefMut`, `Deref`, and `borrow::BorrowMut` [INFO] [stdout] --> src/linkedlist.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | borrow::BorrowMut, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 3 | ops::{Deref, DerefMut}, [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/linkedlist.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 110 | / loop{ [INFO] [stdout] 111 | | [INFO] [stdout] 112 | | if vers != lock.data.version{ [INFO] [stdout] 113 | | upgraded = false; [INFO] [stdout] ... | [INFO] [stdout] 119 | | clon = lock.rest.as_ref(); //.clone(); //.as_ref().unwrap().read().unwrap(); [INFO] [stdout] 120 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 121 | return upgraded; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `updated` is never read [INFO] [stdout] --> src/basics.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | let mut updated = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `idx` is never read [INFO] [stdout] --> src/basics.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | let mut idx = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/linkedlist.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 110 | / loop{ [INFO] [stdout] 111 | | [INFO] [stdout] 112 | | if vers != lock.data.version{ [INFO] [stdout] 113 | | upgraded = false; [INFO] [stdout] ... | [INFO] [stdout] 119 | | clon = lock.rest.as_ref(); //.clone(); //.as_ref().unwrap().read().unwrap(); [INFO] [stdout] 120 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 121 | return upgraded; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `updated` is never read [INFO] [stdout] --> src/basics.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | let mut updated = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `idx` is never read [INFO] [stdout] --> src/basics.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | let mut idx = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `clon` is never read [INFO] [stdout] --> src/linkedlist.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | clon = lock.rest.as_ref(); //.clone(); //.as_ref().unwrap().read().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `clon` is never read [INFO] [stdout] --> src/linkedlist.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | clon = lock.rest.as_ref(); //.clone(); //.as_ref().unwrap().read().unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/linkedlist.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | let lock = &clon.unwrap().read().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 122 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | temporary value is freed at the end of this statement [INFO] [stdout] | ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `RwLockReadGuard` [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 104 ~ let binding = clon.unwrap().read().unwrap(); [INFO] [stdout] 105 ~ let lock = &binding; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0384]: cannot assign twice to immutable variable `clon` [INFO] [stdout] --> src/linkedlist.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 103 | let clon = self.armor.head_link.as_ref().clone(); [INFO] [stdout] | ---- first assignment to `clon` [INFO] [stdout] ... [INFO] [stdout] 119 | clon = lock.rest.as_ref(); //.clone(); //.as_ref().unwrap().read().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign twice to immutable variable [INFO] [stdout] | [INFO] [stdout] help: consider making this binding mutable [INFO] [stdout] | [INFO] [stdout] 103 | let mut clon = self.armor.head_link.as_ref().clone(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comp` [INFO] [stdout] --> src/linkedlist.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | let mut comp = &lock.data.component; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_comp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/linkedlist.rs:135:32 [INFO] [stdout] | [INFO] [stdout] 135 | Component::LeftThrusters(b, n) => if b == true{ lock.data.component = Component::LeftThrusters(false, 100)}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/linkedlist.rs:136:33 [INFO] [stdout] | [INFO] [stdout] 136 | Component::RightThrusters(b, n) => if b == true{ lock.data.component = Component::RightThrusters(false,100)}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/linkedlist.rs:137:31 [INFO] [stdout] | [INFO] [stdout] 137 | Component::LeftRepulsor(b, n) => if b == true{ lock.data.component = Component::LeftRepulsor(false, 100)}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/linkedlist.rs:138:32 [INFO] [stdout] | [INFO] [stdout] 138 | Component::RightRepulsor(b, n) => if b == true{ lock.data.component = Component::RightRepulsor(false,100)}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/linkedlist.rs:139:32 [INFO] [stdout] | [INFO] [stdout] 139 | Component::ChestPiece(b, n) => if b == true{ lock.data.component = Component::ChestPiece(false, 100)}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/linkedlist.rs:140:27 [INFO] [stdout] | [INFO] [stdout] 140 | Component::Missiles(n) => if i ==0{ lock.data.component = Component::Missiles(10)}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/linkedlist.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let mut comp = &lock.data.component; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `lock` because it is borrowed [INFO] [stdout] --> src/linkedlist.rs:145:3 [INFO] [stdout] | [INFO] [stdout] 145 | lock = lock.rest.as_ref().unwrap().write().unwrap(); [INFO] [stdout] | ^^^^ ---- `lock` is borrowed here [INFO] [stdout] | | [INFO] [stdout] | `lock` is assigned to here but it was already borrowed [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: borrow occurs due to deref coercion to `Node` [INFO] [stdout] note: deref defined here [INFO] [stdout] --> /rustc/8cf44c88fc5805dc578c5c987397615b47d2e2b2/library/std/src/sync/poison/rwlock.rs:767:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `lock` does not live long enough [INFO] [stdout] --> src/linkedlist.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 129 | {let mut lock = self.armor.head_link.as_ref().unwrap().write().unwrap(); [INFO] [stdout] | -------- binding `lock` declared here [INFO] [stdout] ... [INFO] [stdout] 145 | lock = lock.rest.as_ref().unwrap().write().unwrap(); [INFO] [stdout] | ^^^^ borrowed value does not live long enough [INFO] [stdout] 146 | } [INFO] [stdout] 147 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `lock` dropped here while still borrowed [INFO] [stdout] | borrow might be used here, when `lock` is dropped and runs the `Drop` code for type `RwLockWriteGuard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/linkedlist.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | let lock = &clon.unwrap().read().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 122 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | temporary value is freed at the end of this statement [INFO] [stdout] | ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `RwLockReadGuard` [INFO] [stdout] | [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 104 ~ let binding = clon.unwrap().read().unwrap(); [INFO] [stdout] 105 ~ let lock = &binding; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0384]: cannot assign twice to immutable variable `clon` [INFO] [stdout] --> src/linkedlist.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 103 | let clon = self.armor.head_link.as_ref().clone(); [INFO] [stdout] | ---- first assignment to `clon` [INFO] [stdout] ... [INFO] [stdout] 119 | clon = lock.rest.as_ref(); //.clone(); //.as_ref().unwrap().read().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign twice to immutable variable [INFO] [stdout] | [INFO] [stdout] help: consider making this binding mutable [INFO] [stdout] | [INFO] [stdout] 103 | let mut clon = self.armor.head_link.as_ref().clone(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comp` [INFO] [stdout] --> src/linkedlist.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | let mut comp = &lock.data.component; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_comp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/linkedlist.rs:135:32 [INFO] [stdout] | [INFO] [stdout] 135 | Component::LeftThrusters(b, n) => if b == true{ lock.data.component = Component::LeftThrusters(false, 100)}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/linkedlist.rs:136:33 [INFO] [stdout] | [INFO] [stdout] 136 | Component::RightThrusters(b, n) => if b == true{ lock.data.component = Component::RightThrusters(false,100)}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/linkedlist.rs:137:31 [INFO] [stdout] | [INFO] [stdout] 137 | Component::LeftRepulsor(b, n) => if b == true{ lock.data.component = Component::LeftRepulsor(false, 100)}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/linkedlist.rs:138:32 [INFO] [stdout] | [INFO] [stdout] 138 | Component::RightRepulsor(b, n) => if b == true{ lock.data.component = Component::RightRepulsor(false,100)}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/linkedlist.rs:139:32 [INFO] [stdout] | [INFO] [stdout] 139 | Component::ChestPiece(b, n) => if b == true{ lock.data.component = Component::ChestPiece(false, 100)}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/linkedlist.rs:140:27 [INFO] [stdout] | [INFO] [stdout] 140 | Component::Missiles(n) => if i ==0{ lock.data.component = Component::Missiles(10)}, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/linkedlist.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | let mut comp = &lock.data.component; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0384, E0506, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0384`. [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `lock` because it is borrowed [INFO] [stdout] --> src/linkedlist.rs:145:3 [INFO] [stdout] | [INFO] [stdout] 145 | lock = lock.rest.as_ref().unwrap().write().unwrap(); [INFO] [stdout] | ^^^^ ---- `lock` is borrowed here [INFO] [stdout] | | [INFO] [stdout] | `lock` is assigned to here but it was already borrowed [INFO] [stdout] | borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: borrow occurs due to deref coercion to `Node` [INFO] [stdout] note: deref defined here [INFO] [stdout] --> /rustc/8cf44c88fc5805dc578c5c987397615b47d2e2b2/library/std/src/sync/poison/rwlock.rs:767:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `lock` does not live long enough [INFO] [stdout] --> src/linkedlist.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 129 | {let mut lock = self.armor.head_link.as_ref().unwrap().write().unwrap(); [INFO] [stdout] | -------- binding `lock` declared here [INFO] [stdout] ... [INFO] [stdout] 145 | lock = lock.rest.as_ref().unwrap().write().unwrap(); [INFO] [stdout] | ^^^^ borrowed value does not live long enough [INFO] [stdout] 146 | } [INFO] [stdout] 147 | } [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | `lock` dropped here while still borrowed [INFO] [stdout] | borrow might be used here, when `lock` is dropped and runs the `Drop` code for type `RwLockWriteGuard` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0384, E0506, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0384`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stark_suit_repair` (lib) due to 4 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `stark_suit_repair` (lib test) due to 4 previous errors; 13 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c51bafb1b69970d47030b18d29770ed14086e450ba54036cbe9775787ecd47ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c51bafb1b69970d47030b18d29770ed14086e450ba54036cbe9775787ecd47ce", kill_on_drop: false }` [INFO] [stdout] c51bafb1b69970d47030b18d29770ed14086e450ba54036cbe9775787ecd47ce