Skip to content

Commit 056c65f

Browse files
committed
replace the macro_reexport feature with use_extern_macros
the former has been removed in the latest nightly
1 parent 38550c2 commit 056c65f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/generate/device.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub fn render(d: &Device, target: &Target) -> Result<Vec<Tokens>> {
3030
if *target != Target::None {
3131
out.push(quote! {
3232
#![cfg_attr(feature = "rt", feature(global_asm))]
33-
#![cfg_attr(feature = "rt", feature(macro_reexport))]
33+
#![cfg_attr(feature = "rt", feature(use_extern_macros))]
3434
#![cfg_attr(feature = "rt", feature(used))]
3535
});
3636
}
@@ -50,17 +50,19 @@ pub fn render(d: &Device, target: &Target) -> Result<Vec<Tokens>> {
5050
Target::CortexM => {
5151
out.push(quote! {
5252
extern crate cortex_m;
53-
#[macro_reexport(default_handler, exception)]
5453
#[cfg(feature = "rt")]
5554
extern crate cortex_m_rt;
55+
#[cfg(feature = "rt")]
56+
pub use cortex_m_rt::{default_handler, exception};
5657
});
5758
}
5859
Target::Msp430 => {
5960
out.push(quote! {
6061
extern crate msp430;
61-
#[macro_reexport(default_handler)]
6262
#[cfg(feature = "rt")]
6363
extern crate msp430_rt;
64+
#[cfg(feature = "rt")]
65+
pub use msp430_rt::default_handler;
6466
});
6567
}
6668
Target::RISCV => {

0 commit comments

Comments
 (0)