From 15064a95e4bb0391d06eaca8746b48f73b4fbb1c Mon Sep 17 00:00:00 2001 From: Craig Bishop Date: Thu, 29 Nov 2018 19:05:01 -0700 Subject: [PATCH] Remove private_no_mangle_static directives in generated code for latest nightly --- src/generate/device.rs | 1 - src/generate/interrupt.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/src/generate/device.rs b/src/generate/device.rs index af49ca9f..d8dca82b 100644 --- a/src/generate/device.rs +++ b/src/generate/device.rs @@ -193,7 +193,6 @@ pub fn render(d: &Device, target: &Target, nightly: bool, device_x: &mut String) // version) #[allow(renamed_and_removed_lints)] // This currently breaks on nightly, to be removed with the line above once 1.31 is stable - #[allow(private_no_mangle_statics)] #[no_mangle] static mut DEVICE_PERIPHERALS: bool = false; diff --git a/src/generate/interrupt.rs b/src/generate/interrupt.rs index 799c4b0e..c4807153 100644 --- a/src/generate/interrupt.rs +++ b/src/generate/interrupt.rs @@ -139,7 +139,6 @@ pub fn render( #[allow(renamed_and_removed_lints)] // This currently breaks on nightly, to be removed with the line above once 1.31 is stable - #[allow(private_no_mangle_statics)] #[cfg(feature = "rt")] #[doc(hidden)] #[link_section = ".vector_table.interrupts"]