[INFO] cloning repository https://github.com/ChangeCaps/musix [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ChangeCaps/musix" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChangeCaps%2Fmusix", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChangeCaps%2Fmusix'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5b3d4a4ad3268fcaf413a3fff84c5f9d5d9d17bc [INFO] checking ChangeCaps/musix against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FChangeCaps%2Fmusix" "/workspace/builds/worker-26/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-26/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ChangeCaps/musix on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ChangeCaps/musix [INFO] finished tweaking git repo https://github.com/ChangeCaps/musix [INFO] tweaked toml for git repo https://github.com/ChangeCaps/musix written to /workspace/builds/worker-26/source/Cargo.toml [INFO] crate git repo https://github.com/ChangeCaps/musix already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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 gdk-pixbuf-sys v0.9.1 [INFO] [stderr] Downloaded gio-sys v0.9.1 [INFO] [stderr] Downloaded gdk-sys v0.9.1 [INFO] [stderr] Downloaded atk v0.8.0 [INFO] [stderr] Downloaded gdk-pixbuf v0.8.0 [INFO] [stderr] Downloaded pango v0.8.0 [INFO] [stderr] Downloaded atk-sys v0.9.1 [INFO] [stderr] Downloaded gobject-sys v0.9.1 [INFO] [stderr] Downloaded glib-sys v0.9.1 [INFO] [stderr] Downloaded alsa v0.4.2 [INFO] [stderr] Downloaded cairo-rs v0.8.1 [INFO] [stderr] Downloaded combine v4.4.0 [INFO] [stderr] Downloaded gtk v0.8.1 [INFO] [stderr] Downloaded alsa-sys v0.3.0 [INFO] [stderr] Downloaded intl-memoizer v0.5.0 [INFO] [stderr] Downloaded gio v0.8.1 [INFO] [stderr] Downloaded simple_logger v1.6.0 [INFO] [stderr] Downloaded gtk-sys v0.9.2 [INFO] [stderr] Downloaded glib v0.9.3 [INFO] [stderr] Downloaded gdk v0.12.1 [INFO] [stderr] Downloaded pango-sys v0.9.1 [INFO] [stderr] Downloaded cairo-sys-rs v0.9.2 [INFO] [stderr] Downloaded ring v0.16.17 [INFO] [stderr] Downloaded fetch_unroll v0.2.1 [INFO] [stderr] Downloaded druid-derive v0.3.1 [INFO] [stderr] Downloaded piet-common v0.1.1 [INFO] [stderr] Downloaded direct3d11 v0.1.7 [INFO] [stderr] Downloaded direct2d v0.2.0 [INFO] [stderr] Downloaded ureq v0.11.4 [INFO] [stderr] Downloaded oboe v0.3.0 [INFO] [stderr] Downloaded dxgi v0.1.7 [INFO] [stderr] Downloaded piet v0.1.0 [INFO] [stderr] Downloaded piet-web v0.1.0 [INFO] [stderr] Downloaded kurbo v0.6.2 [INFO] [stderr] Downloaded ringbuf v0.2.2 [INFO] [stderr] Downloaded piet-cairo v0.1.0 [INFO] [stderr] Downloaded druid-shell v0.6.0 [INFO] [stderr] Downloaded directwrite v0.1.4 [INFO] [stderr] Downloaded piet-direct2d v0.1.0 [INFO] [stderr] Downloaded druid v0.6.0 [INFO] [stderr] Downloaded piet-coregraphics v0.1.1 [INFO] [stderr] Downloaded intl_pluralrules v7.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2238e64f5bfd10e517d3b993b93e42037c05d0fc0d533a5d2275427a6fa40f8e [INFO] running `Command { std: "docker" "start" "-a" "2238e64f5bfd10e517d3b993b93e42037c05d0fc0d533a5d2275427a6fa40f8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2238e64f5bfd10e517d3b993b93e42037c05d0fc0d533a5d2275427a6fa40f8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2238e64f5bfd10e517d3b993b93e42037c05d0fc0d533a5d2275427a6fa40f8e", kill_on_drop: false }` [INFO] [stdout] 2238e64f5bfd10e517d3b993b93e42037c05d0fc0d533a5d2275427a6fa40f8e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0af78e89a5f4bc8e7f4b987995f23ff41b840f977892f39654228dbb5b38af67 [INFO] running `Command { std: "docker" "start" "-a" "0af78e89a5f4bc8e7f4b987995f23ff41b840f977892f39654228dbb5b38af67", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] num-integer v0.1.43: default, std [INFO] [stderr] num-traits v0.2.12: default, std [INFO] [stderr] standback v0.2.10 (as host dependency): std [INFO] [stderr] [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Compiling syn v1.0.39 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling cairo-rs v0.8.1 [INFO] [stderr] Compiling gio v0.8.1 [INFO] [stderr] Checking tinystr v0.3.4 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling pango v0.8.0 [INFO] [stderr] Checking futures-io v0.3.5 [INFO] [stderr] Checking arrayvec v0.5.1 [INFO] [stderr] Compiling gdk-pixbuf v0.8.0 [INFO] [stderr] Compiling gdk v0.12.1 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling atk v0.8.0 [INFO] [stderr] Compiling anyhow v1.0.32 [INFO] [stderr] Checking xi-unicode v0.2.1 [INFO] [stderr] Compiling gtk v0.8.1 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Checking unicode-segmentation v1.6.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling serde_derive v1.0.115 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling serde v1.0.115 [INFO] [stderr] Checking fluent-syntax v0.9.3 [INFO] [stderr] Checking instant v0.1.6 [INFO] [stderr] Compiling cpal v0.13.1 [INFO] [stderr] Checking smallvec v1.4.2 [INFO] [stderr] Checking ringbuf v0.2.2 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Checking futures-channel v0.3.5 [INFO] [stderr] Checking futures-task v0.3.5 [INFO] [stderr] Checking kurbo v0.6.2 [INFO] [stderr] Compiling standback v0.2.10 [INFO] [stderr] Compiling time v0.2.16 [INFO] [stderr] Compiling glib-sys v0.9.1 [INFO] [stderr] Compiling gobject-sys v0.9.1 [INFO] [stderr] Compiling gio-sys v0.9.1 [INFO] [stderr] Compiling cairo-sys-rs v0.9.2 [INFO] [stderr] Compiling pango-sys v0.9.1 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.9.1 [INFO] [stderr] Compiling atk-sys v0.9.1 [INFO] [stderr] Compiling gdk-sys v0.9.1 [INFO] [stderr] Compiling gtk-sys v0.9.2 [INFO] [stderr] Compiling alsa-sys v0.3.0 [INFO] [stderr] Checking unic-langid-impl v0.9.0 [INFO] [stderr] Checking piet v0.1.0 [INFO] [stderr] Checking unic-langid v0.9.0 [INFO] [stderr] Checking fluent-langneg v0.13.0 [INFO] [stderr] Checking intl_pluralrules v7.0.0 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking colored v1.9.3 [INFO] [stderr] Checking type-map v0.3.0 [INFO] [stderr] Checking intl-memoizer v0.5.0 [INFO] [stderr] Checking chrono v0.4.15 [INFO] [stderr] Checking alsa v0.4.2 [INFO] [stderr] Checking simple_logger v1.6.0 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling rental-impl v0.5.5 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling druid-derive v0.3.1 [INFO] [stderr] Checking time-macros v0.1.0 [INFO] [stderr] Checking thiserror v1.0.20 [INFO] [stderr] Checking pin-project v0.4.23 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking futures-executor v0.3.5 [INFO] [stderr] Checking glib v0.9.3 [INFO] [stderr] Checking rental v0.5.5 [INFO] [stderr] Checking fluent-bundle v0.12.0 [INFO] [stderr] Checking piet-cairo v0.1.0 [INFO] [stderr] Checking piet-common v0.1.1 [INFO] [stderr] Checking druid-shell v0.6.0 [INFO] [stderr] Checking druid v0.6.0 [INFO] [stderr] Checking musix v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/audio.rs (2 fixes) [INFO] [stdout] warning: variant is never constructed: `RemoveAudioSource` [INFO] [stdout] --> src/audio.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | RemoveAudioSource(AudioSourceID), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/audio_clip.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(samples: Vec, format: AudioSourceFormat) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RemoveAudioSource` [INFO] [stdout] --> src/audio.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | RemoveAudioSource(AudioSourceID), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/audio_clip.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(samples: Vec, format: AudioSourceFormat) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 45s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling standback v0.2.10 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Checking chrono v0.4.15 [INFO] [stderr] Checking time-macros v0.1.0 [INFO] [stderr] Checking time v0.2.16 [INFO] [stderr] Checking simple_logger v1.6.0 [INFO] [stderr] Checking druid-shell v0.6.0 [INFO] [stderr] Checking druid v0.6.0 [INFO] [stderr] Checking musix v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `self.beats_per_second`, which is owned by the current function [INFO] [stdout] --> src/audio.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ may outlive borrowed value `self.beats_per_second` [INFO] [stdout] ... [INFO] [stdout] 274 | Command::SetBeatsPerSecond(bps) => self.beats_per_second = bps, [INFO] [stdout] | --------------------- `self.beats_per_second` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/audio.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | / std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] 161 | | let host = cpal::default_host(); [INFO] [stdout] 162 | | [INFO] [stdout] 163 | | let input_device = host [INFO] [stdout] ... | [INFO] [stdout] 392 | | Ok(()) [INFO] [stdout] 393 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `self.beats_per_second` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(move || -> Result<(), Box> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `self.next_audio_id`, which is owned by the current function [INFO] [stdout] --> src/audio.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ may outlive borrowed value `self.next_audio_id` [INFO] [stdout] ... [INFO] [stdout] 251 | let id = self.next_audio_id; [INFO] [stdout] | ------------------ `self.next_audio_id` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/audio.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | / std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] 161 | | let host = cpal::default_host(); [INFO] [stdout] 162 | | [INFO] [stdout] 163 | | let input_device = host [INFO] [stdout] ... | [INFO] [stdout] 392 | | Ok(()) [INFO] [stdout] 393 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `self.next_audio_id` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(move || -> Result<(), Box> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `self.feedback`, which is owned by the current function [INFO] [stdout] --> src/audio.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ may outlive borrowed value `self.feedback` [INFO] [stdout] ... [INFO] [stdout] 275 | Command::SetFeedback(feedback) => self.feedback = feedback, [INFO] [stdout] | ------------- `self.feedback` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/audio.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | / std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] 161 | | let host = cpal::default_host(); [INFO] [stdout] 162 | | [INFO] [stdout] 163 | | let input_device = host [INFO] [stdout] ... | [INFO] [stdout] 392 | | Ok(()) [INFO] [stdout] 393 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `self.feedback` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(move || -> Result<(), Box> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `self.volume`, which is owned by the current function [INFO] [stdout] --> src/audio.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ may outlive borrowed value `self.volume` [INFO] [stdout] ... [INFO] [stdout] 276 | Command::SetVolume(volume) => self.volume = volume, [INFO] [stdout] | ----------- `self.volume` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/audio.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | / std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] 161 | | let host = cpal::default_host(); [INFO] [stdout] 162 | | [INFO] [stdout] 163 | | let input_device = host [INFO] [stdout] ... | [INFO] [stdout] 392 | | Ok(()) [INFO] [stdout] 393 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `self.volume` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(move || -> Result<(), Box> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `self.beats_per_second`, which is owned by the current function [INFO] [stdout] --> src/audio.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ may outlive borrowed value `self.beats_per_second` [INFO] [stdout] ... [INFO] [stdout] 274 | Command::SetBeatsPerSecond(bps) => self.beats_per_second = bps, [INFO] [stdout] | --------------------- `self.beats_per_second` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/audio.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | / std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] 161 | | let host = cpal::default_host(); [INFO] [stdout] 162 | | [INFO] [stdout] 163 | | let input_device = host [INFO] [stdout] ... | [INFO] [stdout] 392 | | Ok(()) [INFO] [stdout] 393 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `self.beats_per_second` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(move || -> Result<(), Box> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `self.next_audio_id`, which is owned by the current function [INFO] [stdout] --> src/audio.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ may outlive borrowed value `self.next_audio_id` [INFO] [stdout] ... [INFO] [stdout] 251 | let id = self.next_audio_id; [INFO] [stdout] | ------------------ `self.next_audio_id` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/audio.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | / std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] 161 | | let host = cpal::default_host(); [INFO] [stdout] 162 | | [INFO] [stdout] 163 | | let input_device = host [INFO] [stdout] ... | [INFO] [stdout] 392 | | Ok(()) [INFO] [stdout] 393 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `self.next_audio_id` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(move || -> Result<(), Box> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `self.feedback`, which is owned by the current function [INFO] [stdout] --> src/audio.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ may outlive borrowed value `self.feedback` [INFO] [stdout] ... [INFO] [stdout] 275 | Command::SetFeedback(feedback) => self.feedback = feedback, [INFO] [stdout] | ------------- `self.feedback` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/audio.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | / std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] 161 | | let host = cpal::default_host(); [INFO] [stdout] 162 | | [INFO] [stdout] 163 | | let input_device = host [INFO] [stdout] ... | [INFO] [stdout] 392 | | Ok(()) [INFO] [stdout] 393 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `self.feedback` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(move || -> Result<(), Box> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `self.volume`, which is owned by the current function [INFO] [stdout] --> src/audio.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ may outlive borrowed value `self.volume` [INFO] [stdout] ... [INFO] [stdout] 276 | Command::SetVolume(volume) => self.volume = volume, [INFO] [stdout] | ----------- `self.volume` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> src/audio.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | / std::thread::spawn(|| -> Result<(), Box> { [INFO] [stdout] 161 | | let host = cpal::default_host(); [INFO] [stdout] 162 | | [INFO] [stdout] 163 | | let input_device = host [INFO] [stdout] ... | [INFO] [stdout] 392 | | Ok(()) [INFO] [stdout] 393 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] help: to force the closure to take ownership of `self.volume` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 160 | std::thread::spawn(move || -> Result<(), Box> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `musix` due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to check after updating to 2021 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "0af78e89a5f4bc8e7f4b987995f23ff41b840f977892f39654228dbb5b38af67", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0af78e89a5f4bc8e7f4b987995f23ff41b840f977892f39654228dbb5b38af67", kill_on_drop: false }` [INFO] [stdout] 0af78e89a5f4bc8e7f4b987995f23ff41b840f977892f39654228dbb5b38af67