diff --git a/src/lib.rs b/src/lib.rs index 0b1c1fe9ed..7edc89a57b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -715,6 +715,7 @@ macro_rules! peripherals { },)+ }) => { $( + #[allow(private_no_mangle_statics)] #[no_mangle] static $PERIPHERAL: $crate::Peripheral<::$device::$RegisterBlock, $crate::$C> =