Skip to content

Commit b53bbc7

Browse files
committed
Revert "Remove private_no_mangle_static directives in generated code for latest"
This reverts commit 15064a9.
1 parent 8301b12 commit b53bbc7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/generate/device.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ pub fn render(d: &Device, target: &Target, nightly: bool, device_x: &mut String)
193193
// version)
194194
#[allow(renamed_and_removed_lints)]
195195
// This currently breaks on nightly, to be removed with the line above once 1.31 is stable
196+
#[allow(private_no_mangle_statics)]
196197
#[no_mangle]
197198
static mut DEVICE_PERIPHERALS: bool = false;
198199

src/generate/interrupt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ pub fn render(
139139

140140
#[allow(renamed_and_removed_lints)]
141141
// This currently breaks on nightly, to be removed with the line above once 1.31 is stable
142+
#[allow(private_no_mangle_statics)]
142143
#[cfg(feature = "rt")]
143144
#[doc(hidden)]
144145
#[link_section = ".vector_table.interrupts"]

0 commit comments

Comments
 (0)