imxrt-hal icon indicating copy to clipboard operation
imxrt-hal copied to clipboard

Eagerly address select Rust 2024 edition changes

Open mciantyre opened this issue 2 months ago • 0 comments

The 2024 edition enables unsafe_op_in_unsafe_fn by default. This PR adds unsafe blocks and safety considerations throughout HAL and logging packages. There shouldn't be any functional changes.

Today's stable toolchain (1.77) also warns about the explicit references to static muts. I'm taking the simple approach to resolve this eventual hard error.

Tested on an 1170EVK using the rtic_logging example, with both backends and both frontends.

mciantyre avatar Apr 10 '24 14:04 mciantyre