[INFO] cloning repository https://github.com/TheOnlyMrCat/Loud [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TheOnlyMrCat/Loud" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheOnlyMrCat%2FLoud", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheOnlyMrCat%2FLoud'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b7bfb051182fdbde21354326140f37693b7ab890 [INFO] checking TheOnlyMrCat/Loud/b7bfb051182fdbde21354326140f37693b7ab890 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheOnlyMrCat%2FLoud" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TheOnlyMrCat/Loud on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TheOnlyMrCat/Loud [INFO] finished tweaking git repo https://github.com/TheOnlyMrCat/Loud [INFO] tweaked toml for git repo https://github.com/TheOnlyMrCat/Loud written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/TheOnlyMrCat/Loud 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d5e812058af0a8881c0b8e58f0e16fa7fb74d42f21ff174ec5beed5e32cc6c43 [INFO] running `Command { std: "docker" "start" "-a" "d5e812058af0a8881c0b8e58f0e16fa7fb74d42f21ff174ec5beed5e32cc6c43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5e812058af0a8881c0b8e58f0e16fa7fb74d42f21ff174ec5beed5e32cc6c43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5e812058af0a8881c0b8e58f0e16fa7fb74d42f21ff174ec5beed5e32cc6c43", kill_on_drop: false }` [INFO] [stdout] d5e812058af0a8881c0b8e58f0e16fa7fb74d42f21ff174ec5beed5e32cc6c43 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f3b19ccc87a29741b68d77cecd1de4b74d3c8e16585841fbdae969d48536caa [INFO] running `Command { std: "docker" "start" "-a" "6f3b19ccc87a29741b68d77cecd1de4b74d3c8e16585841fbdae969d48536caa", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling cpal v0.13.1 [INFO] [stderr] Compiling sdl2 v0.34.3 [INFO] [stderr] Checking ringbuf v0.2.2 [INFO] [stderr] Compiling sdl2-sys v0.34.3 [INFO] [stderr] Checking alsa v0.4.3 [INFO] [stderr] Compiling thiserror-impl v1.0.23 [INFO] [stderr] Checking thiserror v1.0.23 [INFO] [stderr] Checking xp-audio v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `cpal::traits::*` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use cpal::traits::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cpal::traits::*` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use cpal::traits::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parents` [INFO] [stdout] --> src/node/input.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | fn tick(&mut self, parents: &[NodeConnection], tick: u32, node_list: &[WorkbenchNode]) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parents` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_list` [INFO] [stdout] --> src/node/input.rs:30:60 [INFO] [stdout] | [INFO] [stdout] 30 | fn tick(&mut self, parents: &[NodeConnection], tick: u32, node_list: &[WorkbenchNode]) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_index` [INFO] [stdout] --> src/node/input.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | fn poll(&self, output_index: usize) -> Box<[f32; TICK_SIZE]> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_index` [INFO] [stdout] --> src/node/basic_mod.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | fn poll(&self, output_index: usize) -> Box<[f32; TICK_SIZE]> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_index` [INFO] [stdout] --> src/node.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | fn poll(&self, output_index: usize) -> Box<[f32; TICK_SIZE]> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_SAMPLE_RATE` is never used [INFO] [stdout] --> src/audio.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const DEFAULT_SAMPLE_RATE: cpal::SampleRate = cpal::SampleRate(44100); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AudioStream` is never constructed [INFO] [stdout] --> src/audio.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct AudioStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BuildAudioStreamError` is never used [INFO] [stdout] --> src/audio.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum BuildAudioStreamError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BuildAudioStreamError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_device`, `play`, `push_audio`, `buffer_remaining`, and `buffer_full` are never used [INFO] [stdout] --> src/audio.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 18 | / impl AudioStream [INFO] [stdout] 19 | | where [INFO] [stdout] 20 | | D: cpal::traits::DeviceTrait, [INFO] [stdout] | |_________________________________- associated items in this implementation [INFO] [stdout] 21 | { [INFO] [stdout] 22 | pub fn with_device(device: D) -> Result, BuildAudioStreamError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn play(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn push_audio(&mut self, data: &[f32]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn buffer_remaining(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn buffer_full(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WaveGenerator` is never constructed [INFO] [stdout] --> src/audio.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct WaveGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `play_sine_freq_to`, `play_tri_freq_to`, `play_saw_freq_to`, and `play_square_freq_to` are never used [INFO] [stdout] --> src/audio.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 81 | impl WaveGenerator { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 82 | pub fn play_sine_freq_to(&self, frequency: f64, audio_stream: &mut AudioStream) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn play_tri_freq_to(&self, frequency: f64, audio_stream: &mut AudioStream) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn play_saw_freq_to(&self, frequency: f64, audio_stream: &mut AudioStream) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn play_square_freq_to(&self, frequency: f64, audio_stream: &mut AudioStream) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `semitone_to_frequency` is never used [INFO] [stdout] --> src/audio.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn semitone_to_frequency(semitone: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `render` is never used [INFO] [stdout] --> src/graphics.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 98 | impl GraphicsHandler { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn render(&mut self, image: &Image, pos: Vector2) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `None` is never constructed [INFO] [stdout] --> src/graphics.rs:142:2 [INFO] [stdout] | [INFO] [stdout] 141 | pub enum Image { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 142 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clicked_in_bounds` is never used [INFO] [stdout] --> src/input.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 25 | impl InputHandler { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn clicked_in_bounds(&self, bounds: Rect) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parents` is never read [INFO] [stdout] --> src/node.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct WorkbenchNode { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 9 | pub pos: Vector2, [INFO] [stdout] 10 | pub parents: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `inputs`, `outputs`, and `tick` are never used [INFO] [stdout] --> src/node.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait Node { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] 20 | fn title(&self) -> String; [INFO] [stdout] 21 | fn inputs(&self) -> Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | fn outputs(&self) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | [INFO] [stdout] 24 | fn tick(&mut self, parents: &[NodeConnection], tick: u32, node_list: &[WorkbenchNode]); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `form` and `freq` are never read [INFO] [stdout] --> src/node/input.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Wave { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 4 | pub form: Waveform, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | pub freq: f32, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sine`, `Tri`, `Saw`, and `Square` are never constructed [INFO] [stdout] --> src/node/input.rs:11:2 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Waveform { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 11 | Sine, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | Tri, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | Saw, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | Square, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/audio.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn with_device(device: D) -> Result, BuildAudioStreamError> { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 33 | let buffer = ringbuf::RingBuffer::new(44100); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | let (producer, mut consumer) = buffer.split(); [INFO] [stdout] | -------- -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 35 | [INFO] [stdout] 36 | Ok(AudioStream { [INFO] [stdout] | ____________^ [INFO] [stdout] 37 | | stream: device.build_output_stream_raw( [INFO] [stdout] 38 | | &supported_audio_config.config(), [INFO] [stdout] 39 | | supported_audio_config.sample_format(), [INFO] [stdout] ... | [INFO] [stdout] 56 | | buffer: producer, [INFO] [stdout] 57 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/graphics.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn new(canvas: WindowCanvas) -> Self { [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 104 | ttf: sdl2::ttf::init().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `xp-audio` (bin "xp-audio") due to 3 previous errors; 20 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `parents` [INFO] [stdout] --> src/node/input.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | fn tick(&mut self, parents: &[NodeConnection], tick: u32, node_list: &[WorkbenchNode]) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parents` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_list` [INFO] [stdout] --> src/node/input.rs:30:60 [INFO] [stdout] | [INFO] [stdout] 30 | fn tick(&mut self, parents: &[NodeConnection], tick: u32, node_list: &[WorkbenchNode]) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_index` [INFO] [stdout] --> src/node/input.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | fn poll(&self, output_index: usize) -> Box<[f32; TICK_SIZE]> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_index` [INFO] [stdout] --> src/node/basic_mod.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | fn poll(&self, output_index: usize) -> Box<[f32; TICK_SIZE]> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output_index` [INFO] [stdout] --> src/node.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | fn poll(&self, output_index: usize) -> Box<[f32; TICK_SIZE]> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_SAMPLE_RATE` is never used [INFO] [stdout] --> src/audio.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const DEFAULT_SAMPLE_RATE: cpal::SampleRate = cpal::SampleRate(44100); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AudioStream` is never constructed [INFO] [stdout] --> src/audio.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct AudioStream { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BuildAudioStreamError` is never used [INFO] [stdout] --> src/audio.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum BuildAudioStreamError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BuildAudioStreamError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_device`, `play`, `push_audio`, `buffer_remaining`, and `buffer_full` are never used [INFO] [stdout] --> src/audio.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 18 | / impl AudioStream [INFO] [stdout] 19 | | where [INFO] [stdout] 20 | | D: cpal::traits::DeviceTrait, [INFO] [stdout] | |_________________________________- associated items in this implementation [INFO] [stdout] 21 | { [INFO] [stdout] 22 | pub fn with_device(device: D) -> Result, BuildAudioStreamError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn play(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn push_audio(&mut self, data: &[f32]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn buffer_remaining(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn buffer_full(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WaveGenerator` is never constructed [INFO] [stdout] --> src/audio.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct WaveGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `play_sine_freq_to`, `play_tri_freq_to`, `play_saw_freq_to`, and `play_square_freq_to` are never used [INFO] [stdout] --> src/audio.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 81 | impl WaveGenerator { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 82 | pub fn play_sine_freq_to(&self, frequency: f64, audio_stream: &mut AudioStream) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn play_tri_freq_to(&self, frequency: f64, audio_stream: &mut AudioStream) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn play_saw_freq_to(&self, frequency: f64, audio_stream: &mut AudioStream) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn play_square_freq_to(&self, frequency: f64, audio_stream: &mut AudioStream) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `semitone_to_frequency` is never used [INFO] [stdout] --> src/audio.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn semitone_to_frequency(semitone: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `render` is never used [INFO] [stdout] --> src/graphics.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 98 | impl GraphicsHandler { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 112 | pub fn render(&mut self, image: &Image, pos: Vector2) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `None` is never constructed [INFO] [stdout] --> src/graphics.rs:142:2 [INFO] [stdout] | [INFO] [stdout] 141 | pub enum Image { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 142 | None, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clicked_in_bounds` is never used [INFO] [stdout] --> src/input.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 25 | impl InputHandler { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn clicked_in_bounds(&self, bounds: Rect) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `parents` is never read [INFO] [stdout] --> src/node.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct WorkbenchNode { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 9 | pub pos: Vector2, [INFO] [stdout] 10 | pub parents: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `inputs`, `outputs`, and `tick` are never used [INFO] [stdout] --> src/node.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait Node { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] 20 | fn title(&self) -> String; [INFO] [stdout] 21 | fn inputs(&self) -> Vec; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | fn outputs(&self) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | [INFO] [stdout] 24 | fn tick(&mut self, parents: &[NodeConnection], tick: u32, node_list: &[WorkbenchNode]); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `form` and `freq` are never read [INFO] [stdout] --> src/node/input.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Wave { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 4 | pub form: Waveform, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | pub freq: f32, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sine`, `Tri`, `Saw`, and `Square` are never constructed [INFO] [stdout] --> src/node/input.rs:11:2 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Waveform { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 11 | Sine, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | Tri, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | Saw, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | Square, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/audio.rs:36:6 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn with_device(device: D) -> Result, BuildAudioStreamError> { [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 33 | let buffer = ringbuf::RingBuffer::new(44100); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 34 | let (producer, mut consumer) = buffer.split(); [INFO] [stdout] | -------- -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 35 | [INFO] [stdout] 36 | Ok(AudioStream { [INFO] [stdout] | ____________^ [INFO] [stdout] 37 | | stream: device.build_output_stream_raw( [INFO] [stdout] 38 | | &supported_audio_config.config(), [INFO] [stdout] 39 | | supported_audio_config.sample_format(), [INFO] [stdout] ... | [INFO] [stdout] 56 | | buffer: producer, [INFO] [stdout] 57 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/graphics.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn new(canvas: WindowCanvas) -> Self { [INFO] [stdout] | -------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 104 | ttf: sdl2::ttf::init().unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `xp-audio` (bin "xp-audio" test) due to 3 previous errors; 20 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6f3b19ccc87a29741b68d77cecd1de4b74d3c8e16585841fbdae969d48536caa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f3b19ccc87a29741b68d77cecd1de4b74d3c8e16585841fbdae969d48536caa", kill_on_drop: false }` [INFO] [stdout] 6f3b19ccc87a29741b68d77cecd1de4b74d3c8e16585841fbdae969d48536caa