[INFO] fetching crate freertos_rs 0.3.0... [INFO] testing freertos_rs-0.3.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate freertos_rs 0.3.0 into /workspace/builds/worker-4/source [INFO] validating manifest of crates.io crate freertos_rs 0.3.0 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate freertos_rs 0.3.0 [INFO] finished tweaking crates.io crate freertos_rs 0.3.0 [INFO] tweaked toml for crates.io crate freertos_rs 0.3.0 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6bbd7e94b978dde194ea5c34f5631f8747102fc7c12d3b00b89255995b57982f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6bbd7e94b978dde194ea5c34f5631f8747102fc7c12d3b00b89255995b57982f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6bbd7e94b978dde194ea5c34f5631f8747102fc7c12d3b00b89255995b57982f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bbd7e94b978dde194ea5c34f5631f8747102fc7c12d3b00b89255995b57982f", kill_on_drop: false }` [INFO] [stdout] 6bbd7e94b978dde194ea5c34f5631f8747102fc7c12d3b00b89255995b57982f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f82a5412161b7072c88af6dcd408d82ac2a35b40f8d74fa0ed83a207b59d733e [INFO] running `Command { std: "docker" "start" "-a" "f82a5412161b7072c88af6dcd408d82ac2a35b40f8d74fa0ed83a207b59d733e", kill_on_drop: false }` [INFO] [stderr] Compiling freertos_rs v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::base::*` [INFO] [stdout] --> src/shim.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::base::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::task::*` [INFO] [stdout] --> src/timers.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::task::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mutex::*` [INFO] [stdout] --> src/timers.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::mutex::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::queue::*` [INFO] [stdout] --> src/timers.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::queue::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/mutex.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/mutex.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/mutex.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/units.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/units.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/timers.rs:74:45 [INFO] [stdout] | [INFO] [stdout] 74 | ... callback: Box,) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 74 - callback: Box,) [INFO] [stdout] 74 + callback: Box,) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/timers.rs:108:72 [INFO] [stdout] | [INFO] [stdout] 108 | let b = Box::from_raw(callback_ptr as *mut 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 108 - let b = Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] 108 + let b = Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/timers.rs:191:56 [INFO] [stdout] | [INFO] [stdout] 191 | Box::from_raw(callback_ptr as *mut 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 191 - Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] 191 + Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | unsafe { freertos_rs_task_notify_take(if clear { 1 } else { 0 }, wait_for.to_ticks()) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:239:17 [INFO] [stdout] | [INFO] [stdout] 239 | let r = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:273:9 [INFO] [stdout] | [INFO] [stdout] 273 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | unsafe { freertos_rs_xTaskGetTickCount() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | unsafe { freertos_rs_get_number_of_tasks() as usize } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/timers.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/timers.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/timers.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/timers.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/queue.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | let handle = unsafe { freertos_rs_queue_create(max_size as u32, item_size as u32) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/queue.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/queue.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 117 | let m = unsafe { freertos_rs_create_mutex() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 125 | let res = unsafe { freertos_rs_take_mutex(self.0, max_wait.to_ticks()) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe { freertos_rs_give_mutex(self.0); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | unsafe { freertos_rs_delete_semaphore(self.0) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let m = unsafe { freertos_rs_create_recursive_mutex() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:162:19 [INFO] [stdout] | [INFO] [stdout] 162 | let res = unsafe { freertos_rs_take_recursive_mutex(self.0, max_wait.to_ticks()) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | unsafe { freertos_rs_give_recursive_mutex(self.0); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | unsafe { freertos_rs_delete_semaphore(self.0) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/units.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { freertos_rs_get_portTICK_PERIOD_MS() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/units.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | unsafe { freertos_rs_max_wait() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/utils.rs:37:22 [INFO] [stdout] | [INFO] [stdout] 37 | let c_size = unsafe { freertos_rs_sizeof(check.0) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/isr.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | unsafe { freertos_rs_isr_yield(); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/delays.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/critical.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | unsafe { freertos_rs_enter_critical(); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/critical.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe { freertos_rs_exit_critical(); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `FreeRtosStackType` [INFO] [stdout] --> src/base.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | pub type FreeRtosStackType = *const CVoid; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/utils.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | id: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TypeSizeError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/utils.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `c_size` [INFO] [stdout] --> src/utils.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | c_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TypeSizeError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/utils.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rust_size` [INFO] [stdout] --> src/utils.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | rust_size: usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TypeSizeError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/utils.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Finished` [INFO] [stdout] --> src/patterns/compute_task.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | Finished, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ComputeTaskStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/patterns/compute_task.rs:94:10 [INFO] [stdout] | [INFO] [stdout] 94 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on `Self: Drop` are most likely incorrect, consider instead using `core::mem::needs_drop` to detect whether a type can be trivially dropped [INFO] [stdout] --> src/mutex.rs:104:46 [INFO] [stdout] | [INFO] [stdout] 104 | pub trait MutexInnerImpl where Self: Sized + Drop { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(drop_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused boxed boxed `Fn` trait object that must be used [INFO] [stdout] --> src/timers.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: closures are lazy and do nothing unless called [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.46s [INFO] running `Command { std: "docker" "inspect" "f82a5412161b7072c88af6dcd408d82ac2a35b40f8d74fa0ed83a207b59d733e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f82a5412161b7072c88af6dcd408d82ac2a35b40f8d74fa0ed83a207b59d733e", kill_on_drop: false }` [INFO] [stdout] f82a5412161b7072c88af6dcd408d82ac2a35b40f8d74fa0ed83a207b59d733e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2a466f143c293a11ce2fc8d829c2ef8c83185772f55c05cedbd0906bd08cd799 [INFO] running `Command { std: "docker" "start" "-a" "2a466f143c293a11ce2fc8d829c2ef8c83185772f55c05cedbd0906bd08cd799", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `crate::base::*` [INFO] [stdout] --> src/shim.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::base::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::task::*` [INFO] [stdout] --> src/timers.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::task::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mutex::*` [INFO] [stdout] --> src/timers.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::mutex::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::queue::*` [INFO] [stdout] --> src/timers.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::queue::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/mutex.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/mutex.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/mutex.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/units.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/units.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/timers.rs:74:45 [INFO] [stdout] | [INFO] [stdout] 74 | ... callback: Box,) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 74 - callback: Box,) [INFO] [stdout] 74 + callback: Box,) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/timers.rs:108:72 [INFO] [stdout] | [INFO] [stdout] 108 | let b = Box::from_raw(callback_ptr as *mut 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 108 - let b = Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] 108 + let b = Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/timers.rs:191:56 [INFO] [stdout] | [INFO] [stdout] 191 | Box::from_raw(callback_ptr as *mut 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 191 - Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] 191 + Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | unsafe { freertos_rs_task_notify_take(if clear { 1 } else { 0 }, wait_for.to_ticks()) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:239:17 [INFO] [stdout] | [INFO] [stdout] 239 | let r = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:273:9 [INFO] [stdout] | [INFO] [stdout] 273 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | unsafe { freertos_rs_xTaskGetTickCount() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | unsafe { freertos_rs_get_number_of_tasks() as usize } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/timers.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/timers.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/timers.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/timers.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/queue.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | let handle = unsafe { freertos_rs_queue_create(max_size as u32, item_size as u32) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/queue.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/queue.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 117 | let m = unsafe { freertos_rs_create_mutex() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 125 | let res = unsafe { freertos_rs_take_mutex(self.0, max_wait.to_ticks()) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe { freertos_rs_give_mutex(self.0); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling freertos_rs v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | unsafe { freertos_rs_delete_semaphore(self.0) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let m = unsafe { freertos_rs_create_recursive_mutex() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:162:19 [INFO] [stdout] | [INFO] [stdout] 162 | let res = unsafe { freertos_rs_take_recursive_mutex(self.0, max_wait.to_ticks()) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | unsafe { freertos_rs_give_recursive_mutex(self.0); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | unsafe { freertos_rs_delete_semaphore(self.0) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/units.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { freertos_rs_get_portTICK_PERIOD_MS() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/units.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | unsafe { freertos_rs_max_wait() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/utils.rs:37:22 [INFO] [stdout] | [INFO] [stdout] 37 | let c_size = unsafe { freertos_rs_sizeof(check.0) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/isr.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | unsafe { freertos_rs_isr_yield(); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/delays.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/critical.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | unsafe { freertos_rs_enter_critical(); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/critical.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe { freertos_rs_exit_critical(); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `FreeRtosStackType` [INFO] [stdout] --> src/base.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | pub type FreeRtosStackType = *const CVoid; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/utils.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | id: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TypeSizeError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/utils.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `c_size` [INFO] [stdout] --> src/utils.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | c_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TypeSizeError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/utils.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rust_size` [INFO] [stdout] --> src/utils.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | rust_size: usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TypeSizeError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/utils.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Finished` [INFO] [stdout] --> src/patterns/compute_task.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | Finished, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ComputeTaskStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/patterns/compute_task.rs:94:10 [INFO] [stdout] | [INFO] [stdout] 94 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on `Self: Drop` are most likely incorrect, consider instead using `core::mem::needs_drop` to detect whether a type can be trivially dropped [INFO] [stdout] --> src/mutex.rs:104:46 [INFO] [stdout] | [INFO] [stdout] 104 | pub trait MutexInnerImpl where Self: Sized + Drop { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(drop_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused boxed boxed `Fn` trait object that must be used [INFO] [stdout] --> src/timers.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: closures are lazy and do nothing unless called [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::base::*` [INFO] [stdout] --> src/shim.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::base::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::task::*` [INFO] [stdout] --> src/timers.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::task::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mutex::*` [INFO] [stdout] --> src/timers.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::mutex::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::queue::*` [INFO] [stdout] --> src/timers.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::queue::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/mutex.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 105 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/mutex.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/mutex.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/units.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/units.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | #[inline] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/timers.rs:74:45 [INFO] [stdout] | [INFO] [stdout] 74 | ... callback: Box,) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 74 - callback: Box,) [INFO] [stdout] 74 + callback: Box,) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/timers.rs:108:72 [INFO] [stdout] | [INFO] [stdout] 108 | let b = Box::from_raw(callback_ptr as *mut 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 108 - let b = Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] 108 + let b = Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/timers.rs:191:56 [INFO] [stdout] | [INFO] [stdout] 191 | Box::from_raw(callback_ptr as *mut 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 191 - Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] 191 + Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | unsafe { freertos_rs_task_notify_take(if clear { 1 } else { 0 }, wait_for.to_ticks()) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:239:17 [INFO] [stdout] | [INFO] [stdout] 239 | let r = unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:273:9 [INFO] [stdout] | [INFO] [stdout] 273 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | unsafe { freertos_rs_xTaskGetTickCount() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/task.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | unsafe { freertos_rs_get_number_of_tasks() as usize } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/timers.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/timers.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/timers.rs:160:9 [INFO] [stdout] | [INFO] [stdout] 160 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/timers.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/queue.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | let handle = unsafe { freertos_rs_queue_create(max_size as u32, item_size as u32) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/queue.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/queue.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/semaphore.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:117:17 [INFO] [stdout] | [INFO] [stdout] 117 | let m = unsafe { freertos_rs_create_mutex() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 125 | let res = unsafe { freertos_rs_take_mutex(self.0, max_wait.to_ticks()) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe { freertos_rs_give_mutex(self.0); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | unsafe { freertos_rs_delete_semaphore(self.0) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let m = unsafe { freertos_rs_create_recursive_mutex() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:162:19 [INFO] [stdout] | [INFO] [stdout] 162 | let res = unsafe { freertos_rs_take_recursive_mutex(self.0, max_wait.to_ticks()) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | unsafe { freertos_rs_give_recursive_mutex(self.0); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/mutex.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | unsafe { freertos_rs_delete_semaphore(self.0) } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/units.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { freertos_rs_get_portTICK_PERIOD_MS() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/units.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | unsafe { freertos_rs_max_wait() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/utils.rs:37:22 [INFO] [stdout] | [INFO] [stdout] 37 | let c_size = unsafe { freertos_rs_sizeof(check.0) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/isr.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | unsafe { freertos_rs_isr_yield(); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/delays.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/critical.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | unsafe { freertos_rs_enter_critical(); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/critical.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | unsafe { freertos_rs_exit_critical(); } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `FreeRtosStackType` [INFO] [stdout] --> src/base.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | pub type FreeRtosStackType = *const CVoid; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> src/utils.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | id: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TypeSizeError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/utils.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `c_size` [INFO] [stdout] --> src/utils.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | c_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TypeSizeError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/utils.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `rust_size` [INFO] [stdout] --> src/utils.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | rust_size: usize [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TypeSizeError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/utils.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Finished` [INFO] [stdout] --> src/patterns/compute_task.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | Finished, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ComputeTaskStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/patterns/compute_task.rs:94:10 [INFO] [stdout] | [INFO] [stdout] 94 | #[derive(Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bounds on `Self: Drop` are most likely incorrect, consider instead using `core::mem::needs_drop` to detect whether a type can be trivially dropped [INFO] [stdout] --> src/mutex.rs:104:46 [INFO] [stdout] | [INFO] [stdout] 104 | pub trait MutexInnerImpl where Self: Sized + Drop { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(drop_bounds)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused boxed boxed `Fn` trait object that must be used [INFO] [stdout] --> src/timers.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | Box::from_raw(callback_ptr as *mut Box); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: closures are lazy and do nothing unless called [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.68s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/freertos_rs-79976064c9e708aa) [INFO] running `Command { std: "docker" "inspect" "2a466f143c293a11ce2fc8d829c2ef8c83185772f55c05cedbd0906bd08cd799", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a466f143c293a11ce2fc8d829c2ef8c83185772f55c05cedbd0906bd08cd799", kill_on_drop: false }` [INFO] [stdout] 2a466f143c293a11ce2fc8d829c2ef8c83185772f55c05cedbd0906bd08cd799 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 879a7f06cf8cce93fbeffdfca6420d04d188a834b0da27094e1ab7fe4651deb1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "879a7f06cf8cce93fbeffdfca6420d04d188a834b0da27094e1ab7fe4651deb1", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `crate::base::*` [INFO] [stderr] --> src/shim.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::base::*; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::task::*` [INFO] [stderr] --> src/timers.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::task::*; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::mutex::*` [INFO] [stderr] --> src/timers.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::mutex::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::queue::*` [INFO] [stderr] --> src/timers.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::queue::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[inline]` is ignored on function prototypes [INFO] [stderr] --> src/mutex.rs:105:5 [INFO] [stderr] | [INFO] [stderr] 105 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_attributes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `#[inline]` is ignored on function prototypes [INFO] [stderr] --> src/mutex.rs:107:5 [INFO] [stderr] | [INFO] [stderr] 107 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[inline]` is ignored on function prototypes [INFO] [stderr] --> src/mutex.rs:109:5 [INFO] [stderr] | [INFO] [stderr] 109 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[inline]` is ignored on function prototypes [INFO] [stderr] --> src/units.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[inline]` is ignored on function prototypes [INFO] [stderr] --> src/units.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | #[inline] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/timers.rs:74:45 [INFO] [stderr] | [INFO] [stderr] 74 | ... callback: Box,) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 74 - callback: Box,) [INFO] [stderr] 74 + callback: Box,) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/timers.rs:108:72 [INFO] [stderr] | [INFO] [stderr] 108 | let b = Box::from_raw(callback_ptr as *mut Box); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 108 - let b = Box::from_raw(callback_ptr as *mut Box); [INFO] [stderr] 108 + let b = Box::from_raw(callback_ptr as *mut Box); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/timers.rs:191:56 [INFO] [stderr] | [INFO] [stderr] 191 | Box::from_raw(callback_ptr as *mut Box); [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 191 - Box::from_raw(callback_ptr as *mut Box); [INFO] [stderr] 191 + Box::from_raw(callback_ptr as *mut Box); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/task.rs:184:9 [INFO] [stderr] | [INFO] [stderr] 184 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/task.rs:201:9 [INFO] [stderr] | [INFO] [stderr] 201 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/task.rs:228:9 [INFO] [stderr] | [INFO] [stderr] 228 | unsafe { freertos_rs_task_notify_take(if clear { 1 } else { 0 }, wait_for.to_ticks()) } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/task.rs:239:17 [INFO] [stderr] | [INFO] [stderr] 239 | let r = unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/task.rs:255:9 [INFO] [stderr] | [INFO] [stderr] 255 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/task.rs:266:9 [INFO] [stderr] | [INFO] [stderr] 266 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/task.rs:273:9 [INFO] [stderr] | [INFO] [stderr] 273 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/task.rs:345:9 [INFO] [stderr] | [INFO] [stderr] 345 | unsafe { freertos_rs_xTaskGetTickCount() } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/task.rs:353:9 [INFO] [stderr] | [INFO] [stderr] 353 | unsafe { freertos_rs_get_number_of_tasks() as usize } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/timers.rs:138:9 [INFO] [stderr] | [INFO] [stderr] 138 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/timers.rs:149:9 [INFO] [stderr] | [INFO] [stderr] 149 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/timers.rs:160:9 [INFO] [stderr] | [INFO] [stderr] 160 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/timers.rs:178:9 [INFO] [stderr] | [INFO] [stderr] 178 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/queue.rs:23:22 [INFO] [stderr] | [INFO] [stderr] 23 | let handle = unsafe { freertos_rs_queue_create(max_size as u32, item_size as u32) }; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/queue.rs:37:9 [INFO] [stderr] | [INFO] [stderr] 37 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/queue.rs:82:9 [INFO] [stderr] | [INFO] [stderr] 82 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/semaphore.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/semaphore.rs:27:9 [INFO] [stderr] | [INFO] [stderr] 27 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/semaphore.rs:38:9 [INFO] [stderr] | [INFO] [stderr] 38 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/semaphore.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/semaphore.rs:65:9 [INFO] [stderr] | [INFO] [stderr] 65 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/mutex.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/mutex.rs:117:17 [INFO] [stderr] | [INFO] [stderr] 117 | let m = unsafe { freertos_rs_create_mutex() }; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/mutex.rs:125:19 [INFO] [stderr] | [INFO] [stderr] 125 | let res = unsafe { freertos_rs_take_mutex(self.0, max_wait.to_ticks()) }; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/mutex.rs:135:9 [INFO] [stderr] | [INFO] [stderr] 135 | unsafe { freertos_rs_give_mutex(self.0); } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/mutex.rs:141:9 [INFO] [stderr] | [INFO] [stderr] 141 | unsafe { freertos_rs_delete_semaphore(self.0) } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/mutex.rs:154:17 [INFO] [stderr] | [INFO] [stderr] 154 | let m = unsafe { freertos_rs_create_recursive_mutex() }; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/mutex.rs:162:19 [INFO] [stderr] | [INFO] [stderr] 162 | let res = unsafe { freertos_rs_take_recursive_mutex(self.0, max_wait.to_ticks()) }; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/mutex.rs:172:9 [INFO] [stderr] | [INFO] [stderr] 172 | unsafe { freertos_rs_give_recursive_mutex(self.0); } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/mutex.rs:178:9 [INFO] [stderr] | [INFO] [stderr] 178 | unsafe { freertos_rs_delete_semaphore(self.0) } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/units.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 17 | unsafe { freertos_rs_get_portTICK_PERIOD_MS() } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/units.rs:21:9 [INFO] [stderr] | [INFO] [stderr] 21 | unsafe { freertos_rs_max_wait() } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/utils.rs:37:22 [INFO] [stderr] | [INFO] [stderr] 37 | let c_size = unsafe { freertos_rs_sizeof(check.0) }; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/isr.rs:26:13 [INFO] [stderr] | [INFO] [stderr] 26 | unsafe { freertos_rs_isr_yield(); } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/delays.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | unsafe { [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/critical.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | unsafe { freertos_rs_enter_critical(); } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/critical.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | unsafe { freertos_rs_exit_critical(); } [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] [INFO] [stderr] warning: type alias is never used: `FreeRtosStackType` [INFO] [stderr] --> src/base.rs:40:1 [INFO] [stderr] | [INFO] [stderr] 40 | pub type FreeRtosStackType = *const CVoid; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `id` [INFO] [stderr] --> src/utils.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | id: usize, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TypeSizeError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/utils.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `c_size` [INFO] [stderr] --> src/utils.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | c_size: usize, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TypeSizeError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/utils.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `rust_size` [INFO] [stderr] --> src/utils.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | rust_size: usize [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `TypeSizeError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/utils.rs:5:10 [INFO] [stderr] | [INFO] [stderr] 5 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Finished` [INFO] [stderr] --> src/patterns/compute_task.rs:96:5 [INFO] [stderr] | [INFO] [stderr] 96 | Finished, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ComputeTaskStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/patterns/compute_task.rs:94:10 [INFO] [stderr] | [INFO] [stderr] 94 | #[derive(Debug, Copy, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: bounds on `Self: Drop` are most likely incorrect, consider instead using `core::mem::needs_drop` to detect whether a type can be trivially dropped [INFO] [stderr] --> src/mutex.rs:104:46 [INFO] [stderr] | [INFO] [stderr] 104 | pub trait MutexInnerImpl where Self: Sized + Drop { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(drop_bounds)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused boxed boxed `Fn` trait object that must be used [INFO] [stderr] --> src/timers.rs:191:17 [INFO] [stderr] | [INFO] [stderr] 191 | Box::from_raw(callback_ptr as *mut Box); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: closures are lazy and do nothing unless called [INFO] [stderr] [INFO] [stderr] warning: `freertos_rs` (lib) generated 56 warnings [INFO] [stderr] warning: `freertos_rs` (lib test) generated 56 warnings (56 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/freertos_rs-79976064c9e708aa) [INFO] [stdout] [INFO] [stderr] Doc-tests freertos_rs [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/lib.rs - (line 44) ... ok [INFO] [stdout] test src/lib.rs - (line 35) ... ok [INFO] [stdout] test src/lib.rs - (line 23) ... ok [INFO] [stdout] test src/patterns/compute_task.rs - patterns::compute_task::ComputeTask (line 75) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.95s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "879a7f06cf8cce93fbeffdfca6420d04d188a834b0da27094e1ab7fe4651deb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "879a7f06cf8cce93fbeffdfca6420d04d188a834b0da27094e1ab7fe4651deb1", kill_on_drop: false }` [INFO] [stdout] 879a7f06cf8cce93fbeffdfca6420d04d188a834b0da27094e1ab7fe4651deb1