[INFO] cloning repository https://github.com/ana-rchy/headmates-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ana-rchy/headmates-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fana-rchy%2Fheadmates-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fana-rchy%2Fheadmates-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0d314b341dbed70694bfe56ecd283280afc38de4 [INFO] checking ana-rchy/headmates-cli against try#3c75d5844aa65b4aa19243ac44ceda49fe4e61ca for pr-143545 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fana-rchy%2Fheadmates-cli" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ana-rchy/headmates-cli [INFO] finished tweaking git repo https://github.com/ana-rchy/headmates-cli [INFO] tweaked toml for git repo https://github.com/ana-rchy/headmates-cli written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ana-rchy/headmates-cli on toolchain 3c75d5844aa65b4aa19243ac44ceda49fe4e61ca [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ana-rchy/headmates-cli 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" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rev_lines v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 97cdedbeae899f43db4be8a365dfd97ef5102a3740714c85cbafdaf077128bb1 [INFO] running `Command { std: "docker" "start" "-a" "97cdedbeae899f43db4be8a365dfd97ef5102a3740714c85cbafdaf077128bb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "97cdedbeae899f43db4be8a365dfd97ef5102a3740714c85cbafdaf077128bb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97cdedbeae899f43db4be8a365dfd97ef5102a3740714c85cbafdaf077128bb1", kill_on_drop: false }` [INFO] [stdout] 97cdedbeae899f43db4be8a365dfd97ef5102a3740714c85cbafdaf077128bb1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 127ad7347f2d6b9d0233b817579c3bdebebd8465107f40fd4cbdaa13d65323fe [INFO] running `Command { std: "docker" "start" "-a" "127ad7347f2d6b9d0233b817579c3bdebebd8465107f40fd4cbdaa13d65323fe", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking hashbrown v0.15.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking winnow v0.6.20 [INFO] [stderr] Checking anstream v0.6.17 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking indexmap v2.6.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking pathdiff v0.2.2 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking home v0.5.9 [INFO] [stderr] Checking clap_builder v4.5.20 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking rmp v0.8.14 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking ordered-multimap v0.6.0 [INFO] [stderr] Checking rust-ini v0.19.0 [INFO] [stderr] Checking clap v4.5.20 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Checking pest v2.7.14 [INFO] [stderr] Checking rev_lines v0.3.0 [INFO] [stderr] Compiling pest_meta v2.7.14 [INFO] [stderr] Compiling pest_generator v2.7.14 [INFO] [stderr] Compiling pest_derive v2.7.14 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking rmp-serde v1.3.0 [INFO] [stderr] Checking toml_edit v0.22.22 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking config v0.14.0 [INFO] [stderr] Checking headmates-cli v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Config`, `FrontTimeSort`, `member::Member`, and `system::System` [INFO] [stdout] --> src/front_log.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | config::{Config, FrontTimeSort}, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 3 | member::Member, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 4 | system::System, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Local` [INFO] [stdout] --> src/front_log.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::{DateTime, Local, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf`, `Path`, `fs`, and `time::Duration` [INFO] [stdout] --> src/front_log.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | fs, [INFO] [stdout] | ^^ [INFO] [stdout] 10 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 11 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter::Filter` [INFO] [stdout] --> src/system.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{fs, iter::Filter, path::PathBuf, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Config`, `FrontTimeSort`, `member::Member`, and `system::System` [INFO] [stdout] --> src/front_log.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | config::{Config, FrontTimeSort}, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 3 | member::Member, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 4 | system::System, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Local` [INFO] [stdout] --> src/front_log.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::{DateTime, Local, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf`, `Path`, `fs`, and `time::Duration` [INFO] [stdout] --> src/front_log.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | fs, [INFO] [stdout] | ^^ [INFO] [stdout] 10 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 11 | time::Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter::Filter` [INFO] [stdout] --> src/system.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{fs, iter::Filter, path::PathBuf, time::Duration}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `**member` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/system.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 191 | for member in non_fronters { [INFO] [stdout] | ------------ this iterator yields `&` references [INFO] [stdout] 192 | member.switch_in(custom_time, comment.clone()); [INFO] [stdout] | ^^^^^^ `member` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.members` which is behind a mutable reference [INFO] [stdout] --> src/system.rs:273:23 [INFO] [stdout] | [INFO] [stdout] 273 | for member in self.members { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `self.members` moved due to this implicit call to `.into_iter()` [INFO] [stdout] | move occurs because `self.members` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `self.members` [INFO] [stdout] --> /rustc/3c75d5844aa65b4aa19243ac44ceda49fe4e61ca/library/core/src/iter/traits/collect.rs:310:18 [INFO] [stdout] help: consider iterating over a slice of the `Vec`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 273 | for member in &self.members { [INFO] [stdout] | + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 273 | for member in self.members.clone() { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/system.rs:275:29 [INFO] [stdout] | [INFO] [stdout] 275 | let entry = member.fronting_log.entries[i]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because value has type `FrontingLogEntry`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 275 | let entry = &member.fronting_log.entries[i]; [INFO] [stdout] | + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 275 | let entry = member.fronting_log.entries[i].clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `member` does not live long enough [INFO] [stdout] --> src/system.rs:276:44 [INFO] [stdout] | [INFO] [stdout] 273 | for member in self.members { [INFO] [stdout] | ------ binding `member` declared here [INFO] [stdout] ... [INFO] [stdout] 276 | all_fronting_entries.push((&member, i, &entry)); [INFO] [stdout] | ^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 277 | } [INFO] [stdout] 278 | } [INFO] [stdout] | - `member` dropped here while still borrowed [INFO] [stdout] 279 | [INFO] [stdout] 280 | all_fronting_entries.sort_by(|a, b| { [INFO] [stdout] | -------------------- borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `entry` does not live long enough [INFO] [stdout] --> src/system.rs:276:56 [INFO] [stdout] | [INFO] [stdout] 275 | let entry = member.fronting_log.entries[i]; [INFO] [stdout] | ----- binding `entry` declared here [INFO] [stdout] 276 | all_fronting_entries.push((&member, i, &entry)); [INFO] [stdout] | -------------------- ^^^^^^ borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] | borrow later used here [INFO] [stdout] 277 | } [INFO] [stdout] | - `entry` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `switch_out_time_formatted` [INFO] [stdout] --> src/system.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 330 | let switch_out_time_formatted = if let Some(switch_out_time) = entry.switch_out_time { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_switch_out_time_formatted` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `entry.comment` as enum variant `Some` which is behind a shared reference [INFO] [stdout] --> src/system.rs:347:25 [INFO] [stdout] | [INFO] [stdout] 347 | let comment = match entry.comment { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 348 | Some(c) => c, [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | data moved here [INFO] [stdout] | move occurs because `c` has type `std::string::String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 347 | let comment = match &entry.comment { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0507, E0596, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `headmates-cli` (lib) due to 6 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0596]: cannot borrow `**member` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/system.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 191 | for member in non_fronters { [INFO] [stdout] | ------------ this iterator yields `&` references [INFO] [stdout] 192 | member.switch_in(custom_time, comment.clone()); [INFO] [stdout] | ^^^^^^ `member` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.members` which is behind a mutable reference [INFO] [stdout] --> src/system.rs:273:23 [INFO] [stdout] | [INFO] [stdout] 273 | for member in self.members { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `self.members` moved due to this implicit call to `.into_iter()` [INFO] [stdout] | move occurs because `self.members` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `self.members` [INFO] [stdout] --> /rustc/3c75d5844aa65b4aa19243ac44ceda49fe4e61ca/library/core/src/iter/traits/collect.rs:310:18 [INFO] [stdout] help: consider iterating over a slice of the `Vec`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 273 | for member in &self.members { [INFO] [stdout] | + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 273 | for member in self.members.clone() { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/system.rs:275:29 [INFO] [stdout] | [INFO] [stdout] 275 | let entry = member.fronting_log.entries[i]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because value has type `FrontingLogEntry`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 275 | let entry = &member.fronting_log.entries[i]; [INFO] [stdout] | + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 275 | let entry = member.fronting_log.entries[i].clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `member` does not live long enough [INFO] [stdout] --> src/system.rs:276:44 [INFO] [stdout] | [INFO] [stdout] 273 | for member in self.members { [INFO] [stdout] | ------ binding `member` declared here [INFO] [stdout] ... [INFO] [stdout] 276 | all_fronting_entries.push((&member, i, &entry)); [INFO] [stdout] | ^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 277 | } [INFO] [stdout] 278 | } [INFO] [stdout] | - `member` dropped here while still borrowed [INFO] [stdout] 279 | [INFO] [stdout] 280 | all_fronting_entries.sort_by(|a, b| { [INFO] [stdout] | -------------------- borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `entry` does not live long enough [INFO] [stdout] --> src/system.rs:276:56 [INFO] [stdout] | [INFO] [stdout] 275 | let entry = member.fronting_log.entries[i]; [INFO] [stdout] | ----- binding `entry` declared here [INFO] [stdout] 276 | all_fronting_entries.push((&member, i, &entry)); [INFO] [stdout] | -------------------- ^^^^^^ borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] | borrow later used here [INFO] [stdout] 277 | } [INFO] [stdout] | - `entry` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `switch_out_time_formatted` [INFO] [stdout] --> src/system.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 330 | let switch_out_time_formatted = if let Some(switch_out_time) = entry.switch_out_time { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_switch_out_time_formatted` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `entry.comment` as enum variant `Some` which is behind a shared reference [INFO] [stdout] --> src/system.rs:347:25 [INFO] [stdout] | [INFO] [stdout] 347 | let comment = match entry.comment { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 348 | Some(c) => c, [INFO] [stdout] | - [INFO] [stdout] | | [INFO] [stdout] | data moved here [INFO] [stdout] | move occurs because `c` has type `std::string::String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 347 | let comment = match &entry.comment { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0507, E0596, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `headmates-cli` (lib test) due to 6 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "127ad7347f2d6b9d0233b817579c3bdebebd8465107f40fd4cbdaa13d65323fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "127ad7347f2d6b9d0233b817579c3bdebebd8465107f40fd4cbdaa13d65323fe", kill_on_drop: false }` [INFO] [stdout] 127ad7347f2d6b9d0233b817579c3bdebebd8465107f40fd4cbdaa13d65323fe