[INFO] fetching crate kanata-keyberon 0.150.3... [INFO] checking kanata-keyberon-0.150.3 against master#94b72d6bebbddb5d17860914c4544f37365e988c for pr-122789 [INFO] extracting crate kanata-keyberon 0.150.3 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate kanata-keyberon 0.150.3 on toolchain 94b72d6bebbddb5d17860914c4544f37365e988c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate kanata-keyberon 0.150.3 [INFO] finished tweaking crates.io crate kanata-keyberon 0.150.3 [INFO] tweaked toml for crates.io crate kanata-keyberon 0.150.3 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded arraydeque v0.4.5 [INFO] [stderr] Downloaded kanata-keyberon-macros v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f69952b9d3fa29d97c4bf3c8aa2791ac94c60b23c71b909f28f949a249c1757 [INFO] running `Command { std: "docker" "start" "-a" "3f69952b9d3fa29d97c4bf3c8aa2791ac94c60b23c71b909f28f949a249c1757", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f69952b9d3fa29d97c4bf3c8aa2791ac94c60b23c71b909f28f949a249c1757", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f69952b9d3fa29d97c4bf3c8aa2791ac94c60b23c71b909f28f949a249c1757", kill_on_drop: false }` [INFO] [stdout] 3f69952b9d3fa29d97c4bf3c8aa2791ac94c60b23c71b909f28f949a249c1757 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+94b72d6bebbddb5d17860914c4544f37365e988c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3fbb593e81e01b0b4e078e0e75a1974a3df8ba0cef58694a4bbea0ff0785bb0f [INFO] running `Command { std: "docker" "start" "-a" "3fbb593e81e01b0b4e078e0e75a1974a3df8ba0cef58694a4bbea0ff0785bb0f", kill_on_drop: false }` [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling arraydeque v0.4.5 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling kanata-keyberon-macros v0.2.0 [INFO] [stderr] Checking hash32 v0.2.1 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling heapless v0.7.17 [INFO] [stderr] Checking kanata-keyberon v0.150.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Layout` is imported redundantly [INFO] [stdout] --> src/layout.rs:1606:27 [INFO] [stdout] | [INFO] [stdout] 1606 | use super::{Event::*, Layout, *}; [INFO] [stdout] | ^^^^^^ - the item `Layout` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HoldTapConfig` is imported redundantly [INFO] [stdout] --> src/layout.rs:1608:9 [INFO] [stdout] | [INFO] [stdout] 1606 | use super::{Event::*, Layout, *}; [INFO] [stdout] | - the item `HoldTapConfig` is already imported here [INFO] [stdout] 1607 | use crate::action::Action::*; [INFO] [stdout] 1608 | use crate::action::HoldTapConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `k` is imported redundantly [INFO] [stdout] --> src/layout.rs:1609:25 [INFO] [stdout] | [INFO] [stdout] 1606 | use super::{Event::*, Layout, *}; [INFO] [stdout] | - the item `k` is already imported here [INFO] [stdout] ... [INFO] [stdout] 1609 | use crate::action::{k, l}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `l` is imported redundantly [INFO] [stdout] --> src/layout.rs:1609:28 [INFO] [stdout] | [INFO] [stdout] 1606 | use super::{Event::*, Layout, *}; [INFO] [stdout] | - the item `l` is already imported here [INFO] [stdout] ... [INFO] [stdout] 1609 | use crate::action::{k, l}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.94s [INFO] running `Command { std: "docker" "inspect" "3fbb593e81e01b0b4e078e0e75a1974a3df8ba0cef58694a4bbea0ff0785bb0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fbb593e81e01b0b4e078e0e75a1974a3df8ba0cef58694a4bbea0ff0785bb0f", kill_on_drop: false }` [INFO] [stdout] 3fbb593e81e01b0b4e078e0e75a1974a3df8ba0cef58694a4bbea0ff0785bb0f [INFO] checking kanata-keyberon-0.150.3 against try#cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc for pr-122789 [INFO] extracting crate kanata-keyberon 0.150.3 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate kanata-keyberon 0.150.3 on toolchain cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate kanata-keyberon 0.150.3 [INFO] finished tweaking crates.io crate kanata-keyberon 0.150.3 [INFO] tweaked toml for crates.io crate kanata-keyberon 0.150.3 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 07e00fdd126421fe274da906cd4f0f1694fd3f89bee22286f93c57114b9ece05 [INFO] running `Command { std: "docker" "start" "-a" "07e00fdd126421fe274da906cd4f0f1694fd3f89bee22286f93c57114b9ece05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "07e00fdd126421fe274da906cd4f0f1694fd3f89bee22286f93c57114b9ece05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07e00fdd126421fe274da906cd4f0f1694fd3f89bee22286f93c57114b9ece05", kill_on_drop: false }` [INFO] [stdout] 07e00fdd126421fe274da906cd4f0f1694fd3f89bee22286f93c57114b9ece05 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+cb4bf0ee9ea9dac86332c9e48c07269c7edc21dc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c200cb36a29194b9490fd171c58a65c3a6ef9874d3bde535913a5260dfb2398a [INFO] running `Command { std: "docker" "start" "-a" "c200cb36a29194b9490fd171c58a65c3a6ef9874d3bde535913a5260dfb2398a", kill_on_drop: false }` [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling arraydeque v0.4.5 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling kanata-keyberon-macros v0.2.0 [INFO] [stderr] Checking hash32 v0.2.1 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling heapless v0.7.17 [INFO] [stderr] Checking kanata-keyberon v0.150.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Layout` is imported redundantly [INFO] [stdout] --> src/layout.rs:1606:27 [INFO] [stdout] | [INFO] [stdout] 1606 | use super::{Event::*, Layout, *}; [INFO] [stdout] | ^^^^^^ - the item `Layout` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HoldTapConfig` is imported redundantly [INFO] [stdout] --> src/layout.rs:1608:9 [INFO] [stdout] | [INFO] [stdout] 1606 | use super::{Event::*, Layout, *}; [INFO] [stdout] | - the item `HoldTapConfig` is already imported here [INFO] [stdout] 1607 | use crate::action::Action::*; [INFO] [stdout] 1608 | use crate::action::HoldTapConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `k` is imported redundantly [INFO] [stdout] --> src/layout.rs:1609:25 [INFO] [stdout] | [INFO] [stdout] 1606 | use super::{Event::*, Layout, *}; [INFO] [stdout] | - the item `k` is already imported here [INFO] [stdout] ... [INFO] [stdout] 1609 | use crate::action::{k, l}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `l` is imported redundantly [INFO] [stdout] --> src/layout.rs:1609:28 [INFO] [stdout] | [INFO] [stdout] 1606 | use super::{Event::*, Layout, *}; [INFO] [stdout] | - the item `l` is already imported here [INFO] [stdout] ... [INFO] [stdout] 1609 | use crate::action::{k, l}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/layout.rs:580:9 [INFO] [stdout] | [INFO] [stdout] 558 | (WaitingAction::NoOp, &Action::NoOp) [INFO] [stdout] | ------------ temporary value created here [INFO] [stdout] ... [INFO] [stdout] 580 | Some((res.0, res.1, pq)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/layout.rs:1183:9 [INFO] [stdout] | [INFO] [stdout] 1183 | / match action { [INFO] [stdout] 1184 | | None => &NoOp, [INFO] [stdout] | | ---- temporary value created here [INFO] [stdout] 1185 | | Some(Trans) => { [INFO] [stdout] 1186 | | if layer != self.default_layer { [INFO] [stdout] ... | [INFO] [stdout] 1192 | | Some(action) => action, [INFO] [stdout] 1193 | | } [INFO] [stdout] | |_________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/layout.rs:1183:9 [INFO] [stdout] | [INFO] [stdout] 1183 | / match action { [INFO] [stdout] 1184 | | None => &NoOp, [INFO] [stdout] 1185 | | Some(Trans) => { [INFO] [stdout] 1186 | | if layer != self.default_layer { [INFO] [stdout] ... | [INFO] [stdout] 1189 | | &NoOp [INFO] [stdout] | | ---- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1192 | | Some(action) => action, [INFO] [stdout] 1193 | | } [INFO] [stdout] | |_________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/layout.rs:1295:36 [INFO] [stdout] | [INFO] [stdout] 854 | impl<'a, const C: usize, const R: usize, const L: usize, T: 'a + Copy + std::fmt::Debug> [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 1295 | hold: &Action::NoOp, [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | this usage requires that borrow lasts for `'a` [INFO] [stdout] ... [INFO] [stdout] 1303 | }); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/layout.rs:1296:35 [INFO] [stdout] | [INFO] [stdout] 854 | impl<'a, const C: usize, const R: usize, const L: usize, T: 'a + Copy + std::fmt::Debug> [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 1296 | tap: &Action::NoOp, [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | this usage requires that borrow lasts for `'a` [INFO] [stdout] ... [INFO] [stdout] 1303 | }); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/layout.rs:1297:46 [INFO] [stdout] | [INFO] [stdout] 854 | impl<'a, const C: usize, const R: usize, const L: usize, T: 'a + Copy + std::fmt::Debug> [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 1297 | timeout_action: &Action::NoOp, [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | this usage requires that borrow lasts for `'a` [INFO] [stdout] ... [INFO] [stdout] 1303 | }); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/layout.rs:1339:28 [INFO] [stdout] | [INFO] [stdout] 854 | impl<'a, const C: usize, const R: usize, const L: usize, T: 'a + Copy + std::fmt::Debug> [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 1339 | hold: &Action::NoOp, [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | this usage requires that borrow lasts for `'a` [INFO] [stdout] ... [INFO] [stdout] 1343 | }); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/layout.rs:1340:27 [INFO] [stdout] | [INFO] [stdout] 854 | impl<'a, const C: usize, const R: usize, const L: usize, T: 'a + Copy + std::fmt::Debug> [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 1340 | tap: &Action::NoOp, [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | this usage requires that borrow lasts for `'a` [INFO] [stdout] ... [INFO] [stdout] 1343 | }); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/layout.rs:1341:38 [INFO] [stdout] | [INFO] [stdout] 854 | impl<'a, const C: usize, const R: usize, const L: usize, T: 'a + Copy + std::fmt::Debug> [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 1341 | timeout_action: &Action::NoOp, [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | this usage requires that borrow lasts for `'a` [INFO] [stdout] 1342 | config: WaitingConfig::Chord(chords), [INFO] [stdout] 1343 | }); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0515, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kanata-keyberon` (lib) due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/layout.rs:580:9 [INFO] [stdout] | [INFO] [stdout] 558 | (WaitingAction::NoOp, &Action::NoOp) [INFO] [stdout] | ------------ temporary value created here [INFO] [stdout] ... [INFO] [stdout] 580 | Some((res.0, res.1, pq)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/layout.rs:1183:9 [INFO] [stdout] | [INFO] [stdout] 1183 | / match action { [INFO] [stdout] 1184 | | None => &NoOp, [INFO] [stdout] | | ---- temporary value created here [INFO] [stdout] 1185 | | Some(Trans) => { [INFO] [stdout] 1186 | | if layer != self.default_layer { [INFO] [stdout] ... | [INFO] [stdout] 1192 | | Some(action) => action, [INFO] [stdout] 1193 | | } [INFO] [stdout] | |_________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/layout.rs:1183:9 [INFO] [stdout] | [INFO] [stdout] 1183 | / match action { [INFO] [stdout] 1184 | | None => &NoOp, [INFO] [stdout] 1185 | | Some(Trans) => { [INFO] [stdout] 1186 | | if layer != self.default_layer { [INFO] [stdout] ... | [INFO] [stdout] 1189 | | &NoOp [INFO] [stdout] | | ---- temporary value created here [INFO] [stdout] ... | [INFO] [stdout] 1192 | | Some(action) => action, [INFO] [stdout] 1193 | | } [INFO] [stdout] | |_________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/layout.rs:1295:36 [INFO] [stdout] | [INFO] [stdout] 854 | impl<'a, const C: usize, const R: usize, const L: usize, T: 'a + Copy + std::fmt::Debug> [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 1295 | hold: &Action::NoOp, [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | this usage requires that borrow lasts for `'a` [INFO] [stdout] ... [INFO] [stdout] 1303 | }); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/layout.rs:1296:35 [INFO] [stdout] | [INFO] [stdout] 854 | impl<'a, const C: usize, const R: usize, const L: usize, T: 'a + Copy + std::fmt::Debug> [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 1296 | tap: &Action::NoOp, [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | this usage requires that borrow lasts for `'a` [INFO] [stdout] ... [INFO] [stdout] 1303 | }); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/layout.rs:1297:46 [INFO] [stdout] | [INFO] [stdout] 854 | impl<'a, const C: usize, const R: usize, const L: usize, T: 'a + Copy + std::fmt::Debug> [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 1297 | timeout_action: &Action::NoOp, [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | this usage requires that borrow lasts for `'a` [INFO] [stdout] ... [INFO] [stdout] 1303 | }); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/layout.rs:1339:28 [INFO] [stdout] | [INFO] [stdout] 854 | impl<'a, const C: usize, const R: usize, const L: usize, T: 'a + Copy + std::fmt::Debug> [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 1339 | hold: &Action::NoOp, [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | this usage requires that borrow lasts for `'a` [INFO] [stdout] ... [INFO] [stdout] 1343 | }); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/layout.rs:1340:27 [INFO] [stdout] | [INFO] [stdout] 854 | impl<'a, const C: usize, const R: usize, const L: usize, T: 'a + Copy + std::fmt::Debug> [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 1340 | tap: &Action::NoOp, [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | this usage requires that borrow lasts for `'a` [INFO] [stdout] ... [INFO] [stdout] 1343 | }); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/layout.rs:1341:38 [INFO] [stdout] | [INFO] [stdout] 854 | impl<'a, const C: usize, const R: usize, const L: usize, T: 'a + Copy + std::fmt::Debug> [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 1341 | timeout_action: &Action::NoOp, [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | || [INFO] [stdout] | |creates a temporary value which is freed while still in use [INFO] [stdout] | this usage requires that borrow lasts for `'a` [INFO] [stdout] 1342 | config: WaitingConfig::Chord(chords), [INFO] [stdout] 1343 | }); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0515, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kanata-keyberon` (lib test) due to 10 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c200cb36a29194b9490fd171c58a65c3a6ef9874d3bde535913a5260dfb2398a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c200cb36a29194b9490fd171c58a65c3a6ef9874d3bde535913a5260dfb2398a", kill_on_drop: false }` [INFO] [stdout] c200cb36a29194b9490fd171c58a65c3a6ef9874d3bde535913a5260dfb2398a