[INFO] cloning repository https://github.com/SoryRawyer/scratchrs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SoryRawyer/scratchrs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSoryRawyer%2Fscratchrs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSoryRawyer%2Fscratchrs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 73c0e82e7c315f015d0bdd0872f52f5935e2530f [INFO] checking SoryRawyer/scratchrs/73c0e82e7c315f015d0bdd0872f52f5935e2530f against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSoryRawyer%2Fscratchrs" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SoryRawyer/scratchrs on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SoryRawyer/scratchrs [INFO] finished tweaking git repo https://github.com/SoryRawyer/scratchrs [INFO] tweaked toml for git repo https://github.com/SoryRawyer/scratchrs written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/SoryRawyer/scratchrs 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thread_local v0.3.5 [INFO] [stderr] Downloaded serial-windows v0.4.0 [INFO] [stderr] Downloaded pkg-config v0.3.9 [INFO] [stderr] Downloaded std-semaphore v0.1.0 [INFO] [stderr] Downloaded ioctl-rs v0.1.6 [INFO] [stderr] Downloaded IOKit-sys v0.1.5 [INFO] [stderr] Downloaded serial-core v0.4.0 [INFO] [stderr] Downloaded CoreFoundation-sys v0.1.4 [INFO] [stderr] Downloaded ears v0.5.1 [INFO] [stderr] Downloaded bytes v0.4.7 [INFO] [stderr] Downloaded serialport v2.3.0 [INFO] [stderr] Downloaded termios v0.2.2 [INFO] [stderr] Downloaded mach v0.1.2 [INFO] [stderr] Downloaded nix v0.10.0 [INFO] [stderr] Downloaded libudev v0.2.0 [INFO] [stderr] Downloaded bitflags v1.0.2 [INFO] [stderr] Downloaded byteorder v1.2.2 [INFO] [stderr] Downloaded regex v0.2.10 [INFO] [stderr] Downloaded aho-corasick v0.6.4 [INFO] [stderr] Downloaded ucd-util v0.1.1 [INFO] [stderr] Downloaded lazy_static v1.0.0 [INFO] [stderr] Downloaded bitflags v0.9.1 [INFO] [stderr] Downloaded memchr v2.0.1 [INFO] [stderr] Downloaded regex-syntax v0.5.5 [INFO] [stderr] Downloaded libc v0.2.40 [INFO] [stderr] Downloaded gcc v0.3.54 [INFO] [stderr] Downloaded mach v0.0.5 [INFO] [stderr] Downloaded serial-unix v0.4.0 [INFO] [stderr] Downloaded serial v0.4.0 [INFO] [stderr] Downloaded robust-arduino-serial v0.1.1 [INFO] [stderr] Downloaded cfg-if v0.1.2 [INFO] [stderr] Downloaded simplemad_sys v0.5.0 [INFO] [stderr] Downloaded winapi v0.3.4 [INFO] [stderr] Downloaded simplemad v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ff52c0c98b2cb4ac9f908290c218093af0af45bf2e2824e599ae7b5d1ccf1b1e [INFO] running `Command { std: "docker" "start" "-a" "ff52c0c98b2cb4ac9f908290c218093af0af45bf2e2824e599ae7b5d1ccf1b1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff52c0c98b2cb4ac9f908290c218093af0af45bf2e2824e599ae7b5d1ccf1b1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff52c0c98b2cb4ac9f908290c218093af0af45bf2e2824e599ae7b5d1ccf1b1e", kill_on_drop: false }` [INFO] [stdout] ff52c0c98b2cb4ac9f908290c218093af0af45bf2e2824e599ae7b5d1ccf1b1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 661a28bd2e4dc03f852d2485ed2389e1e53d48e751320842246ee3dc2cd953c5 [INFO] running `Command { std: "docker" "start" "-a" "661a28bd2e4dc03f852d2485ed2389e1e53d48e751320842246ee3dc2cd953c5", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking libc v0.2.40 [INFO] [stderr] Compiling pkg-config v0.3.9 [INFO] [stderr] Compiling gcc v0.3.54 [INFO] [stderr] Checking byteorder v1.2.2 [INFO] [stderr] Compiling nix v0.10.0 [INFO] [stderr] Checking libc v0.1.12 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking bitflags v1.0.2 [INFO] [stderr] Checking cfg-if v0.1.2 [INFO] [stderr] Compiling ears v0.5.1 [INFO] [stderr] Checking std-semaphore v0.1.0 [INFO] [stderr] Checking bitflags v0.9.1 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Checking termios v0.2.2 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking ioctl-rs v0.1.6 [INFO] [stderr] Checking serial-core v0.4.0 [INFO] [stderr] Compiling simplemad_sys v0.5.0 [INFO] [stderr] Checking bytes v0.4.7 [INFO] [stderr] Checking serial-unix v0.4.0 [INFO] [stderr] Checking serial v0.4.0 [INFO] [stderr] Checking robust-arduino-serial v0.1.1 [INFO] [stderr] Checking libudev v0.2.0 [INFO] [stderr] Checking simplemad v0.9.0 [INFO] [stderr] Checking serialport v2.3.0 [INFO] [stderr] Checking scratch v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ReadBytesExt` [INFO] [stdout] --> examples/byteorder.rs:3:57 [INFO] [stdout] | [INFO] [stdout] 3 | use byteorder::{BigEndian, WriteBytesExt, LittleEndian, ReadBytesExt}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: mismatched closing delimiter: `}` [INFO] [stdout] --> examples/ears.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 15 | fn main() { [INFO] [stdout] | - closing delimiter possibly meant for this [INFO] [stdout] ... [INFO] [stdout] 19 | let path = Path::new(&String::from("/Users/rorysawyer/media/audio/toe/the book about my idle plot on a vague anxiety/C.mp3"); [INFO] [stdout] | ^ unclosed delimiter [INFO] [stdout] ... [INFO] [stdout] 39 | } [INFO] [stdout] | ^ mismatched closing delimiter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `scratch` (example "ears") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> examples/serial.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> examples/serial.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | port: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | port: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `cpal` [INFO] [stdout] --> examples/cool_tones.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate cpal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> examples/luma_chroma.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | for x in (i * 16)..((i + 1) * 16) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> examples/luma_chroma.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | for y in (j * 16)..((j + 1) * 16) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> examples/luma_chroma.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | for x in (i * 8)..((i + 1) * 8) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> examples/luma_chroma.rs:36:11 [INFO] [stdout] | [INFO] [stdout] 36 | for y in (j * 8)..((j + 1) * 8) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> examples/luma_chroma.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | for x in (i * 8)..((i + 1) * 8) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> examples/luma_chroma.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | for y in (j * 8)..((j + 1) * 8) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `chroma_width` is never used [INFO] [stdout] --> examples/luma_chroma.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const chroma_width: i32=luma_width / 2; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `chroma_height` is never used [INFO] [stdout] --> examples/luma_chroma.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const chroma_height: i32=luma_height / 2; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `sps` is never used [INFO] [stdout] --> examples/luma_chroma.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const sps: [u8; 11] = [ 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x00, 0x0a, 0xf8, 0x41, 0xa2 ]; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pps` is never used [INFO] [stdout] --> examples/luma_chroma.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const pps: [u8; 8] = [ 0x00, 0x00, 0x00, 0x01, 0x68, 0xce, 0x38, 0x80 ]; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `slice_header` is never used [INFO] [stdout] --> examples/luma_chroma.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const slice_header: [u8; 9] = [ 0x00, 0x00, 0x00, 0x01, 0x05, 0x88, 0x84, 0x21, 0xa0 ]; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `macroblock_header` is never used [INFO] [stdout] --> examples/luma_chroma.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const macroblock_header: [u8; 2] = [ 0x0d, 0x00 ]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `luma_width` should have an upper case name [INFO] [stdout] --> examples/luma_chroma.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const luma_width: i32=128; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `LUMA_WIDTH` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `luma_height` should have an upper case name [INFO] [stdout] --> examples/luma_chroma.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const luma_height: i32=96; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `LUMA_HEIGHT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `chroma_width` should have an upper case name [INFO] [stdout] --> examples/luma_chroma.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const chroma_width: i32=luma_width / 2; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `CHROMA_WIDTH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `chroma_height` should have an upper case name [INFO] [stdout] --> examples/luma_chroma.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const chroma_height: i32=luma_height / 2; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `CHROMA_HEIGHT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `sps` should have an upper case name [INFO] [stdout] --> examples/luma_chroma.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const sps: [u8; 11] = [ 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x00, 0x0a, 0xf8, 0x41, 0xa2 ]; [INFO] [stdout] | ^^^ help: convert the identifier to upper case: `SPS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `pps` should have an upper case name [INFO] [stdout] --> examples/luma_chroma.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const pps: [u8; 8] = [ 0x00, 0x00, 0x00, 0x01, 0x68, 0xce, 0x38, 0x80 ]; [INFO] [stdout] | ^^^ help: convert the identifier to upper case: `PPS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `slice_header` should have an upper case name [INFO] [stdout] --> examples/luma_chroma.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const slice_header: [u8; 9] = [ 0x00, 0x00, 0x00, 0x01, 0x05, 0x88, 0x84, 0x21, 0xa0 ]; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `SLICE_HEADER` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `macroblock_header` should have an upper case name [INFO] [stdout] --> examples/luma_chroma.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const macroblock_header: [u8; 2] = [ 0x0d, 0x00 ]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `MACROBLOCK_HEADER` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `sensor_value` in this scope [INFO] [stdout] --> examples/cool_tones.rs:29:23 [INFO] [stdout] | [INFO] [stdout] 29 | frequency = ((sensor_value.load(Ordering::Relaxed) as i32) + 100) as f32; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ordering` [INFO] [stdout] --> examples/cool_tones.rs:29:41 [INFO] [stdout] | [INFO] [stdout] 29 | frequency = ((sensor_value.load(Ordering::Relaxed) as i32) + 100) as f32; [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Ordering` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::Ordering; [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::atomic::Ordering; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `io` [INFO] [stdout] --> examples/cool_tones.rs:103:43 [INFO] [stdout] | [INFO] [stdout] 103 | Err(ref e) if e.kind() == io::ErrorKind::TimedOut => (), [INFO] [stdout] | ^^ use of undeclared crate or module `io` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::ErrorKind; [INFO] [stdout] | [INFO] [stdout] help: if you import `ErrorKind`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 103 - Err(ref e) if e.kind() == io::ErrorKind::TimedOut => (), [INFO] [stdout] 103 + Err(ref e) if e.kind() == ErrorKind::TimedOut => (), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> examples/cool_tones.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | (2.0 * (sample_clock * frequency * 2.0 * 3.141592 / sample_rate).sin()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 31 - (2.0 * (sample_clock * frequency * 2.0 * 3.141592 / sample_rate).sin()) [INFO] [stdout] 31 + 2.0 * (sample_clock * frequency * 2.0 * 3.141592 / sample_rate).sin() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> examples/cool_tones.rs:67:15 [INFO] [stdout] | [INFO] [stdout] 67 | port: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 67 | port: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `scratch` (example "cool_tones") due to 5 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "661a28bd2e4dc03f852d2485ed2389e1e53d48e751320842246ee3dc2cd953c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "661a28bd2e4dc03f852d2485ed2389e1e53d48e751320842246ee3dc2cd953c5", kill_on_drop: false }` [INFO] [stdout] 661a28bd2e4dc03f852d2485ed2389e1e53d48e751320842246ee3dc2cd953c5