Skip to content

Commit 655c25b

Browse files
committed
Allow unaligned references for Debug implementations
This allows access that is probably UB in order to stay usable with current nightly compilers. A better solution is needed, but the problem is not new and this stops the alarms from hindering other work: It makes riot-sys usable with recent nightlies (the default was switched from warn to error some time between 2022-03-08 and 2022-04-25). Creates: #3
1 parent fb394e7 commit 655c25b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
#![allow(non_upper_case_globals)]
7878
#![allow(non_camel_case_types)]
7979
#![allow(non_snake_case)]
80+
#![warn(unaligned_references)]
8081
#![cfg_attr(feature = "keep-extern-types", feature(extern_types))]
8182

8283
pub mod libc;

0 commit comments

Comments
 (0)